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

What is a successful simulation?

What is a successful simulation?

Hello,

I have noticed that when solving models, I will be getting "error test failures" in the solver log stats.

LOG_STATS        | info     | solver: DASSL
|        | |     | |   208 steps taken
|        | |     | |   295 calls of functionODE
|        | |     | |   102 evaluations of jacobian
|        | |     | |     7 error test failures
|        | |     | |     0 convergence test failures

Although when I look at the results, they seem fine. Does having error test failures mean that the simulation is unsuccessful? Or does this have any other significance?


Re: What is a successful simulation?

Hi,

in the solver statistic the value "error test failures"
just means that in the  "DASSL" integrator an internal
error test has failed and that results in a new
calculation of the current step with a reduced internal
step size.
So if the number is quite high the solver
will be quite slow and it indicates that your problem
is quite stiff.
However, the simulation is successful as long you don't
get other messages that indicate a failing simulation.

so long.
Willi

Re: What is a successful simulation?

Thanks for the information, Willi. That was really helpful.

I have a follow up question though.

When solving few examples I've noticed this error popping up in the compilation tab of the simulation window.


Modelica.Blocks.Examples.PID_Controller_05evt.c: In function 'Modelica_Blocks_Examples_PID_Controller_zeroCrossingDescription':
Modelica.Blocks.Examples.PID_Controller_05evt.c:59: warning: assignment discards qualifiers from pointer target type


Can I get more information on what this is?

Re: What is a successful simulation?

It's not as bad as all that.
We have just forgot to cast some assignments, but
that is done by the c compiler anyway.

so long.
Willi

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