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.001377/0.001377, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001541/0.001541, allocations: 208.1 kB / 23.73 MB, free: 4.387 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.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.00162/0.00162, allocations: 51.92 kB / 378.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3158, allocations: 53.37 MB / 431.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.009169/0.325, allocations: 3.02 MB / 434.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.3279, allocations: 0.7437 MB / 435.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005771/0.3285, allocations: 23.88 kB / 435.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005244/0.329, allocations: 75.17 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004377/0.3294, allocations: 71.27 kB / 435.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.3307, allocations: 291.5 kB / 435.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.332, allocations: 0.6167 MB / 436.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007335/0.3328, allocations: 226.2 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004752/0.3332, allocations: 239.2 kB / 436.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006479/0.3339, allocations: 226.9 kB / 437.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.3341, allocations: 72 kB / 437.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.3342, allocations: 72 kB / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002815/0.3345, allocations: 147.6 kB / 437.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004633/0.335, allocations: 223 kB / 437.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001595/0.3366, allocations: 0.8612 MB / 438.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3366, allocations: 0 / 438.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3366, allocations: 0 / 438.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.48e-05/0.3366, allocations: 0 / 438.4 MB, free: 15.87 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.002642/0.3393, allocations: 0.7527 MB / 439.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.3393, allocations: 12.03 kB / 439.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.3395, allocations: 60.56 kB / 439.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.3406, allocations: 328.7 kB / 439.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.3408, allocations: 97.28 kB / 439.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/0.341, allocations: 60.33 kB / 439.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0029/0.3439, allocations: 0.9042 MB / 440.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.139e-05/0.3439, allocations: 7.875 kB / 440.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.308e-05/0.344, allocations: 20 kB / 440.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.344, allocations: 12 kB / 440.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.3455, allocations: 359 kB / 441 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004325/0.3498, allocations: 1.478 MB / 442.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.3513, allocations: 0.5068 MB / 443 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.3517, allocations: 225.4 kB / 443.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.879e-05/0.3518, allocations: 16.22 kB / 443.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004362/0.3522, allocations: 243.9 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.136e-06/0.3522, allocations: 0 / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001403/0.3536, allocations: 0.5962 MB / 444.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.3538, allocations: 186.6 kB / 444.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.3541, allocations: 245.8 kB / 444.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.502e-05/0.3541, allocations: 37.95 kB / 444.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.3543, allocations: 217.4 kB / 444.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3544, allocations: 135.5 kB / 444.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.3546, allocations: 102.3 kB / 445 MB, free: 8.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.3548, allocations: 350.8 kB / 445.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.3552, allocations: 149.2 kB / 445.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005974/0.3558, allocations: 433.4 kB / 445.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009115/0.3567, allocations: 0.5691 MB / 446.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3567, allocations: 4 kB / 446.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001137/0.3578, allocations: 0.5907 MB / 447.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3578, allocations: 15.94 kB / 447.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.3578, allocations: 8 kB / 447.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-05/0.3579, allocations: 12 kB / 447.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005338/0.3584, allocations: 128.3 kB / 447.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.133e-05/0.3584, allocations: 19.92 kB / 447.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.3587, allocations: 59.72 kB / 447.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.895e-05/0.3588, allocations: 28 kB / 447.3 MB, free: 6.398 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.0003014/0.3591, allocations: 220.6 kB / 447.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004291/0.3595, allocations: 241.2 kB / 447.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006503/0.3602, allocations: 300.5 kB / 448.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.3602, allocations: 7.938 kB / 448.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3602, allocations: 8.031 kB / 448.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3602, allocations: 3.984 kB / 448.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.3615, allocations: 0.7133 MB / 448.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3615, allocations: 0 / 448.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004935/0.362, allocations: 103.9 kB / 448.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.362, allocations: 0 / 448.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.085e-05/0.362, allocations: 23.92 kB / 448.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.362, allocations: 0 / 448.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.362, allocations: 8 kB / 448.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.3635, allocations: 0.8107 MB / 449.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-05/0.3635, allocations: 43.69 kB / 449.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.865e-05/0.3636, allocations: 16.06 kB / 449.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.3638, allocations: 15.98 kB / 449.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.428e-05/0.3639, allocations: 23.91 kB / 449.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.506e-05/0.3639, allocations: 23.98 kB / 449.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001959/0.3641, allocations: 173.2 kB / 450 MB, free: 3.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3641, allocations: 0 / 450 MB, free: 3.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005038/0.3646, allocations: 115.7 kB / 450.2 MB, free: 3.484 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.0001506/0.3648, allocations: 125.2 kB / 450.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009225/0.3657, allocations: 447.2 kB / 450.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3657, allocations: 0 / 450.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.366, allocations: 121.5 kB / 450.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006969/0.3667, allocations: 182.5 kB / 451 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.3686, allocations: 1.03 MB / 452 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.3688, allocations: 240.7 kB / 452.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000209/0.369, allocations: 43.28 kB / 452.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.3692, allocations: 39.42 kB / 452.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3692, allocations: 0 / 452.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of Templates: time 0.01408/0.3832, allocations: 4.705 MB / 457.1 MB, free: 12.57 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.7686302196234465]