Opened 11 years ago

Closed 11 years ago

#2561 closed defect (fixed)

Misleading Errormessage for singular inital system

Reported by: Jens Frenkel Owned by: Lennart Ochel
Priority: blocker Milestone: 1.9.1
Component: Backend Version: trunk
Keywords: Cc: casella@…, Willi Braun, Dirk.Zimmer@…, Volker Waurich, Christian Schubert, Adrian Pop

Description

If a Modell has a singular initial system (because of the model or a bug in the compiler) the first error message is:

Error: Das Modell ist strukturell singulär. Fehler wurde gefunden durch Sortieren der Gleichungen 
 4: z = 2.0 * time;
1: z = 4.0;
 für Variablen 
 y(2), x(4), z(1)
Error: Interner Fehler Transformation Module PFPlusExt index Reduction Method Pantelides failed!

the following warning:

Warning: No system for the symbolic initialization was generated. A method using numerical algorithms will be used instead.

nobody reads anymore. But in such a case the messages is totaly misleading. There should be a message that the inital system is singular and not the system for time simulation.

Attachments (1)

SingularInitial.mo (408 bytes ) - added by Jens Frenkel 11 years ago.
example singular initial system

Download all attachments as: .zip

Change History (2)

by Jens Frenkel, 11 years ago

Attachment: SingularInitial.mo added

example singular initial system

comment:1 by Lennart Ochel, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in 18973.

The new error message is:

[<interactive>:9:5-9:17:writable] Error: Initialization problem is structurally singular, error found sorting equations 
 4: z = 2.0 * time;
 1: z = 4.0;
for variables 
 y(2), x(4), z(1)
Version 0, edited 11 years ago by Lennart Ochel (next)
Note: See TracTickets for help on using tickets.