Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001336/0.001336, allocations: 180 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.858/1.858, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.000816/0.0008155, allocations: 86.72 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003797, allocations: 4 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2632, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09622/0.3594, allocations: 75.8 MB / 451.6 MB, free: 4.879 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.3597, allocations: 71.97 kB / 451.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008266/0.368, allocations: 3.002 MB / 454.7 MB, free: 1.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.368, allocations: 0 / 454.7 MB, free: 1.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.3681, allocations: 8 kB / 454.7 MB, free: 1.777 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000617/0.3687, allocations: 456.5 kB / 455.1 MB, free: 1.289 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3687, allocations: 8.031 kB / 455.1 MB, free: 1.281 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.098e-05/0.3688, allocations: 23.81 kB / 455.2 MB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.3692, allocations: 226.8 kB / 455.4 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.963e-05/0.3692, allocations: 20.56 kB / 455.4 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.3693, allocations: 28 kB / 455.4 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004782/0.3698, allocations: 266 kB / 455.7 MB, free: 0.668 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.3698, allocations: 0 / 455.7 MB, free: 0.668 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.3698, allocations: 15.98 kB / 455.7 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3698, allocations: 8 kB / 455.7 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003073/0.3701, allocations: 161.6 kB / 455.9 MB, free: 500 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.3714, allocations: 0.9598 MB / 456.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.3717, allocations: 165.5 kB / 457 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.3717, allocations: 4.172 kB / 457 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.3719, allocations: 117.9 kB / 457.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.3719, allocations: 0 / 457.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004245/0.3724, allocations: 213.9 kB / 457.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.3724, allocations: 55.41 kB / 457.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.3726, allocations: 148.4 kB / 457.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.3726, allocations: 37.7 kB / 457.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.694e-05/0.3727, allocations: 144.5 kB / 457.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.1e-05/0.3727, allocations: 55.25 kB / 457.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.213e-05/0.3728, allocations: 8 kB / 457.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.3729, allocations: 322.8 kB / 458.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.373, allocations: 60.62 kB / 458.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.3732, allocations: 149.7 kB / 458.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.3733, allocations: 73.05 kB / 458.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3733, allocations: 0 / 458.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003598/0.3737, allocations: 257.1 kB / 458.6 MB, free: 13.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3737, allocations: 8 kB / 458.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3737, allocations: 0 / 458.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3737, allocations: 4.281 kB / 458.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.3739, allocations: 35.92 kB / 458.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.3739, allocations: 4 kB / 458.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.568e-05/0.374, allocations: 23.89 kB / 458.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.374, allocations: 8 kB / 458.7 MB, free: 13.5 MB / 346.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: 30 ($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,greaterEqual.y,stateGraphRoot.activeSteps,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 (40): * Single equations (assignments): 40 * 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.0001459/0.3742, allocations: 164.3 kB / 458.8 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.3742, allocations: 11.86 kB / 458.8 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003362/0.3745, allocations: 197 kB / 459 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3746, allocations: 8 kB / 459 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3746, allocations: 0 / 459 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3746, allocations: 3.984 kB / 459.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007534/0.3753, allocations: 0.5839 MB / 459.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3754, allocations: 3.938 kB / 459.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.3754, allocations: 19.92 kB / 459.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3754, allocations: 0 / 459.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3755, allocations: 8 kB / 459.7 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3755, allocations: 4 kB / 459.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.3755, allocations: 3.984 kB / 459.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/0.3759, allocations: 267.2 kB / 459.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.169e-05/0.3759, allocations: 88.95 kB / 460 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.376, allocations: 11.98 kB / 460 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.617e-05/0.3761, allocations: 8 kB / 460 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.295e-05/0.3761, allocations: 19.97 kB / 460.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3762, allocations: 15.98 kB / 460.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.285e-05/0.3762, allocations: 95.27 kB / 460.2 MB, free: 11.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3762, allocations: 4 kB / 460.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002761/0.3765, allocations: 43.91 kB / 460.2 MB, free: 11.85 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 (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,greaterEqual.y,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 (25): * Single equations (assignments): 21 * 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.0001579/0.3767, allocations: 107 kB / 460.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.377, allocations: 188 kB / 460.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.377, allocations: 0 / 460.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.3772, allocations: 79.86 kB / 460.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001911/0.3774, allocations: 23.88 kB / 460.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006369/0.378, allocations: 384.1 kB / 461 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.3784, allocations: 0.7507 MB / 461.7 MB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.257e-05/0.3785, allocations: 29.94 kB / 461.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.214e-05/0.3786, allocations: 19.44 kB / 461.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3786, allocations: 0 / 461.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of Templates: time 0.004837/0.3834, allocations: 1.649 MB / 463.4 MB, free: 8.598 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches