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.0009241/0.0009241, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009418/0.0009418, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9078/0.9078, allocations: 177.1 MB / 205 MB, free: 5.301 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 2.124e-06/2.124e-06, allocations: 0 / 273 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.763e-05, allocations: 2.312 kB / 273 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003822/0.00385, allocations: 3.193 MB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.005175, allocations: 0.7474 MB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002396/0.005415, allocations: 11.94 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.005749, allocations: 79.12 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.005909, allocations: 83.17 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006094/0.006519, allocations: 291.3 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005593/0.007078, allocations: 0.6127 MB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.007395, allocations: 226.2 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003155/0.00771, allocations: 355.4 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.007987, allocations: 195.4 kB / 278.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.306e-05/0.00806, allocations: 76 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.384e-05/0.008124, allocations: 75.94 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.008247, allocations: 151.5 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.008394, allocations: 187.5 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004781/0.008872, allocations: 450.3 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.008876, allocations: 4 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.008877, allocations: 0 / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.008885, allocations: 0 / 279.6 MB, free: 10.71 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.0009885/0.009874, allocations: 0.8331 MB / 280.5 MB, free: 9.836 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.00991, allocations: 16.03 kB / 280.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.01004, allocations: 100.6 kB / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.01041, allocations: 351.2 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.699e-05/0.0105, allocations: 97.22 kB / 281 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-05/0.01056, allocations: 56.33 kB / 281.1 MB, free: 9.184 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009743/0.01154, allocations: 0.7457 MB / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.01155, allocations: 192 / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.01159, allocations: 16.38 kB / 281.8 MB, free: 8.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.01161, allocations: 16.12 kB / 281.9 MB, free: 8.348 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003409/0.01195, allocations: 192.3 kB / 282 MB, free: 8.156 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.0134, allocations: 1.708 MB / 283.8 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007553/0.01416, allocations: 421 kB / 284.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.01436, allocations: 152.6 kB / 284.3 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.01439, allocations: 12.23 kB / 284.3 MB, free: 5.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.01458, allocations: 190.7 kB / 284.5 MB, free: 5.512 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 3.487e-06/0.01458, allocations: 3.984 kB / 284.5 MB, free: 5.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0007493/0.01533, allocations: 418.7 kB / 284.9 MB, free: 5.094 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.512e-05/0.01541, allocations: 190.2 kB / 285.1 MB, free: 4.871 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.01559, allocations: 288.2 kB / 285.4 MB, free: 4.574 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.01562, allocations: 33.7 kB / 285.4 MB, free: 4.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.01572, allocations: 268 kB / 285.7 MB, free: 4.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.416e-05/0.01579, allocations: 115 kB / 285.8 MB, free: 4.156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.975e-05/0.01588, allocations: 87.84 kB / 285.9 MB, free: 4.062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.016, allocations: 0.5079 MB / 286.4 MB, free: 3.543 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.911e-05/0.0161, allocations: 57.2 kB / 286.4 MB, free: 3.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.01628, allocations: 276.6 kB / 286.7 MB, free: 3.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.01655, allocations: 329.2 kB / 287 MB, free: 2.738 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.01656, allocations: 7.938 kB / 287 MB, free: 2.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004479/0.01701, allocations: 325.1 kB / 287.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.01702, allocations: 8 kB / 287.4 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.01703, allocations: 4 kB / 287.4 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.01705, allocations: 8 kB / 287.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.01726, allocations: 91.83 kB / 287.5 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.01727, allocations: 4 kB / 287.5 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.01738, allocations: 47.66 kB / 287.5 MB, free: 2.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.0174, allocations: 16.31 kB / 287.5 MB, free: 2.23 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,$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.0001374/0.01754, allocations: 198.4 kB / 287.7 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.01775, allocations: 201.5 kB / 287.9 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.01802, allocations: 220.5 kB / 288.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.01803, allocations: 4 kB / 288.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.01803, allocations: 4 kB / 288.2 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.01804, allocations: 3.984 kB / 288.2 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.01864, allocations: 0.6653 MB / 288.8 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.01864, allocations: 4.031 kB / 288.8 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.0189, allocations: 99.83 kB / 288.9 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.01891, allocations: 4 kB / 288.9 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.01894, allocations: 19.98 kB / 289 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.01894, allocations: 4 kB / 289 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.01894, allocations: 0 / 289 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006096/0.01955, allocations: 0.6123 MB / 289.6 MB, free: 116 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.345e-05/0.01958, allocations: 47.64 kB / 289.6 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/0.01963, allocations: 19.98 kB / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.01974, allocations: 16 kB / 289.6 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.853e-05/0.01979, allocations: 23.95 kB / 289.7 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.139/0.1588, allocations: 12.36 kB / 289.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001819/0.1589, allocations: 197 kB / 289.9 MB, free: 24.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1589, allocations: 0 / 289.9 MB, free: 24.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004959/0.1594, allocations: 98.09 kB / 290 MB, free: 24.83 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 0.0001491/0.1596, allocations: 121.4 kB / 290.1 MB, free: 24.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006258/0.1602, allocations: 253.4 kB / 290.3 MB, free: 24.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1602, allocations: 0 / 290.3 MB, free: 24.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.1604, allocations: 94.66 kB / 290.4 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003646/0.164, allocations: 138.8 kB / 290.6 MB, free: 24.7 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.1653, allocations: 0.8772 MB / 291.4 MB, free: 24.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.1654, allocations: 135.3 kB / 291.6 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001729/0.1656, allocations: 35.73 kB / 291.6 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.1657, allocations: 35.89 kB / 291.6 MB, free: 24.19 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1657, allocations: 0 / 291.6 MB, free: 24.19 MB / 266.7 MB Notification: Performance of Templates: time 0.01422/0.1799, allocations: 4.198 MB / 295.8 MB, free: 23.75 MB / 266.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.7368309516459703]