Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00164/0.00164, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.001804/0.001804, allocations: 202.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.488/1.488, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 71.83 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.35, allocations: 53.32 MB / 432 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.006779/0.3567, allocations: 3.264 MB / 435.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.359, allocations: 0.7516 MB / 436 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003353/0.3593, allocations: 15.94 kB / 436.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004837/0.3598, allocations: 71.19 kB / 436.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.36, allocations: 79.23 kB / 436.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008504/0.3608, allocations: 291.5 kB / 436.5 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007771/0.3616, allocations: 0.6089 MB / 437.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005466/0.3621, allocations: 237.8 kB / 437.3 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003273/0.3625, allocations: 239.2 kB / 437.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000494/0.363, allocations: 262.8 kB / 437.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.3631, allocations: 72 kB / 437.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.3632, allocations: 72 kB / 438 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.3634, allocations: 143.6 kB / 438.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003326/0.3637, allocations: 282.6 kB / 438.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.3649, allocations: 0.846 MB / 439.2 MB, free: 172 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3649, allocations: 0 / 439.2 MB, free: 172 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3649, allocations: 0 / 439.2 MB, free: 172 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.365, allocations: 0 / 439.2 MB, free: 172 kB / 334.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.001706/0.3667, allocations: 0.8318 MB / 440.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3667, allocations: 12.03 kB / 440.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.3668, allocations: 60.56 kB / 440.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/0.3675, allocations: 386.6 kB / 440.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.3676, allocations: 79.56 kB / 440.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.3677, allocations: 60.25 kB / 440.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.3695, allocations: 0.8792 MB / 441.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.3695, allocations: 7.938 kB / 441.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.98e-05/0.3696, allocations: 16 kB / 441.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.3696, allocations: 15.98 kB / 441.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008609/0.3705, allocations: 355 kB / 441.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.3732, allocations: 1.748 MB / 443.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.3747, allocations: 0.5068 MB / 444.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004967/0.3752, allocations: 239.7 kB / 444.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.661e-05/0.3752, allocations: 12.77 kB / 444.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.3756, allocations: 210.7 kB / 444.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.445e-06/0.3756, allocations: 0 / 444.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001417/0.3771, allocations: 0.6081 MB / 445.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.3772, allocations: 178.5 kB / 445.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.3775, allocations: 258.7 kB / 445.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.396e-05/0.3776, allocations: 37.7 kB / 445.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.3778, allocations: 209.4 kB / 445.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.3779, allocations: 134.9 kB / 446 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.3781, allocations: 102.3 kB / 446.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.3783, allocations: 350.8 kB / 446.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.3787, allocations: 153.2 kB / 446.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005858/0.3792, allocations: 407.7 kB / 447 MB, free: 7.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009595/0.3802, allocations: 0.569 MB / 447.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.3802, allocations: 4 kB / 447.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001142/0.3813, allocations: 0.6022 MB / 448.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.3814, allocations: 8 kB / 448.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.3814, allocations: 8 kB / 448.2 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.304e-05/0.3814, allocations: 12 kB / 448.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.3819, allocations: 128.4 kB / 448.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.251e-05/0.3819, allocations: 19.94 kB / 448.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003341/0.3823, allocations: 59.66 kB / 448.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/0.3823, allocations: 35.92 kB / 448.5 MB, free: 6.328 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.0003426/0.3827, allocations: 217.2 kB / 448.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/0.3831, allocations: 229.3 kB / 448.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007007/0.3838, allocations: 304.5 kB / 449.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.3839, allocations: 12 kB / 449.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3839, allocations: 3.938 kB / 449.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.3839, allocations: 7.984 kB / 449.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.3854, allocations: 0.8855 MB / 450.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3854, allocations: 0 / 450.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005011/0.3859, allocations: 103.9 kB / 450.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.3859, allocations: 4 kB / 450.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-05/0.3859, allocations: 19.92 kB / 450.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.3859, allocations: 4 kB / 450.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3859, allocations: 0 / 450.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.3875, allocations: 0.8124 MB / 451 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.3876, allocations: 124.8 kB / 451.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.286e-05/0.3877, allocations: 15.98 kB / 451.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.3879, allocations: 19.98 kB / 451.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.388, allocations: 23.92 kB / 451.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.3881, allocations: 23.98 kB / 451.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.3883, allocations: 177.9 kB / 451.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3883, allocations: 0 / 451.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.3888, allocations: 115.8 kB / 451.5 MB, free: 3.137 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.0002072/0.389, allocations: 121.4 kB / 451.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.39, allocations: 449.4 kB / 452.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.39, allocations: 0 / 452.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.3903, allocations: 119.9 kB / 452.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008804/0.3912, allocations: 175.5 kB / 452.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.3935, allocations: 1.073 MB / 453.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006798/0.3942, allocations: 0.8436 MB / 454.3 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.3944, allocations: 47.42 kB / 454.3 MB, free: 252 kB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3944, allocations: 0 / 454.3 MB, free: 252 kB / 350.1 MB Notification: Performance of Templates: time 0.01145/0.4058, allocations: 5.727 MB / 460.1 MB, free: 10.52 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.129057948011905]