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.001374/0.001374, allocations: 89.53 kB / 20.69 MB, free: 1.02 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.001434/0.001434, allocations: 157.5 kB / 23.95 MB, free: 4.152 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.433/1.433, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.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 1.723e-06/1.723e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.702e-05/2.874e-05, allocations: 3.344 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005426/0.005455, allocations: 3.036 MB / 328 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.007079, allocations: 0.7454 MB / 328.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.007315, allocations: 12.25 kB / 328.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003906/0.007706, allocations: 77.45 kB / 328.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.007895, allocations: 77.5 kB / 328.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007587/0.008654, allocations: 294.9 kB / 329.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008653/0.00952, allocations: 0.6162 MB / 329.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005166/0.01004, allocations: 226 kB / 330.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005203/0.01056, allocations: 354.2 kB / 330.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000423/0.01098, allocations: 194.5 kB / 330.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.01111, allocations: 71.41 kB / 330.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.01122, allocations: 72.75 kB / 330.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.01144, allocations: 144.7 kB / 330.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002426/0.01168, allocations: 183.8 kB / 331.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.01286, allocations: 0.8873 MB / 331.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01287, allocations: 4 kB / 331.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01287, allocations: 0 / 331.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.01288, allocations: 0 / 331.9 MB, free: 11.98 MB / 302.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.001594/0.01447, allocations: 0.7344 MB / 332.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.01452, allocations: 16.62 kB / 332.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.01466, allocations: 61.69 kB / 332.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.0153, allocations: 341.6 kB / 333.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.01542, allocations: 92 kB / 333.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.01553, allocations: 62.42 kB / 333.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.01736, allocations: 0.9013 MB / 334.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.01738, allocations: 1.469 kB / 334.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/0.01744, allocations: 25.16 kB / 334.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.01747, allocations: 16.03 kB / 334.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008715/0.01834, allocations: 362.7 kB / 334.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/0.02093, allocations: 1.481 MB / 336 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.02241, allocations: 0.5031 MB / 336.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.02292, allocations: 241.6 kB / 336.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.22e-05/0.02297, allocations: 12 kB / 336.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004263/0.0234, allocations: 234.6 kB / 337 MB, free: 8.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.454e-06/0.0234, allocations: 0 / 337 MB, free: 8.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001582/0.02498, allocations: 0.6028 MB / 337.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001945/0.02517, allocations: 185.8 kB / 337.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003588/0.02553, allocations: 252 kB / 338 MB, free: 7.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.02559, allocations: 36.95 kB / 338.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.02579, allocations: 208.9 kB / 338.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.02592, allocations: 126.3 kB / 338.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.02609, allocations: 80.31 kB / 338.5 MB, free: 7.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.02629, allocations: 342 kB / 338.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.02661, allocations: 121.3 kB / 338.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/0.02708, allocations: 294.9 kB / 339.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007023/0.02778, allocations: 387.2 kB / 339.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.02778, allocations: 3.938 kB / 339.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008981/0.02868, allocations: 447.9 kB / 340 MB, free: 5.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.0287, allocations: 8 kB / 340 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.02872, allocations: 4 kB / 340 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.02874, allocations: 8 kB / 340.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.02915, allocations: 100.2 kB / 340.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.02916, allocations: 12 kB / 340.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.02942, allocations: 43.77 kB / 340.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.02946, allocations: 16 kB / 340.2 MB, free: 5.375 MB / 302.1 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.0002723/0.02974, allocations: 185.7 kB / 340.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004861/0.03022, allocations: 237.3 kB / 340.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000727/0.03095, allocations: 304.8 kB / 340.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/0.03097, allocations: 11.98 kB / 340.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.03098, allocations: 8.031 kB / 341 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.03099, allocations: 3.984 kB / 341 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.03245, allocations: 0.7168 MB / 341.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.03245, allocations: 0 / 341.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.03295, allocations: 103.9 kB / 341.8 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.03296, allocations: 7.984 kB / 341.8 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.03301, allocations: 12 kB / 341.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.03301, allocations: 4 kB / 341.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.03301, allocations: 11.95 kB / 341.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.03457, allocations: 0.8028 MB / 342.6 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.03463, allocations: 43.62 kB / 342.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.035e-05/0.0347, allocations: 16.06 kB / 342.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.03495, allocations: 15.98 kB / 342.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.03504, allocations: 27.95 kB / 342.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.03508, allocations: 16 kB / 342.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001886/0.03527, allocations: 173.2 kB / 342.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.03527, allocations: 0 / 342.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.03572, allocations: 107.7 kB / 343 MB, free: 2.508 MB / 302.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.0001935/0.03591, allocations: 121.8 kB / 343.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008571/0.03677, allocations: 375.5 kB / 343.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.03677, allocations: 0 / 343.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.03706, allocations: 128.3 kB / 343.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007337/0.03779, allocations: 179.1 kB / 343.8 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.03973, allocations: 0.9372 MB / 344.7 MB, free: 0.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.04, allocations: 240.2 kB / 345 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.04018, allocations: 38.95 kB / 345 MB, free: 464 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.04034, allocations: 36.5 kB / 345 MB, free: 428 kB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.04034, allocations: 0 / 345 MB, free: 428 kB / 302.1 MB Notification: Performance of Templates: time 0.01035/0.05069, allocations: 3.982 MB / 349 MB, free: 12.47 MB / 318.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: 4.418840650469065]