Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002711/0.002711, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.857/1.857, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009135/0.0009138, allocations: 94.97 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003843/0.0003847, allocations: 8 kB / 328.2 MB, free: 15.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2605, allocations: 47.58 MB / 375.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09038/0.351, allocations: 75.17 MB / 451 MB, free: 5.496 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.3512, allocations: 63.97 kB / 451 MB, free: 5.434 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007101/0.3584, allocations: 2.833 MB / 453.9 MB, free: 2.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3584, allocations: 0 / 453.9 MB, free: 2.578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.3584, allocations: 7.984 kB / 453.9 MB, free: 2.57 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005676/0.359, allocations: 452.6 kB / 454.3 MB, free: 2.082 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.359, allocations: 8.031 kB / 454.3 MB, free: 2.074 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.3591, allocations: 23.72 kB / 454.3 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.3594, allocations: 226.8 kB / 454.6 MB, free: 1.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.3594, allocations: 20.56 kB / 454.6 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.3594, allocations: 28 kB / 454.6 MB, free: 1.742 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004124/0.3599, allocations: 235.5 kB / 454.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3599, allocations: 0 / 454.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.3599, allocations: 15.94 kB / 454.9 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3599, allocations: 4 kB / 454.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002784/0.3602, allocations: 157.7 kB / 455 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000957/0.3612, allocations: 0.686 MB / 455.7 MB, free: 0.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.3615, allocations: 175.3 kB / 455.9 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3615, allocations: 4.125 kB / 455.9 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.3617, allocations: 125.9 kB / 456 MB, free: 272 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.3617, allocations: 0 / 456 MB, free: 272 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003987/0.3621, allocations: 213.9 kB / 456.2 MB, free: 52 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.3622, allocations: 63.39 kB / 456.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.3623, allocations: 133 kB / 456.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.3623, allocations: 33.7 kB / 456.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.3624, allocations: 128.7 kB / 456.6 MB, free: 15.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.315e-05/0.3625, allocations: 67.14 kB / 456.6 MB, free: 15.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.3625, allocations: 4 kB / 456.6 MB, free: 15.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3626, allocations: 326.8 kB / 457 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.3627, allocations: 60.62 kB / 457 MB, free: 15.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.3629, allocations: 134.2 kB / 457.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.363, allocations: 65.05 kB / 457.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.363, allocations: 4 kB / 457.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003311/0.3633, allocations: 233.5 kB / 457.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3634, allocations: 12.03 kB / 457.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3634, allocations: 0 / 457.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3634, allocations: 11.94 kB / 457.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.3636, allocations: 31.92 kB / 457.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.3636, allocations: 4 kB / 457.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.225e-05/0.3637, allocations: 19.84 kB / 457.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.3637, allocations: 12 kB / 457.5 MB, free: 14.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.3639, allocations: 165.8 kB / 457.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.023e-05/0.3639, allocations: 7.906 kB / 457.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003329/0.3642, allocations: 204.6 kB / 457.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3643, allocations: 0 / 457.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.3643, allocations: 3.953 kB / 457.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3643, allocations: 4 kB / 457.9 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006685/0.365, allocations: 0.5612 MB / 458.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.365, allocations: 0 / 458.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.3651, allocations: 27.88 kB / 458.5 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3651, allocations: 11.88 kB / 458.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.3651, allocations: 0 / 458.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.3651, allocations: 0 / 458.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3651, allocations: 0 / 458.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.3654, allocations: 275.2 kB / 458.8 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.3655, allocations: 92.95 kB / 458.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.3655, allocations: 11.95 kB / 458.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.858e-05/0.3656, allocations: 11.98 kB / 458.9 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.778e-05/0.3657, allocations: 19.97 kB / 458.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.3657, allocations: 8 kB / 458.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.217e-05/0.3658, allocations: 94.64 kB / 459 MB, free: 13.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3658, allocations: 4 kB / 459 MB, free: 13.08 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000278/0.3661, allocations: 43.98 kB / 459.1 MB, free: 13.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001593/0.3662, allocations: 119.1 kB / 459.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002978/0.3665, allocations: 179.8 kB / 459.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3665, allocations: 0 / 459.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.3667, allocations: 83.91 kB / 459.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001911/0.3669, allocations: 18.55 kB / 459.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005894/0.3675, allocations: 380.2 kB / 459.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.3678, allocations: 0.7365 MB / 460.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.543e-05/0.3679, allocations: 29.94 kB / 460.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.867e-05/0.368, allocations: 27.38 kB / 460.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of SimCode: time 5.51e-07/0.368, allocations: 0 / 460.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of Templates: time 0.004543/0.3725, allocations: 1.648 MB / 462.3 MB, free: 9.785 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches