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.001017/0.001017, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001089/0.001089, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 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.9898/0.9898, allocations: 173.4 MB / 201.1 MB, free: 9.348 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.413e-06/1.413e-06, allocations: 0 / 268 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/2.019e-05, allocations: 6.25 kB / 268 MB, free: 6.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003502/0.003522, allocations: 3.175 MB / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.004672, allocations: 0.7552 MB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.00486, allocations: 15.88 kB / 271.9 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.005166, allocations: 75.19 kB / 272 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.005288, allocations: 83.19 kB / 272.1 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.005806, allocations: 287.4 kB / 272.3 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004534/0.00626, allocations: 0.6205 MB / 273 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.00655, allocations: 222.2 kB / 273.2 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.006819, allocations: 355.3 kB / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.007076, allocations: 195.4 kB / 273.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.922e-05/0.007145, allocations: 76 kB / 273.8 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.865e-05/0.007203, allocations: 72 kB / 273.9 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.007321, allocations: 147.5 kB / 274 MB, free: 412 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.007449, allocations: 183.6 kB / 274.2 MB, free: 228 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.007865, allocations: 458.3 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.007867, allocations: 0 / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.007868, allocations: 0 / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.007873, allocations: 0 / 274.6 MB, free: 15.77 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.0009227/0.008796, allocations: 0.837 MB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.008833, allocations: 16.92 kB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.008958, allocations: 100.5 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/0.009348, allocations: 359.1 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.655e-05/0.009435, allocations: 89.28 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-05/0.009498, allocations: 56.33 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.0106, allocations: 0.7455 MB / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.01062, allocations: 192 / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.01066, allocations: 20.38 kB / 276.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.01067, allocations: 16.12 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.01099, allocations: 188.4 kB / 277 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.01238, allocations: 1.715 MB / 278.8 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006892/0.01307, allocations: 423.7 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.01326, allocations: 147.2 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.01329, allocations: 19.97 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.01346, allocations: 185.7 kB / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 1.653e-06/0.01346, allocations: 0 / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0005998/0.01406, allocations: 421.1 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.793e-05/0.01415, allocations: 182.2 kB / 280.1 MB, free: 9.934 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.01433, allocations: 292.2 kB / 280.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.01436, allocations: 37.7 kB / 280.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.01447, allocations: 260 kB / 280.7 MB, free: 9.332 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.099e-05/0.01454, allocations: 119.5 kB / 280.8 MB, free: 9.215 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.936e-05/0.01463, allocations: 87.84 kB / 280.9 MB, free: 9.121 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.01476, allocations: 0.5117 MB / 281.4 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.01487, allocations: 57.2 kB / 281.5 MB, free: 8.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.01505, allocations: 276.6 kB / 281.7 MB, free: 8.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.01533, allocations: 313.5 kB / 282 MB, free: 7.809 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.01533, allocations: 11.94 kB / 282 MB, free: 7.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003722/0.01571, allocations: 333.1 kB / 282.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.01572, allocations: 8 kB / 282.4 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.01573, allocations: 4 kB / 282.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.01575, allocations: 8 kB / 282.4 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.01596, allocations: 91.83 kB / 282.5 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.01597, allocations: 7.938 kB / 282.5 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.01607, allocations: 35.78 kB / 282.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.0161, allocations: 24.3 kB / 282.5 MB, free: 7.289 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,$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 (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.0001389/0.01624, allocations: 192.5 kB / 282.7 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.01645, allocations: 207.1 kB / 282.9 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000277/0.01673, allocations: 224.7 kB / 283.2 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.01674, allocations: 4 kB / 283.2 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.01674, allocations: 4 kB / 283.2 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.01675, allocations: 3.984 kB / 283.2 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007419/0.01749, allocations: 0.6498 MB / 283.8 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.01749, allocations: 4.031 kB / 283.8 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.01775, allocations: 103.8 kB / 283.9 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.01776, allocations: 4 kB / 283.9 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.01778, allocations: 15.98 kB / 283.9 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.01779, allocations: 4 kB / 283.9 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.01779, allocations: 0 / 283.9 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006234/0.01841, allocations: 0.6162 MB / 284.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.292e-05/0.01845, allocations: 43.64 kB / 284.6 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.107e-05/0.01849, allocations: 16 kB / 284.6 MB, free: 5.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.01859, allocations: 19.98 kB / 284.6 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.01865, allocations: 27.89 kB / 284.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.01867, allocations: 16.06 kB / 284.7 MB, free: 5.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001066/0.01878, allocations: 193.1 kB / 284.9 MB, free: 4.863 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01878, allocations: 4 kB / 284.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002586/0.01904, allocations: 99.73 kB / 285 MB, free: 4.762 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.0001061/0.01914, allocations: 133.8 kB / 285.1 MB, free: 4.625 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003485/0.01949, allocations: 255.7 kB / 285.3 MB, free: 4.371 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01949, allocations: 0 / 285.3 MB, free: 4.371 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.0196, allocations: 92.03 kB / 285.4 MB, free: 4.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.02001, allocations: 152.3 kB / 285.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.02102, allocations: 0.869 MB / 286.5 MB, free: 3.215 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.593e-05/0.02111, allocations: 137.7 kB / 286.6 MB, free: 3.059 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000106/0.02121, allocations: 38.95 kB / 286.6 MB, free: 3.023 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.741e-05/0.0213, allocations: 40.44 kB / 286.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of SimCode: time 6.32e-07/0.0213, allocations: 0 / 286.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of Templates: time 0.1024/0.1237, allocations: 4.205 MB / 290.9 MB, free: 29.85 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.91063060099259]