just had a look on sourcelink.
there's a solution on this issue (#11110574)
here's what it says:
This occurs only in the case when a simulation has not been run before using
ocnPrint. This
is because ocnPrint requires that the path to resultDir should be set. The
path to resultDir
is set by default if the simulation is run, or this can be set using
openResults function.
To overcome this problem use the openResults function to set the path to a
valid PSF directory