Opened 12 years ago

Closed 8 years ago

Last modified 7 years ago

#2182 closed defect (fixed)

DASSL broken in trunk

Reported by: Christoph Höger Owned by: probably noone
Priority: high Milestone:
Component: Backend Version: trunk
Keywords: Cc:

Description

this small model won't simulate using my bootstrapped version of omc:

  model DASSLBug

    import Modelica.Electrical.Analog.Basic.{Resistor, Capacitor, Ground};
    import Modelica.Electrical.Analog.Sources.{SineVoltage};

    SineVoltage src;
    Resistor w1, w2;
    Capacitor c;
    Ground g;

  equation
    connect(src.n, w1.p);
    connect(src.n, g.p);
    connect(w1.n, c.p);
    connect(c.n, w2.p);
    connect(w2.n, src.p);

  end DASSLBug;

I am on OpenModelica 1.9.0 beta4+dev (r15940)

Change History (12)

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

Can you give more information? The bootstrapped compiler works fine for me:

omc ++v && omc +s a.mo Modelica ModelicaServices > /dev/null && make -f DASSLBug.makefile && ./DASSLBug ; echo $?
1.9.0 beta4+dev (r15957) (Bootstrapping version; only for development)
gcc-4.4   -falign-functions -march=native -mfpmath=sse -fPIC   -I"/home/marsj/trunk/build/include/omc" -I. -L"/home/marsj/tmp"   -c -o DASSLBug.o DASSLBug.c
gcc-4.4   -falign-functions -march=native -mfpmath=sse -fPIC   -I"/home/marsj/trunk/build/include/omc" -I. -L"/home/marsj/tmp"   -c -o DASSLBug_records.o DASSLBug_records.c
g++-4.4 -I. -o DASSLBug DASSLBug.o DASSLBug_records.o -I"/home/marsj/trunk/build/include/omc" -I. -L"/home/marsj/tmp"  -L"/home/marsj/tmp"     -falign-functions -march=native -mfpmath=sse -fPIC   -L"/home/marsj/trunk/build/lib/omc" -Wl,-rpath,'/home/marsj/trunk/build/lib/omc' -lSimulationRuntimeC   -ldl -linteractive  -lexpat   -lrt -lgc -fopenmp -lsundials_kinsol -lsundials_nvecserial -llapack  -lpthread -Wl,-Bstatic -lf2c -Wl,-Bdynamic
0

comment:2 by Christoph Höger, 12 years ago

Sorry, forgit to attach the simulation result:

record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 0.000001, method = 'dassl', fileNamePrefix = 'de.tuberlin.uebb.equivalence.examples.DASSLBug', options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Simulation execution failed for model: de.tuberlin.uebb.equivalence.examples.DASSLBug
 DASSL--  SOME ELEMENT OF INFO VECTOR IS NOT ZERO OR ONE
stdout            | warning | The code has encountered trouble from which it cannot recover.
stdout            | warning | can't continue. time = 0.002000
stdout            | info    | model terminate | Integrator failed. | Simulation terminated at time 0.002
",
    timeFrontend = 0.608388409,
    timeBackend = 0.063540391,
    timeSimCode = 0.026430253,
    timeTemplates = 0.024220272,
    timeCompile = 1.111506565
end SimulationResult;

comment:3 by Willi Braun, 12 years ago

That model works for me also. Which OS do you use?

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

I think this is the same error I have seen on some OSX versions. If I remember correctly, related to using 32-bit versions of omc?

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

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

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

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:8 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

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

Milestone: 1.9.51.10.0

Milestone renamed

comment:11 by Francesco Casella, 8 years ago

Resolution: fixed
Status: newclosed

If DASSL was still broken, we'd have heard very loud complaints. I assume this issue has been solved long time ago.

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

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.