Opened 17 years ago

Last modified 17 years ago

#147 closed defect (fixed)

Initialization bug.

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

Description


Change History (2)

comment:1 Changed 17 years ago by adrpo

--- 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 Changed 17 years ago by adrpo

Fixed in Subversion revision 3125.

Adrian/

Note: See TracTickets for help on using tickets.