Opened 13 years ago
Closed 6 years ago
#1653 closed defect (fixed)
Simulation uses wrong results from singular liniear system for calculation.
Reported by: | Jens Frenkel | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | 1.14.0 |
Component: | Run-time | Version: | v1.13.0-dev-nightly |
Keywords: | Cc: | Frenkel, TUD, Willi Braun |
Description
If a liniear system is detected as singular the simulation runtime uses this result and continue the calculation.
The simulation should not uses the result of a singular system and report an error message (without provide additional flag to the executable).
model SingularSystem
Real x;
Real y;
parameter Real a = 1;
equation
a*der(x) + a*der(y) = 1;
der(x) + der(y) = 0;
end SingularSystem;
Change History (7)
comment:1 by , 12 years ago
Cc: | added; removed |
---|---|
Component: | → Backend |
Owner: | changed from | to
comment:2 by , 9 years ago
Milestone: | → Future |
---|
comment:3 by , 7 years ago
Owner: | changed from | to
---|
comment:4 by , 7 years ago
Component: | Backend → Run-time |
---|---|
Milestone: | Future → 1.13.0 |
Owner: | changed from | to
Version: | trunk → v1.13.0-dev-nightly |
Works fine in Windows.
Seems similar to #4581.
comment:5 by , 7 years ago
On Linux, the default, lapack, and totalpivot solvers all report error solving the linear system. lis and umfpack solve the system.
comment:7 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
As of 1.13.0, the test case simulation fails with this error:
Failed to solve linear system of equations (no. 7) at time 0.000000, system is singular for U[2, 2]. 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. Matrix singular! under-determined linear system not solvable! Error solving linear system of equations (no. 7) at time 0.000000. Solving linear system 7 fails at time 0. For more information use -lv LOG_LS. Solving linear system 7 failed at time=0.<br> For more information please use -lv LOG_LS. simulation terminated by an assertion at initialization Simulation process failed. Exited with code -1.
As of omc 1.12.0-beta3, the simulation fails reporting a singular matrix. Unfortunately, OMEdit crashes immediately afterwards.