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.001218/0.001218, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001636/0.002854, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008162/0.0008162, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001082/0.001898, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.9474/0.9474, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1498/1.097, allocations: 49.48 MB / 220.5 MB, free: 1.453 MB / 218.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.522e-06/1.522e-06, allocations: 0 / 221.8 MB, free: 204 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.355e-05, allocations: 5.406 kB / 221.8 MB, free: 200 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001895/0.001909, allocations: 1.755 MB / 223.6 MB, free: 14.42 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000441/0.00235, allocations: 278.9 kB / 223.8 MB, free: 14.15 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.206e-05/0.002442, allocations: 4 kB / 223.8 MB, free: 14.14 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.024e-05/0.002522, allocations: 27.67 kB / 223.9 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-05/0.002573, allocations: 15.81 kB / 223.9 MB, free: 14.1 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.002847, allocations: 131.7 kB / 224 MB, free: 13.97 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.003086, allocations: 271.5 kB / 224.3 MB, free: 13.71 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.003299, allocations: 159.9 kB / 224.4 MB, free: 13.55 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.003413, allocations: 131.8 kB / 224.6 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.003514, allocations: 67.78 kB / 224.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.003543, allocations: 24 kB / 224.7 MB, free: 13.34 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.675e-05/0.003619, allocations: 35.97 kB / 224.7 MB, free: 13.3 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.003662, allocations: 43.86 kB / 224.7 MB, free: 13.26 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.84e-05/0.00371, allocations: 55.88 kB / 224.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.003897, allocations: 167.3 kB / 225 MB, free: 13.04 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.676e-05/0.003914, allocations: 0 / 225 MB, free: 13.04 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003915, allocations: 0 / 225 MB, free: 13.04 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.003934, allocations: 0 / 225 MB, free: 13.04 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.0004628/0.004397, allocations: 442.7 kB / 225.4 MB, free: 12.57 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.004426, allocations: 12.03 kB / 225.4 MB, free: 12.56 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.00447, allocations: 28.92 kB / 225.4 MB, free: 12.54 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.004636, allocations: 153.5 kB / 225.6 MB, free: 12.36 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.004661, allocations: 24.88 kB / 225.6 MB, free: 12.34 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.298e-05/0.004684, allocations: 28.38 kB / 225.6 MB, free: 12.31 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.004887, allocations: 222.5 kB / 225.8 MB, free: 12.07 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.004897, allocations: 192 / 225.8 MB, free: 12.07 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.004915, allocations: 16.36 kB / 225.9 MB, free: 12.05 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.004923, allocations: 4.375 kB / 225.9 MB, free: 12.05 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.506e-05/0.005008, allocations: 71.34 kB / 225.9 MB, free: 11.98 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005967/0.005604, allocations: 0.731 MB / 226.7 MB, free: 11.22 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.005736, allocations: 102.5 kB / 226.8 MB, free: 11.11 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.703e-05/0.005773, allocations: 48.81 kB / 226.8 MB, free: 11.06 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.005788, allocations: 4 kB / 226.8 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/0.005895, allocations: 99.12 kB / 226.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.005896, allocations: 0 / 226.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001554/0.006052, allocations: 130.1 kB / 227 MB, free: 10.81 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.006086, allocations: 55.41 kB / 227.1 MB, free: 10.75 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.627e-05/0.006162, allocations: 164.4 kB / 227.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.006182, allocations: 37.7 kB / 227.3 MB, free: 10.53 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.006237, allocations: 136.8 kB / 227.4 MB, free: 10.39 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.006272, allocations: 67.48 kB / 227.5 MB, free: 10.33 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.737e-05/0.00634, allocations: 81.97 kB / 227.6 MB, free: 10.24 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.006413, allocations: 326.8 kB / 227.9 MB, free: 9.91 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.209e-05/0.006445, allocations: 32.62 kB / 227.9 MB, free: 9.879 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.681e-05/0.006512, allocations: 101.8 kB / 228 MB, free: 9.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.006624, allocations: 160.2 kB / 228.2 MB, free: 9.562 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.006627, allocations: 4 kB / 228.2 MB, free: 9.559 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001428/0.00677, allocations: 161.4 kB / 228.3 MB, free: 9.395 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.006785, allocations: 15.92 kB / 228.4 MB, free: 9.379 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.00679, allocations: 4 kB / 228.4 MB, free: 9.375 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.0068, allocations: 4.281 kB / 228.4 MB, free: 9.371 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.006918, allocations: 39.92 kB / 228.4 MB, free: 9.332 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.006923, allocations: 7.938 kB / 228.4 MB, free: 9.324 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.796e-05/0.006981, allocations: 35.77 kB / 228.4 MB, free: 9.289 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.006997, allocations: 8 kB / 228.5 MB, free: 9.281 MB / 234.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 7.626e-05/0.007073, allocations: 136.4 kB / 228.6 MB, free: 9.137 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.007091, allocations: 15.92 kB / 228.6 MB, free: 9.121 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.007225, allocations: 118.5 kB / 228.7 MB, free: 8.996 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.007227, allocations: 4 kB / 228.7 MB, free: 8.992 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.007229, allocations: 0 / 228.7 MB, free: 8.992 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.007233, allocations: 11.92 kB / 228.7 MB, free: 8.98 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003005/0.007534, allocations: 377.5 kB / 229.1 MB, free: 8.582 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.007535, allocations: 0 / 229.1 MB, free: 8.582 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.554e-05/0.00758, allocations: 16 kB / 229.1 MB, free: 8.566 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.007592, allocations: 19.83 kB / 229.1 MB, free: 8.547 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.007594, allocations: 0 / 229.1 MB, free: 8.547 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.007603, allocations: 8 kB / 229.1 MB, free: 8.539 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.007605, allocations: 4 kB / 229.1 MB, free: 8.535 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.007606, allocations: 0 / 229.1 MB, free: 8.535 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.00772, allocations: 215.3 kB / 229.4 MB, free: 8.309 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.007736, allocations: 15.94 kB / 229.4 MB, free: 8.293 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.844e-05/0.007775, allocations: 4 kB / 229.4 MB, free: 8.289 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.007815, allocations: 19.95 kB / 229.4 MB, free: 8.27 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.007825, allocations: 7.984 kB / 229.4 MB, free: 8.262 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.218e-05/0.007847, allocations: 28.83 kB / 229.4 MB, free: 8.23 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007847, allocations: 0 / 229.4 MB, free: 8.23 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001644/0.008011, allocations: 47.89 kB / 229.5 MB, free: 8.184 MB / 234.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 8.869e-05/0.0081, allocations: 88.36 kB / 229.6 MB, free: 8.09 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001449/0.008245, allocations: 133.4 kB / 229.7 MB, free: 7.957 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.008251, allocations: 0 / 229.7 MB, free: 7.957 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.38e-05/0.008305, allocations: 61.36 kB / 229.8 MB, free: 7.895 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.008451, allocations: 39.91 kB / 229.8 MB, free: 7.855 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004607/0.008912, allocations: 317.5 kB / 230.1 MB, free: 7.52 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.385e-05/0.008956, allocations: 84.31 kB / 230.2 MB, free: 7.418 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 5.459e-05/0.00901, allocations: 22.39 kB / 230.2 MB, free: 7.391 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.043e-05/0.009091, allocations: 87.3 kB / 230.3 MB, free: 7.305 MB / 234.7 MB Notification: Performance of SimCode: time 4.01e-07/0.009091, allocations: 4 kB / 230.3 MB, free: 7.301 MB / 234.7 MB Notification: Performance of Templates: time 0.003759/0.01285, allocations: 2.139 MB / 232.4 MB, free: 5.176 MB / 234.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 -ignoreHideResult -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.598910261876881]