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.001167/0.001167, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.0009801/0.0009801, allocations: 170.8 kB / 25.33 MB, free: 8.754 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.9869/0.9869, allocations: 158.6 MB / 187.2 MB, free: 2.949 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 2.886e-06/2.886e-06, allocations: 0 / 251 MB, free: 7.656 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.985e-05/4.273e-05, allocations: 6.25 kB / 251 MB, free: 7.648 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002343/0.002386, allocations: 1.732 MB / 252.7 MB, free: 5.902 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005346/0.002921, allocations: 263.1 kB / 253 MB, free: 5.645 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.86e-05/0.003009, allocations: 7.938 kB / 253 MB, free: 5.637 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.003152, allocations: 23.73 kB / 253 MB, free: 5.613 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.376e-05/0.003216, allocations: 15.75 kB / 253 MB, free: 5.598 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.003637, allocations: 127.8 kB / 253.2 MB, free: 5.473 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.003908, allocations: 271.5 kB / 253.4 MB, free: 5.207 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.004198, allocations: 158.1 kB / 253.6 MB, free: 5.055 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.004339, allocations: 135.7 kB / 253.7 MB, free: 4.922 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.004456, allocations: 71.77 kB / 253.8 MB, free: 4.852 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.004491, allocations: 24 kB / 253.8 MB, free: 4.828 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.768e-05/0.004568, allocations: 28 kB / 253.8 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/0.004623, allocations: 59.75 kB / 253.9 MB, free: 4.742 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.971e-05/0.004693, allocations: 71.81 kB / 254 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.004922, allocations: 183.3 kB / 254.1 MB, free: 4.492 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.004924, allocations: 4 kB / 254.2 MB, free: 4.488 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.004925, allocations: 0 / 254.2 MB, free: 4.488 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.004931, allocations: 0 / 254.2 MB, free: 4.488 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.0004947/0.005425, allocations: 0.5107 MB / 254.7 MB, free: 3.934 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.005463, allocations: 11.98 kB / 254.7 MB, free: 3.922 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.005543, allocations: 44.8 kB / 254.7 MB, free: 3.879 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.005757, allocations: 172.3 kB / 254.9 MB, free: 3.684 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.005788, allocations: 24.88 kB / 254.9 MB, free: 3.66 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.005818, allocations: 28.38 kB / 254.9 MB, free: 3.633 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.006115, allocations: 248.7 kB / 255.2 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.006127, allocations: 4.188 kB / 255.2 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.00615, allocations: 12.38 kB / 255.2 MB, free: 3.344 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.006161, allocations: 12.34 kB / 255.2 MB, free: 3.332 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.006308, allocations: 98.81 kB / 255.3 MB, free: 3.238 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009096/0.007217, allocations: 1.065 MB / 256.4 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.007434, allocations: 131.3 kB / 256.5 MB, free: 1.969 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.263e-05/0.007507, allocations: 47.67 kB / 256.5 MB, free: 1.918 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.007531, allocations: 7.938 kB / 256.6 MB, free: 1.91 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000138/0.007669, allocations: 116.8 kB / 256.7 MB, free: 1.781 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.372e-06/0.00767, allocations: 0 / 256.7 MB, free: 1.781 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003223/0.007993, allocations: 189.9 kB / 256.9 MB, free: 1.59 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.008039, allocations: 55.41 kB / 256.9 MB, free: 1.523 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.008164, allocations: 217.4 kB / 257.1 MB, free: 1.297 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.008186, allocations: 37.7 kB / 257.2 MB, free: 1.254 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.009e-05/0.008276, allocations: 195.4 kB / 257.3 MB, free: 1.059 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.008313, allocations: 59.55 kB / 257.4 MB, free: 1 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.008394, allocations: 83.67 kB / 257.5 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.008526, allocations: 0.5001 MB / 258 MB, free: 404 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.076e-05/0.008587, allocations: 40.62 kB / 258 MB, free: 364 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.008701, allocations: 150.1 kB / 258.2 MB, free: 172 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.008876, allocations: 180.7 kB / 258.3 MB, free: 15.95 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.008879, allocations: 0 / 258.3 MB, free: 15.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002384/0.009117, allocations: 237.2 kB / 258.6 MB, free: 15.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.009133, allocations: 8 kB / 258.6 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.009138, allocations: 0 / 258.6 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.009157, allocations: 4 kB / 258.6 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.009264, allocations: 35.92 kB / 258.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.009275, allocations: 7.938 kB / 258.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.771e-05/0.009333, allocations: 36.05 kB / 258.7 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.009354, allocations: 12 kB / 258.7 MB, free: 15.61 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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.00946, allocations: 187.1 kB / 258.9 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.00948, allocations: 23.84 kB / 258.9 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002229/0.009703, allocations: 174.4 kB / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.009705, allocations: 0 / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.00971, allocations: 0 / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.009715, allocations: 4 kB / 259.1 MB, free: 15.21 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004452/0.01016, allocations: 0.5314 MB / 259.6 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.01016, allocations: 4 kB / 259.6 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.728e-05/0.01021, allocations: 19.92 kB / 259.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.01021, allocations: 4 kB / 259.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.01023, allocations: 4 kB / 259.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01023, allocations: 0 / 259.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.01023, allocations: 0 / 259.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/0.01044, allocations: 323.6 kB / 259.9 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.436e-05/0.01045, allocations: 15.84 kB / 260 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.01047, allocations: 4 kB / 260 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.789e-05/0.01052, allocations: 15.98 kB / 260 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.999e-05/0.01058, allocations: 15.97 kB / 260 MB, free: 14.22 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.01059, allocations: 12 kB / 260 MB, free: 14.21 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.545e-05/0.01065, allocations: 147.1 kB / 260.1 MB, free: 14.06 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01065, allocations: 0 / 260.1 MB, free: 14.06 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001922/0.01084, allocations: 51.89 kB / 260.2 MB, free: 14.01 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.0001337/0.01097, allocations: 103.2 kB / 260.3 MB, free: 13.9 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002132/0.01119, allocations: 152.7 kB / 260.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01119, allocations: 0.5625 kB / 260.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.033e-05/0.01127, allocations: 79.52 kB / 260.5 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.01148, allocations: 35.88 kB / 260.6 MB, free: 13.63 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004314/0.01192, allocations: 327.1 kB / 260.9 MB, free: 13.28 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.958e-05/0.01196, allocations: 80.27 kB / 261 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.277e-05/0.01202, allocations: 29.94 kB / 261 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.38e-05/0.01206, allocations: 20.5 kB / 261 MB, free: 13.13 MB / 250.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01206, allocations: 3.938 kB / 261 MB, free: 13.13 MB / 250.7 MB Notification: Performance of Templates: time 0.004146/0.01621, allocations: 1.918 MB / 262.9 MB, free: 11.23 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: 3.068830568343401]