Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 59.91 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3442, allocations: 53.37 MB / 432.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005328/0.3496, allocations: 3.261 MB / 435.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.3511, allocations: 0.7515 MB / 436.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002484/0.3514, allocations: 23.88 kB / 436.1 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003489/0.3517, allocations: 79.17 kB / 436.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001589/0.3519, allocations: 71.25 kB / 436.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006776/0.3526, allocations: 283.5 kB / 436.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.3532, allocations: 0.6206 MB / 437.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.3537, allocations: 238.2 kB / 437.4 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.3539, allocations: 251.2 kB / 437.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003654/0.3543, allocations: 258.8 kB / 437.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.83e-05/0.3544, allocations: 72 kB / 438 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.855e-05/0.3545, allocations: 72 kB / 438.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.3547, allocations: 139.6 kB / 438.2 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.355, allocations: 286.7 kB / 438.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000935/0.3559, allocations: 0.8422 MB / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3559, allocations: 3.938 kB / 439.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3559, allocations: 3.938 kB / 439.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.3559, allocations: 7.922 kB / 439.3 MB, free: 15.87 MB / 350.1 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.001462/0.3574, allocations: 0.7527 MB / 440.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3574, allocations: 8.031 kB / 440.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.3575, allocations: 60.56 kB / 440.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/0.3581, allocations: 332.7 kB / 440.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.37e-05/0.3582, allocations: 71.58 kB / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.3583, allocations: 56.33 kB / 440.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.3599, allocations: 0.8714 MB / 441.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.36, allocations: 15.94 kB / 441.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/0.36, allocations: 16 kB / 441.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.36, allocations: 12 kB / 441.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007905/0.3608, allocations: 359 kB / 441.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.3633, allocations: 1.68 MB / 443.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.3646, allocations: 0.5107 MB / 444.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.3651, allocations: 236.4 kB / 444.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.367e-05/0.3652, allocations: 12.77 kB / 444.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000377/0.3655, allocations: 206.3 kB / 444.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.024e-06/0.3655, allocations: 0 / 444.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001331/0.3669, allocations: 0.6081 MB / 445.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.367, allocations: 186.4 kB / 445.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.3673, allocations: 261.8 kB / 445.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.3673, allocations: 33.7 kB / 445.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.3675, allocations: 209.4 kB / 445.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.3676, allocations: 131 kB / 445.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3678, allocations: 106.3 kB / 446 MB, free: 8.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3679, allocations: 346.8 kB / 446.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003239/0.3683, allocations: 157.2 kB / 446.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005274/0.3688, allocations: 407 kB / 446.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008555/0.3697, allocations: 0.5579 MB / 447.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3697, allocations: 0 / 447.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001058/0.3707, allocations: 0.6021 MB / 448.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3707, allocations: 14.28 kB / 448.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.3708, allocations: 15.94 kB / 448.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.3708, allocations: 12 kB / 448.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.3713, allocations: 124.4 kB / 448.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.3713, allocations: 19.94 kB / 448.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003341/0.3716, allocations: 63.66 kB / 448.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.3717, allocations: 31.98 kB / 448.3 MB, free: 6.293 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,$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 (76): * Single equations (assignments): 76 * 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.0003431/0.372, allocations: 220.4 kB / 448.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004343/0.3724, allocations: 233.3 kB / 448.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007069/0.3731, allocations: 308.5 kB / 449.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.3732, allocations: 4 kB / 449.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.3732, allocations: 4 kB / 449.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.3732, allocations: 3.984 kB / 449.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.3745, allocations: 0.8573 MB / 450 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.3745, allocations: 3.984 kB / 450 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.375, allocations: 103.9 kB / 450.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.375, allocations: 0 / 450.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.375, allocations: 16 kB / 450.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.3751, allocations: 8 kB / 450.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.3751, allocations: 7.984 kB / 450.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.3765, allocations: 0.8105 MB / 450.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.347e-05/0.3765, allocations: 47.66 kB / 450.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.3766, allocations: 16 kB / 451 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.3768, allocations: 19.98 kB / 451 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.3769, allocations: 23.95 kB / 451 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.3769, allocations: 23.98 kB / 451 MB, free: 3.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001852/0.3771, allocations: 181.1 kB / 451.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3771, allocations: 0 / 451.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000496/0.3776, allocations: 115.8 kB / 451.3 MB, free: 3.211 MB / 350.1 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.0001563/0.3778, allocations: 113.2 kB / 451.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009056/0.3787, allocations: 444.7 kB / 451.9 MB, free: 2.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3787, allocations: 0 / 451.9 MB, free: 2.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.379, allocations: 127.9 kB / 452 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007088/0.3797, allocations: 175.4 kB / 452.2 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.3815, allocations: 1.026 MB / 453.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.382, allocations: 0.8514 MB / 454 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001825/0.3821, allocations: 47.2 kB / 454.1 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3823, allocations: 35.42 kB / 454.1 MB, free: 360 kB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3823, allocations: 4 kB / 454.1 MB, free: 356 kB / 350.1 MB Notification: Performance of Templates: time 0.01025/0.3925, allocations: 4.714 MB / 458.8 MB, free: 11.65 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.037559398449957]