Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.0008375/0.0008375, allocations: 68.19 kB / 9.935 MB, free: 0.75 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001061/0.001898, allocations: 445.7 kB / 10.37 MB, free: 324 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.0007062/0.0007062, allocations: 161.1 kB / 11.26 MB, free: 2.906 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008538/0.00156, allocations: 463.6 kB / 11.71 MB, free: 2.449 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.9584/0.9584, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1406/1.099, allocations: 49.49 MB / 220.6 MB, free: 1.449 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 221.8 MB, free: 204 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.016e-05/1.139e-05, allocations: 6.25 kB / 221.8 MB, free: 196 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001947/0.001958, allocations: 1.534 MB / 223.4 MB, free: 14.64 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004059/0.002364, allocations: 243.1 kB / 223.6 MB, free: 14.4 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.93e-05/0.002433, allocations: 7.938 kB / 223.6 MB, free: 14.39 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.679e-05/0.00252, allocations: 31.67 kB / 223.6 MB, free: 14.36 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.344e-05/0.002564, allocations: 15.8 kB / 223.6 MB, free: 14.35 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003057/0.002869, allocations: 123.7 kB / 223.8 MB, free: 14.23 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002621/0.003131, allocations: 267.5 kB / 224 MB, free: 13.96 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.003358, allocations: 143.4 kB / 224.2 MB, free: 13.82 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.003482, allocations: 127.8 kB / 224.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.003593, allocations: 71.77 kB / 224.4 MB, free: 13.63 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.003625, allocations: 20 kB / 224.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.85e-05/0.003704, allocations: 35.98 kB / 224.4 MB, free: 13.57 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.003751, allocations: 39.88 kB / 224.5 MB, free: 13.54 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.675e-05/0.003807, allocations: 55.88 kB / 224.5 MB, free: 13.48 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.004006, allocations: 151.4 kB / 224.7 MB, free: 13.33 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003535/0.007541, allocations: 3.938 kB / 224.7 MB, free: 13.33 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.42e-07/0.007541, allocations: 4 kB / 224.7 MB, free: 13.32 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.007558, allocations: 0 / 224.7 MB, free: 13.32 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005811/0.008139, allocations: 427.3 kB / 225.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.008168, allocations: 8.031 kB / 225.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.667e-05/0.008225, allocations: 36.91 kB / 225.1 MB, free: 12.84 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.008407, allocations: 149.6 kB / 225.3 MB, free: 12.67 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.008434, allocations: 24.88 kB / 225.3 MB, free: 12.64 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.008461, allocations: 24.38 kB / 225.3 MB, free: 12.62 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002336/0.008694, allocations: 195.9 kB / 225.5 MB, free: 12.41 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.008704, allocations: 192 / 225.5 MB, free: 12.41 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.00872, allocations: 12.3 kB / 225.5 MB, free: 12.4 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.008729, allocations: 8.375 kB / 225.5 MB, free: 12.39 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.00883, allocations: 63.41 kB / 225.6 MB, free: 12.33 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000586/0.009416, allocations: 484.1 kB / 226.1 MB, free: 11.84 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/0.009587, allocations: 118.4 kB / 226.2 MB, free: 11.71 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.82e-05/0.009635, allocations: 44.84 kB / 226.2 MB, free: 11.66 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.009649, allocations: 4 kB / 226.2 MB, free: 11.66 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001139/0.009763, allocations: 95.19 kB / 226.3 MB, free: 11.55 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.304e-06/0.009765, allocations: 3.984 kB / 226.3 MB, free: 11.55 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001845/0.00995, allocations: 126.2 kB / 226.4 MB, free: 11.42 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.009988, allocations: 63.34 kB / 226.5 MB, free: 11.35 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.165e-05/0.01007, allocations: 158.5 kB / 226.7 MB, free: 11.18 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.01019, allocations: 33.7 kB / 226.7 MB, free: 11.14 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/0.01025, allocations: 128.9 kB / 226.8 MB, free: 11.01 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.327e-05/0.01029, allocations: 63.5 kB / 226.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.886e-05/0.01037, allocations: 85.91 kB / 227 MB, free: 10.86 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.488e-05/0.01045, allocations: 326.8 kB / 227.3 MB, free: 10.53 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.259e-05/0.0105, allocations: 32.62 kB / 227.3 MB, free: 10.5 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.387e-05/0.01057, allocations: 84.14 kB / 227.4 MB, free: 10.39 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.0107, allocations: 142.5 kB / 227.5 MB, free: 10.23 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.01071, allocations: 4 kB / 227.5 MB, free: 10.22 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001762/0.01088, allocations: 161.4 kB / 227.7 MB, free: 10.06 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.0109, allocations: 4 kB / 227.7 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.0109, allocations: 4 kB / 227.7 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.01091, allocations: 4 kB / 227.7 MB, free: 10.05 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.01104, allocations: 35.91 kB / 227.8 MB, free: 10.01 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.01105, allocations: 11.92 kB / 227.8 MB, free: 10 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.632e-05/0.01111, allocations: 28 kB / 227.8 MB, free: 9.973 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.01113, allocations: 19.94 kB / 227.8 MB, free: 9.953 MB / 234.7 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,transition1.condition,transition2.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 (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 8.45e-05/0.01122, allocations: 141.8 kB / 227.9 MB, free: 9.805 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.01124, allocations: 15.92 kB / 228 MB, free: 9.789 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.01139, allocations: 122.5 kB / 228.1 MB, free: 9.66 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.0114, allocations: 4 kB / 228.1 MB, free: 9.656 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/0.0114, allocations: 3.938 kB / 228.1 MB, free: 9.652 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.01141, allocations: 3.984 kB / 228.1 MB, free: 9.648 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.01175, allocations: 342.5 kB / 228.4 MB, free: 9.289 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.01176, allocations: 4 kB / 228.4 MB, free: 9.285 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.814e-05/0.01181, allocations: 19.94 kB / 228.5 MB, free: 9.266 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.01183, allocations: 23.77 kB / 228.5 MB, free: 9.242 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.01183, allocations: 4 kB / 228.5 MB, free: 9.238 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.01184, allocations: 8 kB / 228.5 MB, free: 9.23 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.01184, allocations: 0 / 228.5 MB, free: 9.23 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01184, allocations: 0 / 228.5 MB, free: 9.23 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.01198, allocations: 215.3 kB / 228.7 MB, free: 9.004 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.012, allocations: 8 kB / 228.7 MB, free: 8.996 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.086e-05/0.01206, allocations: 4 kB / 228.7 MB, free: 8.992 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.01211, allocations: 23.89 kB / 228.7 MB, free: 8.969 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.01212, allocations: 8 kB / 228.7 MB, free: 8.961 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.125e-05/0.01214, allocations: 28.83 kB / 228.8 MB, free: 8.93 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01214, allocations: 0 / 228.8 MB, free: 8.93 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.003356/0.0155, allocations: 47.89 kB / 228.8 MB, free: 8.883 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 (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.0001042/0.0156, allocations: 92.39 kB / 228.9 MB, free: 8.785 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001649/0.01577, allocations: 121.3 kB / 229 MB, free: 8.664 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.01578, allocations: 4.438 kB / 229 MB, free: 8.66 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 7.602e-05/0.01585, allocations: 73.3 kB / 229.1 MB, free: 8.586 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.01603, allocations: 31.98 kB / 229.1 MB, free: 8.555 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005102/0.01654, allocations: 309.6 kB / 229.4 MB, free: 8.227 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.029e-05/0.01659, allocations: 80.27 kB / 229.5 MB, free: 8.129 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 6.037e-05/0.01665, allocations: 21.95 kB / 229.5 MB, free: 8.105 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.984e-05/0.01674, allocations: 79.36 kB / 229.6 MB, free: 8.031 MB / 234.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01674, allocations: 4 kB / 229.6 MB, free: 8.027 MB / 234.7 MB Notification: Performance of Templates: time 0.007291/0.02403, allocations: 2.166 MB / 231.8 MB, free: 5.883 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.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.5758396424353123]