Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001237/0.001237, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001812/0.003049, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009647/0.0009647, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001366/0.00233, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.921/0.921, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1866/1.108, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 239.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.602e-05/2.768e-05, allocations: 3.719 kB / 239.7 MB, free: 6.387 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002854/0.002882, allocations: 1.77 MB / 241.5 MB, free: 4.613 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005501/0.003432, allocations: 314.6 kB / 241.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.644e-05/0.003518, allocations: 4 kB / 241.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.003619, allocations: 19.69 kB / 241.8 MB, free: 4.285 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.502e-05/0.003664, allocations: 23.8 kB / 241.8 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.004015, allocations: 127.7 kB / 242 MB, free: 4.137 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.004283, allocations: 271.5 kB / 242.2 MB, free: 3.871 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.004524, allocations: 154 kB / 242.4 MB, free: 3.723 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.004645, allocations: 135.8 kB / 242.5 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.004768, allocations: 73.23 kB / 242.6 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/0.0048, allocations: 24 kB / 242.6 MB, free: 3.496 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.366e-05/0.004894, allocations: 35.98 kB / 242.6 MB, free: 3.461 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.604e-05/0.00495, allocations: 47.86 kB / 242.7 MB, free: 3.414 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.6e-05/0.005006, allocations: 56.48 kB / 242.7 MB, free: 3.359 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.005246, allocations: 163.3 kB / 242.9 MB, free: 3.199 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.332e-05/0.005259, allocations: 0.5938 kB / 242.9 MB, free: 3.199 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.00526, allocations: 4.531 kB / 242.9 MB, free: 3.195 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.005272, allocations: 0 / 242.9 MB, free: 3.195 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.0005485/0.005821, allocations: 441.1 kB / 243.3 MB, free: 2.738 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.005854, allocations: 8.031 kB / 243.3 MB, free: 2.73 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.334e-05/0.005917, allocations: 40.91 kB / 243.4 MB, free: 2.691 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.006105, allocations: 150.7 kB / 243.5 MB, free: 2.52 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.006133, allocations: 24.88 kB / 243.6 MB, free: 2.496 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.006162, allocations: 28.38 kB / 243.6 MB, free: 2.469 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.0064, allocations: 219.5 kB / 243.8 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.006412, allocations: 192 / 243.8 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.00643, allocations: 16.31 kB / 243.8 MB, free: 2.219 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.006439, allocations: 5.375 kB / 243.8 MB, free: 2.215 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.734e-05/0.006536, allocations: 76.08 kB / 243.9 MB, free: 2.141 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006835/0.00722, allocations: 0.7433 MB / 244.6 MB, free: 1.367 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.007389, allocations: 120.3 kB / 244.8 MB, free: 1.234 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.574e-05/0.007434, allocations: 52.41 kB / 244.8 MB, free: 1.18 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.007452, allocations: 4.656 kB / 244.8 MB, free: 1.176 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.007603, allocations: 124.8 kB / 244.9 MB, free: 1.035 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.007604, allocations: 6.531 kB / 244.9 MB, free: 1.031 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001992/0.007803, allocations: 134.8 kB / 245.1 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.007856, allocations: 85.11 kB / 245.2 MB, free: 0.793 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.33e-05/0.00795, allocations: 158.1 kB / 245.3 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.007973, allocations: 37.7 kB / 245.3 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.818e-05/0.008041, allocations: 146.2 kB / 245.5 MB, free: 452 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/0.008078, allocations: 63.5 kB / 245.5 MB, free: 388 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.008145, allocations: 85.58 kB / 245.6 MB, free: 296 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.008239, allocations: 326.8 kB / 246 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.008276, allocations: 28.8 kB / 246 MB, free: 15.93 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.961e-05/0.008346, allocations: 108.3 kB / 246.1 MB, free: 15.8 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.008483, allocations: 161 kB / 246.2 MB, free: 15.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.008486, allocations: 0 / 246.2 MB, free: 15.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001898/0.008676, allocations: 179.2 kB / 246.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.008691, allocations: 7.938 kB / 246.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.008698, allocations: 4 kB / 246.4 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.008713, allocations: 5.781 kB / 246.4 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.008838, allocations: 43.86 kB / 246.5 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.008843, allocations: 4 kB / 246.5 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.447e-05/0.008908, allocations: 31.83 kB / 246.5 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.154e-05/0.008929, allocations: 4.656 kB / 246.5 MB, free: 15.34 MB / 250.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 0.000103/0.009032, allocations: 146.4 kB / 246.7 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.009058, allocations: 20.48 kB / 246.7 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002006/0.009258, allocations: 129.4 kB / 246.8 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.009262, allocations: 4.812 kB / 246.8 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.009264, allocations: 0 / 246.8 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.009268, allocations: 1.656 kB / 246.8 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.009641, allocations: 381.5 kB / 247.2 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.009643, allocations: 0 / 247.2 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-05/0.009701, allocations: 15.98 kB / 247.2 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.009716, allocations: 12.36 kB / 247.2 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.009719, allocations: 4 kB / 247.2 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.009731, allocations: 12 kB / 247.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.009734, allocations: 0 / 247.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.009735, allocations: 0 / 247.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.009873, allocations: 225.1 kB / 247.4 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.009891, allocations: 8 kB / 247.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.006e-05/0.009942, allocations: 11.98 kB / 247.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.625e-05/0.009988, allocations: 11.97 kB / 247.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.009999, allocations: 11.98 kB / 247.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.187e-05/0.01002, allocations: 20.84 kB / 247.5 MB, free: 14.28 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01002, allocations: 4 kB / 247.5 MB, free: 14.27 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001909/0.01021, allocations: 63.77 kB / 247.6 MB, free: 14.21 MB / 250.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,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: 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.0001253/0.01034, allocations: 92.11 kB / 247.7 MB, free: 14.11 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002383/0.01058, allocations: 134.2 kB / 247.8 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.01058, allocations: 0 / 247.8 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-05/0.01066, allocations: 82.34 kB / 247.9 MB, free: 13.9 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.01089, allocations: 206.2 kB / 248.1 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005528/0.01144, allocations: 339 kB / 248.4 MB, free: 13.3 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.214e-05/0.0115, allocations: 80.33 kB / 248.5 MB, free: 13.2 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.022e-05/0.01156, allocations: 21.94 kB / 248.5 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.776e-05/0.01164, allocations: 83.36 kB / 248.6 MB, free: 13.1 MB / 250.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01164, allocations: 4 kB / 248.6 MB, free: 13.09 MB / 250.7 MB Notification: Performance of Templates: time 0.004509/0.01615, allocations: 2.122 MB / 250.7 MB, free: 11.02 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6776147121563554]