- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Model failing since OMCompiler commit...
Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
I have a model that has been running without issue on OM. But which broke after an upgrade. I've finally managed to trace the commit in which it broke. From what I can tell (using git bisect) these seem to be the offending commits (@lochel):
OpenModelica: c3dd385ae1d2e287aa3acce84a97917e427e32ad
OMCompiler: 56d186b60d7904ed253b34995e6ff4543a16e09d
The model simulates for about 1 s and then fails. Whereas it used to simulated without flaws.
I would greatly appreciate some pointers to help debug this problem so that I can file issues.
Best regards
Daniel
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
Can you provide your model as test case to reproduce the issue?
- lochel
- 45 Posts
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
Unfortunately, I cannot provide the model as is. It is an entire package and I'm not allowed to share the code anyway. But I would want to find a way to debug it, so that I can generate a minimal failing model that I can send to you. Could you guide me through some debugging techniques?
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
Well, I did quite a lot of changes to the backend in that specific commit. Therefore, it is hard to pinpoint something.
However, we could start with the error message ;-). You wrote that your model failed during simulation, right? Is there any error message or something? Did you run the simulation from command line or using OMEdit?
- lochel
- 45 Posts
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
Yes, it simulates and then breaks with this error message:
stdout | warning | The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
DASKR-- AT T (=R1) AND STEPSIZE H (=R2) THE
In above, R1 = 1.4663589072380E+00 R2 = 3.7410878546409E-16
DASKR-- NONLINEAR SOLVER FAILED TO CONVERGE
DASKR-- REPEATEDLY OR WITH ABS(H)=HMIN
stdout | warning | The corrector could not converge.
stdout | warning | can't continue. time = 1.466359
assert | warning | The following assertion has been violated at time 1.466359
<Here some variables go out of their min max ranges>
stdout | info | model terminate | Integrator failed. | Simulation terminated at time 1.46636
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
With LOG_LS I get this (amongst others):
LOG_LS | warning | Failed to solve linear system of equations (no. 3045) at time 1.466359, system is singular for U[2, 2].
LOG_LS | info | Matrix U
| | | | | 0
LOG_LS | info | Output vector x
| | | | | [ 0] 0
LOG_LS | warning | The default linear solver fails, the fallback solver with total pivoting is started at time 1.466359. That might raise performance issues, for more information use -lv LOG_LS.
LOG_LS | info | Start solving Linear System 3045 (size 1) at time 1.46636 with Total Pivot Solver
LOG_LS | info | ### 0.000000 time to set Matrix A and vector b.
LOG_LS | warning | Matrix singular!
LOG_LS | info | rank = 0
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
Sorry, I cannot give you any hint. Can you try to isolate the failing linear system and set up a small model that can be used as public test case?
- lochel
- 45 Posts
Re: Model failing since OMCompiler commit 56d186b60d7904ed253b34995e6ff454
I've filed an issue with attached failing models:
https://trac.openmodelica.org/OpenModelica/ticket/3628
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Model failing since OMCompiler commit...