Cannot run the pyfmi.load_fmu command.

124 views
Skip to first unread message

CX Zhou

unread,
May 27, 2021, 2:20:47 AM5/27/21
to energyplus-fmu
pyfmi version:2.8.7
python version:3.7.10
platform: windows10
error message:
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "F:/PycharmProjects/MARL_cxzhou/FMI_test.py", line 6, in <module>
    model = pyfmi.load_fmu('platform_half_heatpump_test.fmu', enable_logging=True)
  File "src\pyfmi\fmi.pyx", line 8424, in pyfmi.fmi.load_fmu
  File "src\pyfmi\fmi.pyx", line 6795, in pyfmi.fmi.FMUModelCS2.__init__
File "src\pyfmi\fmi.pyx", line 4384, in pyfmi.fmi.FMUModelBase2.instantiate
pyfmi.fmi.FMUException: Failed to instantiate the model. See the log for possibly more information.
Why does this problem occur?

Thierry Nouidui

unread,
May 27, 2021, 3:10:44 AM5/27/21
to CX Zhou, energyplus-fmu
What tool (version included) did you use to export your FMU? Could you share any log file? It will otherwise be very difficult to know what is going on.

--
You received this message because you are subscribed to the Google Groups "energyplus-fmu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to energyplus-fm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/energyplus-fmu/7c26b55f-9495-4913-9ffd-140e4c443320n%40googlegroups.com.


--
Prof. Thierry Nouidui
Nouidui Consulting Group
https://nouidui.com/index.php/consulting/
Reply all
Reply to author
Forward
0 new messages