OMPython icon indicating copy to clipboard operation
OMPython copied to clipboard

Model doesnt work in ModelicaSystem API but in OMCSession

Open WiesLe opened this issue 9 months ago • 2 comments

Dear OMPython Team,

I made minor adjustments in my Modelica.mo and my Python Code that uses the API stopped working with this Error message: ... Error: Error building simulator. Build log: mingw32-make: Entering directory 'C:///AppData/Local/Temp/TMP8RY~1' .... mingw32-make: *** [:Modelica.Model_03lsy.o] Error 1 mingw32-make: *** Waiting for unfinished jobs.... mingw32-make: Leaving directory 'C://*/AppData/Local/Temp/TMP8RY~1' RESULT: 2

and the error in Python: Exception: Error: Application file path not found: C://*/AppData/Local/Temp/tmp8ryyccwo/Modelica.Model.exe

If i use OMC to simulate the Model it does work but is really slow (5.5 seconds) versus in OpenModelica (60ms).

I uses Python 3.12, the latest OMPython version and OpenModelica v.1.23.1

Thanks a lot!

with best regards

WiesLe avatar May 03 '25 12:05 WiesLe