- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » an error when using the OMShell
an error when using the OMShell
an error when using the OMShell
Hi,
I'm using the OMShell with scripts for simulate, but having an error as followed:
messages = "warning | Error solving nonlinear system SES_ALGORITHM 0 at time 43.3615
infor | model terminate | simulation terminated at time 43.2238
I don't know why had this error
Re: an error when using the OMShell
It means the solver is trying to solve a non-linear system of equations but cannot find the solution.
Try these examples and you should realize why this happens. Sadly, the error-message is quite bad and does not provide all the information you need (it points to wrong equation-system)
Code:
loadString("
model M
Real x,y;
equation
x = sin(y);
y = cos(x);
end M;
");
simulate(M);
loadString("
model M
Real x,y;
equation
x*time = sin(y);
y = cos(x);
end M;
");
simulate(M);
- sjoelund.se
- 1700 Posts
Re: an error when using the OMShell
You can try to use simulate(... , measureTime=true). It should at least list all non-linear systems and the variables that are part of them (if you did not find this out already).
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » an error when using the OMShell