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

How to get more information in the simulation result?

How to get more information in the simulation result?

Hello,

How can I get more information's in the simulation result?
-CPU Time
-number of Zero crossing
-Maximum integration order

thinks

Re: How to get more information in the simulation result?

CPU time (after you have compiled the model, e.g. by running the simulate() command first):

Code:

system("time ./ModelA > output.log"); readFile("output.log");

or (not as accurate):

Code:

timing(system("./A"));

Number of zero crossings (after you have generated source code, e.g. using the buildModel() or simulate() command):

Code:

system("grep \"^#define NG\" ./ModelA.cpp")

Maximum integration order I don't know how to get.

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