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.001356/0.001356, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001475/0.001475, allocations: 201.2 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002268/0.002268, allocations: 51.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3586, allocations: 53.35 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005269/0.3638, allocations: 3.031 MB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.3654, allocations: 0.7437 MB / 435.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.3656, allocations: 11.94 kB / 435.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.3659, allocations: 75.12 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.3661, allocations: 79.23 kB / 435.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006454/0.3667, allocations: 295.5 kB / 435.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006678/0.3674, allocations: 0.6206 MB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.3678, allocations: 236.8 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.3681, allocations: 239.2 kB / 436.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003733/0.3685, allocations: 258.9 kB / 437.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.273e-05/0.3685, allocations: 72 kB / 437.2 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.415e-05/0.3686, allocations: 79.88 kB / 437.3 MB, free: 1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.3688, allocations: 139.7 kB / 437.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.369, allocations: 223 kB / 437.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009143/0.37, allocations: 0.8597 MB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.37, allocations: 0 / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.37, allocations: 0 / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.37, allocations: 0 / 438.5 MB, free: 15.79 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.001521/0.3715, allocations: 0.7449 MB / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3715, allocations: 8.031 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.3717, allocations: 60.56 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006195/0.3723, allocations: 348.5 kB / 439.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.3724, allocations: 93.28 kB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.431e-05/0.3725, allocations: 56.33 kB / 439.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.3741, allocations: 0.9082 MB / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.3742, allocations: 3.938 kB / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.329e-05/0.3742, allocations: 20 kB / 440.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.3742, allocations: 12 kB / 440.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008014/0.375, allocations: 359 kB / 441.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.3774, allocations: 1.47 MB / 442.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.3789, allocations: 0.5134 MB / 443.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.3794, allocations: 235.8 kB / 443.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.3794, allocations: 12.17 kB / 443.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004116/0.3798, allocations: 236 kB / 443.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.304e-06/0.3798, allocations: 0 / 443.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001405/0.3812, allocations: 0.6081 MB / 444.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/0.3814, allocations: 186.6 kB / 444.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002847/0.3817, allocations: 245.8 kB / 444.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/0.3817, allocations: 37.7 kB / 444.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3819, allocations: 213.4 kB / 444.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.382, allocations: 134.9 kB / 444.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.3822, allocations: 106.3 kB / 445 MB, free: 8.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.3824, allocations: 346.8 kB / 445.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.3827, allocations: 153.2 kB / 445.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/0.3833, allocations: 433.4 kB / 446 MB, free: 7.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009337/0.3843, allocations: 0.5824 MB / 446.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.3843, allocations: 4 kB / 446.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001136/0.3854, allocations: 0.5873 MB / 447.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3854, allocations: 8.156 kB / 447.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.3855, allocations: 15.98 kB / 447.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.519e-05/0.3855, allocations: 12 kB / 447.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/0.386, allocations: 131.8 kB / 447.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/0.386, allocations: 15.94 kB / 447.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.3863, allocations: 51.72 kB / 447.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.3864, allocations: 28 kB / 447.4 MB, free: 6.309 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.0003398/0.3867, allocations: 216.5 kB / 447.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.3872, allocations: 241.3 kB / 447.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006836/0.3879, allocations: 304.5 kB / 448.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.3879, allocations: 8 kB / 448.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3879, allocations: 4 kB / 448.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3879, allocations: 0 / 448.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.3891, allocations: 0.7134 MB / 448.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3891, allocations: 3.938 kB / 448.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005187/0.3896, allocations: 107.9 kB / 449 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.3896, allocations: 4 kB / 449 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.252e-05/0.3897, allocations: 12 kB / 449 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.3897, allocations: 7.984 kB / 449 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3897, allocations: 0 / 449 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.3911, allocations: 0.8185 MB / 449.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.3912, allocations: 39.7 kB / 449.8 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.731e-05/0.3913, allocations: 20 kB / 449.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.3915, allocations: 23.92 kB / 449.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.357e-05/0.3916, allocations: 27.95 kB / 449.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.3916, allocations: 12 kB / 449.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.3918, allocations: 177.2 kB / 450.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3918, allocations: 0 / 450.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005151/0.3924, allocations: 111.7 kB / 450.2 MB, free: 3.395 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.0001699/0.3925, allocations: 125.1 kB / 450.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009442/0.3935, allocations: 436.7 kB / 450.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.3935, allocations: 4.25 kB / 450.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000279/0.3937, allocations: 127.8 kB / 450.9 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007154/0.3945, allocations: 170.5 kB / 451.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.3964, allocations: 1.031 MB / 452.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.3967, allocations: 244.7 kB / 452.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.3969, allocations: 43.27 kB / 452.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.397, allocations: 39.42 kB / 452.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.397, allocations: 4 kB / 452.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of Templates: time 0.01066/0.4077, allocations: 4.867 MB / 457.3 MB, free: 12.32 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.801913055591285]