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.001327/0.001327, allocations: 74.03 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001379/0.001379, allocations: 153 kB / 24.49 MB, free: 3.723 MB / 14.72 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.391/1.391, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 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 0.001516/0.001516, allocations: 46.69 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08854/0.09006, allocations: 52.16 MB / 371.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005531/0.09559, allocations: 3.029 MB / 374.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.09719, allocations: 0.736 MB / 375.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.09742, allocations: 11.94 kB / 375.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.09778, allocations: 75.12 kB / 375.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.09794, allocations: 75.25 kB / 375.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006773/0.09862, allocations: 291.5 kB / 375.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000711/0.09933, allocations: 0.6168 MB / 376.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.09974, allocations: 230.1 kB / 376.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002696/0.1, allocations: 231.3 kB / 376.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003761/0.1004, allocations: 238.8 kB / 377.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.1005, allocations: 72 kB / 377.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1006, allocations: 72 kB / 377.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.1008, allocations: 143.6 kB / 377.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002635/0.1011, allocations: 223 kB / 377.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000954/0.102, allocations: 0.8523 MB / 378.4 MB, free: 484 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.102, allocations: 4 kB / 378.4 MB, free: 480 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.102, allocations: 0 / 378.4 MB, free: 480 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.102, allocations: 0 / 378.4 MB, free: 480 kB / 334.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.001534/0.1036, allocations: 0.7565 MB / 379.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1036, allocations: 12.92 kB / 379.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.1037, allocations: 60.59 kB / 379.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006182/0.1044, allocations: 333.1 kB / 379.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.1045, allocations: 97.28 kB / 379.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.1045, allocations: 48.38 kB / 379.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.1061, allocations: 0.9048 MB / 380.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.1061, allocations: 15.88 kB / 380.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.942e-05/0.1062, allocations: 16 kB / 380.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.1062, allocations: 12 kB / 380.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008522/0.1071, allocations: 363 kB / 381 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002538/0.1096, allocations: 1.475 MB / 382.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.111, allocations: 0.5066 MB / 383 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000459/0.1114, allocations: 231.8 kB / 383.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.1115, allocations: 19.97 kB / 383.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.1119, allocations: 231.5 kB / 383.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.134e-06/0.1119, allocations: 3.938 kB / 383.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001349/0.1132, allocations: 0.6003 MB / 384.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.1134, allocations: 178.6 kB / 384.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.1136, allocations: 245.9 kB / 384.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.1137, allocations: 37.7 kB / 384.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.1138, allocations: 225.8 kB / 384.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.1139, allocations: 127 kB / 384.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.1141, allocations: 98.34 kB / 385 MB, free: 9.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1143, allocations: 350.8 kB / 385.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/0.1146, allocations: 157.2 kB / 385.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005951/0.1152, allocations: 432.8 kB / 385.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009238/0.1161, allocations: 0.5645 MB / 386.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1161, allocations: 0 / 386.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001094/0.1172, allocations: 0.6014 MB / 387.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1172, allocations: 8 kB / 387.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.1172, allocations: 16.12 kB / 387.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.1173, allocations: 15.94 kB / 387.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.1178, allocations: 127.8 kB / 387.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/0.1178, allocations: 19.92 kB / 387.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.1181, allocations: 55.67 kB / 387.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.1182, allocations: 31.98 kB / 387.3 MB, free: 6.992 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.0002658/0.1184, allocations: 212.6 kB / 387.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004418/0.1189, allocations: 237.3 kB / 387.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006683/0.1195, allocations: 312.5 kB / 388.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.1195, allocations: 4 kB / 388.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.1195, allocations: 8 kB / 388.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.1196, allocations: 3.984 kB / 388.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.1207, allocations: 0.7168 MB / 388.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1207, allocations: 0 / 388.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005274/0.1213, allocations: 107.9 kB / 388.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1213, allocations: 0 / 388.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.1213, allocations: 19.98 kB / 388.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.1213, allocations: 0 / 388.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1213, allocations: 4 kB / 388.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.1228, allocations: 0.8112 MB / 389.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.364e-05/0.1229, allocations: 51.56 kB / 389.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.535e-05/0.1229, allocations: 20.06 kB / 389.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.1232, allocations: 19.98 kB / 389.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.063e-05/0.1233, allocations: 19.97 kB / 389.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.049e-05/0.1233, allocations: 19.98 kB / 389.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.1235, allocations: 173.2 kB / 390 MB, free: 4.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1235, allocations: 0 / 390 MB, free: 4.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005066/0.124, allocations: 107.8 kB / 390.1 MB, free: 4.086 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.0001525/0.1241, allocations: 125.1 kB / 390.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009277/0.1251, allocations: 436.9 kB / 390.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1251, allocations: 192 / 390.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.1254, allocations: 135.8 kB / 390.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007077/0.1261, allocations: 176.2 kB / 391 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.1279, allocations: 1.031 MB / 392 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.1282, allocations: 240.9 kB / 392.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.1284, allocations: 51.25 kB / 392.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.1285, allocations: 36.5 kB / 392.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1285, allocations: 0 / 392.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of Templates: time 0.00974/0.1383, allocations: 4.342 MB / 396.7 MB, free: 13.52 MB / 366.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.503568495041691]