Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#3052 closed defect (fixed)

Initialization runs into division by zero error

Reported by: Willi Braun Owned by: Lennart Ochel
Priority: blocker Milestone: 1.9.4
Component: Backend Version: trunk
Keywords: initialization Cc:

Description

Following model demonstrates probably an typical initialization issue with a division by zero error message:

model A
  parameter Real a(fixed=false);
  Real x = 1.0;
  parameter Real b = 5.6 / a;
initial equation
  x*2 = a;
end A;

One has also no chance to initialize that model via result.

Change History (6)

comment:1 by Willi Braun, 10 years ago

Priority: criticalblocker

Something new on that issue?

comment:2 by Lennart Ochel, 10 years ago

Status: newaccepted

This is connected to the old numeric initialization approach. I am working on removing it, which will solve a bunch of issues - this one included.

in reply to:  2 comment:3 by Lennart Ochel, 10 years ago

Replying to lochel:

This is connected to the old numeric initialization approach. I am working on removing it, which will solve a bunch of issues - this one included.

I just tested a patch I created several weeks ago. It solves this issue, but it is not finished yet.

comment:4 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r24052.

comment:5 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:6 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.