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.001553/0.001553, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001877/0.001877, allocations: 207.1 kB / 23.73 MB, free: 4.391 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.473/1.473, allocations: 230.5 MB / 257.4 MB, free: 7.773 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.003368/0.003368, allocations: 67.84 kB / 378.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3093, allocations: 53.41 MB / 431.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005144/0.3144, allocations: 3.028 MB / 434.6 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.3159, allocations: 0.7398 MB / 435.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.3161, allocations: 15.88 kB / 435.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.3165, allocations: 75.19 kB / 435.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.3166, allocations: 75.23 kB / 435.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006423/0.3173, allocations: 287.5 kB / 435.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006914/0.3179, allocations: 0.6206 MB / 436.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.3184, allocations: 225.9 kB / 436.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.3186, allocations: 243.2 kB / 436.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003497/0.319, allocations: 226.9 kB / 437.1 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.3191, allocations: 75.94 kB / 437.2 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.257e-05/0.3192, allocations: 75.94 kB / 437.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.3193, allocations: 139.7 kB / 437.4 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.3196, allocations: 227 kB / 437.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000954/0.3205, allocations: 0.8548 MB / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3205, allocations: 0 / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3205, allocations: 0 / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3205, allocations: 0 / 438.5 MB, free: 15.64 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.001432/0.322, allocations: 0.7488 MB / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.322, allocations: 11.98 kB / 439.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.3221, allocations: 60.56 kB / 439.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006564/0.3228, allocations: 344.6 kB / 439.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.3229, allocations: 97.27 kB / 439.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-05/0.323, allocations: 56.33 kB / 439.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.3246, allocations: 0.9004 MB / 440.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.3247, allocations: 7.922 kB / 440.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.989e-05/0.3247, allocations: 24 kB / 440.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.3247, allocations: 15.98 kB / 440.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007987/0.3255, allocations: 355 kB / 441.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.3279, allocations: 1.474 MB / 442.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.3293, allocations: 0.5041 MB / 443.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/0.3297, allocations: 238.8 kB / 443.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.3298, allocations: 12.22 kB / 443.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004101/0.3302, allocations: 239.9 kB / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.374e-06/0.3302, allocations: 0 / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001369/0.3316, allocations: 0.6042 MB / 444.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/0.3317, allocations: 182.2 kB / 444.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.332, allocations: 249.8 kB / 444.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.736e-05/0.3321, allocations: 37.7 kB / 444.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.3322, allocations: 209.6 kB / 444.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.3324, allocations: 142.9 kB / 445 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.3325, allocations: 110.3 kB / 445.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.3327, allocations: 346.8 kB / 445.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.3331, allocations: 153.2 kB / 445.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005661/0.3336, allocations: 432.8 kB / 446 MB, free: 7.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008934/0.3345, allocations: 0.5655 MB / 446.5 MB, free: 7.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.3345, allocations: 4 kB / 446.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001114/0.3356, allocations: 0.5985 MB / 447.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3357, allocations: 8 kB / 447.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.3357, allocations: 8 kB / 447.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.682e-05/0.3357, allocations: 12 kB / 447.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/0.3362, allocations: 127.8 kB / 447.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.093e-05/0.3362, allocations: 16.38 kB / 447.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.3365, allocations: 59.72 kB / 447.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.912e-05/0.3365, allocations: 31.98 kB / 447.4 MB, free: 6.156 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.0002832/0.3368, allocations: 220.5 kB / 447.6 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004166/0.3372, allocations: 241.3 kB / 447.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006527/0.3379, allocations: 296.5 kB / 448.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3379, allocations: 8 kB / 448.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3379, allocations: 4.031 kB / 448.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.3379, allocations: 3.984 kB / 448.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.3391, allocations: 0.7214 MB / 448.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.3391, allocations: 4 kB / 448.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000492/0.3396, allocations: 103.8 kB / 449 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.3396, allocations: 4 kB / 449 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/0.3397, allocations: 15.98 kB / 449 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3397, allocations: 4 kB / 449 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3397, allocations: 4 kB / 449 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.3411, allocations: 0.8066 MB / 449.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/0.3412, allocations: 39.77 kB / 449.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.507e-05/0.3412, allocations: 19.92 kB / 449.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.3415, allocations: 27.92 kB / 449.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.3415, allocations: 19.97 kB / 449.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.3416, allocations: 19.98 kB / 449.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.3418, allocations: 173.2 kB / 450.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3418, allocations: 0 / 450.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005112/0.3423, allocations: 115.7 kB / 450.2 MB, free: 3.242 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.0001757/0.3424, allocations: 117.2 kB / 450.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008866/0.3433, allocations: 443.4 kB / 450.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3433, allocations: 0 / 450.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.3436, allocations: 137.2 kB / 450.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006917/0.3443, allocations: 164.5 kB / 451.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.3462, allocations: 1.034 MB / 452.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.3464, allocations: 240.7 kB / 452.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001903/0.3466, allocations: 47.27 kB / 452.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3467, allocations: 43.42 kB / 452.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3467, allocations: 0 / 452.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of Templates: time 0.01033/0.3571, allocations: 4.691 MB / 457.1 MB, free: 12.34 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: 4.709536297246814]