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.0007227/0.0007227, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009756/0.001698, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006525/0.0006525, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008404/0.001493, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9303/0.9303, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0918/1.022, allocations: 53.88 MB / 243.9 MB, free: 14.83 MB / 250.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.794e-06/1.794e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.326e-05/2.506e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005795/0.00582, allocations: 3.205 MB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.007936, allocations: 0.7783 MB / 249.2 MB, free: 9.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004387/0.008375, allocations: 15.88 kB / 249.2 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.008733, allocations: 79.12 kB / 249.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.009016, allocations: 79.23 kB / 249.3 MB, free: 9.398 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009433/0.009959, allocations: 295.2 kB / 249.6 MB, free: 9.109 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008356/0.01079, allocations: 0.6127 MB / 250.2 MB, free: 8.492 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004884/0.01128, allocations: 236.1 kB / 250.5 MB, free: 8.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005752/0.01186, allocations: 381 kB / 250.8 MB, free: 7.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004497/0.01231, allocations: 199.4 kB / 251 MB, free: 7.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.01244, allocations: 72 kB / 251.1 MB, free: 7.617 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.01254, allocations: 72 kB / 251.2 MB, free: 7.547 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.01271, allocations: 111.7 kB / 251.3 MB, free: 7.438 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.01293, allocations: 151.7 kB / 251.4 MB, free: 7.289 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006921/0.01362, allocations: 402.5 kB / 251.8 MB, free: 6.895 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.314e-05/0.01363, allocations: 4 kB / 251.8 MB, free: 6.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.01363, allocations: 0 / 251.8 MB, free: 6.891 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.01365, allocations: 7.938 kB / 251.8 MB, free: 6.883 MB / 250.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.001421/0.01507, allocations: 0.8095 MB / 252.6 MB, free: 6.039 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.01512, allocations: 12.62 kB / 252.7 MB, free: 6.027 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.01528, allocations: 80.88 kB / 252.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.01568, allocations: 264.4 kB / 253 MB, free: 5.668 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.537e-05/0.01576, allocations: 101.3 kB / 253.1 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/0.01582, allocations: 56.36 kB / 253.1 MB, free: 5.504 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007632/0.01659, allocations: 0.6711 MB / 253.8 MB, free: 4.777 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.01662, allocations: 8.141 kB / 253.8 MB, free: 4.77 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.622e-05/0.01666, allocations: 20.38 kB / 253.8 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.01668, allocations: 24.05 kB / 253.9 MB, free: 4.727 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.017, allocations: 138.6 kB / 254 MB, free: 4.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.01883, allocations: 1.224 MB / 255.2 MB, free: 3.316 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007674/0.0196, allocations: 344.9 kB / 255.6 MB, free: 2.945 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.01979, allocations: 124.4 kB / 255.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.75e-05/0.01983, allocations: 20.23 kB / 255.7 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.02004, allocations: 168 kB / 255.9 MB, free: 2.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=57): time 2.395e-06/0.02004, allocations: 0 / 255.9 MB, free: 2.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.0005633/0.0206, allocations: 285.4 kB / 256.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.02073, allocations: 158.3 kB / 256.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.02093, allocations: 236.9 kB / 256.5 MB, free: 1.887 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.02097, allocations: 37.7 kB / 256.6 MB, free: 1.844 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.02108, allocations: 194 kB / 256.8 MB, free: 1.648 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.338e-05/0.02117, allocations: 131 kB / 256.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.02129, allocations: 78.11 kB / 257 MB, free: 1.438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.0214, allocations: 342.8 kB / 257.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-05/0.02149, allocations: 40.97 kB / 257.3 MB, free: 1.055 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.02166, allocations: 206.9 kB / 257.5 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.02196, allocations: 245.4 kB / 257.8 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.02196, allocations: 4 kB / 257.8 MB, free: 500 kB / 250.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004716/0.02244, allocations: 253 kB / 258 MB, free: 240 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.02246, allocations: 8 kB / 258 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.02246, allocations: 7.938 kB / 258.1 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.02248, allocations: 4.469 kB / 258.1 MB, free: 220 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/0.02285, allocations: 111.8 kB / 258.2 MB, free: 108 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.02287, allocations: 11.94 kB / 258.2 MB, free: 96 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.02306, allocations: 31.83 kB / 258.2 MB, free: 64 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.02309, allocations: 23.97 kB / 258.2 MB, free: 40 kB / 250.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.0002237/0.02331, allocations: 152.3 kB / 258.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.02356, allocations: 145.5 kB / 258.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002903/0.02385, allocations: 168.8 kB / 258.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.02386, allocations: 12.03 kB / 258.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.02387, allocations: 7.922 kB / 258.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.02387, allocations: 0 / 258.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007433/0.02462, allocations: 466.7 kB / 259.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.02462, allocations: 4 kB / 259.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.02507, allocations: 115.9 kB / 259.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.106e-05/0.02513, allocations: 43.62 kB / 259.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.02514, allocations: 7.938 kB / 259.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.02518, allocations: 12 kB / 259.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.02519, allocations: 7.938 kB / 259.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.02519, allocations: 4 kB / 259.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003907/0.02558, allocations: 311.4 kB / 259.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.542e-05/0.02564, allocations: 12 kB / 259.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.02583, allocations: 19.94 kB / 259.7 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.02589, allocations: 23.95 kB / 259.7 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.02592, allocations: 11.98 kB / 259.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.612e-05/0.02602, allocations: 78.72 kB / 259.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02602, allocations: 0 / 259.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000439/0.02645, allocations: 103.7 kB / 259.9 MB, free: 14.29 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.0001529/0.02661, allocations: 102.4 kB / 260 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.02703, allocations: 218.2 kB / 260.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.98e-05/0.02705, allocations: 4 kB / 260.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.02721, allocations: 88.69 kB / 260.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006664/0.02787, allocations: 350.8 kB / 260.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004511/0.03238, allocations: 0.9055 MB / 261.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.03252, allocations: 137.7 kB / 261.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000242/0.03276, allocations: 34.97 kB / 261.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.033, allocations: 107.3 kB / 261.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.343e-06/0.03301, allocations: 0 / 261.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of Templates: time 0.008158/0.04116, allocations: 4.326 MB / 266.2 MB, free: 7.973 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5758923161774874]