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.00168/0.00168, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002213/0.002213, allocations: 180.9 kB / 23.7 MB, free: 4.414 MB / 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.579/1.579, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001953/0.001953, allocations: 51.92 kB / 370.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2718, allocations: 52.17 MB / 423 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005301/0.2771, allocations: 3.023 MB / 426.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2786, allocations: 0.7321 MB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/0.2788, allocations: 11.94 kB / 426.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.2792, allocations: 87.11 kB / 426.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.2794, allocations: 75.25 kB / 427 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006972/0.28, allocations: 291.5 kB / 427.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007482/0.2808, allocations: 0.6167 MB / 427.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004134/0.2812, allocations: 232.7 kB / 428.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002656/0.2815, allocations: 231.3 kB / 428.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003632/0.2818, allocations: 234.8 kB / 428.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.2819, allocations: 76 kB / 428.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.972e-05/0.282, allocations: 72 kB / 428.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.2822, allocations: 143.6 kB / 428.8 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.2825, allocations: 219 kB / 429.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009759/0.2835, allocations: 0.8597 MB / 429.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2835, allocations: 0 / 429.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2835, allocations: 0 / 429.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2835, allocations: 0 / 429.9 MB, free: 7.578 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.001437/0.2849, allocations: 0.7634 MB / 430.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.285, allocations: 8.031 kB / 430.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.2851, allocations: 60.59 kB / 430.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006495/0.2857, allocations: 344.6 kB / 431.1 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.2858, allocations: 93.28 kB / 431.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2859, allocations: 48.38 kB / 431.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.2877, allocations: 0.9044 MB / 432.1 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.2877, allocations: 11.94 kB / 432.1 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.588e-05/0.2878, allocations: 20 kB / 432.2 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.2878, allocations: 12 kB / 432.2 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008323/0.2886, allocations: 359 kB / 432.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.2911, allocations: 1.47 MB / 434 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.2925, allocations: 0.5049 MB / 434.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004707/0.2929, allocations: 239.2 kB / 434.7 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.72e-05/0.293, allocations: 15.97 kB / 434.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.2934, allocations: 232.6 kB / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.033e-06/0.2934, allocations: 0 / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001351/0.2947, allocations: 0.6004 MB / 435.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/0.2949, allocations: 186.1 kB / 435.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.2952, allocations: 253.8 kB / 436 MB, free: 1.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.2952, allocations: 33.7 kB / 436 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.2954, allocations: 213.3 kB / 436.2 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.2956, allocations: 135.5 kB / 436.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.2957, allocations: 110.6 kB / 436.5 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.2959, allocations: 346.8 kB / 436.8 MB, free: 348 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/0.2963, allocations: 153.2 kB / 437 MB, free: 196 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000586/0.2968, allocations: 432.8 kB / 437.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009113/0.2978, allocations: 0.5656 MB / 438 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.2978, allocations: 4 kB / 438 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001131/0.2989, allocations: 0.5975 MB / 438.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.2989, allocations: 8 kB / 438.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.2989, allocations: 8 kB / 438.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.299, allocations: 12 kB / 438.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/0.2994, allocations: 131.8 kB / 438.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.47e-05/0.2995, allocations: 15.94 kB / 438.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.2998, allocations: 55.72 kB / 438.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.2998, allocations: 36.3 kB / 438.8 MB, free: 14.1 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.0003072/0.3001, allocations: 220.6 kB / 439 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004155/0.3006, allocations: 237.5 kB / 439.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006491/0.3012, allocations: 304.4 kB / 439.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.3012, allocations: 8 kB / 439.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3012, allocations: 0 / 439.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3012, allocations: 7.984 kB / 439.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.3024, allocations: 0.7168 MB / 440.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3024, allocations: 0 / 440.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004907/0.3029, allocations: 99.88 kB / 440.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.3029, allocations: 4 kB / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.455e-05/0.303, allocations: 23.92 kB / 440.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.303, allocations: 4 kB / 440.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.303, allocations: 0 / 440.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.3044, allocations: 0.8144 MB / 441.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/0.3045, allocations: 43.7 kB / 441.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-05/0.3046, allocations: 19.98 kB / 441.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3048, allocations: 19.98 kB / 441.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.3049, allocations: 19.97 kB / 441.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.3049, allocations: 19.98 kB / 441.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.3051, allocations: 173.2 kB / 441.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3051, allocations: 0 / 441.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004909/0.3056, allocations: 107.8 kB / 441.6 MB, free: 11.2 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.0001642/0.3058, allocations: 125.1 kB / 441.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009233/0.3067, allocations: 444.7 kB / 442.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3067, allocations: 0 / 442.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002771/0.307, allocations: 131.9 kB / 442.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/0.3077, allocations: 173.4 kB / 442.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.3096, allocations: 1.039 MB / 443.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.3099, allocations: 236.8 kB / 443.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002024/0.3101, allocations: 43.28 kB / 443.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.3102, allocations: 39.42 kB / 443.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3102, allocations: 0 / 443.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of Templates: time 0.01041/0.3206, allocations: 4.749 MB / 448.6 MB, free: 4.238 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.856893749907613]