Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4359 closed defect (fixed)

start-value are not initialized correctly

Reported by: Willi Braun Owned by: Lennart Ochel
Priority: blocker Milestone: 1.12.0
Component: Initialization Version:
Keywords: Cc: Francesco Casella

Description

In following simple example:

loadString("
model B
  parameter Real a(fixed=false);
  parameter Real b(fixed=false);
  Real w(start=a);
  Real y(start=b);
initial equation
  a=4;
  b=6;
equation
  sin(w*y)+cos(w)*y=time;
  sin(w*y)+sin(y)+w=(a+b)*time;
end B;
");
getErrorString();

simulate(B, stopTime=0.5);
getErrorString();

the start-values of the iteration variables y,w are set to zero an not as expected to 4 and 6.

Change History (4)

comment:1 by Lennart Ochel, 8 years ago

Status: newaccepted

Which libraries are affected by this?

comment:2 by Francesco Casella, 8 years ago

This affects the large-scale power system models that we have been developing for CESI/TERNA. It will sure enough be critical for RTE and all of their power system models, and it is also critical for the paper we are presenting at the next Modelica Conference, because it hinders the initialization of the larger test cases.

comment:3 by Lennart Ochel, 8 years ago

Resolution: fixed
Status: acceptedclosed

I've fixed this (and a couple of related bugs) with the following pull requests:

comment:4 by Lennart Ochel, 8 years ago

Milestone: Future1.12.0
Note: See TracTickets for help on using tickets.