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.001365/0.001365, allocations: 107.6 kB / 21.18 MB, free: 0.6758 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.001577/0.001577, allocations: 206.1 kB / 24.48 MB, free: 3.973 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.494/1.494, allocations: 230.6 MB / 258.2 MB, free: 7.816 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.001563/0.001563, allocations: 51.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.267, allocations: 53.37 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005331/0.2724, allocations: 3.028 MB / 435.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.274, allocations: 0.7398 MB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/0.2743, allocations: 11.94 kB / 436.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003802/0.2747, allocations: 79.12 kB / 436.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.2749, allocations: 79.23 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007051/0.2756, allocations: 291.5 kB / 436.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006898/0.2763, allocations: 0.6167 MB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004323/0.2767, allocations: 249.8 kB / 437.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.277, allocations: 235.3 kB / 437.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000348/0.2773, allocations: 262.8 kB / 437.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.2774, allocations: 72 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.399e-05/0.2775, allocations: 72 kB / 438 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.2777, allocations: 147.6 kB / 438.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002293/0.2779, allocations: 223 kB / 438.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009424/0.2789, allocations: 0.8513 MB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2789, allocations: 0 / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2789, allocations: 3.938 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2789, allocations: 0 / 439.2 MB, free: 15.8 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.001452/0.2803, allocations: 0.7487 MB / 440 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.2804, allocations: 12.03 kB / 440 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.2805, allocations: 64.55 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.2811, allocations: 336.7 kB / 440.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.2812, allocations: 97.28 kB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.236e-05/0.2813, allocations: 52.33 kB / 440.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.2828, allocations: 0.9043 MB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.2829, allocations: 7.938 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.905e-05/0.2829, allocations: 16 kB / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.2829, allocations: 12 kB / 441.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007771/0.2837, allocations: 363 kB / 441.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.286, allocations: 1.482 MB / 443.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.2873, allocations: 0.499 MB / 443.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004566/0.2878, allocations: 231.8 kB / 444 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-05/0.2878, allocations: 16.22 kB / 444.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00039/0.2882, allocations: 236 kB / 444.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.735e-06/0.2882, allocations: 3.938 kB / 444.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001314/0.2895, allocations: 0.5962 MB / 444.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.2897, allocations: 186.6 kB / 445.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.2899, allocations: 249.8 kB / 445.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.29, allocations: 41.64 kB / 445.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.2901, allocations: 213.4 kB / 445.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.2903, allocations: 135.5 kB / 445.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.2904, allocations: 98.34 kB / 445.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2906, allocations: 346.8 kB / 446.1 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.2909, allocations: 161.5 kB / 446.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005369/0.2915, allocations: 429.4 kB / 446.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008598/0.2923, allocations: 0.5784 MB / 447.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.2923, allocations: 0 / 447.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001057/0.2934, allocations: 0.5873 MB / 447.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2934, allocations: 14.69 kB / 447.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.2934, allocations: 8 kB / 447.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.2935, allocations: 12 kB / 447.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.2939, allocations: 135.8 kB / 448 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.62e-05/0.294, allocations: 19.92 kB / 448.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.2943, allocations: 47.73 kB / 448.1 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.2943, allocations: 35.98 kB / 448.1 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.0003172/0.2946, allocations: 220.5 kB / 448.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004322/0.2951, allocations: 237.3 kB / 448.6 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006648/0.2957, allocations: 308.5 kB / 448.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2957, allocations: 4 kB / 448.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.2957, allocations: 4 kB / 448.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2958, allocations: 3.984 kB / 448.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.297, allocations: 0.7133 MB / 449.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.297, allocations: 4.031 kB / 449.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/0.2975, allocations: 103.9 kB / 449.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2975, allocations: 0 / 449.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.2975, allocations: 15.98 kB / 449.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2975, allocations: 4 kB / 449.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.2975, allocations: 8.016 kB / 449.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.299, allocations: 0.8185 MB / 450.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.2991, allocations: 35.7 kB / 450.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/0.2992, allocations: 24.05 kB / 450.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.2994, allocations: 19.98 kB / 450.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.173e-05/0.2995, allocations: 15.97 kB / 450.7 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.2995, allocations: 19.98 kB / 450.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.2997, allocations: 173.2 kB / 450.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2997, allocations: 0 / 450.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.3002, allocations: 115.7 kB / 451 MB, free: 3.418 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.0001791/0.3004, allocations: 129.1 kB / 451.1 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009251/0.3013, allocations: 444.8 kB / 451.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3013, allocations: 0 / 451.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.3016, allocations: 123.8 kB / 451.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006977/0.3023, allocations: 172.4 kB / 451.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001937/0.3042, allocations: 1.06 MB / 452.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.3045, allocations: 248.7 kB / 453.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.3046, allocations: 39.42 kB / 453.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3046, allocations: 0 / 453.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of Templates: time 0.009894/0.3145, allocations: 5.856 MB / 459 MB, free: 11.32 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/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_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: 7.363441638008226]