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.00129/0.00129, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001413/0.001413, allocations: 217.7 kB / 24.5 MB, free: 4.133 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.572/1.572, allocations: 230.5 MB / 258.1 MB, free: 7.992 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.001912/0.001912, allocations: 59.91 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.264, allocations: 53.41 MB / 432.4 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005658/0.2697, allocations: 3.256 MB / 435.7 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.2716, allocations: 0.7671 MB / 436.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003885/0.272, allocations: 15.88 kB / 436.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004147/0.2724, allocations: 71.19 kB / 436.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.2726, allocations: 83.23 kB / 436.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007959/0.2734, allocations: 291.5 kB / 436.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007363/0.2741, allocations: 0.6205 MB / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004328/0.2746, allocations: 238.2 kB / 437.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.2749, allocations: 243.2 kB / 438 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003877/0.2753, allocations: 266.8 kB / 438.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.2754, allocations: 72 kB / 438.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.644e-05/0.2755, allocations: 72 kB / 438.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.2757, allocations: 143.6 kB / 438.5 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.2759, allocations: 278.7 kB / 438.8 MB, free: 360 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.277, allocations: 0.8495 MB / 439.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.277, allocations: 4 kB / 439.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.277, allocations: 0 / 439.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.277, allocations: 3.938 kB / 439.7 MB, free: 15.5 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.001575/0.2786, allocations: 0.7449 MB / 440.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2787, allocations: 8.031 kB / 440.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2788, allocations: 64.56 kB / 440.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006517/0.2795, allocations: 336.7 kB / 440.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.2796, allocations: 93.28 kB / 440.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.543e-05/0.2797, allocations: 60.33 kB / 441 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.2814, allocations: 0.8753 MB / 441.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.2814, allocations: 3.938 kB / 441.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.543e-05/0.2815, allocations: 20 kB / 441.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.2815, allocations: 16 kB / 441.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000844/0.2823, allocations: 359 kB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.285, allocations: 1.672 MB / 443.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.2865, allocations: 0.5113 MB / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004826/0.2869, allocations: 240.4 kB / 444.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.287, allocations: 8.234 kB / 444.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004084/0.2874, allocations: 210.3 kB / 444.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.114e-06/0.2874, allocations: 0 / 444.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001415/0.2888, allocations: 0.608 MB / 445.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.289, allocations: 178.5 kB / 445.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003331/0.2893, allocations: 261.8 kB / 445.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.922e-05/0.2893, allocations: 33.7 kB / 445.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.2895, allocations: 221.3 kB / 446.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.2897, allocations: 131 kB / 446.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.2899, allocations: 98.34 kB / 446.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.29, allocations: 346.8 kB / 446.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.2904, allocations: 157.2 kB / 446.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005643/0.2909, allocations: 403 kB / 447.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008955/0.2918, allocations: 0.5657 MB / 447.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.2918, allocations: 4 kB / 447.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001121/0.293, allocations: 0.61 MB / 448.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.293, allocations: 8 kB / 448.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.293, allocations: 8 kB / 448.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.228e-05/0.293, allocations: 12 kB / 448.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005148/0.2936, allocations: 131.8 kB / 448.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/0.2936, allocations: 16.53 kB / 448.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.2939, allocations: 59.66 kB / 448.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.2939, allocations: 35.92 kB / 448.7 MB, free: 5.887 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.0003453/0.2943, allocations: 216.5 kB / 448.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004281/0.2947, allocations: 233.3 kB / 449.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006771/0.2954, allocations: 300.5 kB / 449.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.2954, allocations: 15.97 kB / 449.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2954, allocations: 0 / 449.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.2954, allocations: 3.984 kB / 449.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.2968, allocations: 0.8573 MB / 450.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.2968, allocations: 0 / 450.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/0.2973, allocations: 107.8 kB / 450.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.2974, allocations: 8 kB / 450.4 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.2974, allocations: 12 kB / 450.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.158e-06/0.2974, allocations: 7.984 kB / 450.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2974, allocations: 0 / 450.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.2989, allocations: 0.8144 MB / 451.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.299, allocations: 43.59 kB / 451.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.641e-05/0.299, allocations: 20.06 kB / 451.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.2993, allocations: 15.98 kB / 451.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.123e-05/0.2994, allocations: 24 kB / 451.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/0.2994, allocations: 23.97 kB / 451.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002337/0.2996, allocations: 185.2 kB / 451.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2996, allocations: 4 kB / 451.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005704/0.3002, allocations: 107.8 kB / 451.7 MB, free: 2.816 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.0001939/0.3004, allocations: 113.2 kB / 451.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009989/0.3014, allocations: 447.4 kB / 452.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3014, allocations: 0 / 452.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002806/0.3017, allocations: 133.2 kB / 452.3 MB, free: 2.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000723/0.3024, allocations: 160.5 kB / 452.5 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.3045, allocations: 1.067 MB / 453.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005212/0.305, allocations: 0.8398 MB / 454.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.3051, allocations: 39.38 kB / 454.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3051, allocations: 4 kB / 454.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of Templates: time 0.009991/0.3151, allocations: 5.738 MB / 460.2 MB, free: 10.23 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.930735456990078]