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.001793/0.001793, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.001938/0.001938, allocations: 164.8 kB / 24.27 MB, free: 152 kB / 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 1.579/1.579, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.372e-06/1.372e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.429e-05/3.567e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.00506/0.005096, allocations: 3.147 MB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.006593, allocations: 0.7397 MB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.006792, allocations: 11.94 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003381/0.00713, allocations: 79.12 kB / 276.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.007307, allocations: 79.12 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007473/0.008054, allocations: 291.4 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007146/0.008769, allocations: 0.6167 MB / 277.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.00919, allocations: 230.2 kB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000428/0.009618, allocations: 355.3 kB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.009969, allocations: 195.4 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.01008, allocations: 72 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.01018, allocations: 75.94 kB / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.01036, allocations: 143.6 kB / 278.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.01058, allocations: 191.5 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.01162, allocations: 0.8762 MB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.01163, allocations: 0 / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01163, allocations: 0 / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.01164, allocations: 0 / 279.2 MB, free: 10.73 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.001569/0.0132, allocations: 0.8991 MB / 280.1 MB, free: 9.789 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.01324, allocations: 11.98 kB / 280.1 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.01343, allocations: 104.6 kB / 280.3 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.01398, allocations: 347.2 kB / 280.6 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.0141, allocations: 101.2 kB / 280.7 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.245e-05/0.0142, allocations: 56.33 kB / 280.7 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.0159, allocations: 0.9404 MB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.01592, allocations: 4.125 kB / 281.7 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/0.01598, allocations: 20.38 kB / 281.7 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.01599, allocations: 16.12 kB / 281.7 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008094/0.0168, allocations: 343 kB / 282.1 MB, free: 7.766 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/0.01969, allocations: 1.958 MB / 284 MB, free: 5.727 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.02115, allocations: 0.5595 MB / 284.6 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004805/0.02163, allocations: 249.3 kB / 284.8 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/0.02168, allocations: 16.22 kB / 284.8 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/0.02211, allocations: 254.2 kB / 285.1 MB, free: 4.562 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.853e-06/0.02212, allocations: 0 / 285.1 MB, free: 4.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.001364/0.02348, allocations: 0.5964 MB / 285.7 MB, free: 3.961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.02364, allocations: 190.1 kB / 285.9 MB, free: 3.738 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.02404, allocations: 364.2 kB / 286.2 MB, free: 3.367 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.02409, allocations: 37.95 kB / 286.3 MB, free: 3.324 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.02431, allocations: 280.1 kB / 286.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.02446, allocations: 143.5 kB / 286.7 MB, free: 2.906 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.02463, allocations: 103.8 kB / 286.8 MB, free: 2.797 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003155/0.02495, allocations: 0.5391 MB / 287.3 MB, free: 2.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.02522, allocations: 117 kB / 287.4 MB, free: 2.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/0.02569, allocations: 348.7 kB / 287.8 MB, free: 1.703 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.0264, allocations: 442.1 kB / 288.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-06/0.02641, allocations: 7.875 kB / 288.2 MB, free: 1.188 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008811/0.02729, allocations: 452.6 kB / 288.7 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.02731, allocations: 12.09 kB / 288.7 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.02732, allocations: 4 kB / 288.7 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.02734, allocations: 4 kB / 288.7 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.02774, allocations: 91.83 kB / 288.8 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.02775, allocations: 8 kB / 288.8 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.02798, allocations: 39.77 kB / 288.8 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.02802, allocations: 20 kB / 288.8 MB, free: 0.5664 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.0002897/0.02831, allocations: 232.5 kB / 289.1 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004693/0.02878, allocations: 249.3 kB / 289.3 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006688/0.02945, allocations: 296.6 kB / 289.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.02946, allocations: 4 kB / 289.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.02946, allocations: 4 kB / 289.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.02947, allocations: 3.984 kB / 289.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.03088, allocations: 0.8455 MB / 290.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.03089, allocations: 0 / 290.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.03137, allocations: 99.88 kB / 290.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.794e-06/0.03138, allocations: 12.03 kB / 290.6 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.03142, allocations: 12 kB / 290.6 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.383e-06/0.03143, allocations: 7.984 kB / 290.6 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.03143, allocations: 3.938 kB / 290.6 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.03292, allocations: 0.8623 MB / 291.4 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.836e-05/0.03299, allocations: 51.62 kB / 291.5 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.009e-05/0.03306, allocations: 16 kB / 291.5 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.03328, allocations: 16 kB / 291.5 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/0.03337, allocations: 27.98 kB / 291.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.0334, allocations: 19.98 kB / 291.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002431/0.03365, allocations: 233.1 kB / 291.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03365, allocations: 0 / 291.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004198/0.03407, allocations: 107.7 kB / 291.9 MB, free: 13.39 MB / 282.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.0001589/0.03423, allocations: 121.1 kB / 292 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008271/0.03505, allocations: 399.8 kB / 292.4 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.03506, allocations: 0 / 292.4 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.03534, allocations: 135.6 kB / 292.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006906/0.03603, allocations: 180.2 kB / 292.7 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.0378, allocations: 0.969 MB / 293.7 MB, free: 11.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.03807, allocations: 244.2 kB / 293.9 MB, free: 11.29 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.03824, allocations: 34.97 kB / 294 MB, free: 11.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.03837, allocations: 40.48 kB / 294 MB, free: 11.22 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.03837, allocations: 0 / 294 MB, free: 11.22 MB / 282.7 MB Notification: Performance of Templates: time 0.009704/0.04807, allocations: 4.032 MB / 298 MB, free: 7.219 MB / 282.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.7415025640511885]