Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000978/0.000978, allocations: 151 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.959/0.959, allocations: 173.4 MB / 201.5 MB, free: 8.766 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.575e-06/2.575e-06, allocations: 4 kB / 268.4 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.135e-05/2.393e-05, allocations: 2.312 kB / 268.4 MB, free: 6.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003547/0.003571, allocations: 3.124 MB / 271.6 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.004919, allocations: 0.7821 MB / 272.4 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.005128, allocations: 11.94 kB / 272.4 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002977/0.005425, allocations: 71.14 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.00555, allocations: 79.19 kB / 272.5 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005322/0.006082, allocations: 299.3 kB / 272.8 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.006526, allocations: 0.6128 MB / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002965/0.006822, allocations: 236.1 kB / 273.6 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.007083, allocations: 347.4 kB / 274 MB, free: 488 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.007331, allocations: 199.4 kB / 274.2 MB, free: 288 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.007399, allocations: 72 kB / 274.3 MB, free: 216 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.653e-05/0.007456, allocations: 72 kB / 274.3 MB, free: 144 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.007589, allocations: 151.6 kB / 274.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.007722, allocations: 187.4 kB / 274.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.008117, allocations: 458.3 kB / 275.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.00812, allocations: 4 kB / 275.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.008121, allocations: 0 / 275.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.008126, allocations: 0 / 275.1 MB, free: 15.36 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.0008077/0.008933, allocations: 0.7084 MB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.008967, allocations: 12.92 kB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.732e-05/0.009054, allocations: 76.88 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.009352, allocations: 272.4 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.317e-05/0.009425, allocations: 97.28 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.117e-05/0.009486, allocations: 60.27 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006931/0.01018, allocations: 0.6786 MB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.01019, allocations: 192 / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.01022, allocations: 24.38 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.01024, allocations: 16.12 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.01043, allocations: 134.5 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.01162, allocations: 1.243 MB / 278.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005273/0.01215, allocations: 348.7 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.01227, allocations: 119.4 kB / 278.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.0123, allocations: 19.97 kB / 278.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001369/0.01244, allocations: 175.4 kB / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.483e-06/0.01244, allocations: 0 / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0003861/0.01283, allocations: 285.6 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.153e-05/0.01291, allocations: 184 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.01304, allocations: 232.9 kB / 279.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.01307, allocations: 37.7 kB / 279.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.228e-05/0.01315, allocations: 197.7 kB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.055e-05/0.01323, allocations: 123 kB / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.962e-05/0.01331, allocations: 74.16 kB / 280.2 MB, free: 9.977 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.0134, allocations: 342.8 kB / 280.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.631e-05/0.01345, allocations: 40.97 kB / 280.5 MB, free: 9.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.01358, allocations: 210.8 kB / 280.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.0138, allocations: 242 kB / 281 MB, free: 9.031 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.0138, allocations: 4 kB / 281 MB, free: 9.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002501/0.01405, allocations: 248.5 kB / 281.2 MB, free: 8.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.01407, allocations: 4 kB / 281.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.01407, allocations: 4 kB / 281.2 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.01409, allocations: 8 kB / 281.2 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.01429, allocations: 91.83 kB / 281.3 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.0143, allocations: 19.86 kB / 281.4 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.01441, allocations: 31.78 kB / 281.4 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.01443, allocations: 16 kB / 281.4 MB, free: 8.609 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.0001429/0.01457, allocations: 152.7 kB / 281.6 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.01473, allocations: 141.5 kB / 281.7 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002064/0.01493, allocations: 180.7 kB / 281.9 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.01494, allocations: 4 kB / 281.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.01494, allocations: 0 / 281.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.01495, allocations: 11.92 kB / 281.9 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004587/0.01541, allocations: 458.7 kB / 282.3 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01541, allocations: 0 / 282.3 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.01567, allocations: 103.8 kB / 282.4 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.01567, allocations: 4 kB / 282.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.01569, allocations: 12 kB / 282.4 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.0157, allocations: 7.984 kB / 282.5 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.0157, allocations: 7.938 kB / 282.5 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.01599, allocations: 318.7 kB / 282.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.01603, allocations: 43.67 kB / 282.8 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.01607, allocations: 12 kB / 282.8 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.01617, allocations: 19.98 kB / 282.8 MB, free: 7.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.01622, allocations: 27.91 kB / 282.9 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.01624, allocations: 15.98 kB / 282.9 MB, free: 7.043 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.503e-05/0.01629, allocations: 70.78 kB / 283 MB, free: 6.973 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01629, allocations: 0 / 283 MB, free: 6.973 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002376/0.01653, allocations: 103.8 kB / 283.1 MB, free: 6.871 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.0001093/0.01664, allocations: 103.1 kB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002538/0.01689, allocations: 205.4 kB / 283.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.0169, allocations: 4 kB / 283.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.187e-05/0.01698, allocations: 76.69 kB / 283.4 MB, free: 6.473 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.01731, allocations: 138.4 kB / 283.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009591/0.01827, allocations: 0.873 MB / 284.5 MB, free: 5.422 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.037e-05/0.01835, allocations: 133.7 kB / 284.6 MB, free: 5.273 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.01846, allocations: 42.97 kB / 284.6 MB, free: 5.234 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.0186, allocations: 103.4 kB / 284.7 MB, free: 5.133 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01861, allocations: 0 / 284.7 MB, free: 5.133 MB / 266.7 MB Notification: Performance of Templates: time 0.006815/0.02542, allocations: 4.328 MB / 289.1 MB, free: 0.8555 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.891059332061559]