Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0011/0.0011, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001252/0.001252, allocations: 143.4 kB / 24.89 MB, free: 8.777 MB / 18.57 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 0.9165/0.9165, allocations: 173.4 MB / 201.5 MB, free: 8.758 MB / 186.7 MB " [Timeout remaining time 179] 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 268.4 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.451e-05, allocations: 2.312 kB / 268.4 MB, free: 6.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001925/0.00194, allocations: 1.689 MB / 270.1 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005348/0.002475, allocations: 314.8 kB / 270.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.503e-05/0.00255, allocations: 4 kB / 270.4 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.002662, allocations: 27.61 kB / 270.5 MB, free: 4.023 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.808e-05/0.0027, allocations: 19.81 kB / 270.5 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003558/0.003056, allocations: 131.7 kB / 270.6 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.003284, allocations: 279.4 kB / 270.9 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.003482, allocations: 162.3 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.003589, allocations: 139.8 kB / 271.2 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.668e-05/0.003686, allocations: 75.75 kB / 271.2 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.003715, allocations: 24 kB / 271.3 MB, free: 3.199 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.742e-05/0.003772, allocations: 28 kB / 271.3 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.749e-05/0.00382, allocations: 63.8 kB / 271.4 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.757e-05/0.003877, allocations: 71.75 kB / 271.4 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.00408, allocations: 195.2 kB / 271.6 MB, free: 2.848 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.004082, allocations: 4 kB / 271.6 MB, free: 2.844 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.004083, allocations: 0 / 271.6 MB, free: 2.844 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.004086, allocations: 0 / 271.6 MB, free: 2.844 MB / 250.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.0004043/0.00449, allocations: 395.8 kB / 272 MB, free: 2.434 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/0.00452, allocations: 12.03 kB / 272 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.785e-05/0.004568, allocations: 36.91 kB / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.004724, allocations: 149.5 kB / 272.2 MB, free: 2.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.004747, allocations: 24.88 kB / 272.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.004773, allocations: 24.38 kB / 272.3 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.00497, allocations: 230.5 kB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.004979, allocations: 4.125 kB / 272.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.004992, allocations: 12.38 kB / 272.5 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.005, allocations: 8.375 kB / 272.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.174e-05/0.005082, allocations: 75.31 kB / 272.6 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000553/0.005635, allocations: 0.727 MB / 273.3 MB, free: 1.066 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.005763, allocations: 113.1 kB / 273.4 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.144e-05/0.005804, allocations: 49.69 kB / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.005822, allocations: 8 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/0.005926, allocations: 130.4 kB / 273.6 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.132e-06/0.005927, allocations: 0 / 273.6 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.00017/0.006097, allocations: 140.4 kB / 273.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.006136, allocations: 85.09 kB / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/0.006209, allocations: 162.5 kB / 274 MB, free: 324 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.006229, allocations: 37.7 kB / 274 MB, free: 280 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.006285, allocations: 136.8 kB / 274.1 MB, free: 136 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.17e-05/0.006317, allocations: 67.45 kB / 274.2 MB, free: 68 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.884e-05/0.006385, allocations: 77.62 kB / 274.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.236e-05/0.006458, allocations: 330.9 kB / 274.6 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.006625, allocations: 35.75 kB / 274.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.629e-05/0.006692, allocations: 112.3 kB / 274.8 MB, free: 15.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.006804, allocations: 152.3 kB / 274.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.006807, allocations: 3.984 kB / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001425/0.00695, allocations: 165.4 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.006961, allocations: 11.94 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.006965, allocations: 0 / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.006978, allocations: 4 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.976e-05/0.007058, allocations: 44.14 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.007062, allocations: 8 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.133e-05/0.007113, allocations: 27.83 kB / 275.2 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.007129, allocations: 12 kB / 275.2 MB, free: 15.02 MB / 266.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.229e-05/0.007202, allocations: 145.6 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.007219, allocations: 15.98 kB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.007348, allocations: 134.4 kB / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.00735, allocations: 4 kB / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.007352, allocations: 0 / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.007355, allocations: 0 / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002908/0.007646, allocations: 378.2 kB / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.007647, allocations: 0 / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.007682, allocations: 19.98 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.007684, allocations: 0 / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.00769, allocations: 4 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.007691, allocations: 0 / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.007692, allocations: 0 / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.007812, allocations: 232.5 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-06/0.007822, allocations: 11.91 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.007838, allocations: 8 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.17e-05/0.007879, allocations: 15.98 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.007918, allocations: 15.97 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.007926, allocations: 4 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.832e-05/0.007944, allocations: 28.77 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.007944, allocations: 0 / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001626/0.008107, allocations: 55.88 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 9.227e-05/0.008199, allocations: 96.11 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.008331, allocations: 133.4 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.008334, allocations: 0 / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.926e-05/0.008393, allocations: 68.64 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.008531, allocations: 23.92 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.008866, allocations: 330 kB / 276.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.964e-05/0.008905, allocations: 80.33 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.012e-05/0.008955, allocations: 30.06 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.716e-05/0.009033, allocations: 87.36 kB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.009033, allocations: 0 / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Templates: time 0.00354/0.01257, allocations: 2.162 MB / 279.2 MB, free: 10.88 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.5500210379250348]