Opened 10 years ago
Closed 10 years ago
#2762 closed defect (fixed)
Process crashed -- Simulation process exited with code 0
Reported by: | Owned by: | Willi Braun | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | Code Generation | Version: | trunk |
Keywords: | simulation crash | Cc: | Adrian Pop |
Description
The model listed below uses the same variables as outputs and states (like some models from the MSL, see Modelica.Blocks.Continuous.Integrator).
Opened and simulated with OMEdit, the compilation raises a lot of warnings and the simulation crashes.
The observation has been made with the current nightly build 1.9.1+dev (r21649).
within ; model DIC "Double Integrator Continuous-time" parameter Real p = 1 "gain for input"; parameter Real y1_start = 1 "start value for first state"; parameter Real y2_start = 0 "start value for second state"; input Real u(start = -2); output Real y1, y2; initial equation y1 = y1_start; y2 = y2_start; equation der(y1) = p*u; der(y2) = y1; end DIC;
Attachments (1)
Change History (7)
comment:1 by , 10 years ago
Status: | new → accepted |
---|
comment:2 by , 10 years ago
Cc: | added |
---|
follow-up: 4 comment:3 by , 10 years ago
No. If you run valgrind you need to suppress GC errors, like so:
[martin@mega tmp]$ cat ~/bin/valgrind-boehm && valgrind-boehm ./DIC #!/bin/bash valgrind --suppressions="$HOME/.valgrind/boehm-gc.suppressions" $* ==1956== Memcheck, a memory error detector ==1956== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==1956== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info ==1956== Command: ./DIC ==1956== ==1956== Invalid write of size 4 ==1956== at 0x4050F1: DIC_initialAnalyticJacobianA (in /home/martin/tmp/DIC) ==1956== by 0x4E93FF4: dassl_initial (dassl.c:235) ==1956== by 0x4EA1238: initializeSolverData (solver_main.c:184) ==1956== by 0x4EA22D1: solver_main (solver_main.c:570) ==1956== by 0x4ED2BA2: callSolver (simulation_runtime.cpp:695) ==1956== by 0x4ED143D: startNonInteractiveSimulation (simulation_runtime.cpp:548) ==1956== by 0x4ED3FB8: _main_SimulationRuntime (simulation_runtime.cpp:914) ==1956== by 0x403C4C: main (in /home/martin/tmp/DIC) ...
by , 10 years ago
Attachment: | boehm-gc.suppressions added |
---|
comment:4 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | accepted → assigned |
Replying to sjoelund.se:
No. If you run valgrind you need to suppress GC errors, like so:
Ahh – good to know.
comment:5 by , 10 years ago
Status: | assigned → accepted |
---|
Note:
See TracTickets
for help on using tickets.
This seems to be an issue with the garbage collector. Adrian, can you have a look?