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.001791/0.001791, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.00227/0.00227, allocations: 214.8 kB / 24.48 MB, free: 3.836 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.434/1.434, allocations: 230.5 MB / 258.1 MB, free: 7.805 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.001896/0.001896, allocations: 72.12 kB / 379 MB, free: 2.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2414, allocations: 53.41 MB / 432.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005405/0.2468, allocations: 3.031 MB / 435.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.2485, allocations: 0.7359 MB / 436.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000415/0.2489, allocations: 15.88 kB / 436.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004263/0.2494, allocations: 75.17 kB / 436.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002945/0.2497, allocations: 75.25 kB / 436.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007895/0.2504, allocations: 287.5 kB / 436.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007598/0.2512, allocations: 0.6206 MB / 437.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005518/0.2518, allocations: 229.1 kB / 437.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.2521, allocations: 239.2 kB / 437.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004648/0.2526, allocations: 226.9 kB / 437.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.2528, allocations: 75.94 kB / 438 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.2529, allocations: 72 kB / 438 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002303/0.2531, allocations: 147.5 kB / 438.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000292/0.2534, allocations: 219 kB / 438.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.2548, allocations: 0.8636 MB / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2548, allocations: 0 / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2548, allocations: 0 / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.2549, allocations: 0 / 439.2 MB, free: 15.66 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.002175/0.257, allocations: 0.7488 MB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.2571, allocations: 11.98 kB / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.2573, allocations: 64.5 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009001/0.2582, allocations: 332.7 kB / 440.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.2583, allocations: 97.28 kB / 440.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.2584, allocations: 52.33 kB / 440.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00243/0.2609, allocations: 0.9082 MB / 441.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.864e-05/0.2609, allocations: 7.938 kB / 441.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-05/0.261, allocations: 20 kB / 441.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.261, allocations: 12 kB / 441.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.2622, allocations: 359 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003181/0.2654, allocations: 1.482 MB / 443.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.2673, allocations: 0.5055 MB / 443.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.2679, allocations: 236.5 kB / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.459e-05/0.268, allocations: 8.234 kB / 444.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005734/0.2686, allocations: 235.9 kB / 444.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.166e-06/0.2686, allocations: 4 kB / 444.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001989/0.2706, allocations: 0.6042 MB / 444.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001753/0.2707, allocations: 182.2 kB / 445.1 MB, free: 9.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000412/0.2711, allocations: 249.8 kB / 445.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.2712, allocations: 33.7 kB / 445.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.2714, allocations: 213.4 kB / 445.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.2716, allocations: 135.7 kB / 445.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002488/0.2718, allocations: 110.3 kB / 445.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002467/0.2721, allocations: 350.8 kB / 446.2 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/0.2726, allocations: 157.2 kB / 446.3 MB, free: 8.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008343/0.2734, allocations: 432.8 kB / 446.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2745, allocations: 0.5655 MB / 447.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.2745, allocations: 4 kB / 447.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001798/0.2763, allocations: 0.5947 MB / 447.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.184e-05/0.2764, allocations: 11.98 kB / 447.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.2764, allocations: 8 kB / 447.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.575e-05/0.2764, allocations: 12 kB / 447.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007376/0.2772, allocations: 127.8 kB / 448 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.45e-05/0.2772, allocations: 15.94 kB / 448.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003702/0.2776, allocations: 52.09 kB / 448.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-05/0.2776, allocations: 36 kB / 448.1 MB, free: 6.176 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.0005039/0.2782, allocations: 224.5 kB / 448.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006138/0.2788, allocations: 237.3 kB / 448.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009925/0.2798, allocations: 300.5 kB / 448.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/0.2798, allocations: 8 kB / 448.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.2798, allocations: 0 / 448.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.2798, allocations: 4.016 kB / 448.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.2816, allocations: 0.7253 MB / 449.6 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/0.2816, allocations: 4 kB / 449.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/0.2823, allocations: 103.8 kB / 449.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.2823, allocations: 4 kB / 449.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.789e-05/0.2823, allocations: 12 kB / 449.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/0.2823, allocations: 7.984 kB / 449.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2823, allocations: 0 / 449.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.2844, allocations: 0.8105 MB / 450.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.193e-05/0.2845, allocations: 43.7 kB / 450.6 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.953e-05/0.2846, allocations: 12 kB / 450.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.2849, allocations: 23.98 kB / 450.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.2851, allocations: 27.89 kB / 450.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.2851, allocations: 16 kB / 450.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002686/0.2854, allocations: 173.2 kB / 450.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2854, allocations: 4 kB / 450.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000856/0.2862, allocations: 115.7 kB / 451 MB, free: 3.258 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.0002197/0.2865, allocations: 117.2 kB / 451.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.2878, allocations: 443.5 kB / 451.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.2878, allocations: 0 / 451.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.2882, allocations: 129.2 kB / 451.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.2892, allocations: 179.6 kB / 451.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.2919, allocations: 1.071 MB / 452.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.2922, allocations: 240.7 kB / 453.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.2925, allocations: 43.42 kB / 453.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.2925, allocations: 0 / 453.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of Templates: time 0.01467/0.3071, allocations: 5.841 MB / 459 MB, free: 11.16 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/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: 7.2354330606758595]