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.0007443/0.0007443, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.003413/0.003413, allocations: 143.4 kB / 24.68 MB, free: 8.906 MB / 18.57 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.8342/0.8342, allocations: 173.4 MB / 201.2 MB, free: 9.457 MB / 186.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.322e-06/1.322e-06, allocations: 3.938 kB / 319.7 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.747e-05/2.879e-05, allocations: 6.219 kB / 319.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003279/0.003307, allocations: 3.001 MB / 322.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.004441, allocations: 0.7474 MB / 323.4 MB, free: 2.109 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.004648, allocations: 15.88 kB / 323.4 MB, free: 2.094 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.004939, allocations: 67.25 kB / 323.5 MB, free: 2.027 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.005062, allocations: 87.05 kB / 323.6 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.00558, allocations: 295.4 kB / 323.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.006001, allocations: 0.6244 MB / 324.5 MB, free: 1.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002906/0.006291, allocations: 230.1 kB / 324.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.00654, allocations: 351.4 kB / 325.1 MB, free: 464 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.006765, allocations: 195.4 kB / 325.3 MB, free: 268 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.239e-05/0.006827, allocations: 72 kB / 325.3 MB, free: 196 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.927e-05/0.006876, allocations: 72 kB / 325.4 MB, free: 124 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.007003, allocations: 147.6 kB / 325.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.007131, allocations: 187.6 kB / 325.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005733/0.007705, allocations: 0.88 MB / 326.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.007709, allocations: 4 kB / 326.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.00771, allocations: 0 / 326.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.007718, allocations: 0 / 326.6 MB, free: 14.91 MB / 298.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.0008656/0.008584, allocations: 0.7442 MB / 327.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.008617, allocations: 12.92 kB / 327.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.518e-05/0.008693, allocations: 60.55 kB / 327.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.009074, allocations: 336.3 kB / 327.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.956e-05/0.009153, allocations: 101.3 kB / 327.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.009211, allocations: 56.36 kB / 327.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009657/0.01018, allocations: 0.9045 MB / 328.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.0102, allocations: 192 / 328.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/0.01023, allocations: 16.38 kB / 328.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.01024, allocations: 16.12 kB / 328.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004754/0.01072, allocations: 363 kB / 329.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.01207, allocations: 1.475 MB / 330.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000751/0.01282, allocations: 0.4952 MB / 331.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.01308, allocations: 244.4 kB / 331.4 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.01311, allocations: 11.98 kB / 331.4 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.01334, allocations: 227.6 kB / 331.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 1.703e-06/0.01334, allocations: 0 / 331.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.000797/0.01414, allocations: 0.6142 MB / 332.2 MB, free: 8.996 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.43e-05/0.01423, allocations: 184 kB / 332.4 MB, free: 8.781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.01441, allocations: 257.8 kB / 332.7 MB, free: 8.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.01444, allocations: 37.7 kB / 332.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/0.01453, allocations: 209.9 kB / 332.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.0146, allocations: 119 kB / 333 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.438e-05/0.01469, allocations: 86.14 kB / 333.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.205e-05/0.01478, allocations: 338.8 kB / 333.5 MB, free: 7.719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.01494, allocations: 129.2 kB / 333.6 MB, free: 7.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.01517, allocations: 286.9 kB / 333.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.01556, allocations: 390.2 kB / 334.2 MB, free: 6.812 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.01556, allocations: 3.938 kB / 334.2 MB, free: 6.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004675/0.01603, allocations: 452.9 kB / 334.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.01604, allocations: 8 kB / 334.7 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.01605, allocations: 4.469 kB / 334.7 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.01606, allocations: 8 kB / 334.7 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.01627, allocations: 95.83 kB / 334.8 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.934e-06/0.01627, allocations: 4 kB / 334.8 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.01639, allocations: 51.7 kB / 334.9 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.01641, allocations: 19.98 kB / 334.9 MB, free: 6.172 MB / 298.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,$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 (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.0001622/0.01657, allocations: 189.7 kB / 335.1 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002478/0.01682, allocations: 233.3 kB / 335.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003713/0.01719, allocations: 312.8 kB / 335.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.0172, allocations: 4 kB / 335.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.0172, allocations: 4 kB / 335.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.01721, allocations: 3.984 kB / 335.6 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006832/0.01789, allocations: 0.709 MB / 336.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.01789, allocations: 0 / 336.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.01815, allocations: 107.8 kB / 336.4 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.01815, allocations: 7.938 kB / 336.4 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.01818, allocations: 19.98 kB / 336.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.01818, allocations: 80 / 336.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.01819, allocations: 7.984 kB / 336.5 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008097/0.019, allocations: 0.8067 MB / 337.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.483e-05/0.01903, allocations: 43.7 kB / 337.3 MB, free: 3.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.01907, allocations: 19.98 kB / 337.3 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.01919, allocations: 23.98 kB / 337.3 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.01924, allocations: 19.97 kB / 337.4 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.01926, allocations: 19.98 kB / 337.4 MB, free: 3.578 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.01936, allocations: 173.2 kB / 337.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01936, allocations: 0 / 337.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002692/0.01963, allocations: 103.7 kB / 337.7 MB, free: 3.309 MB / 298.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.0001127/0.01975, allocations: 128.3 kB / 337.8 MB, free: 3.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004743/0.02022, allocations: 374.2 kB / 338.1 MB, free: 2.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.02022, allocations: 0 / 338.1 MB, free: 2.812 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.02038, allocations: 137.2 kB / 338.3 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.02082, allocations: 164.5 kB / 338.4 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.0219, allocations: 0.9656 MB / 339.4 MB, free: 1.512 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.02206, allocations: 236.2 kB / 339.6 MB, free: 1.262 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.02216, allocations: 44.48 kB / 339.7 MB, free: 1.219 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.02216, allocations: 0 / 339.7 MB, free: 1.219 MB / 298.7 MB Notification: Performance of Templates: time 0.005563/0.02772, allocations: 5.617 MB / 345.3 MB, free: 11.62 MB / 314.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=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.244735611602664]