Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.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.0009146/0.0009146, 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.0008093/0.0008093, allocations: 145.5 kB / 24.54 MB, free: 36 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.9246/0.9246, allocations: 173.4 MB / 201.1 MB, free: 9.348 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.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 3.938 kB / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.088e-05/3.3e-05, allocations: 6.25 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004103/0.004136, allocations: 3.168 MB / 271.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.005524, allocations: 0.7552 MB / 271.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.005785, allocations: 15.88 kB / 271.9 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000362/0.006147, allocations: 75.17 kB / 272 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.006325, allocations: 83.19 kB / 272.1 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007601/0.007085, allocations: 291.3 kB / 272.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005536/0.007639, allocations: 0.6166 MB / 273 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003354/0.007974, allocations: 230.2 kB / 273.2 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003146/0.008289, allocations: 351.4 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002948/0.008583, allocations: 191.4 kB / 273.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.849e-05/0.008662, allocations: 72 kB / 273.8 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.008725, allocations: 76 kB / 273.9 MB, free: 0.543 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.008861, allocations: 151.5 kB / 274 MB, free: 404 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.009007, allocations: 183.6 kB / 274.2 MB, free: 220 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005226/0.009529, allocations: 458.3 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.009533, allocations: 0 / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.009535, allocations: 0 / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.009543, allocations: 4 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001129/0.01067, allocations: 0.8447 MB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.01072, allocations: 8.922 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.01085, allocations: 100.6 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.01126, allocations: 355.2 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-05/0.01135, allocations: 97.27 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.01142, allocations: 52.33 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009998/0.01242, allocations: 0.7377 MB / 276.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.01244, allocations: 192 / 276.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/0.01249, allocations: 28.38 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.01251, allocations: 16.12 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.01285, allocations: 184.4 kB / 277 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.01456, allocations: 1.715 MB / 278.8 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007592/0.01532, allocations: 419.7 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.01552, allocations: 147.2 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.277e-05/0.01556, allocations: 19.97 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001867/0.01574, allocations: 193.7 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.723e-06/0.01575, allocations: 0 / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.000624/0.01637, allocations: 417.3 kB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/0.01646, allocations: 182.1 kB / 280.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.01665, allocations: 292.2 kB / 280.4 MB, free: 9.625 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.01668, allocations: 37.7 kB / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.0168, allocations: 260 kB / 280.7 MB, free: 9.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.467e-05/0.01687, allocations: 123.5 kB / 280.8 MB, free: 9.203 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.01696, allocations: 83.84 kB / 280.9 MB, free: 9.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.0171, allocations: 0.5118 MB / 281.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.01721, allocations: 60.95 kB / 281.5 MB, free: 8.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.01739, allocations: 264.7 kB / 281.7 MB, free: 8.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.01767, allocations: 324.9 kB / 282 MB, free: 7.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.01768, allocations: 7.938 kB / 282 MB, free: 7.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003832/0.01806, allocations: 341.2 kB / 282.4 MB, free: 7.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.01808, allocations: 4 kB / 282.4 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.01809, allocations: 4 kB / 282.4 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.01811, allocations: 8 kB / 282.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.01832, allocations: 87.89 kB / 282.5 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.01833, allocations: 11.94 kB / 282.5 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.01844, allocations: 35.78 kB / 282.5 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.01847, allocations: 19.98 kB / 282.5 MB, free: 7.281 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,engine.cylinderAirCharge.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.u_buffer[1],engine.crankshaftPositionEvent.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des) * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * 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.0001475/0.01862, allocations: 200.5 kB / 282.7 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/0.01885, allocations: 195.2 kB / 282.9 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003168/0.01917, allocations: 224.7 kB / 283.1 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.01918, allocations: 8 kB / 283.2 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.01918, allocations: 0 / 283.2 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.01919, allocations: 3.984 kB / 283.2 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006488/0.01984, allocations: 0.6576 MB / 283.8 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.01984, allocations: 0 / 283.8 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.02011, allocations: 99.91 kB / 283.9 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.02011, allocations: 11.94 kB / 283.9 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.02014, allocations: 15.98 kB / 283.9 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.02015, allocations: 4 kB / 283.9 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.02015, allocations: 0 / 283.9 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006594/0.02081, allocations: 0.6162 MB / 284.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/0.02085, allocations: 43.64 kB / 284.6 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/0.02089, allocations: 12 kB / 284.6 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.02101, allocations: 23.98 kB / 284.6 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.214e-05/0.02107, allocations: 19.97 kB / 284.7 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.02109, allocations: 20.05 kB / 284.7 MB, free: 5.047 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.02119, allocations: 197.1 kB / 284.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02119, allocations: 0 / 284.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000283/0.02147, allocations: 103.7 kB / 285 MB, free: 4.75 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (engine.throttleBody.m_ai,engine.intakeManifold.P_m,engine.cylinderAirCharge.integrator.y,engine.inertia.w,derivative.u) * Number of discrete variables: 10 (engine.crankshaftPositionEvent.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 6 (speedControl.N_des,speedControl.N,speedControl.x_d,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.delay.u_buffer[1],engine.inductionToPowerDelay.delay.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 57 * 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 Backend phase and start with SimCode phase: time 0.0001189/0.02159, allocations: 129.8 kB / 285.1 MB, free: 4.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003911/0.02198, allocations: 255.1 kB / 285.4 MB, free: 4.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02199, allocations: 0 / 285.4 MB, free: 4.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.0221, allocations: 92.03 kB / 285.4 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.02256, allocations: 148.2 kB / 285.6 MB, free: 4.129 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.0237, allocations: 0.8776 MB / 286.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.362e-05/0.02378, allocations: 133.7 kB / 286.6 MB, free: 3.051 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.02389, allocations: 38.95 kB / 286.6 MB, free: 3.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.576e-05/0.02397, allocations: 36.5 kB / 286.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02397, allocations: 0 / 286.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of Templates: time 0.133/0.157, allocations: 4.061 MB / 290.7 MB, free: 29.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.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.8779062260873616]