Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001013, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008816/0.0008817, allocations: 103.5 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002756, allocations: 4 kB / 351.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2851, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3888, allocations: 76.7 MB / 478.2 MB, free: 3.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/0.3892, allocations: 77.06 kB / 478.3 MB, free: 3.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008051/0.3973, allocations: 3.057 MB / 481.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3973, allocations: 4 kB / 481.3 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3974, allocations: 8 kB / 481.3 MB, free: 0.6406 MB / 346.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.0005702/0.3979, allocations: 440.8 kB / 481.8 MB, free: 168 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.398, allocations: 8.031 kB / 481.8 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.3981, allocations: 23.72 kB / 481.8 MB, free: 136 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.3983, allocations: 230.9 kB / 482 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.3984, allocations: 24.56 kB / 482 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/0.3984, allocations: 31.98 kB / 482.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004736/0.3989, allocations: 270 kB / 482.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3989, allocations: 3.938 kB / 482.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.399, allocations: 12 kB / 482.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.399, allocations: 4 kB / 482.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.3993, allocations: 165.6 kB / 482.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.4004, allocations: 0.9675 MB / 483.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.4007, allocations: 162 kB / 483.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.4007, allocations: 8.188 kB / 483.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.4009, allocations: 139 kB / 483.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.4009, allocations: 0 / 483.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004155/0.4014, allocations: 224.9 kB / 484 MB, free: 13.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.4014, allocations: 89.03 kB / 484.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.4016, allocations: 153.3 kB / 484.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.4016, allocations: 37.7 kB / 484.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.4017, allocations: 140.5 kB / 484.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.82e-05/0.4017, allocations: 55.25 kB / 484.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.4018, allocations: 4 kB / 484.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4019, allocations: 330.8 kB / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.402, allocations: 67.91 kB / 484.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.4022, allocations: 136.5 kB / 485 MB, free: 12.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.4023, allocations: 80.45 kB / 485.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4023, allocations: 0 / 485.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003435/0.4027, allocations: 245.2 kB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.4027, allocations: 8 kB / 485.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4027, allocations: 0 / 485.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4027, allocations: 8.266 kB / 485.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.4029, allocations: 39.92 kB / 485.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.4029, allocations: 11.89 kB / 485.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.81e-05/0.403, allocations: 15.94 kB / 485.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.4031, allocations: 12 kB / 485.4 MB, free: 12.27 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.0001419/0.4032, allocations: 158.5 kB / 485.6 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.4032, allocations: 15.81 kB / 485.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003203/0.4036, allocations: 190.4 kB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4036, allocations: 4 kB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.4036, allocations: 7.938 kB / 485.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4036, allocations: 3.953 kB / 485.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006506/0.4043, allocations: 0.5882 MB / 486.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.4043, allocations: 0 / 486.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.008e-05/0.4044, allocations: 15.98 kB / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.4044, allocations: 4 kB / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.4044, allocations: 11.95 kB / 486.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.4044, allocations: 0 / 486.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4044, allocations: 0 / 486.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002966/0.4047, allocations: 295.1 kB / 486.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/0.4048, allocations: 100.8 kB / 486.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.706e-05/0.4048, allocations: 7.984 kB / 486.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-05/0.4049, allocations: 12 kB / 486.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/0.405, allocations: 19.97 kB / 486.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.405, allocations: 11.98 kB / 486.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.177e-05/0.4051, allocations: 98.89 kB / 486.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.773e-06/0.4051, allocations: 0 / 486.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002811/0.4053, allocations: 47.94 kB / 487 MB, free: 10.57 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.0001883/0.4055, allocations: 111.2 kB / 487.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000346/0.4059, allocations: 183.7 kB / 487.3 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4059, allocations: 0 / 487.3 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.4061, allocations: 87.84 kB / 487.3 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.4063, allocations: 18.86 kB / 487.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007916/0.4071, allocations: 396.4 kB / 487.8 MB, free: 9.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.4075, allocations: 0.7328 MB / 488.5 MB, free: 9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.415e-05/0.4076, allocations: 29.94 kB / 488.5 MB, free: 8.973 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.186e-05/0.4076, allocations: 19.44 kB / 488.5 MB, free: 8.953 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.4076, allocations: 0 / 488.5 MB, free: 8.953 MB / 362.7 MB Notification: Performance of Templates: time 0.005203/0.4128, allocations: 1.672 MB / 490.2 MB, free: 7.293 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches