Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 201.2 kB / 18.11 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 226.5 MB / 245.4 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008451/0.0008452, allocations: 97.97 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002822, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3284, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.4452, allocations: 77.42 MB / 486.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.4455, allocations: 71.97 kB / 486.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008216/0.4537, allocations: 3.062 MB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.4538, allocations: 4 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.4538, allocations: 8 kB / 489.9 MB, free: 10.92 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006862/0.4545, allocations: 449.3 kB / 490.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.4546, allocations: 8.031 kB / 490.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.903e-05/0.4546, allocations: 24.66 kB / 490.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.4549, allocations: 228 kB / 490.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.064e-05/0.455, allocations: 24.94 kB / 490.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.4551, allocations: 32.36 kB / 490.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/0.4555, allocations: 274.5 kB / 490.9 MB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.4556, allocations: 192 / 490.9 MB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.4556, allocations: 11.94 kB / 491 MB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.4556, allocations: 8 kB / 491 MB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002906/0.4559, allocations: 165.6 kB / 491.1 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.457, allocations: 0.9635 MB / 492.1 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.4573, allocations: 169.1 kB / 492.3 MB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.4575, allocations: 89.62 kB / 492.3 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.4575, allocations: 4 kB / 492.3 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.4578, allocations: 137.8 kB / 492.5 MB, free: 8.152 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.4578, allocations: 0 / 492.5 MB, free: 8.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004686/0.4583, allocations: 227.1 kB / 492.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.4583, allocations: 85.23 kB / 492.8 MB, free: 7.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.4585, allocations: 153.6 kB / 492.9 MB, free: 7.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.4585, allocations: 45.69 kB / 493 MB, free: 7.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.4586, allocations: 128.5 kB / 493.1 MB, free: 7.484 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.478e-05/0.4587, allocations: 59.25 kB / 493.2 MB, free: 7.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.4587, allocations: 8 kB / 493.2 MB, free: 7.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4588, allocations: 334.8 kB / 493.5 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.459, allocations: 59.97 kB / 493.6 MB, free: 7.023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.4591, allocations: 144.3 kB / 493.7 MB, free: 6.852 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.4594, allocations: 185 kB / 493.9 MB, free: 6.641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4594, allocations: 0 / 493.9 MB, free: 6.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003715/0.4598, allocations: 257.2 kB / 494.1 MB, free: 6.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4598, allocations: 8 kB / 494.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.4598, allocations: 0 / 494.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.4598, allocations: 4 kB / 494.1 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.46, allocations: 31.92 kB / 494.2 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.46, allocations: 7.938 kB / 494.2 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.4601, allocations: 27.83 kB / 494.2 MB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.4602, allocations: 8.281 kB / 494.2 MB, free: 6.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001611/0.4603, allocations: 166.3 kB / 494.4 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.4604, allocations: 15.89 kB / 494.4 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003237/0.4607, allocations: 182.4 kB / 494.6 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.4607, allocations: 4 kB / 494.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.4607, allocations: 0 / 494.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4607, allocations: 4 kB / 494.6 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/0.4614, allocations: 0.5994 MB / 495.2 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4614, allocations: 0 / 495.2 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.309e-05/0.4615, allocations: 15.98 kB / 495.2 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.4615, allocations: 3.938 kB / 495.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.4616, allocations: 4 kB / 495.2 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4616, allocations: 4 kB / 495.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4616, allocations: 0 / 495.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.4619, allocations: 288.5 kB / 495.5 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.4619, allocations: 100.8 kB / 495.6 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.462, allocations: 11.94 kB / 495.6 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.4621, allocations: 8 kB / 495.6 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.4622, allocations: 27.95 kB / 495.6 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.4622, allocations: 4 kB / 495.6 MB, free: 4.762 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.553e-05/0.4623, allocations: 99.27 kB / 495.7 MB, free: 4.664 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4623, allocations: 0 / 495.7 MB, free: 4.664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002871/0.4626, allocations: 44 kB / 495.8 MB, free: 4.621 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,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,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001848/0.4628, allocations: 115.7 kB / 495.9 MB, free: 4.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003254/0.4631, allocations: 179.7 kB / 496.1 MB, free: 4.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4631, allocations: 0.5625 kB / 496.1 MB, free: 4.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001516/0.4633, allocations: 91.84 kB / 496.2 MB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.4636, allocations: 19.98 kB / 496.2 MB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006946/0.4643, allocations: 395.8 kB / 496.6 MB, free: 3.797 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.4646, allocations: 0.7365 MB / 497.3 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.709e-05/0.4647, allocations: 21.95 kB / 497.3 MB, free: 3.012 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.49e-05/0.4647, allocations: 27.42 kB / 497.3 MB, free: 2.984 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4647, allocations: 4 kB / 497.4 MB, free: 2.98 MB / 362.7 MB Notification: Performance of Templates: time 0.00496/0.4697, allocations: 1.683 MB / 499 MB, free: 1.312 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches