Opened 13 years ago

Closed 10 years ago

Last modified 7 years ago

#1728 closed defect (fixed)

findDiscreteEquation failed for algorithm

Reported by: Jens Frenkel Owned by: Lennart Ochel
Priority: high Milestone: 1.9.4
Component: Backend Version: trunk
Keywords: Cc: Frenkel, TUD, Willi Braun

Description

For the following model

model simple4
  type modetype = enumeration(on, off);
  modetype mode(start = modetype.off);
  Real v(start = 0);
algorithm
  when (v > 0.5) then
    mode := modetype.on;
  elsewhen (v <= 0.5) then
    mode := modetype.off;
  end when;
equation
  if (mode == modetype.off) then
    v = time * 1.1;
  else
    v = time * 1.1 + 40;
  end if;
end simple4;

The function  findDiscreteEquation failed to get the discrete equation (the algorithm) for the discrete variable mode.

Attachments (1)

testBill.mos (427 bytes ) - added by Jens Frenkel 13 years ago.

Download all attachments as: .zip

Change History (8)

by Jens Frenkel, 13 years ago

Attachment: testBill.mos added

comment:1 by Willi Braun, 13 years ago

The issue for that model is that we don't support mixed systems involving something different than Boolean and also no other equation type than simple equations. So if we pass that function, somewhere else issue will raise.

Suggestion for the model try to break that algebraic loop by insert pre operator.

comment:2 by Martin Sjölund, 12 years ago

Cc: Frenkel TUD added; Jens Frenkel removed
Milestone: Future

comment:3 by Jens Frenkel, 12 years ago

Owner: changed from Jens Frenkel to Jens Frenkel
Status: acceptedassigned

comment:4 by Lennart Ochel, 10 years ago

Owner: changed from Jens Frenkel to Lennart Ochel
Status: assignedaccepted

comment:5 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed and test added in r22641.

comment:6 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:7 by Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.