Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009337/0.0009337, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009634/0.0009634, allocations: 160.2 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9463/0.9463, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.849e-05/1.997e-05, allocations: 10.25 kB / 273.4 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.00474/0.00476, allocations: 3.137 MB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.006613, allocations: 0.7821 MB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.006882, allocations: 11.94 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003626/0.007244, allocations: 75.19 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.007445, allocations: 79.12 kB / 277.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008532/0.008298, allocations: 291.4 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006921/0.00899, allocations: 0.6206 MB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004087/0.009399, allocations: 236.1 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.009802, allocations: 347.4 kB / 278.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003604/0.01016, allocations: 207.3 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.01027, allocations: 72 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.39e-05/0.01035, allocations: 72 kB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.01051, allocations: 147.5 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.01071, allocations: 183.6 kB / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005801/0.01129, allocations: 458.3 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.01129, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01129, allocations: 0 / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.0113, allocations: 0 / 280 MB, free: 10.41 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.001122/0.01242, allocations: 0.7123 MB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.01246, allocations: 15.98 kB / 280.8 MB, free: 9.645 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.0126, allocations: 84.86 kB / 280.8 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.01302, allocations: 280.3 kB / 281.1 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.967e-05/0.01312, allocations: 93.22 kB / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.475e-05/0.0132, allocations: 52.38 kB / 281.3 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.01421, allocations: 0.6711 MB / 281.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.01423, allocations: 4.141 kB / 281.9 MB, free: 8.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.01428, allocations: 24.38 kB / 282 MB, free: 8.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.01429, allocations: 20.12 kB / 282 MB, free: 8.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.01463, allocations: 142.5 kB / 282.1 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.01654, allocations: 1.22 MB / 283.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.01706, allocations: 341.6 kB / 283.7 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.01718, allocations: 123.7 kB / 283.8 MB, free: 6.426 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.01721, allocations: 20.22 kB / 283.8 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.01734, allocations: 171.9 kB / 284 MB, free: 6.211 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.794e-06/0.01734, allocations: 0 / 284 MB, free: 6.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0003616/0.01771, allocations: 285.4 kB / 284.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.01778, allocations: 178.2 kB / 284.4 MB, free: 5.715 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.0179, allocations: 233.2 kB / 284.7 MB, free: 5.477 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.01793, allocations: 41.7 kB / 284.7 MB, free: 5.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.43e-05/0.01802, allocations: 197.7 kB / 284.9 MB, free: 5.234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.186e-05/0.01808, allocations: 119 kB / 285 MB, free: 5.117 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.01816, allocations: 82.09 kB / 285.1 MB, free: 5.027 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.286e-05/0.01824, allocations: 342.8 kB / 285.4 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.253e-05/0.01829, allocations: 36.98 kB / 285.5 MB, free: 4.648 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.01841, allocations: 206.9 kB / 285.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.01861, allocations: 247 kB / 285.9 MB, free: 4.086 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.01861, allocations: 8 kB / 285.9 MB, free: 4.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002354/0.01885, allocations: 248.4 kB / 286.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.01886, allocations: 4 kB / 286.2 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.01887, allocations: 4.469 kB / 286.2 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.01888, allocations: 12 kB / 286.2 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.01907, allocations: 91.83 kB / 286.3 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.01908, allocations: 15.88 kB / 286.3 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.01919, allocations: 39.77 kB / 286.3 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.0192, allocations: 12 kB / 286.3 MB, free: 3.656 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.0001202/0.01932, allocations: 144.5 kB / 286.5 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004002/0.01972, allocations: 143.4 kB / 286.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002016/0.01992, allocations: 184.7 kB / 286.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.01993, allocations: 4 kB / 286.8 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.01993, allocations: 4 kB / 286.8 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.01994, allocations: 7.922 kB / 286.8 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004289/0.02037, allocations: 458.8 kB / 287.2 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.02037, allocations: 8 kB / 287.3 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.0206, allocations: 99.81 kB / 287.4 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.02061, allocations: 4 kB / 287.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.02063, allocations: 12 kB / 287.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.02063, allocations: 4 kB / 287.4 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.02063, allocations: 7.938 kB / 287.4 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.0209, allocations: 315.3 kB / 287.7 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.02093, allocations: 35.7 kB / 287.7 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.02097, allocations: 12 kB / 287.7 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.837e-05/0.02107, allocations: 19.98 kB / 287.8 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.02112, allocations: 23.91 kB / 287.8 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.02113, allocations: 15.98 kB / 287.8 MB, free: 2.109 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.41e-05/0.02119, allocations: 70.78 kB / 287.9 MB, free: 2.039 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02119, allocations: 4 kB / 287.9 MB, free: 2.035 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002392/0.02143, allocations: 103.7 kB / 288 MB, free: 1.934 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.0001134/0.02154, allocations: 114.3 kB / 288.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002439/0.02178, allocations: 202.1 kB / 288.3 MB, free: 1.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.02179, allocations: 3.938 kB / 288.3 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.745e-05/0.02187, allocations: 84.81 kB / 288.4 MB, free: 1.527 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.02218, allocations: 141.6 kB / 288.5 MB, free: 1.395 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000919/0.0231, allocations: 0.8646 MB / 289.4 MB, free: 496 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.941e-05/0.02318, allocations: 133.7 kB / 289.5 MB, free: 344 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.02329, allocations: 34.97 kB / 289.5 MB, free: 312 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.02342, allocations: 107.3 kB / 289.6 MB, free: 204 kB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.02342, allocations: 4 kB / 289.6 MB, free: 200 kB / 266.7 MB Notification: Performance of Templates: time 0.1294/0.1528, allocations: 4.277 MB / 293.9 MB, free: 24.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.886577107012272]