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.0009514/0.0009514, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001054/0.001054, allocations: 170.4 kB / 24.91 MB, free: 8.719 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 0.9506/0.9506, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.714e-06/1.714e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.704e-05/1.876e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004642/0.00466, allocations: 3.142 MB / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.006191, allocations: 0.7782 MB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.006407, allocations: 15.88 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.006733, allocations: 71.2 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003226/0.007056, allocations: 83.17 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.0077, allocations: 299.3 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006117/0.008312, allocations: 0.6128 MB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.008693, allocations: 240.1 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003783/0.009071, allocations: 351.3 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.009396, allocations: 203.4 kB / 279.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.257e-05/0.009489, allocations: 76 kB / 279.3 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.378e-05/0.009572, allocations: 72 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.009721, allocations: 143.6 kB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.009897, allocations: 187.5 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005256/0.01042, allocations: 454.3 kB / 280.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.01042, allocations: 0 / 280.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.01043, allocations: 0 / 280.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.01043, allocations: 0 / 280.1 MB, free: 10.6 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.001062/0.01149, allocations: 0.7161 MB / 280.8 MB, free: 9.852 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.01153, allocations: 16.03 kB / 280.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.01166, allocations: 80.88 kB / 280.9 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006589/0.01232, allocations: 264.4 kB / 281.2 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.065e-05/0.01241, allocations: 97.27 kB / 281.3 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.866e-05/0.01249, allocations: 52.38 kB / 281.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000938/0.01342, allocations: 0.6789 MB / 282 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.01345, allocations: 8.125 kB / 282 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.668e-05/0.01349, allocations: 24.38 kB / 282 MB, free: 8.551 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.01351, allocations: 12.12 kB / 282 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.01381, allocations: 142.5 kB / 282.2 MB, free: 8.398 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.01522, allocations: 1.228 MB / 283.4 MB, free: 7.117 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005131/0.01573, allocations: 329.7 kB / 283.7 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.01586, allocations: 117.2 kB / 283.8 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.01589, allocations: 20.22 kB / 283.9 MB, free: 6.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/0.01602, allocations: 172 kB / 284 MB, free: 6.418 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.583e-06/0.01602, allocations: 0 / 284 MB, free: 6.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0003628/0.01639, allocations: 287 kB / 284.3 MB, free: 6.133 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.118e-05/0.01647, allocations: 186 kB / 284.5 MB, free: 5.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.0166, allocations: 232.9 kB / 284.7 MB, free: 5.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.01663, allocations: 37.7 kB / 284.7 MB, free: 5.633 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.499e-05/0.0167, allocations: 201.7 kB / 284.9 MB, free: 5.434 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.101e-05/0.01676, allocations: 115 kB / 285.1 MB, free: 5.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.967e-05/0.01684, allocations: 82.09 kB / 285.1 MB, free: 5.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.955e-05/0.01692, allocations: 346.7 kB / 285.5 MB, free: 4.883 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.344e-05/0.01698, allocations: 37.23 kB / 285.5 MB, free: 4.848 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.0171, allocations: 203 kB / 285.7 MB, free: 4.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.01729, allocations: 248.9 kB / 286 MB, free: 4.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.0173, allocations: 4 kB / 286 MB, free: 4.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002488/0.01754, allocations: 249.2 kB / 286.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.01756, allocations: 7.938 kB / 286.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.01756, allocations: 4 kB / 286.2 MB, free: 4.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.01758, allocations: 8 kB / 286.2 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.01777, allocations: 91.83 kB / 286.3 MB, free: 3.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.01778, allocations: 11.94 kB / 286.3 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.919e-05/0.01788, allocations: 39.77 kB / 286.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.0179, allocations: 12.31 kB / 286.4 MB, free: 3.867 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.0001163/0.01801, allocations: 154.5 kB / 286.5 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.01815, allocations: 145.8 kB / 286.7 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/0.01833, allocations: 176.5 kB / 286.8 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.01834, allocations: 4 kB / 286.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.01834, allocations: 0 / 286.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.01835, allocations: 11.92 kB / 286.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004286/0.01878, allocations: 466.7 kB / 287.3 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.01878, allocations: 4.031 kB / 287.3 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.01902, allocations: 99.92 kB / 287.4 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.01902, allocations: 7.984 kB / 287.4 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.01904, allocations: 12 kB / 287.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.01904, allocations: 7.938 kB / 287.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.01905, allocations: 3.938 kB / 287.4 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.0193, allocations: 311.9 kB / 287.7 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.786e-05/0.01933, allocations: 35.7 kB / 287.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.01937, allocations: 12 kB / 287.8 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.01947, allocations: 23.98 kB / 287.8 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.01951, allocations: 23.91 kB / 287.8 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.01953, allocations: 15.98 kB / 287.9 MB, free: 2.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.095e-05/0.01958, allocations: 70.78 kB / 287.9 MB, free: 2.238 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01958, allocations: 3.938 kB / 287.9 MB, free: 2.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002243/0.01981, allocations: 103.7 kB / 288 MB, free: 2.133 MB / 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 9.498e-05/0.0199, allocations: 109.7 kB / 288.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002357/0.02014, allocations: 205 kB / 288.3 MB, free: 1.816 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.02014, allocations: 4 kB / 288.3 MB, free: 1.812 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.388e-05/0.02022, allocations: 76.64 kB / 288.4 MB, free: 1.734 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.02053, allocations: 134.7 kB / 288.5 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.0214, allocations: 0.88 MB / 289.4 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.02175, allocations: 129.7 kB / 289.6 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.02186, allocations: 38.97 kB / 289.6 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.02199, allocations: 107.3 kB / 289.7 MB, free: 408 kB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.02199, allocations: 0 / 289.7 MB, free: 408 kB / 266.7 MB Notification: Performance of Templates: time 0.006461/0.02845, allocations: 4.294 MB / 294 MB, free: 12.16 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.622136129066348]