Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Compile Model vs Simulation

Compile Model vs Simulation

Dear all,

I have writen a Modelica model in which I have a function that calls a python script. This is done following the Interoperability C and Python advices. However, I am using an Anaconda3 python installation. I have managed to compile my code without any problem, I have tested it in command line with success. However, when running the simulation in OMEdit, the code compiles right but the simulation fails. Indeed, I think it is because of the PATH variable, wich modelica cleans and sets.

Could anyone please help me to modify the PATH variable in the OMEdit GUI please or to find the right SCRIPT where it is set? And to set correctly also my PYTHONPATH.

In advance, thank you

Re: Compile Model vs Simulation

You can play with %OPENMODELICAHOME%share/omc/scripts/Compile.bat
However, we only set paths for compilation and not for simulation.

Adeel.

Re: Compile Model vs Simulation

Hello Adeel,
I've already done that current/smile
Thats how I've succeded to compile my model.

There are 0 guests and 0 other users also viewing this topic
You are here: