Error when running fmu example in JModelica 2.4 User's Guide: could not find file

225 views Asked by At

I follow word by word Jmodelica user's manual for installation and when running the fmu example in IPython I get:

from pymodelica import compile_fmu
from pyfmi import load_fmu
my_fmu = compile_fmu('RLC_Circuit','RLC_Circuit.mo')

Could not find file: RLC_Circuit.mo (The system cannot find the file specified)

The file RLC_Circuit.mo is present in a folder but apparently "the system cannot find it". So how to add a path of the parent folder ?

1

There are 1 answers

1
are On

Have a look at RLC.py in install/Python{_64}/pyjmi/examples. There you can see how to add the path to the .mo file in compile_fmu.