Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 74.64 kB / 21.24 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002164/0.002164, allocations: 151.6 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 43.06 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1195, allocations: 52.17 MB / 371.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00266/0.1221, allocations: 1.451 MB / 373 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006664/0.1228, allocations: 293.1 kB / 373.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.27e-05/0.1229, allocations: 7.938 kB / 373.3 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.123, allocations: 19.73 kB / 373.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.161e-05/0.123, allocations: 19.81 kB / 373.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.1234, allocations: 119.8 kB / 373.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003435/0.1238, allocations: 267.5 kB / 373.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.1241, allocations: 134.8 kB / 373.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.1242, allocations: 79.78 kB / 373.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.1243, allocations: 91.52 kB / 374 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/0.1244, allocations: 20 kB / 374 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.812e-05/0.1245, allocations: 32 kB / 374.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-05/0.1245, allocations: 51.89 kB / 374.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.972e-05/0.1246, allocations: 79.58 kB / 374.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.125, allocations: 247 kB / 374.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.125, allocations: 0 / 374.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.125, allocations: 0 / 374.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.125, allocations: 0 / 374.4 MB, free: 4.457 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006678/0.1256, allocations: 421.1 kB / 374.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.1257, allocations: 8.922 kB / 374.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.586e-05/0.1257, allocations: 24.8 kB / 374.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.126, allocations: 178.2 kB / 375 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.1261, allocations: 20.88 kB / 375.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.1261, allocations: 24.38 kB / 375.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.1265, allocations: 243.3 kB / 375.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1266, allocations: 192 / 375.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.1266, allocations: 7.938 kB / 375.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1266, allocations: 12 kB / 375.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.1269, allocations: 161.8 kB / 375.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009126/0.1278, allocations: 0.5661 MB / 376.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.1281, allocations: 154.8 kB / 376.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.1283, allocations: 76.83 kB / 376.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.1283, allocations: 0 / 376.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.1285, allocations: 127.2 kB / 376.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.1285, allocations: 0 / 376.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004769/0.129, allocations: 220.2 kB / 376.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.129, allocations: 63.41 kB / 376.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.1292, allocations: 149.9 kB / 376.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.1292, allocations: 45.62 kB / 376.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.1293, allocations: 132.9 kB / 377 MB, free: 1.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.1294, allocations: 63.48 kB / 377.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.1295, allocations: 74 kB / 377.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1297, allocations: 326.8 kB / 377.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.1298, allocations: 64.62 kB / 377.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.13, allocations: 128 kB / 377.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.1302, allocations: 174.8 kB / 377.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1302, allocations: 0 / 377.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004072/0.1306, allocations: 245.8 kB / 378.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1307, allocations: 12.22 kB / 378.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1307, allocations: 0 / 378.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1307, allocations: 4 kB / 378.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1308, allocations: 35.91 kB / 378.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1309, allocations: 4 kB / 378.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.131, allocations: 23.84 kB / 378.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.131, allocations: 12 kB / 378.2 MB, free: 496 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001681/0.1312, allocations: 165.6 kB / 378.3 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.1312, allocations: 11.89 kB / 378.3 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003791/0.1316, allocations: 198.5 kB / 378.5 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1316, allocations: 4 kB / 378.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1316, allocations: 0 / 378.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1316, allocations: 0 / 378.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007642/0.1323, allocations: 497.7 kB / 379 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1324, allocations: 0 / 379 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.428e-05/0.1324, allocations: 19.92 kB / 379 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1324, allocations: 0 / 379 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.1325, allocations: 8 kB / 379 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1325, allocations: 0 / 379 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1325, allocations: 4 kB / 379 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003702/0.1328, allocations: 295.6 kB / 379.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.024e-05/0.1329, allocations: 15.84 kB / 379.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.1329, allocations: 8 kB / 379.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.133, allocations: 11.98 kB / 379.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.133, allocations: 19.95 kB / 379.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.1331, allocations: 8 kB / 379.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.023e-05/0.1331, allocations: 107 kB / 379.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1331, allocations: 3.938 kB / 379.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.1334, allocations: 51.83 kB / 379.6 MB, free: 15.02 MB / 350.1 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001442/0.1336, allocations: 107.2 kB / 379.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.1339, allocations: 171.8 kB / 379.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1339, allocations: 0 / 379.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.1341, allocations: 71.86 kB / 379.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.1343, allocations: 30.78 kB / 379.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006267/0.135, allocations: 335.3 kB / 380.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.1351, allocations: 129 kB / 380.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.345e-05/0.1352, allocations: 17.95 kB / 380.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.608e-05/0.1353, allocations: 28.48 kB / 380.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1353, allocations: 4 kB / 380.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Templates: time 0.00575/0.141, allocations: 1.92 MB / 382.4 MB, free: 12.2 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2537461230531335]