Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 112.2 kB / 19.04 MB, free: 3.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 196.4 kB / 22.22 MB, free: 48 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 51.91 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2546, allocations: 52.14 MB / 420.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005306/0.2599, allocations: 3.26 MB / 424.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.2616, allocations: 0.7593 MB / 424.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003594/0.262, allocations: 11.94 kB / 424.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004097/0.2624, allocations: 75.12 kB / 424.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.2626, allocations: 79.25 kB / 425 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007224/0.2633, allocations: 291.5 kB / 425.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000675/0.264, allocations: 0.6206 MB / 425.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.2644, allocations: 237.8 kB / 426.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.2646, allocations: 231.2 kB / 426.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003528/0.265, allocations: 262.8 kB / 426.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.879e-05/0.2651, allocations: 76 kB / 426.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.604e-05/0.2652, allocations: 72 kB / 426.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.2653, allocations: 147.6 kB / 426.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.2656, allocations: 274.7 kB / 427.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009228/0.2665, allocations: 0.8534 MB / 428.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2665, allocations: 4 kB / 428.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2665, allocations: 0 / 428.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.2665, allocations: 0 / 428.1 MB, free: 7.855 MB / 334.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.001576/0.2681, allocations: 0.8318 MB / 428.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2682, allocations: 8.031 kB / 428.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2683, allocations: 56.61 kB / 428.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006692/0.269, allocations: 406.5 kB / 429.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.443e-05/0.2691, allocations: 67.58 kB / 429.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.2692, allocations: 48.38 kB / 429.5 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.2708, allocations: 0.8716 MB / 430.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.2709, allocations: 3.938 kB / 430.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-05/0.2709, allocations: 20 kB / 430.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.2709, allocations: 12 kB / 430.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008385/0.2718, allocations: 363 kB / 430.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.2743, allocations: 1.736 MB / 432.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.2757, allocations: 0.5069 MB / 433 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004719/0.2762, allocations: 243.1 kB / 433.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.2762, allocations: 20.5 kB / 433.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.2766, allocations: 201.9 kB / 433.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.204e-06/0.2766, allocations: 7.938 kB / 433.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001314/0.2779, allocations: 0.5962 MB / 434 MB, free: 1.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.2781, allocations: 182.6 kB / 434.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.2784, allocations: 262.9 kB / 434.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.2784, allocations: 37.7 kB / 434.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.2786, allocations: 221.3 kB / 434.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.2788, allocations: 123 kB / 434.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.2789, allocations: 106.3 kB / 434.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.2791, allocations: 346.8 kB / 435.3 MB, free: 264 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.2795, allocations: 157.2 kB / 435.4 MB, free: 108 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.2801, allocations: 406.9 kB / 435.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008885/0.2809, allocations: 0.5657 MB / 436.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.2809, allocations: 8 kB / 436.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001102/0.2821, allocations: 0.5936 MB / 437 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.2821, allocations: 8 kB / 437 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.2821, allocations: 8 kB / 437 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.972e-05/0.2821, allocations: 12 kB / 437 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005114/0.2826, allocations: 135.8 kB / 437.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.2827, allocations: 19.92 kB / 437.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.283, allocations: 63.98 kB / 437.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/0.283, allocations: 28 kB / 437.3 MB, free: 14.03 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.0003541/0.2834, allocations: 220.4 kB / 437.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004449/0.2838, allocations: 233.4 kB / 437.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000665/0.2845, allocations: 304.4 kB / 438 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.2845, allocations: 8 kB / 438 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2845, allocations: 8.016 kB / 438 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.2845, allocations: 4 kB / 438 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.2858, allocations: 0.8774 MB / 438.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.2859, allocations: 11.92 kB / 438.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005117/0.2864, allocations: 99.88 kB / 439 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.2864, allocations: 4 kB / 439 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.313e-05/0.2864, allocations: 16 kB / 439 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.2864, allocations: 7.938 kB / 439 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2864, allocations: 0 / 439 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.2879, allocations: 0.8165 MB / 439.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.288, allocations: 124.8 kB / 440 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.791e-05/0.2881, allocations: 16 kB / 440 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.2883, allocations: 20.11 kB / 440 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.2884, allocations: 23.97 kB / 440 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.2884, allocations: 19.98 kB / 440.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001966/0.2886, allocations: 181.9 kB / 440.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2886, allocations: 4 kB / 440.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005037/0.2891, allocations: 111.8 kB / 440.3 MB, free: 10.83 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.0001739/0.2893, allocations: 125.4 kB / 440.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009486/0.2903, allocations: 440.2 kB / 440.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2903, allocations: 0 / 440.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.2905, allocations: 133.2 kB / 441 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.2912, allocations: 175.3 kB / 441.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.2931, allocations: 1.037 MB / 442.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.2936, allocations: 0.8358 MB / 443.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.2938, allocations: 47.28 kB / 443.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.2939, allocations: 43.42 kB / 443.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2939, allocations: 0 / 443.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of Templates: time 0.009978/0.3039, allocations: 4.578 MB / 447.7 MB, free: 3.391 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.5724399806931615]