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.001998/0.001998, allocations: 81.58 kB / 20.68 MB, free: 1.023 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.002172/0.002172, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.451/1.451, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] 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.303e-06/1.303e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.402e-05/2.532e-05, allocations: 3.5 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004168/0.004194, allocations: 3.004 MB / 321.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.005572, allocations: 0.7504 MB / 322.7 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002558/0.005828, allocations: 14.66 kB / 322.7 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.006166, allocations: 73.84 kB / 322.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.006333, allocations: 75.22 kB / 322.8 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006527/0.006986, allocations: 292.9 kB / 323.1 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.007603, allocations: 0.6214 MB / 323.7 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003887/0.007992, allocations: 233.7 kB / 323.9 MB, free: 272 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003592/0.008351, allocations: 347.3 kB / 324.3 MB, free: 88 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003097/0.008661, allocations: 195 kB / 324.5 MB, free: 4 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.008761, allocations: 71.47 kB / 324.5 MB, free: 4 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.336e-05/0.008855, allocations: 71.94 kB / 324.6 MB, free: 4 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/0.00908, allocations: 148 kB / 324.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.009324, allocations: 186.1 kB / 324.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.01064, allocations: 0.886 MB / 325.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.01064, allocations: 3.938 kB / 325.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01064, allocations: 1.375 kB / 325.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.01066, allocations: 0 / 325.8 MB, free: 15.43 MB / 302.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.001625/0.01228, allocations: 0.7464 MB / 326.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.01232, allocations: 9.828 kB / 326.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.01245, allocations: 57.7 kB / 326.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006394/0.01309, allocations: 342.8 kB / 327 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.01321, allocations: 96.03 kB / 327.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.8e-05/0.0133, allocations: 51.31 kB / 327.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.01504, allocations: 0.9042 MB / 328 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.01506, allocations: 6.688 kB / 328 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-05/0.01512, allocations: 16.09 kB / 328.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.01514, allocations: 16.34 kB / 328.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008535/0.01599, allocations: 362.7 kB / 328.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00256/0.01855, allocations: 1.476 MB / 329.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.02003, allocations: 0.5051 MB / 330.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005242/0.02056, allocations: 242.4 kB / 330.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.02061, allocations: 17.33 kB / 330.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004422/0.02105, allocations: 227.8 kB / 330.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.825e-06/0.02105, allocations: 0 / 330.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001492/0.02255, allocations: 0.6122 MB / 331.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.0227, allocations: 177 kB / 331.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.02299, allocations: 253.3 kB / 331.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.789e-05/0.02305, allocations: 36.17 kB / 331.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.02321, allocations: 217 kB / 332.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.02334, allocations: 121.9 kB / 332.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.02348, allocations: 80.77 kB / 332.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.02367, allocations: 342.7 kB / 332.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.02397, allocations: 125 kB / 332.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000445/0.02441, allocations: 296 kB / 333.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007228/0.02514, allocations: 381 kB / 333.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.02514, allocations: 9.156 kB / 333.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009132/0.02606, allocations: 452.7 kB / 333.9 MB, free: 10 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.02608, allocations: 6.938 kB / 333.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.02609, allocations: 3.562 kB / 333.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.02611, allocations: 7.25 kB / 333.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.02651, allocations: 102.3 kB / 334 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.02653, allocations: 5.906 kB / 334.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.02679, allocations: 39.58 kB / 334.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.969e-05/0.02683, allocations: 18.59 kB / 334.1 MB, free: 9.945 MB / 302.1 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.0002731/0.0271, allocations: 193.3 kB / 334.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/0.02755, allocations: 230.7 kB / 334.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006953/0.02824, allocations: 314.7 kB / 334.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.02826, allocations: 9.844 kB / 334.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.02826, allocations: 1.469 kB / 334.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.02828, allocations: 5.422 kB / 334.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.02958, allocations: 0.7118 MB / 335.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.02959, allocations: 1.094 kB / 335.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.03008, allocations: 102.7 kB / 335.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.03009, allocations: 6.766 kB / 335.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.03013, allocations: 16.22 kB / 335.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.03013, allocations: 3.125 kB / 335.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.03013, allocations: 1.031 kB / 335.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.0316, allocations: 0.8095 MB / 336.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.03167, allocations: 48.06 kB / 336.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.367e-05/0.03174, allocations: 14.88 kB / 336.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.032, allocations: 24.23 kB / 336.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.0321, allocations: 24.2 kB / 336.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.771e-05/0.03213, allocations: 15 kB / 336.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001921/0.03233, allocations: 173.3 kB / 336.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.03233, allocations: 0 / 336.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004939/0.03282, allocations: 99.5 kB / 336.9 MB, free: 8.145 MB / 302.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.0002054/0.03303, allocations: 134.2 kB / 337 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008685/0.03389, allocations: 374 kB / 337.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.0339, allocations: 0 / 337.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.0342, allocations: 131.5 kB / 337.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007452/0.03494, allocations: 165.9 kB / 337.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.03697, allocations: 0.936 MB / 338.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.03726, allocations: 243.9 kB / 338.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000183/0.03744, allocations: 39.3 kB / 338.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.03757, allocations: 34.94 kB / 338.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.03757, allocations: 0 / 338.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of Templates: time 0.009882/0.04745, allocations: 4.032 MB / 342.9 MB, free: 3.094 MB / 302.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/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.477066095918417]