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.0009292/0.0009292, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001511/0.001511, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9081/0.9081, allocations: 173.4 MB / 202.3 MB, free: 8.273 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 1.573e-06/1.573e-06, allocations: 0 / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.253e-05/2.411e-05, allocations: 3 kB / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004009/0.004033, allocations: 3.109 MB / 272.3 MB, free: 6.672 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009657/0.004999, allocations: 0.7601 MB / 273 MB, free: 5.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.005175, allocations: 15.88 kB / 273.1 MB, free: 5.898 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002554/0.00543, allocations: 71.14 kB / 273.1 MB, free: 5.828 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.005542, allocations: 76.47 kB / 273.2 MB, free: 5.754 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.005995, allocations: 302.2 kB / 273.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004076/0.006402, allocations: 0.6127 MB / 274.1 MB, free: 4.848 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.006674, allocations: 230.2 kB / 274.3 MB, free: 4.617 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.006904, allocations: 343.4 kB / 274.7 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.007143, allocations: 200.1 kB / 274.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.007209, allocations: 72 kB / 274.9 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.541e-05/0.007264, allocations: 73.25 kB / 275 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.007374, allocations: 147.5 kB / 275.2 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.0075, allocations: 187.5 kB / 275.3 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.007865, allocations: 450.9 kB / 275.8 MB, free: 3.176 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.704e-06/0.007866, allocations: 0 / 275.8 MB, free: 3.176 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.007867, allocations: 10.03 kB / 275.8 MB, free: 3.168 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.007872, allocations: 0 / 275.8 MB, free: 3.168 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.0008171/0.008689, allocations: 0.8452 MB / 276.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.008721, allocations: 8.031 kB / 276.6 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.008826, allocations: 100.6 kB / 276.7 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.009157, allocations: 359.2 kB / 277.1 MB, free: 1.793 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.722e-05/0.009224, allocations: 97.27 kB / 277.2 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.009281, allocations: 52.36 kB / 277.2 MB, free: 1.637 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007371/0.01002, allocations: 0.6985 MB / 277.9 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.01004, allocations: 4.188 kB / 277.9 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.01007, allocations: 24.38 kB / 278 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.01008, allocations: 16.12 kB / 278 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002217/0.0103, allocations: 155.6 kB / 278.1 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.01164, allocations: 1.677 MB / 279.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005804/0.01222, allocations: 387.5 kB / 280.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.01235, allocations: 135.1 kB / 280.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.01238, allocations: 15.97 kB / 280.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001441/0.01252, allocations: 191.5 kB / 280.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.373e-06/0.01252, allocations: 0 / 280.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0004278/0.01295, allocations: 369.3 kB / 280.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.01303, allocations: 184 kB / 281.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.01318, allocations: 296.1 kB / 281.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.01321, allocations: 33.7 kB / 281.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.01332, allocations: 264 kB / 281.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.01338, allocations: 115 kB / 281.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.583e-05/0.01347, allocations: 91.8 kB / 281.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.0136, allocations: 0.5156 MB / 282.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.401e-05/0.01366, allocations: 40.95 kB / 282.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.01381, allocations: 256.7 kB / 282.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.01403, allocations: 296.2 kB / 282.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01404, allocations: 0 / 282.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003021/0.01434, allocations: 311.5 kB / 283.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.01435, allocations: 11.94 kB / 283.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.01435, allocations: 4 kB / 283.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.715e-06/0.01436, allocations: 4 kB / 283.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.01456, allocations: 87.89 kB / 283.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.01457, allocations: 15.92 kB / 283.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.01468, allocations: 35.78 kB / 283.4 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.0147, allocations: 20 kB / 283.4 MB, free: 10.98 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,engine.cylinderAirCharge.integrator.local_reset,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y) * 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.0001292/0.01482, allocations: 204.5 kB / 283.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.01501, allocations: 181.3 kB / 283.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.01523, allocations: 208.7 kB / 284 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01523, allocations: 7.938 kB / 284 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.01524, allocations: 4 kB / 284 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.01524, allocations: 4.031 kB / 284 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005054/0.01575, allocations: 0.5918 MB / 284.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.01575, allocations: 4 kB / 284.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.016, allocations: 103.8 kB / 284.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.016, allocations: 4.031 kB / 284.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.01603, allocations: 19.98 kB / 284.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.01603, allocations: 0 / 284.7 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01603, allocations: 4 kB / 284.7 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.01634, allocations: 412.6 kB / 285.1 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.01637, allocations: 43.58 kB / 285.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.923e-05/0.01641, allocations: 16 kB / 285.2 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.01652, allocations: 19.98 kB / 285.2 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.01655, allocations: 19.97 kB / 285.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.01657, allocations: 19.98 kB / 285.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.757e-05/0.01665, allocations: 189.1 kB / 285.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01665, allocations: 0 / 285.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002523/0.0169, allocations: 95.78 kB / 285.5 MB, free: 8.766 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 8.834e-05/0.01699, allocations: 127.1 kB / 285.7 MB, free: 8.637 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002531/0.01724, allocations: 220.4 kB / 285.9 MB, free: 8.418 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.52e-07/0.01725, allocations: 4 kB / 285.9 MB, free: 8.414 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.223e-05/0.01733, allocations: 83.55 kB / 286 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.01767, allocations: 145.7 kB / 286.1 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008693/0.01854, allocations: 0.8655 MB / 287 MB, free: 7.273 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.35e-05/0.01861, allocations: 133.7 kB / 287.1 MB, free: 7.125 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.01872, allocations: 42.95 kB / 287.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.01886, allocations: 126.2 kB / 287.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01887, allocations: 0 / 287.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of Templates: time 0.00603/0.0249, allocations: 4.518 MB / 291.8 MB, free: 2.496 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.859052360057831]