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.001795/0.001795, allocations: 112.2 kB / 21.19 MB, free: 0.7812 MB / 14.72 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.001688/0.001688, allocations: 214.5 kB / 24.49 MB, free: 4.18 MB / 14.72 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 1.508/1.508, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001563/0.001563, allocations: 47.92 kB / 379 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3124, allocations: 53.37 MB / 432.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005516/0.318, allocations: 3.249 MB / 435.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.3197, allocations: 0.7671 MB / 436.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.32, allocations: 15.88 kB / 436.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003981/0.3204, allocations: 67.2 kB / 436.5 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.3206, allocations: 79.23 kB / 436.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007788/0.3214, allocations: 295.5 kB / 436.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007429/0.3221, allocations: 0.6206 MB / 437.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004664/0.3226, allocations: 245.9 kB / 437.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.3229, allocations: 239.2 kB / 437.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.3233, allocations: 258.8 kB / 438.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.932e-05/0.3234, allocations: 72 kB / 438.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.351e-05/0.3235, allocations: 72 kB / 438.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.3237, allocations: 147.6 kB / 438.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.324, allocations: 278.7 kB / 438.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.325, allocations: 0.8508 MB / 439.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.325, allocations: 0 / 439.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.325, allocations: 3.938 kB / 439.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.3251, allocations: 7.938 kB / 439.6 MB, free: 15.66 MB / 350.1 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.001579/0.3266, allocations: 0.7488 MB / 440.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3267, allocations: 12.03 kB / 440.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.3268, allocations: 60.56 kB / 440.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.3275, allocations: 332.7 kB / 440.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/0.3276, allocations: 97.28 kB / 440.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.3277, allocations: 52.33 kB / 440.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.3294, allocations: 0.8792 MB / 441.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.3294, allocations: 3.938 kB / 441.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.391e-05/0.3294, allocations: 20 kB / 441.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.3295, allocations: 12 kB / 441.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008016/0.3303, allocations: 363 kB / 442.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002585/0.3328, allocations: 1.672 MB / 443.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.3342, allocations: 0.5107 MB / 444.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/0.3347, allocations: 235.8 kB / 444.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.274e-05/0.3348, allocations: 16.75 kB / 444.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004001/0.3352, allocations: 218.2 kB / 444.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.485e-06/0.3352, allocations: 0 / 444.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001469/0.3366, allocations: 0.6001 MB / 445.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/0.3368, allocations: 182.9 kB / 445.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.3371, allocations: 257.8 kB / 445.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.9e-05/0.3372, allocations: 37.7 kB / 445.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.3373, allocations: 213.4 kB / 446.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.3375, allocations: 127 kB / 446.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.3376, allocations: 102.3 kB / 446.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.3378, allocations: 350.8 kB / 446.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/0.3381, allocations: 157.2 kB / 446.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.3387, allocations: 407.7 kB / 447.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008528/0.3396, allocations: 0.5614 MB / 447.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.3396, allocations: 4 kB / 447.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00108/0.3406, allocations: 0.602 MB / 448.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.3407, allocations: 11.98 kB / 448.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.3407, allocations: 8.75 kB / 448.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.171e-05/0.3407, allocations: 12 kB / 448.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004943/0.3412, allocations: 131.8 kB / 448.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.077e-05/0.3412, allocations: 15.94 kB / 448.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.3415, allocations: 55.66 kB / 448.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.991e-05/0.3416, allocations: 32 kB / 448.6 MB, free: 6.062 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,$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 (76): * Single equations (assignments): 76 * 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.000331/0.3419, allocations: 216.5 kB / 448.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004357/0.3424, allocations: 237.3 kB / 449.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006722/0.343, allocations: 304.5 kB / 449.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.343, allocations: 11.94 kB / 449.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3431, allocations: 0 / 449.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.3431, allocations: 3.984 kB / 449.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.3444, allocations: 0.8532 MB / 450.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.3444, allocations: 11.98 kB / 450.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.345, allocations: 103.8 kB / 450.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.345, allocations: 4 kB / 450.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.345, allocations: 12 kB / 450.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.345, allocations: 4 kB / 450.4 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.345, allocations: 0 / 450.4 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.3465, allocations: 0.8146 MB / 451.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.717e-05/0.3466, allocations: 51.58 kB / 451.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/0.3466, allocations: 20 kB / 451.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.3469, allocations: 19.98 kB / 451.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.133e-05/0.347, allocations: 27.95 kB / 451.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.347, allocations: 16 kB / 451.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.3472, allocations: 185.1 kB / 451.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3472, allocations: 0 / 451.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005447/0.3478, allocations: 107.8 kB / 451.6 MB, free: 2.984 MB / 350.1 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.0001863/0.3479, allocations: 125.2 kB / 451.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000958/0.3489, allocations: 444.5 kB / 452.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3489, allocations: 0 / 452.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.3492, allocations: 128.2 kB / 452.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007202/0.3499, allocations: 167.8 kB / 452.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.3519, allocations: 1.067 MB / 453.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005761/0.3525, allocations: 0.8475 MB / 454.4 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.3527, allocations: 43.42 kB / 454.4 MB, free: 116 kB / 350.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3527, allocations: 0 / 454.4 MB, free: 116 kB / 350.1 MB Notification: Performance of Templates: time 0.01006/0.3627, allocations: 5.714 MB / 460.1 MB, free: 10.41 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.973113985965028]