Opened 11 years ago

Last modified 10 years ago

#2432 closed defect

no support for mixed systems containing algorithms — at Initial Version

Reported by: Lennart Ochel Owned by: probably noone
Priority: blocker Milestone: 1.9.1
Component: Backend Version: trunk
Keywords: Cc: Patrick Täuber, Martin Sjölund, Adrian Pop

Description

It seems that there is no support for mixed systems that contain algorithms.
Example:

model test
  Real a;
  Integer b;
algorithm
  b:=if a > 0 then 1 else -1;
algorithm
  a:=b * time;
end test;

Output:

Translation	17:22:17		0:0-0:0	Interner Fehler Transformation Module sort components failed!
Translation	17:22:17		0:0-0:0	Interner Fehler ./Compiler/BackEnd/BackendDAETransform.mo: function strongComponentsScalar failed
sorting equations (strongComponents) failed
Translation	17:22:17		0:0-0:0	Interner Fehler ./Compiler/BackEnd/BackendDAETransform.mo: function analyseStrongComponentBlock failed
Translation	17:22:17		0:0-0:0	Interner Fehler ./Compiler/BackEnd/BackendDAETransform.mo: function findDiscreteEquation failed
Your model contains a mixed system involving algorithms or other complex-equations.
Sorry. Currently are supported only mixed system involving simple equations and boolean variables.
Try to break the loop by using the pre operator.

Change History (0)

Note: See TracTickets for help on using tickets.