Opened 13 years ago

Last modified 10 years ago

#1585 closed enhancement

error message running makefile — at Version 2

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

Description (last modified by Lennart Ochel)

Hello, when I run the following model I get the errormessages below:

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 (2)

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