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
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)
Change History (7)
comment:1 by , 12 years ago
by , 12 years ago
Attachment: | total.2.mo added |
---|
comment:2 by , 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 , 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 , 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:6 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
On second though, I will make a new total.mo with annotations in it...