Opened 17 years ago

Last modified 17 years ago

#147 closed defect (fixed)

Initialization bug.

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: critical Milestone:
Component: Version:
Keywords: Cc: Adrian Pop, Adrian Pop

Description


Change History (2)

comment:1 by Adrian Pop, 17 years ago

--- InitTest.mo ---
model Object1

Boolean state (final start = true);
Boolean newState (final start = true);

equation

state = pre(newState);
newState = state;

end Object1;

model Object2

Object1 object;
Integer value (start = 0);

equation

value = if object.state then 1 else 0;

end Object2;


--- InitTest.mos ---
loadFile("InitTest.mo");
simulate(Object2);
plot({object.state, object.newState, value});


Should plot 1 for object.state, object.newState and value.

Cheers,
Adrian Pop/

P.S.
I already have a fix for this, I just add it to
the Bugzilla to have a reference to link it with
the Subversion commit.

comment:2 by Adrian Pop, 17 years ago

Fixed in Subversion revision 3125.

Adrian/

Note: See TracTickets for help on using tickets.