Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9787/0.9787, allocations: 177.1 MB / 205 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.035e-05/3.25e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005045/0.005078, allocations: 3.167 MB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.006589, allocations: 0.7629 MB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.006828, allocations: 11.94 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004076/0.007236, allocations: 71.19 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.007422, allocations: 79.19 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008546/0.008276, allocations: 299.3 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006877/0.008964, allocations: 0.6127 MB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.009393, allocations: 226.2 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003862/0.009779, allocations: 355.3 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003307/0.01011, allocations: 191.4 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.01021, allocations: 72 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.558e-05/0.0103, allocations: 72 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.01048, allocations: 151.5 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.01067, allocations: 187.6 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006875/0.01136, allocations: 458.2 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.01136, allocations: 0 / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.01136, allocations: 0 / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.01138, allocations: 0 / 279.6 MB, free: 10.82 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.001373/0.01275, allocations: 0.8409 MB / 280.5 MB, free: 9.938 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.0128, allocations: 12.03 kB / 280.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.01297, allocations: 104.5 kB / 280.6 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005334/0.0135, allocations: 351.2 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.01361, allocations: 93.28 kB / 281 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.01371, allocations: 56.33 kB / 281.1 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.01483, allocations: 0.7457 MB / 281.8 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.01486, allocations: 192 / 281.8 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.001e-05/0.01491, allocations: 16.38 kB / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.01493, allocations: 16.12 kB / 281.8 MB, free: 8.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004808/0.01541, allocations: 200.4 kB / 282 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.01736, allocations: 1.708 MB / 283.8 MB, free: 6.465 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009286/0.01828, allocations: 409.1 kB / 284.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.01856, allocations: 160.6 kB / 284.3 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.605e-05/0.01861, allocations: 16.22 kB / 284.3 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.01884, allocations: 190.2 kB / 284.5 MB, free: 5.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.693e-06/0.01884, allocations: 3.938 kB / 284.5 MB, free: 5.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008138/0.01966, allocations: 410.8 kB / 284.9 MB, free: 5.199 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.01976, allocations: 190.4 kB / 285.1 MB, free: 4.977 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.01999, allocations: 296.2 kB / 285.4 MB, free: 4.672 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.02003, allocations: 33.7 kB / 285.4 MB, free: 4.633 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.02016, allocations: 260 kB / 285.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.02029, allocations: 123.5 kB / 285.8 MB, free: 4.254 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.0204, allocations: 87.84 kB / 285.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.02054, allocations: 0.5118 MB / 286.4 MB, free: 3.637 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.02068, allocations: 56.95 kB / 286.5 MB, free: 3.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.02092, allocations: 272.6 kB / 286.7 MB, free: 3.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.0213, allocations: 317.1 kB / 287 MB, free: 2.848 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.02131, allocations: 7.875 kB / 287 MB, free: 2.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005123/0.02182, allocations: 329.4 kB / 287.4 MB, free: 2.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.02184, allocations: 8 kB / 287.4 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-05/0.0219, allocations: 8.031 kB / 287.4 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.02192, allocations: 4 kB / 287.4 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00029/0.02221, allocations: 95.83 kB / 287.5 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.02222, allocations: 8.062 kB / 287.5 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.02239, allocations: 39.73 kB / 287.5 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.02242, allocations: 19.98 kB / 287.5 MB, free: 2.332 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.0001638/0.02258, allocations: 194.4 kB / 287.7 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002973/0.02288, allocations: 201.5 kB / 287.9 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003632/0.02324, allocations: 220.5 kB / 288.1 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.02325, allocations: 8 kB / 288.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.02326, allocations: 0 / 288.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.02327, allocations: 7.984 kB / 288.2 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007783/0.02404, allocations: 0.6575 MB / 288.8 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.02405, allocations: 4 kB / 288.8 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.02441, allocations: 103.9 kB / 288.9 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.02441, allocations: 7.938 kB / 288.9 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.02444, allocations: 16.02 kB / 288.9 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.02445, allocations: 0 / 288.9 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.02445, allocations: 4 kB / 288.9 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008362/0.02528, allocations: 0.6123 MB / 289.6 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.02533, allocations: 47.58 kB / 289.6 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.517e-05/0.02538, allocations: 19.94 kB / 289.6 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.02554, allocations: 19.98 kB / 289.6 MB, free: 136 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.02561, allocations: 19.97 kB / 289.7 MB, free: 116 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.02564, allocations: 19.98 kB / 289.7 MB, free: 96 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001402/0.02578, allocations: 197.1 kB / 289.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02578, allocations: 0 / 289.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003831/0.02616, allocations: 103.7 kB / 290 MB, free: 15.8 MB / 282.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.0001203/0.02628, allocations: 123.8 kB / 290.1 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003824/0.02666, allocations: 257.2 kB / 290.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.02667, allocations: 0 / 290.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.02677, allocations: 99.5 kB / 290.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.02721, allocations: 134.7 kB / 290.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.02828, allocations: 0.8693 MB / 291.4 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.158e-05/0.02837, allocations: 133.7 kB / 291.6 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.02848, allocations: 38.97 kB / 291.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.436e-05/0.02856, allocations: 32.48 kB / 291.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02857, allocations: 4 kB / 291.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of Templates: time 0.00634/0.03491, allocations: 4.048 MB / 295.7 MB, free: 10.04 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.1077608820050955]