Behzad Danaei
Behzad Danaei

Reputation: 31

How to Save and Reuse Initialization Results in OpenModelica for Faster Simulations?

In OpenModelica, the initialization step in my simulation takes a significant amount of time. Is there a way to save the results of the initialization step and reuse them in subsequent simulations to reduce the overall runtime?

Upvotes: 1

Views: 54

Answers (1)

quaternio
quaternio

Reputation: 97

During the initalisation step the solver tries to find a set of inital values such that all of the equations are valid, using the initial values that you have set as an inital guess. I imagine that your models initialisation step is taking a long time becuase your have not set inital values or the initial values you have set are not accurate.

If you are using OM Edit, setting the LOG_INIT simulation flag will show you the inital values that it calculated, setting those values as the inital values for the subsequent simulations (assuming its somewhat similar to the original one) might reduce the initialisation step duration.

Upvotes: 0

Related Questions