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.001776/0.001776, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001886/0.001886, allocations: 206.6 kB / 24.47 MB, free: 3.977 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 2.149/2.149, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.002113/0.002113, allocations: 43.94 kB / 378.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3046, allocations: 53.37 MB / 432.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.006454/0.3111, allocations: 3.028 MB / 435.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.3129, allocations: 0.7398 MB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003154/0.3132, allocations: 11.94 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003957/0.3136, allocations: 79.12 kB / 436.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002683/0.3139, allocations: 79.23 kB / 436.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008711/0.3147, allocations: 291.5 kB / 436.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008934/0.3156, allocations: 0.6167 MB / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005419/0.3162, allocations: 245.8 kB / 437.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003363/0.3165, allocations: 239.3 kB / 437.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004259/0.3169, allocations: 258.8 kB / 437.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.3171, allocations: 75.94 kB / 437.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.3172, allocations: 72 kB / 438 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.3174, allocations: 143.6 kB / 438.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002862/0.3177, allocations: 231 kB / 438.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.3189, allocations: 0.8475 MB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.3189, allocations: 4 kB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3189, allocations: 3.938 kB / 439.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.3189, allocations: 0 / 439.2 MB, free: 15.81 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.001766/0.3206, allocations: 0.741 MB / 440 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.3207, allocations: 12.03 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.3208, allocations: 64.56 kB / 440.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007278/0.3216, allocations: 336.5 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.3217, allocations: 101.3 kB / 440.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.3218, allocations: 52.33 kB / 440.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.3239, allocations: 0.9043 MB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.3239, allocations: 7.922 kB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.275e-05/0.324, allocations: 16 kB / 441.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.324, allocations: 16 kB / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.3251, allocations: 359 kB / 441.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.328, allocations: 1.474 MB / 443.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.3298, allocations: 0.5029 MB / 443.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006069/0.3304, allocations: 227.8 kB / 444 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.366e-05/0.3305, allocations: 12.23 kB / 444 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005069/0.331, allocations: 239.9 kB / 444.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 5.881e-06/0.331, allocations: 7.922 kB / 444.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001763/0.3327, allocations: 0.604 MB / 444.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.3329, allocations: 182.6 kB / 445.1 MB, free: 9.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/0.3333, allocations: 249.8 kB / 445.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/0.3333, allocations: 33.7 kB / 445.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.3335, allocations: 213.4 kB / 445.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.3337, allocations: 139.5 kB / 445.7 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/0.3339, allocations: 98.34 kB / 445.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.3341, allocations: 347 kB / 446.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004429/0.3345, allocations: 161.2 kB / 446.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007149/0.3352, allocations: 433.4 kB / 446.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.3364, allocations: 0.5746 MB / 447.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3364, allocations: 0 / 447.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001463/0.3378, allocations: 0.5989 MB / 447.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.3379, allocations: 8 kB / 447.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.3379, allocations: 8 kB / 447.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.973e-05/0.3379, allocations: 12 kB / 447.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006869/0.3386, allocations: 131.8 kB / 448 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.38e-05/0.3386, allocations: 15.94 kB / 448 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.339, allocations: 51.72 kB / 448.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.371e-05/0.3391, allocations: 31.98 kB / 448.1 MB, free: 6.352 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.0003916/0.3395, allocations: 224.6 kB / 448.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005508/0.34, allocations: 233.3 kB / 448.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008458/0.3409, allocations: 308.5 kB / 448.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.3409, allocations: 4 kB / 448.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3409, allocations: 4 kB / 448.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3409, allocations: 3.984 kB / 448.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.3424, allocations: 0.7173 MB / 449.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3424, allocations: 3.938 kB / 449.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006743/0.3431, allocations: 99.88 kB / 449.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.3431, allocations: 4 kB / 449.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.473e-05/0.3432, allocations: 15.98 kB / 449.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.008e-05/0.3432, allocations: 4 kB / 449.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3432, allocations: 0 / 449.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.3448, allocations: 0.8224 MB / 450.6 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-05/0.3448, allocations: 35.7 kB / 450.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.374e-05/0.3449, allocations: 24.05 kB / 450.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.3452, allocations: 16 kB / 450.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.799e-05/0.3453, allocations: 23.95 kB / 450.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.3453, allocations: 19.98 kB / 450.7 MB, free: 3.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.3455, allocations: 173.2 kB / 450.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3455, allocations: 0 / 450.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005408/0.346, allocations: 111.7 kB / 450.9 MB, free: 3.441 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.0002069/0.3462, allocations: 129.2 kB / 451.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3474, allocations: 440.5 kB / 451.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3474, allocations: 0 / 451.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003538/0.3478, allocations: 131.8 kB / 451.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009216/0.3487, allocations: 168.3 kB / 451.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.3511, allocations: 1.031 MB / 452.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.3514, allocations: 244.7 kB / 453.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002729/0.3516, allocations: 47.27 kB / 453.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.3518, allocations: 35.42 kB / 453.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3518, allocations: 0 / 453.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of Templates: time 0.01439/0.3662, allocations: 4.875 MB / 458 MB, free: 12.36 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 -s cvode -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: 6.672678440998425]