Opened 13 years ago

Closed 12 years ago

#1691 closed defect (fixed)

M.E.Digital.Examples fail to run backend

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Backend Version:
Keywords: Cc: Martin Sjölund, Frenkel, TUD, Willi Braun

Description (last modified by Martin Sjölund)

loadModel(Modelica,{"3.1"});
res:=buildModel(Modelica.Electrical.Digital.Examples.Multiplexer);

This causes:
Stack overflow! Failing the current function stack chain until the stack overflow signal is caught!
Execution failed!

And a very long trace of - BackendDAETransform.analyseStrongComponentBlock failed to be printed.

Change History (4)

comment:1 by Jens Frenkel, 13 years ago

There is a strong connected sub equation system. Using +d=delayBreakLoop helps to build the model.

Anyway the compiler should not crash and report a Error Message. Maybe: Use +d=delayBreakLoop to break algebraic loop.

comment:2 by Jens Frenkel, 13 years ago

In the function BackendDAETransform.analyseStrongComponentBlock


for case  BackendDAE.MIXEDEQUATIONSYSTEM there should be a false as last parameter to avoid mixed systems as part of mixed systems. 

for case  BackendDAE.EQUATIONSYSTEM should maybe tested for

false = BackendVariable.hasDiscreteVar(var_lst);

but I am not a mathematician.

comment:3 by Martin Sjölund, 12 years ago

Cc: Frenkel TUD added; Jens Frenkel removed
Component: Backend
Description: modified (diff)
Milestone: 1.9.0

comment:4 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.