Skip to content

Model doesnt work in ModelicaSystem API but in OMCSession  #283

@WiesLe

Description

@WiesLe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions