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.0009767/0.0009767, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008709/0.0008709, allocations: 143 kB / 24.89 MB, free: 8.781 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.9073/0.9073, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.383e-06/1.383e-06, allocations: 0 / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.663e-05, allocations: 2.312 kB / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.009392/0.009418, allocations: 3.174 MB / 271.7 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004685/0.0141, allocations: 0.7743 MB / 272.4 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.01438, allocations: 15.88 kB / 272.5 MB, free: 2.012 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003347/0.01472, allocations: 75.19 kB / 272.5 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.01491, allocations: 87.17 kB / 272.6 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006748/0.01558, allocations: 287.3 kB / 272.9 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003679/0.01926, allocations: 0.6205 MB / 273.5 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003757/0.01963, allocations: 228.1 kB / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.02002, allocations: 351.4 kB / 274.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.02033, allocations: 199.4 kB / 274.3 MB, free: 176 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.699e-05/0.02042, allocations: 72 kB / 274.3 MB, free: 104 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.954e-05/0.02049, allocations: 76 kB / 274.4 MB, free: 28 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.02063, allocations: 147.5 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.0208, allocations: 187.5 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000534/0.02134, allocations: 458.2 kB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.02134, allocations: 0 / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.02134, allocations: 0 / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.02135, allocations: 0 / 275.2 MB, free: 15.25 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.004028/0.02538, allocations: 0.72 MB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.02541, allocations: 8.922 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.02553, allocations: 84.88 kB / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.02592, allocations: 260.5 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.695e-05/0.02601, allocations: 97.27 kB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.464e-05/0.02607, allocations: 56.33 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008887/0.02696, allocations: 0.6786 MB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.02699, allocations: 12.12 kB / 277.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.02703, allocations: 16.38 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.02704, allocations: 20.12 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.02731, allocations: 138.6 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.0288, allocations: 1.236 MB / 278.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/0.02946, allocations: 344.6 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.02962, allocations: 119.8 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.02966, allocations: 15.97 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.02983, allocations: 171.5 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.425e-06/0.02983, allocations: 0 / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0004284/0.03026, allocations: 289.5 kB / 279.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.03037, allocations: 184 kB / 279.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.0305, allocations: 236.9 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.03053, allocations: 37.69 kB / 279.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.762e-05/0.0306, allocations: 201.7 kB / 280.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.287e-05/0.03067, allocations: 111 kB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.046e-05/0.03075, allocations: 86.14 kB / 280.3 MB, free: 9.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.243e-05/0.03083, allocations: 346.7 kB / 280.6 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.435e-05/0.03088, allocations: 32.98 kB / 280.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.03101, allocations: 211 kB / 280.8 MB, free: 9.215 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.03121, allocations: 252.9 kB / 281.1 MB, free: 8.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.03121, allocations: 0 / 281.1 MB, free: 8.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002474/0.03146, allocations: 237.3 kB / 281.3 MB, free: 8.676 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.03147, allocations: 8 kB / 281.3 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.03148, allocations: 4 kB / 281.3 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.0315, allocations: 4 kB / 281.3 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.03173, allocations: 103.8 kB / 281.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.03174, allocations: 11.94 kB / 281.4 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.03185, allocations: 35.78 kB / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.03187, allocations: 19.98 kB / 281.5 MB, free: 8.492 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.00012/0.03199, allocations: 152.7 kB / 281.6 MB, free: 8.332 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.03214, allocations: 141.5 kB / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001903/0.03233, allocations: 176.8 kB / 282 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.03233, allocations: 4 kB / 282 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.03234, allocations: 11.92 kB / 282 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.03234, allocations: 0 / 282 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.03281, allocations: 458.7 kB / 282.4 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.03281, allocations: 8 kB / 282.4 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.03309, allocations: 115.8 kB / 282.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.03309, allocations: 4 kB / 282.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.03311, allocations: 12 kB / 282.6 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.03312, allocations: 7.922 kB / 282.6 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.03312, allocations: 4 kB / 282.6 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.03339, allocations: 310.7 kB / 282.9 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.03342, allocations: 39.64 kB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.567e-05/0.03346, allocations: 16 kB / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.03365, allocations: 27.92 kB / 283 MB, free: 6.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.03371, allocations: 27.94 kB / 283 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.03372, allocations: 11.98 kB / 283 MB, free: 6.918 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.518e-05/0.03378, allocations: 70.78 kB / 283.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03378, allocations: 0 / 283.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002506/0.03403, allocations: 107.8 kB / 283.2 MB, free: 6.742 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.0001022/0.03413, allocations: 103.1 kB / 283.3 MB, free: 6.633 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002588/0.03439, allocations: 209 kB / 283.5 MB, free: 6.422 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.0344, allocations: 4 kB / 283.5 MB, free: 6.418 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.726e-05/0.03447, allocations: 68.7 kB / 283.5 MB, free: 6.348 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.03483, allocations: 145.9 kB / 283.7 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009513/0.03578, allocations: 0.881 MB / 284.6 MB, free: 5.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.212e-05/0.03585, allocations: 129.7 kB / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.03597, allocations: 43.05 kB / 284.7 MB, free: 5.102 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.0361, allocations: 103.4 kB / 284.8 MB, free: 5 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.03611, allocations: 4 kB / 284.8 MB, free: 4.996 MB / 266.7 MB Notification: Performance of Templates: time 0.006749/0.04285, allocations: 4.371 MB / 289.2 MB, free: 0.6836 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 -s gbode -gbm=radauIIA3 -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.7085438892245293]