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
  • Index
  • » Users
  • » Mazu625
  • » Profile

Posts

Posts

Thank you for your answer.

Yes, this is exactly what I am doing now. I compile the model, run the simulation and use the stored .mat file for analysis. It is just annoying to wait for the model to recompile after simple parameter changes. Especially since OMEdit apparently can do that without recompiling...

Any update on the issue would be appreciated.

Hello,

I am using OMPython to compile and simulation a model:

Code:


from OMPython import ModelicaSystem

fileName = "../../package.mo"
modelPath = "myModel"

mod = ModelicaSystem(fileName,modelPath, ["Modelica"])

My intention is to make some data analysis based on Monte-Carlo studies with scripted parameter variations within the model.

Now, each time I execute the script it annoyingly needs ~70s of compile time and a bunch of .c/.h/.o/... files are generated.

Is it possible to avoid recompilation of the same models over and over again? A compiler option/flag maybe?

  • Index
  • » Users
  • » Mazu625
  • » Profile
You are here: