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.00102/0.00102, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.001/0.001, allocations: 145.1 kB / 24.54 MB, free: 40 kB / 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.9436/0.9436, allocations: 173.4 MB / 201.2 MB, free: 9.336 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.774e-06/1.774e-06, allocations: 0 / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.374e-05, allocations: 2.312 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.005506/0.00553, allocations: 1.699 MB / 269.7 MB, free: 4.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006478/0.006178, allocations: 299.1 kB / 269.9 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.718e-05/0.006275, allocations: 11.88 kB / 270 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.006412, allocations: 23.73 kB / 270 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.076e-05/0.006463, allocations: 23.73 kB / 270 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004494/0.006913, allocations: 127.8 kB / 270.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003056/0.007218, allocations: 275.4 kB / 270.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.007482, allocations: 159.7 kB / 270.6 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.007622, allocations: 139.7 kB / 270.7 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003125/0.01075, allocations: 71.77 kB / 270.8 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.022e-05/0.01079, allocations: 27.94 kB / 270.8 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.773e-05/0.01086, allocations: 31.98 kB / 270.8 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.159e-05/0.01093, allocations: 63.8 kB / 270.9 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.622e-05/0.011, allocations: 63.83 kB / 270.9 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.01127, allocations: 195.2 kB / 271.1 MB, free: 3.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.01127, allocations: 0 / 271.1 MB, free: 3.266 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01127, allocations: 4 kB / 271.1 MB, free: 3.262 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.01127, allocations: 4 kB / 271.1 MB, free: 3.258 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.0005861/0.01186, allocations: 0.5151 MB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.0119, allocations: 8.031 kB / 271.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.326e-05/0.01197, allocations: 44.8 kB / 271.7 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.01219, allocations: 180.2 kB / 271.9 MB, free: 2.449 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.01222, allocations: 24.88 kB / 271.9 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.127e-05/0.01225, allocations: 28.36 kB / 271.9 MB, free: 2.398 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.01254, allocations: 252.7 kB / 272.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.01255, allocations: 192 / 272.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.01257, allocations: 12.38 kB / 272.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.01258, allocations: 4.375 kB / 272.2 MB, free: 2.105 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.01274, allocations: 102.8 kB / 272.3 MB, free: 2.008 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007953/0.01353, allocations: 1.072 MB / 273.4 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.01374, allocations: 150.3 kB / 273.5 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.725e-05/0.0138, allocations: 66.42 kB / 273.6 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.01382, allocations: 4 kB / 273.6 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001415/0.01397, allocations: 151.3 kB / 273.7 MB, free: 476 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.01397, allocations: 4 kB / 273.7 MB, free: 472 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002922/0.01426, allocations: 193.3 kB / 273.9 MB, free: 272 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.0143, allocations: 85.11 kB / 274 MB, free: 168 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.01442, allocations: 217.7 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.01444, allocations: 37.7 kB / 274.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.906e-05/0.01452, allocations: 187.5 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.01456, allocations: 67.53 kB / 274.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.398e-05/0.01464, allocations: 87.33 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003696/0.01501, allocations: 0.4962 MB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.619e-05/0.01508, allocations: 43.88 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.01519, allocations: 160.5 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.01535, allocations: 184.7 kB / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.01535, allocations: 4 kB / 275.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002412/0.01559, allocations: 229.3 kB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.0156, allocations: 8 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.01561, allocations: 7.938 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.01563, allocations: 7.984 kB / 275.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.01573, allocations: 39.86 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.01574, allocations: 4 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.153e-05/0.0158, allocations: 36.06 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.01583, allocations: 19.98 kB / 275.8 MB, free: 14.21 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,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 (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 9.322e-05/0.01592, allocations: 184.5 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.01594, allocations: 19.84 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000215/0.01616, allocations: 174.4 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.01616, allocations: 7.984 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01616, allocations: 0 / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.01617, allocations: 0 / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004464/0.01661, allocations: 0.536 MB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01662, allocations: 4 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.033e-05/0.01666, allocations: 15.98 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.01666, allocations: 4 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.01667, allocations: 4 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.01667, allocations: 0 / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.01667, allocations: 7.938 kB / 276.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002079/0.01688, allocations: 327.8 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.553e-05/0.0169, allocations: 27.81 kB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.01692, allocations: 4 kB / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.376e-05/0.01696, allocations: 8 kB / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.01701, allocations: 27.95 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.01702, allocations: 4 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.484e-05/0.01707, allocations: 143.1 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01707, allocations: 0 / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002127/0.01728, allocations: 59.78 kB / 277.4 MB, free: 12.59 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 0.0001262/0.01741, allocations: 118.9 kB / 277.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.01763, allocations: 152.2 kB / 277.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.01763, allocations: 3.938 kB / 277.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.459e-05/0.01771, allocations: 87.58 kB / 277.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.01792, allocations: 20 kB / 277.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004665/0.01839, allocations: 350.5 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.358e-05/0.01844, allocations: 84.27 kB / 278.2 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.639e-05/0.01851, allocations: 29.94 kB / 278.2 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.927e-05/0.01856, allocations: 24.5 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01856, allocations: 0 / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of Templates: time 0.003906/0.02247, allocations: 1.965 MB / 280.2 MB, free: 9.738 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: 3.010019088629633]