Opened 13 years ago

Closed 10 years ago

#1585 closed enhancement (duplicate)

mixed system involving algorithms or other complex-equations

Reported by: jlettau Owned by: Willi Braun
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: Lennart Ochel

Description (last modified by Lennart Ochel)

function int2real
  input Integer inp;
  output Real outp;
  protected Real a = 1.0;
algorithm
  outp := inp * a;
end int2real;  
  
model bug
  Integer t;
  Boolean b;
  Real r1;
equation
    b = r1>0;
    t = if edge(b) then r1 else t;
    r1=int2real(t); 
end bug;

error message

Error processing file: simple.mo
Error: Internal error BackendDAETransform.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.
Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed
Error: Internal error sorting equations(strongComponents failed)
Error: Internal error Transformation Module sort components failed!

# Error encountered! Exiting...
# Please check the error message and the flags.

Execution failed!

Change History (5)

comment:1 by Martin Sjölund, 13 years ago

Funny bug. I will probably not fix this myself, but it seems pre() (and edge(), etc) replaces crefs improperly. edge(b) should become xloc[ix] and not $PRE$b or similar...

comment:2 by Lennart Ochel, 12 years ago

Cc: Willi Braun added; jlettau removed
Component: Backend
Description: modified (diff)
Priority: blockermajor
Type: defectenhancement

comment:3 by Lennart Ochel, 12 years ago

Description: modified (diff)
Summary: error message running makefilemixed system involving algorithms or other complex-equations

comment:4 by Lennart Ochel, 12 years ago

Cc: Lennart Ochel added; Willi Braun removed
Owner: changed from jlettau to Willi Braun
Status: newassigned

comment:5 by Willi Braun, 10 years ago

Resolution: duplicate
Status: assignedclosed

It's about adding support for mixed systems so #2432 it the current one.

Note: See TracTickets for help on using tickets.