Opened 10 years ago

Last modified 7 years ago

#3321 assigned defect

cppruntime does not return proper exit codes

Reported by: Martin Sjölund Owned by: Niklas Worschech
Priority: high Milestone: Future
Component: Cpp Run-time Version: trunk
Keywords: Cc: Niklas Worschech, Marcus Walther

Description

cppruntime returns exit code=0 (success) even when the numerical solver fails:

OpenModelicaModelTesting.SimulationRuntime.Cpp
OpenModelicaModelTesting.Kind.VerifiedSimulation
Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving
{"wheelSet.x","wheelSet.y","wheelSet.phi","wheelSet.theta1","wheelSet.theta2","wheelSet.der_theta1","wheelSet.der_theta2"}
Simulation options: startTime = 0.0, stopTime = 3.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''
Result file: Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving_res.mat
Messages: 
[CVODES WARNING] ...

[CVODES ERROR]  CVode
  At t = 0.506727 and h = 1e-24, the error test failed repeatedly or with |h| = hmin.

SUNDIALS_ERROR: CVode() failed with flag = -3

Warning: Resultfile and Reference have different end time points!
Reffile[502]=3.000000
File[85]=0.504000

Change History (9)

comment:1 by Niklas Worschech, 10 years ago

Owner: changed from somebody to Niklas Worschech
Status: newassigned

comment:2 by Niklas Worschech, 10 years ago

Cc: Marcus Walther added

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

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:4 by Lennart Ochel, 9 years ago

Component: Run-timeCpp Run-time

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

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

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

Milestone: 1.9.51.10.0

Milestone renamed

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

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

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

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 by Francesco Casella, 7 years ago

Milestone: 1.12.0Future

The milestone of this ticket has been reassigned to "Future".

If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.

If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".

In both cases, a short informative comment would be welcome.

Note: See TracTickets for help on using tickets.