Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001775/0.001775, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001999/0.001999, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.519/1.519, allocations: 230.4 MB / 251.1 MB, free: 8.504 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.84 kB / 368.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.264, allocations: 53.31 MB / 422.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005258/0.2693, allocations: 3.233 MB / 425.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.2709, allocations: 0.7632 MB / 426.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002493/0.2712, allocations: 11.94 kB / 426.3 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003801/0.2715, allocations: 71.19 kB / 426.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.2717, allocations: 71.25 kB / 426.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006727/0.2724, allocations: 299.5 kB / 426.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006709/0.273, allocations: 0.6128 MB / 427.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004428/0.2735, allocations: 237.8 kB / 427.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.2738, allocations: 235.2 kB / 427.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.2742, allocations: 258.9 kB / 428 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.609e-05/0.2742, allocations: 72 kB / 428.1 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.535e-05/0.2743, allocations: 72 kB / 428.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.2745, allocations: 147.6 kB / 428.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000269/0.2748, allocations: 278.7 kB / 428.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009289/0.2757, allocations: 0.8557 MB / 429.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2757, allocations: 0 / 429.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2757, allocations: 0 / 429.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2757, allocations: 0 / 429.4 MB, free: 0.6562 MB / 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.001447/0.2772, allocations: 0.8202 MB / 430.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2772, allocations: 12.03 kB / 430.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.2773, allocations: 60.56 kB / 430.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.2779, allocations: 398.5 kB / 430.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.23e-05/0.278, allocations: 67.58 kB / 430.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.316e-05/0.2781, allocations: 56.33 kB / 430.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.2797, allocations: 0.8753 MB / 431.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.2798, allocations: 3.938 kB / 431.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.2798, allocations: 23.94 kB / 431.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.2798, allocations: 15.94 kB / 431.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008447/0.2807, allocations: 363 kB / 432.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.2832, allocations: 1.736 MB / 433.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.2846, allocations: 0.5151 MB / 434.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.2851, allocations: 235.7 kB / 434.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.2851, allocations: 20.2 kB / 434.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003943/0.2855, allocations: 210.7 kB / 434.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 1.953e-06/0.2855, allocations: 0 / 434.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001369/0.2869, allocations: 0.6004 MB / 435.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.287, allocations: 182.2 kB / 435.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.2873, allocations: 254.7 kB / 435.8 MB, free: 9.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.238e-05/0.2874, allocations: 37.7 kB / 435.9 MB, free: 9.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.2875, allocations: 221.3 kB / 436.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.2877, allocations: 131.2 kB / 436.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.2878, allocations: 98.34 kB / 436.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.288, allocations: 354.8 kB / 436.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/0.2883, allocations: 149.2 kB / 436.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005982/0.2889, allocations: 411 kB / 437.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008789/0.2898, allocations: 0.5645 MB / 437.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.2898, allocations: 8 kB / 437.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001267/0.2911, allocations: 0.595 MB / 438.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.2911, allocations: 12.03 kB / 438.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.2911, allocations: 8 kB / 438.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.2911, allocations: 15.94 kB / 438.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.2917, allocations: 131.8 kB / 438.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.376e-05/0.2917, allocations: 19.92 kB / 438.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.292, allocations: 55.66 kB / 438.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.646e-05/0.292, allocations: 28 kB / 438.6 MB, free: 6.828 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.0003177/0.2924, allocations: 220.5 kB / 438.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004238/0.2928, allocations: 229.3 kB / 439.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006572/0.2934, allocations: 300.4 kB / 439.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.2935, allocations: 8 kB / 439.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2935, allocations: 0 / 439.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.2935, allocations: 11.92 kB / 439.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.2948, allocations: 0.8933 MB / 440.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2948, allocations: 0 / 440.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005675/0.2954, allocations: 99.88 kB / 440.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.2954, allocations: 4 kB / 440.4 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.2954, allocations: 15.98 kB / 440.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.839e-06/0.2955, allocations: 4 kB / 440.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2955, allocations: 3.938 kB / 440.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.297, allocations: 0.8124 MB / 441.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.2971, allocations: 124.7 kB / 441.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.096e-05/0.2972, allocations: 20.06 kB / 441.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.2974, allocations: 20.11 kB / 441.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.2975, allocations: 23.97 kB / 441.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.2975, allocations: 16.05 kB / 441.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.2977, allocations: 185.9 kB / 441.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2977, allocations: 0 / 441.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005569/0.2983, allocations: 115.7 kB / 441.7 MB, free: 3.629 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.0001879/0.2985, allocations: 128.3 kB / 441.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009659/0.2994, allocations: 445.5 kB / 442.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2994, allocations: 0 / 442.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.2997, allocations: 131.8 kB / 442.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006933/0.3004, allocations: 171.1 kB / 442.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.3023, allocations: 1.035 MB / 443.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.3028, allocations: 0.8397 MB / 444.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.303, allocations: 51.27 kB / 444.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.3031, allocations: 43.42 kB / 444.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3031, allocations: 3.938 kB / 444.5 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of Templates: time 0.01044/0.3136, allocations: 4.461 MB / 449 MB, free: 12.3 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches