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.001087/0.001087, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001539/0.002626, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006697/0.0006697, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009373/0.001607, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.8981/0.8981, allocations: 173.3 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07819/0.9763, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] 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 1.463e-06/1.463e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.358e-05, allocations: 6.875 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005205/0.005229, allocations: 3.182 MB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.006942, allocations: 0.7743 MB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000323/0.007265, allocations: 15.94 kB / 243.5 MB, free: 15.19 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002897/0.007554, allocations: 75.19 kB / 243.6 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.007766, allocations: 79.17 kB / 243.7 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000763/0.008529, allocations: 295.3 kB / 243.9 MB, free: 14.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007265/0.009255, allocations: 0.6127 MB / 244.6 MB, free: 14.14 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004052/0.00966, allocations: 240.1 kB / 244.8 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.01015, allocations: 377.1 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003487/0.01049, allocations: 199.4 kB / 245.4 MB, free: 13.33 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.0106, allocations: 72 kB / 245.4 MB, free: 13.26 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.096e-05/0.01068, allocations: 72 kB / 245.5 MB, free: 13.19 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.01083, allocations: 119.6 kB / 245.6 MB, free: 13.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.011, allocations: 143.8 kB / 245.8 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005606/0.01156, allocations: 414.4 kB / 246.2 MB, free: 12.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.519e-05/0.01157, allocations: 3.984 kB / 246.2 MB, free: 12.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01158, allocations: 0 / 246.2 MB, free: 12.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.12e-05/0.0116, allocations: 0 / 246.2 MB, free: 12.52 MB / 250.7 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.00125/0.01285, allocations: 0.8134 MB / 247 MB, free: 11.67 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.01288, allocations: 8.031 kB / 247 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.997e-05/0.01297, allocations: 80.88 kB / 247.1 MB, free: 11.59 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.01329, allocations: 268.5 kB / 247.3 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.332e-05/0.01336, allocations: 97.28 kB / 247.4 MB, free: 11.19 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.01341, allocations: 56.31 kB / 247.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006485/0.01406, allocations: 0.6903 MB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.01407, allocations: 4.125 kB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.01411, allocations: 24.38 kB / 248.2 MB, free: 10.37 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01412, allocations: 16.12 kB / 248.2 MB, free: 10.35 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.0143, allocations: 134.5 kB / 248.3 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.01535, allocations: 1.22 MB / 249.6 MB, free: 8.945 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/0.01583, allocations: 356.7 kB / 249.9 MB, free: 8.562 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.01594, allocations: 123.2 kB / 250 MB, free: 8.434 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.01597, allocations: 15.98 kB / 250 MB, free: 8.418 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/0.01613, allocations: 171.5 kB / 250.2 MB, free: 8.223 MB / 250.7 MB Notification: Performance of pre-optimization done (n=57): time 2.324e-06/0.01614, allocations: 0 / 250.2 MB, free: 8.223 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.0003694/0.01651, allocations: 285.6 kB / 250.5 MB, free: 7.938 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.01657, allocations: 160.4 kB / 250.6 MB, free: 7.75 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.01669, allocations: 236.9 kB / 250.9 MB, free: 7.508 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.01671, allocations: 37.7 kB / 250.9 MB, free: 7.465 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.846e-05/0.01678, allocations: 197.7 kB / 251.1 MB, free: 7.266 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.581e-05/0.01684, allocations: 123 kB / 251.2 MB, free: 7.145 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.01691, allocations: 74.16 kB / 251.3 MB, free: 7.066 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.157e-05/0.01698, allocations: 342.8 kB / 251.6 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.449e-05/0.01704, allocations: 40.97 kB / 251.7 MB, free: 6.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.01715, allocations: 206.9 kB / 251.9 MB, free: 6.418 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.01733, allocations: 245.9 kB / 252.1 MB, free: 6.121 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.01733, allocations: 0 / 252.1 MB, free: 6.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002227/0.01755, allocations: 257.5 kB / 252.4 MB, free: 5.863 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.01757, allocations: 4 kB / 252.4 MB, free: 5.859 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.01757, allocations: 4 kB / 252.4 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.01758, allocations: 8 kB / 252.4 MB, free: 5.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.01783, allocations: 107 kB / 252.5 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.01784, allocations: 15.92 kB / 252.5 MB, free: 5.73 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.72e-05/0.01793, allocations: 31.78 kB / 252.5 MB, free: 5.699 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.01795, allocations: 16 kB / 252.6 MB, free: 5.684 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.cylinderAirCharge.integrator.local_reset,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y) * 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 (53): * Single equations (assignments): 53 * 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.0001211/0.01808, allocations: 160.6 kB / 252.7 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.01821, allocations: 143.4 kB / 252.8 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.01839, allocations: 176.8 kB / 253 MB, free: 5.195 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.0184, allocations: 4 kB / 253 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.0184, allocations: 7.938 kB / 253 MB, free: 5.184 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01841, allocations: 3.984 kB / 253 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.01881, allocations: 458.7 kB / 253.5 MB, free: 4.707 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.01881, allocations: 4 kB / 253.5 MB, free: 4.703 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.01909, allocations: 126.3 kB / 253.6 MB, free: 4.582 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.851e-05/0.01912, allocations: 39.64 kB / 253.6 MB, free: 4.543 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.01912, allocations: 7.938 kB / 253.7 MB, free: 4.535 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.01915, allocations: 15.98 kB / 253.7 MB, free: 4.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.01915, allocations: 0 / 253.7 MB, free: 4.52 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.01915, allocations: 4 kB / 253.7 MB, free: 4.516 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.0194, allocations: 306.8 kB / 254 MB, free: 4.188 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.01944, allocations: 15.98 kB / 254 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.01954, allocations: 19.94 kB / 254 MB, free: 4.152 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.01958, allocations: 28 kB / 254 MB, free: 4.125 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.0196, allocations: 11.98 kB / 254.1 MB, free: 4.113 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.045e-05/0.01965, allocations: 78.77 kB / 254.1 MB, free: 4.035 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01965, allocations: 0 / 254.1 MB, free: 4.035 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.01986, allocations: 99.78 kB / 254.2 MB, free: 3.938 MB / 250.7 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.000109/0.01997, allocations: 103.1 kB / 254.3 MB, free: 3.828 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.02021, allocations: 213.6 kB / 254.5 MB, free: 3.613 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/0.02022, allocations: 7.938 kB / 254.5 MB, free: 3.605 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.92e-05/0.02029, allocations: 76.69 kB / 254.6 MB, free: 3.527 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.02061, allocations: 157.3 kB / 254.8 MB, free: 3.375 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.02314, allocations: 0.9096 MB / 255.7 MB, free: 2.422 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.45e-05/0.02321, allocations: 137.7 kB / 255.8 MB, free: 2.27 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.02333, allocations: 42.91 kB / 255.9 MB, free: 2.223 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.02346, allocations: 107.4 kB / 256 MB, free: 2.117 MB / 250.7 MB Notification: Performance of SimCode: time 1.292e-06/0.02346, allocations: 0 / 256 MB, free: 2.117 MB / 250.7 MB Notification: Performance of Templates: time 0.006195/0.02966, allocations: 4.465 MB / 260.4 MB, free: 13.71 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4153804797679186]