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.0009814/0.0009814, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.00108/0.00108, allocations: 168.8 kB / 24.82 MB, free: 9.27 MB / 18.57 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.002/1.002, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] 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 1.733e-06/1.733e-06, allocations: 0 / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.263e-05/2.437e-05, allocations: 5.266 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.00352/0.003545, allocations: 3.124 MB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.004593, allocations: 0.7474 MB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.004818, allocations: 19.88 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003167/0.005135, allocations: 75.12 kB / 277.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.005255, allocations: 75.25 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.005778, allocations: 295.3 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004667/0.006244, allocations: 0.6245 MB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.006548, allocations: 222.2 kB / 278.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.006815, allocations: 347.4 kB / 278.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.007063, allocations: 207.4 kB / 279.1 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.425e-05/0.007137, allocations: 72 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.984e-05/0.007197, allocations: 72 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.007318, allocations: 147.5 kB / 279.4 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.007443, allocations: 183.6 kB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004457/0.007888, allocations: 458.3 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.007895, allocations: 0 / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.007897, allocations: 0 / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.007903, allocations: 0 / 280 MB, free: 10.68 MB / 266.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.0009237/0.008827, allocations: 0.8525 MB / 280.8 MB, free: 9.785 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.008868, allocations: 8.031 kB / 280.8 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.008982, allocations: 104.6 kB / 280.9 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.009305, allocations: 343.2 kB / 281.3 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.277e-05/0.009378, allocations: 101.3 kB / 281.4 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.009434, allocations: 60.31 kB / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009176/0.01035, allocations: 0.6909 MB / 282.1 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.01037, allocations: 192 / 282.1 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.01041, allocations: 20.38 kB / 282.2 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.01042, allocations: 24.09 kB / 282.2 MB, free: 8.344 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.01065, allocations: 147.7 kB / 282.3 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.01206, allocations: 1.673 MB / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.01262, allocations: 383.9 kB / 284.4 MB, free: 6.031 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.01276, allocations: 138.2 kB / 284.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.0128, allocations: 20.22 kB / 284.5 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.01296, allocations: 194.1 kB / 284.7 MB, free: 5.641 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.054e-06/0.01296, allocations: 0 / 284.7 MB, free: 5.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.000462/0.01342, allocations: 366.7 kB / 285.1 MB, free: 5.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.0135, allocations: 178.2 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.01366, allocations: 292.1 kB / 285.5 MB, free: 4.766 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.01368, allocations: 37.7 kB / 285.6 MB, free: 4.723 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.01379, allocations: 268 kB / 285.8 MB, free: 4.457 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.019e-05/0.01386, allocations: 123.2 kB / 285.9 MB, free: 4.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.71e-05/0.01395, allocations: 83.8 kB / 286 MB, free: 4.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.01409, allocations: 0.5156 MB / 286.5 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.321e-05/0.01415, allocations: 44.95 kB / 286.6 MB, free: 3.672 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.01431, allocations: 260.7 kB / 286.8 MB, free: 3.336 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.01454, allocations: 297.4 kB / 287.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01454, allocations: 0 / 287.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003187/0.01486, allocations: 304.9 kB / 287.4 MB, free: 2.668 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.01487, allocations: 11.94 kB / 287.4 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.01488, allocations: 4.078 kB / 287.4 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.01489, allocations: 11.98 kB / 287.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.0151, allocations: 80.38 kB / 287.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.0151, allocations: 19.91 kB / 287.6 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.01521, allocations: 47.67 kB / 287.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.01523, allocations: 16 kB / 287.6 MB, free: 2.48 MB / 266.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.0001312/0.01536, allocations: 202.4 kB / 287.8 MB, free: 2.273 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.01554, allocations: 177.6 kB / 288 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002283/0.01577, allocations: 212.4 kB / 288.2 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.01577, allocations: 8 kB / 288.2 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.01577, allocations: 4.031 kB / 288.2 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.01578, allocations: 0 / 288.2 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.01631, allocations: 0.5956 MB / 288.8 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01631, allocations: 0 / 288.8 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.01655, allocations: 103.8 kB / 288.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001632/0.01672, allocations: 4 kB / 288.9 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.01675, allocations: 15.98 kB / 288.9 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.01675, allocations: 4 kB / 288.9 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01675, allocations: 0 / 288.9 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000333/0.01708, allocations: 413.7 kB / 289.3 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.01712, allocations: 47.58 kB / 289.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.01716, allocations: 12 kB / 289.4 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.01726, allocations: 20.03 kB / 289.4 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.01731, allocations: 23.95 kB / 289.4 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.889e-05/0.01733, allocations: 15.98 kB / 289.5 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.023e-05/0.01741, allocations: 189.1 kB / 289.6 MB, free: 384 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01741, allocations: 0 / 289.6 MB, free: 384 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002523/0.01766, allocations: 99.78 kB / 289.7 MB, free: 284 kB / 266.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.0001086/0.01777, allocations: 129.1 kB / 289.9 MB, free: 144 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.01804, allocations: 215.8 kB / 290.1 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01805, allocations: 0 / 290.1 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.399e-05/0.01813, allocations: 84.5 kB / 290.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.0185, allocations: 147 kB / 290.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009739/0.01948, allocations: 0.8651 MB / 291.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.199e-05/0.01956, allocations: 129.7 kB / 291.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000114/0.01967, allocations: 38.91 kB / 291.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.01982, allocations: 130.1 kB / 291.5 MB, free: 14.47 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01982, allocations: 4 kB / 291.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of Templates: time 0.006806/0.02663, allocations: 4.374 MB / 295.8 MB, free: 10.15 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8128953520208597]