Opened 10 years ago

Closed 10 years ago

#3019 closed defect (fixed)

A simple model works in r23550 and fails in r23681

Reported by: massimo ceraolo Owned by: Martin Sjölund
Priority: high Milestone: 1.9.2
Component: *unknown* Version: trunk
Keywords: Cc:

Description

I have the following tiny model:

model transIssue
  parameter Real tau = 3.14;
  Real x, a1, a2, aSum;
equation
  x = 1 - exp(-time / tau);
  der(x) = a1;
  a2 = 0.5 * time;
  aSum = abs(a1 - a2);
  annotation(experiment(StartTime = 0, StopTime = 10, Tolerance = 0.0001, Interval = 0.02));
end transIssue;

When run in OM r23681 (win version), it gives the following error:

[c:/dev/OpenModelica/Compiler/SimCode/SerializeModelInfo.mo:103:9-103:84] Error: Internal error SerializeModelInfo.serialize failed
[:0:0-0:0] Error: Internal error SerializeModelInfo.serializeVars failed
[c:/dev/OpenModelica/Compiler/SimCode/SerializeModelInfo.mo:378:9-378:74] Error: Internal error serializeOperation failed

Instead the model runs well in r23550 (win version)
AFAIK the model is ok and should run.

Change History (2)

comment:1 by Martin Sjölund, 10 years ago

Owner: changed from somebody to Martin Sjölund
Status: newassigned

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

Resolution: fixed
Status: assignedclosed

Fixed in r23687. Work-around is to disable the transformations information if you don't want to upgrade omc.

Note: See TracTickets for help on using tickets.