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.001447/0.001447, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001433/0.001433, allocations: 152 kB / 24.81 MB, free: 9.273 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 1.026/1.026, allocations: 173.4 MB / 201.4 MB, free: 9.23 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 1.833e-06/1.833e-06, allocations: 0 / 268.4 MB, free: 6.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.511e-05, allocations: 2.312 kB / 268.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004064/0.004089, allocations: 3.114 MB / 271.5 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.005561, allocations: 0.7474 MB / 272.2 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002509/0.005812, allocations: 15.88 kB / 272.3 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.006143, allocations: 83.11 kB / 272.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.006292, allocations: 75.25 kB / 272.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007056/0.006997, allocations: 295.3 kB / 272.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006938/0.007691, allocations: 0.6205 MB / 273.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003842/0.008075, allocations: 222.2 kB / 273.5 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000394/0.008469, allocations: 347.4 kB / 273.9 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003376/0.008807, allocations: 203.4 kB / 274.1 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.618e-05/0.008893, allocations: 72 kB / 274.1 MB, free: 456 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.008955, allocations: 72 kB / 274.2 MB, free: 384 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.009089, allocations: 151.5 kB / 274.4 MB, free: 232 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.009238, allocations: 183.6 kB / 274.5 MB, free: 48 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007296/0.009968, allocations: 458.2 kB / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.009972, allocations: 0 / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.009974, allocations: 0 / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.009985, allocations: 0 / 275 MB, free: 15.6 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.001052/0.01104, allocations: 0.8447 MB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.01108, allocations: 12.92 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.01122, allocations: 96.61 kB / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.01163, allocations: 355.2 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.008e-05/0.01172, allocations: 93.28 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.01178, allocations: 56.33 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007945/0.01258, allocations: 0.6985 MB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.0126, allocations: 4.125 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.01263, allocations: 24.31 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.01264, allocations: 16.12 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003396/0.01298, allocations: 151.7 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.01451, allocations: 1.685 MB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006117/0.01512, allocations: 377.6 kB / 279.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.01527, allocations: 139.1 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.01531, allocations: 23.91 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/0.01547, allocations: 177.7 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.813e-06/0.01547, allocations: 4 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0004827/0.01595, allocations: 373.3 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.01603, allocations: 188 kB / 280.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.01619, allocations: 284.1 kB / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.01622, allocations: 37.7 kB / 280.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.01633, allocations: 268 kB / 280.8 MB, free: 9.363 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.827e-05/0.0164, allocations: 119 kB / 281 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.33e-05/0.01649, allocations: 91.8 kB / 281 MB, free: 9.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.01663, allocations: 0.5078 MB / 281.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.86e-05/0.0167, allocations: 44.95 kB / 281.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.01685, allocations: 252.7 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.0171, allocations: 304.9 kB / 282.1 MB, free: 7.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.0171, allocations: 0 / 282.1 MB, free: 7.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003218/0.01742, allocations: 313.2 kB / 282.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.01744, allocations: 10.59 kB / 282.5 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.01745, allocations: 4 kB / 282.5 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.01746, allocations: 8 kB / 282.5 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.01767, allocations: 95.77 kB / 282.6 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.01768, allocations: 8 kB / 282.6 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.01779, allocations: 35.78 kB / 282.6 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.01781, allocations: 19.98 kB / 282.6 MB, free: 7.395 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.0001449/0.01795, allocations: 200.5 kB / 282.8 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.01815, allocations: 185.3 kB / 283 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002313/0.01838, allocations: 200.8 kB / 283.2 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.01839, allocations: 8 kB / 283.2 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.01839, allocations: 0 / 283.2 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.01839, allocations: 7.984 kB / 283.2 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005616/0.01896, allocations: 0.5918 MB / 283.8 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.01896, allocations: 0 / 283.8 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.01921, allocations: 103.9 kB / 283.9 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.01921, allocations: 4 kB / 283.9 MB, free: 6.051 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.01923, allocations: 15.98 kB / 283.9 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.01924, allocations: 4 kB / 283.9 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.01924, allocations: 7.938 kB / 283.9 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.01957, allocations: 408.6 kB / 284.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.714e-05/0.01961, allocations: 47.56 kB / 284.4 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.755e-05/0.01966, allocations: 23.98 kB / 284.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.01977, allocations: 16 kB / 284.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.01981, allocations: 23.95 kB / 284.4 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.01983, allocations: 12 kB / 284.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.377e-05/0.01992, allocations: 185.1 kB / 284.6 MB, free: 5.285 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01992, allocations: 0 / 284.6 MB, free: 5.285 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.02021, allocations: 107.8 kB / 284.7 MB, free: 5.18 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.0001215/0.02033, allocations: 125.8 kB / 284.9 MB, free: 5.051 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.02062, allocations: 219.4 kB / 285.1 MB, free: 4.836 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.02063, allocations: 0 / 285.1 MB, free: 4.836 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.78e-05/0.02071, allocations: 83.55 kB / 285.2 MB, free: 4.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.02112, allocations: 143.7 kB / 285.3 MB, free: 4.609 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.02216, allocations: 0.8696 MB / 286.2 MB, free: 3.691 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.459e-05/0.02225, allocations: 137.7 kB / 286.3 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.02237, allocations: 38.95 kB / 286.3 MB, free: 3.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.02252, allocations: 126.2 kB / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02252, allocations: 0 / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of Templates: time 0.111/0.1336, allocations: 4.395 MB / 290.9 MB, free: 29.56 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.7705020369030535]