Opened 12 years ago

Closed 10 years ago

#1779 closed defect (wontfix)

Model stopped working with recent changes

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone: 1.9.1
Component: Backend Version:
Keywords: Cc: Willi Braun, Jens.Frenkel@…

Description

From our forums

Recently the svn revision of the stable version was bumped from 12318 to 12630. The new revision fails to linearize my aircraft model even after some cleanup of obvious changes (unless I'm missing something). I also tested release/ nightly and neither work. Can stable be restored to previous version or the linearization issues fixed?

I made a total model (attached). It seems to fail for both linearisation and without.

Attachments (1)

total.2.mo (93.9 KB ) - added by Martin Sjölund 12 years ago.

Download all attachments as: .zip

Change History (7)

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

On second though, I will make a new total.mo with annotations in it...

by Martin Sjölund, 12 years ago

Attachment: total.2.mo added

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

Ok, now it fails with linearization:

omc +preOptModules=inlineArrayEqn,partitionIndependentBlocks +postOptModules=inlineArrayEqn,constantLinearSystem,removeSimpleEquations,generateSymbolicLinearization +d=linearization,gendebugsymbols +s total.mo

comment:3 by james.goppert@…, 12 years ago

I got it working by disabling all of my saturation blocks and by disabling profiling (due to table profiling bug).

So really there are two bugs in the lastest svn:

  • Cannot linearize Modelica.NonLinear.Limiter
  • Cannot profile diagrams (measureTime) with Modelica.Blocks.CombiTables

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

Profiling CTTT seems to work for me, but there could be issues for larger models using it perhaps. Could you produce a total model that causes the error?

setCommandLineOptions("+showAnnotations");
saveTotalModel("file.mo", ModelName);

This is the model that worked for me:

loadModel(Modelica);
loadString("model CTTTest
  Modelica.Blocks.Sources.CombiTimeTable cttt(table =
  [0,  0;
   1,  0;
   1,  1;
   2,  4;
   3,  9;
   4, 16]);
end CTTTest;");
simulate(CTTTest,stopTime=10,measureTime=true);getErrorString();
val(cttt.y[1],0.0);getErrorString();
val(cttt.y[1],1.3);getErrorString();
val(cttt.y[1],3.7);getErrorString();

comment:5 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

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

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.