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.00108/0.00108, allocations: 79.73 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.00114/0.00114, allocations: 168.5 kB / 25.33 MB, free: 9.449 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.899/0.899, allocations: 158.6 MB / 187.2 MB, free: 2.492 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.743e-06/1.743e-06, allocations: 3.938 kB / 251 MB, free: 3.617 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.942e-05/3.116e-05, allocations: 5.406 kB / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00243/0.002462, allocations: 1.726 MB / 252.7 MB, free: 1.871 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006619/0.003123, allocations: 259.1 kB / 253 MB, free: 1.617 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.00324, allocations: 4 kB / 253 MB, free: 1.613 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.00339, allocations: 27.67 kB / 253 MB, free: 1.586 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.806e-05/0.003458, allocations: 15.81 kB / 253 MB, free: 1.57 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004512/0.00391, allocations: 131.7 kB / 253.2 MB, free: 1.441 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.004206, allocations: 275.4 kB / 253.4 MB, free: 1.172 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.00445, allocations: 150.2 kB / 253.6 MB, free: 1.027 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.004572, allocations: 135.7 kB / 253.7 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.004705, allocations: 71.77 kB / 253.8 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.004739, allocations: 24 kB / 253.8 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.566e-05/0.004814, allocations: 28 kB / 253.8 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.243e-05/0.004867, allocations: 59.81 kB / 253.9 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.858e-05/0.004935, allocations: 71.75 kB / 254 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002683/0.005204, allocations: 187.2 kB / 254.2 MB, free: 472 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.005208, allocations: 8 kB / 254.2 MB, free: 464 kB / 234.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.005209, allocations: 0 / 254.2 MB, free: 464 kB / 234.7 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.005213, allocations: 0 / 254.2 MB, free: 464 kB / 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.0005381/0.005751, allocations: 0.503 MB / 254.7 MB, free: 15.9 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.005791, allocations: 15.98 kB / 254.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.674e-05/0.005868, allocations: 40.8 kB / 254.7 MB, free: 15.85 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.006084, allocations: 176.3 kB / 254.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.006116, allocations: 20.88 kB / 254.9 MB, free: 15.63 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.006142, allocations: 24.38 kB / 254.9 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.006444, allocations: 252.7 kB / 255.2 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.006455, allocations: 4.188 kB / 255.2 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.006474, allocations: 12.38 kB / 255.2 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.006488, allocations: 8.359 kB / 255.2 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.00665, allocations: 98.81 kB / 255.3 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.007763, allocations: 1.076 MB / 256.4 MB, free: 14.08 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.00796, allocations: 127.3 kB / 256.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.99e-05/0.00804, allocations: 47.67 kB / 256.6 MB, free: 13.89 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.008057, allocations: 4 kB / 256.6 MB, free: 13.89 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000127/0.008184, allocations: 120.7 kB / 256.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.405e-06/0.008186, allocations: 0 / 256.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002944/0.008481, allocations: 186 kB / 256.9 MB, free: 13.57 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.008523, allocations: 59.41 kB / 256.9 MB, free: 13.5 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.008645, allocations: 212.1 kB / 257.1 MB, free: 13.27 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.008676, allocations: 37.7 kB / 257.2 MB, free: 13.23 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.733e-05/0.008763, allocations: 199.4 kB / 257.4 MB, free: 13.03 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.008797, allocations: 55.55 kB / 257.4 MB, free: 12.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.183e-05/0.008889, allocations: 83.67 kB / 257.5 MB, free: 12.88 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.009023, allocations: 0.5001 MB / 258 MB, free: 12.37 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.765e-05/0.009091, allocations: 44.62 kB / 258 MB, free: 12.33 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.862e-05/0.009189, allocations: 146.1 kB / 258.2 MB, free: 12.14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.009347, allocations: 176.7 kB / 258.3 MB, free: 11.93 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.009349, allocations: 0 / 258.3 MB, free: 11.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002505/0.0096, allocations: 241.2 kB / 258.6 MB, free: 11.69 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.009616, allocations: 8 kB / 258.6 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.009621, allocations: 0 / 258.6 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.009636, allocations: 4 kB / 258.6 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.009742, allocations: 35.92 kB / 258.6 MB, free: 11.64 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.009751, allocations: 4 kB / 258.6 MB, free: 11.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.898e-05/0.00982, allocations: 36.05 kB / 258.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.009844, allocations: 19.98 kB / 258.7 MB, free: 11.58 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.000102/0.009946, allocations: 175.1 kB / 258.9 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.009971, allocations: 31.78 kB / 258.9 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.01019, allocations: 170.4 kB / 259.1 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.0102, allocations: 4 kB / 259.1 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.0102, allocations: 0 / 259.1 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.0102, allocations: 3.938 kB / 259.1 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004867/0.01069, allocations: 0.5392 MB / 259.6 MB, free: 10.61 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.01069, allocations: 4 kB / 259.6 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-05/0.01074, allocations: 23.92 kB / 259.6 MB, free: 10.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.01075, allocations: 0 / 259.6 MB, free: 10.58 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.01076, allocations: 8 kB / 259.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.01076, allocations: 0 / 259.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.01076, allocations: 0 / 259.6 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.01097, allocations: 307.7 kB / 259.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.561e-05/0.01099, allocations: 19.84 kB / 260 MB, free: 10.23 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.01101, allocations: 4 kB / 260 MB, free: 10.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.016e-05/0.01106, allocations: 11.98 kB / 260 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.01112, allocations: 19.97 kB / 260 MB, free: 10.2 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.01113, allocations: 8 kB / 260 MB, free: 10.19 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.69e-05/0.01117, allocations: 139.1 kB / 260.1 MB, free: 10.05 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01117, allocations: 0 / 260.1 MB, free: 10.05 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002117/0.01139, allocations: 55.88 kB / 260.2 MB, free: 9.996 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.0001373/0.01152, allocations: 111.1 kB / 260.3 MB, free: 9.875 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002135/0.01174, allocations: 148.1 kB / 260.4 MB, free: 9.727 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01174, allocations: 4.562 kB / 260.4 MB, free: 9.723 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.447e-05/0.01182, allocations: 88.11 kB / 260.5 MB, free: 9.633 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.01203, allocations: 22.59 kB / 260.6 MB, free: 9.613 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004684/0.0125, allocations: 335.1 kB / 260.9 MB, free: 9.254 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.119e-05/0.01255, allocations: 80.27 kB / 261 MB, free: 9.156 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.967e-05/0.01261, allocations: 29.92 kB / 261 MB, free: 9.129 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.708e-05/0.01266, allocations: 28.5 kB / 261 MB, free: 9.102 MB / 250.7 MB Notification: Performance of SimCode: time 1.773e-06/0.01266, allocations: 0 / 261 MB, free: 9.102 MB / 250.7 MB Notification: Performance of Templates: time 0.005294/0.01796, allocations: 2.041 MB / 263.1 MB, free: 7.082 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.6650589988566935]