Opened 11 years ago

Last modified 11 years ago

#2310 closed defect

referenced a variable that was not declared as a <variable> — at Version 1

Reported by: Lennart Ochel Owned by: probably noone
Priority: critical Milestone: 1.9.0
Component: Code Generation Version: trunk
Keywords: Cc: Adeel Asghar, Martin Sjölund

Description (last modified by Lennart Ochel)

This model should probably be simulated without errors:

model foo
  Real a;
  Real b(fixed=true);
initial equation
  pre(a) = b^2;
equation
  der(a) = time;
  when initial() then
    b = pre(a);
  end when;
end foo;

output:

assert            | assert  | Referenced a variable that was not declared as a <variable>


Process crashed

Change History (1)

comment:1 by Lennart Ochel, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.