Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 85.95 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 171.6 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9012/0.9012, allocations: 158.6 MB / 188.3 MB, free: 2.824 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 252.2 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.229e-05/1.394e-05, allocations: 6.25 kB / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002332/0.002346, allocations: 1.704 MB / 253.9 MB, free: 5.555 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005488/0.002895, allocations: 263.2 kB / 254.2 MB, free: 5.297 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.003002, allocations: 7.938 kB / 254.2 MB, free: 5.289 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.003144, allocations: 27.67 kB / 254.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.437e-05/0.003208, allocations: 23.73 kB / 254.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.00356, allocations: 123.7 kB / 254.4 MB, free: 5.117 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002332/0.003793, allocations: 275.5 kB / 254.6 MB, free: 4.848 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.004006, allocations: 158.1 kB / 254.8 MB, free: 4.695 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.004125, allocations: 127.8 kB / 254.9 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.004235, allocations: 71.77 kB / 255 MB, free: 4.5 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.004265, allocations: 24 kB / 255 MB, free: 4.477 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.385e-05/0.004328, allocations: 35.92 kB / 255.1 MB, free: 4.441 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.107e-05/0.004379, allocations: 59.81 kB / 255.1 MB, free: 4.383 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.843e-05/0.004438, allocations: 67.81 kB / 255.2 MB, free: 4.316 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.00465, allocations: 179.3 kB / 255.4 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.004653, allocations: 0 / 255.4 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.004654, allocations: 0 / 255.4 MB, free: 4.141 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.004658, allocations: 4 kB / 255.4 MB, free: 4.137 MB / 234.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.0005354/0.005193, allocations: 0.5107 MB / 255.9 MB, free: 3.582 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.005233, allocations: 15.98 kB / 255.9 MB, free: 3.566 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.0053, allocations: 44.8 kB / 255.9 MB, free: 3.523 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002122/0.005512, allocations: 176.3 kB / 256.1 MB, free: 3.324 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.00554, allocations: 24.88 kB / 256.1 MB, free: 3.301 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.005566, allocations: 24.38 kB / 256.1 MB, free: 3.277 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.005797, allocations: 232.7 kB / 256.4 MB, free: 3.02 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.005807, allocations: 8.125 kB / 256.4 MB, free: 3.012 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.005827, allocations: 12.38 kB / 256.4 MB, free: 3 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.005839, allocations: 8.375 kB / 256.4 MB, free: 2.992 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.00594, allocations: 79.3 kB / 256.5 MB, free: 2.918 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007124/0.006652, allocations: 1.05 MB / 257.5 MB, free: 1.812 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.006801, allocations: 107.3 kB / 257.6 MB, free: 1.695 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.398e-05/0.006845, allocations: 43.66 kB / 257.7 MB, free: 1.648 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.006861, allocations: 4 kB / 257.7 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/0.006963, allocations: 104.8 kB / 257.8 MB, free: 1.527 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.006964, allocations: 4 kB / 257.8 MB, free: 1.523 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002479/0.007212, allocations: 169.9 kB / 258 MB, free: 1.352 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.007254, allocations: 59.41 kB / 258 MB, free: 1.281 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.007356, allocations: 217.6 kB / 258.2 MB, free: 1.051 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.007377, allocations: 41.69 kB / 258.3 MB, free: 1.004 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/0.007466, allocations: 183.5 kB / 258.4 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.007501, allocations: 63.52 kB / 258.5 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-05/0.007578, allocations: 91.59 kB / 258.6 MB, free: 0.6562 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.007707, allocations: 0.5001 MB / 259.1 MB, free: 148 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-05/0.007744, allocations: 28.62 kB / 259.1 MB, free: 120 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.007845, allocations: 138 kB / 259.3 MB, free: 15.94 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004442/0.00829, allocations: 168.7 kB / 259.4 MB, free: 15.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.008294, allocations: 4 kB / 259.4 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001959/0.00849, allocations: 217.3 kB / 259.6 MB, free: 15.51 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.008501, allocations: 4 kB / 259.6 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.008508, allocations: 4 kB / 259.6 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.00852, allocations: 7.938 kB / 259.7 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.008633, allocations: 31.92 kB / 259.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.008642, allocations: 7.984 kB / 259.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.205e-05/0.008724, allocations: 27.78 kB / 259.7 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.008742, allocations: 16.28 kB / 259.7 MB, free: 15.41 MB / 250.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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.966e-05/0.008841, allocations: 191 kB / 259.9 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.008863, allocations: 23.84 kB / 259.9 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.009039, allocations: 170.4 kB / 260.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.009041, allocations: 0 / 260.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.009044, allocations: 0 / 260.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.009047, allocations: 4 kB / 260.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003818/0.009429, allocations: 496.8 kB / 260.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.009431, allocations: 0 / 260.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.009469, allocations: 23.98 kB / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.009472, allocations: 0 / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.009479, allocations: 4 kB / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.00948, allocations: 0 / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.009481, allocations: 0 / 260.6 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.009649, allocations: 307.6 kB / 260.9 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.118e-05/0.00966, allocations: 15.84 kB / 260.9 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.009677, allocations: 4 kB / 260.9 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.61e-05/0.009723, allocations: 11.98 kB / 261 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.009765, allocations: 15.97 kB / 261 MB, free: 14.1 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.009774, allocations: 4 kB / 261 MB, free: 14.1 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.184e-05/0.009815, allocations: 147 kB / 261.1 MB, free: 13.96 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009815, allocations: 0 / 261.1 MB, free: 13.96 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002083/0.01002, allocations: 51.84 kB / 261.2 MB, free: 13.91 MB / 250.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.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001176/0.01014, allocations: 119.1 kB / 261.3 MB, free: 13.78 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001682/0.01031, allocations: 132.1 kB / 261.4 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01031, allocations: 4 kB / 261.4 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.689e-05/0.01038, allocations: 72.72 kB / 261.5 MB, free: 13.57 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.01057, allocations: 31.81 kB / 261.5 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.01096, allocations: 327.2 kB / 261.8 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.595e-05/0.011, allocations: 76.33 kB / 261.9 MB, free: 13.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.484e-05/0.01106, allocations: 25.94 kB / 261.9 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.873e-05/0.01115, allocations: 106.2 kB / 262 MB, free: 12.96 MB / 250.7 MB Notification: Performance of SimCode: time 5.62e-07/0.01115, allocations: 0 / 262 MB, free: 12.96 MB / 250.7 MB Notification: Performance of Templates: time 0.00388/0.01503, allocations: 2.162 MB / 264.2 MB, free: 10.82 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.760902425739914]