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 Jens Frenkel, 12 years ago

Cc: Frenkel TUD added; Jens Frenkel Jens Frenkel removed
Component: Backend
Owner: changed from Jens Frenkel to Jens Frenkel

comment:2 by Dietmar Winkler, 9 years ago

Milestone: Future

comment:3 by Francesco Casella, 7 years ago

Owner: changed from Jens Frenkel to Adeel Asghar

As of omc 1.12.0-beta3, the simulation fails reporting a singular matrix. Unfortunately, OMEdit crashes immediately afterwards.

comment:4 by Adeel Asghar, 7 years ago

Component: BackendRun-time
Milestone: Future1.13.0
Owner: changed from Adeel Asghar to Martin Sjölund
Version: trunkv1.13.0-dev-nightly

Works fine in Windows.
Seems similar to #4581.

comment:5 by Martin Sjölund, 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:6 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:7 by Francesco Casella, 6 years ago

Resolution: fixed
Status: assignedclosed

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.
Note: See TracTickets for help on using tickets.