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.001729/0.001729, allocations: 115.8 kB / 19.18 MB, free: 3.762 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.002071/0.002071, allocations: 208.9 kB / 22.13 MB, free: 0.8125 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.537/1.537, allocations: 230.2 MB / 255.1 MB, free: 15.22 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.001875/0.001875, allocations: 63.89 kB / 374.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1102, allocations: 53.32 MB / 427.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005223/0.1154, allocations: 3.224 MB / 431 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.117, allocations: 0.7632 MB / 431.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.1173, allocations: 11.94 kB / 431.8 MB, free: 492 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003837/0.1177, allocations: 79.12 kB / 431.9 MB, free: 412 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.1179, allocations: 75.25 kB / 432 MB, free: 336 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000725/0.1186, allocations: 283.6 kB / 432.2 MB, free: 52 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2278/0.3464, allocations: 0.6129 MB / 432.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004807/0.3469, allocations: 240.7 kB / 433.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.3472, allocations: 233.7 kB / 433.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.3476, allocations: 262 kB / 433.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.3478, allocations: 73.98 kB / 433.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.3479, allocations: 72.41 kB / 433.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.348, allocations: 143.2 kB / 433.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.3483, allocations: 285.3 kB / 434.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007993/0.3491, allocations: 0.8427 MB / 435 MB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3491, allocations: 0.7969 kB / 435 MB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3491, allocations: 0 / 435 MB, free: 7.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.3491, allocations: 1.094 kB / 435 MB, free: 7.887 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.001462/0.3506, allocations: 0.828 MB / 435.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3506, allocations: 8.719 kB / 435.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.3507, allocations: 62.61 kB / 435.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006762/0.3514, allocations: 395.1 kB / 436.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.042e-05/0.3515, allocations: 70.02 kB / 436.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.3516, allocations: 56.3 kB / 436.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/0.3533, allocations: 0.8726 MB / 437.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.3533, allocations: 6.891 kB / 437.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.3534, allocations: 19.78 kB / 437.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.3534, allocations: 15.75 kB / 437.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008578/0.3543, allocations: 358.8 kB / 437.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.3568, allocations: 1.746 MB / 439.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.3581, allocations: 0.5062 MB / 439.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004737/0.3586, allocations: 233.1 kB / 440.1 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.475e-05/0.3587, allocations: 16.08 kB / 440.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004096/0.3591, allocations: 218.6 kB / 440.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.958e-06/0.3591, allocations: 0 / 440.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001414/0.3605, allocations: 0.6036 MB / 441 MB, free: 4.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.3606, allocations: 179.5 kB / 441.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.3609, allocations: 261.8 kB / 441.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.116e-05/0.3609, allocations: 36.48 kB / 441.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.3611, allocations: 214.7 kB / 441.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.3612, allocations: 135 kB / 441.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.3613, allocations: 107 kB / 441.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.73e-05/0.3614, allocations: 348.1 kB / 442.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/0.3618, allocations: 155.6 kB / 442.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.3623, allocations: 403.9 kB / 442.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007708/0.363, allocations: 0.5695 MB / 443.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.363, allocations: 2.281 kB / 443.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001262/0.3643, allocations: 0.6026 MB / 443.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.3643, allocations: 9.281 kB / 443.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.3643, allocations: 13.03 kB / 444 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.607e-05/0.3644, allocations: 11.69 kB / 444 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000521/0.3649, allocations: 130.8 kB / 444.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.415e-05/0.3649, allocations: 17.02 kB / 444.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.3652, allocations: 56 kB / 444.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.3653, allocations: 28.97 kB / 444.2 MB, free: 2.66 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.0003502/0.3657, allocations: 213.7 kB / 444.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/0.3661, allocations: 231.9 kB / 444.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006797/0.3668, allocations: 305.3 kB / 444.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.3668, allocations: 6.5 kB / 444.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3668, allocations: 2.609 kB / 444.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.3668, allocations: 3.594 kB / 444.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.3681, allocations: 0.898 MB / 445.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3681, allocations: 1.922 kB / 445.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005109/0.3686, allocations: 101.2 kB / 445.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.3686, allocations: 2.562 kB / 445.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.48e-05/0.3687, allocations: 15.47 kB / 446 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.3687, allocations: 7.469 kB / 446 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3687, allocations: 2.031 kB / 446 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.3701, allocations: 0.8068 MB / 446.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.876e-05/0.3702, allocations: 126.2 kB / 446.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.809e-05/0.3703, allocations: 14.11 kB / 446.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.3705, allocations: 25.7 kB / 446.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.828e-05/0.3706, allocations: 24.44 kB / 447 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.929e-05/0.3706, allocations: 18.94 kB / 447 MB, free: 1.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001885/0.3708, allocations: 185 kB / 447.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3708, allocations: 0 / 447.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005813/0.3714, allocations: 109.5 kB / 447.3 MB, free: 0.9102 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.0001541/0.3716, allocations: 127.2 kB / 447.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009966/0.3726, allocations: 444.8 kB / 447.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3726, allocations: 4.188 kB / 447.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.3729, allocations: 127.9 kB / 448 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000725/0.3736, allocations: 167.6 kB / 448.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.3755, allocations: 1.059 MB / 449.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006045/0.3761, allocations: 0.8454 MB / 450 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.3762, allocations: 45.23 kB / 450.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3762, allocations: 1.031 kB / 450.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of Templates: time 0.01209/0.3883, allocations: 5.739 MB / 455.8 MB, free: 13.73 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/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_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: 7.812307700980455]