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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009479/0.0009477, allocations: 176.8 kB / 17.4 MB, free: 4.281 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 223.3 MB / 241.4 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009237/0.0009237, allocations: 98.81 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005194/0.0005198, allocations: 15.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2316, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09882/0.3305, allocations: 84.68 MB / 487.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.3308, allocations: 75.97 kB / 487.5 MB, free: 11.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02354/0.3543, allocations: 8.701 MB / 496.2 MB, free: 2.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3544, allocations: 0 / 496.2 MB, free: 2.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.731e-05/0.3544, allocations: 8 kB / 496.2 MB, free: 2.867 MB / 362.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.001395/0.3558, allocations: 0.7239 MB / 496.9 MB, free: 2.082 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3559, allocations: 8.031 kB / 496.9 MB, free: 2.074 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.3561, allocations: 68.27 kB / 497 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006211/0.3567, allocations: 407.5 kB / 497.4 MB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.916e-05/0.3568, allocations: 63.58 kB / 497.5 MB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3569, allocations: 60.3 kB / 497.5 MB, free: 1.441 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.3587, allocations: 0.8907 MB / 498.4 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.3587, allocations: 3.938 kB / 498.4 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.346e-05/0.3588, allocations: 24 kB / 498.4 MB, free: 492 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.3588, allocations: 12 kB / 498.4 MB, free: 480 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007906/0.3596, allocations: 367 kB / 498.8 MB, free: 116 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.3621, allocations: 1.783 MB / 0.4888 GB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.3634, allocations: 0.528 MB / 0.4894 GB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.3639, allocations: 247.8 kB / 0.4896 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.883e-05/0.364, allocations: 20.77 kB / 0.4896 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.3643, allocations: 214.2 kB / 0.4898 GB, free: 13.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.805e-06/0.3643, allocations: 4 kB / 0.4898 GB, free: 13.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.001262/0.3656, allocations: 0.6081 MB / 0.4904 GB, free: 12.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/0.3658, allocations: 182.2 kB / 0.4906 GB, free: 12.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.3661, allocations: 254.6 kB / 0.4908 GB, free: 12.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.492e-05/0.3661, allocations: 37.7 kB / 0.4909 GB, free: 12.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3663, allocations: 212.9 kB / 0.4911 GB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.3664, allocations: 130.3 kB / 0.4912 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.411e-05/0.3664, allocations: 8 kB / 0.4912 GB, free: 11.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3665, allocations: 354.9 kB / 0.4915 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.3669, allocations: 157.2 kB / 0.4917 GB, free: 11.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.3673, allocations: 407 kB / 0.4921 GB, free: 10.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007805/0.3681, allocations: 0.5783 MB / 0.4927 GB, free: 9.977 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.3681, allocations: 0 / 0.4927 GB, free: 9.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00103/0.3692, allocations: 0.5988 MB / 0.4932 GB, free: 9.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3692, allocations: 8.125 kB / 0.4932 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.3692, allocations: 12 kB / 0.4933 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.3693, allocations: 12 kB / 0.4933 GB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004807/0.3697, allocations: 139.8 kB / 0.4934 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.3698, allocations: 19.92 kB / 0.4934 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.3701, allocations: 59.52 kB / 0.4935 GB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.227e-05/0.3702, allocations: 28 kB / 0.4935 GB, free: 9.098 MB / 378.7 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 (engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.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,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003075/0.3705, allocations: 224.4 kB / 0.4937 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003998/0.3709, allocations: 233.4 kB / 0.4939 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006035/0.3715, allocations: 312.4 kB / 0.4942 GB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3715, allocations: 12.03 kB / 0.4942 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3715, allocations: 0 / 0.4942 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3715, allocations: 3.984 kB / 0.4943 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.3727, allocations: 0.8845 MB / 0.4951 GB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3728, allocations: 3.984 kB / 0.4951 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004765/0.3732, allocations: 99.89 kB / 0.4952 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.3733, allocations: 7.938 kB / 0.4952 GB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.3733, allocations: 15.98 kB / 0.4952 GB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.3733, allocations: 4 kB / 0.4952 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3733, allocations: 3.938 kB / 0.4952 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.3747, allocations: 0.8198 MB / 0.496 GB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-05/0.3748, allocations: 124.6 kB / 0.4962 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.3749, allocations: 20 kB / 0.4962 GB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.3751, allocations: 19.98 kB / 0.4962 GB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.634e-05/0.3752, allocations: 23.97 kB / 0.4962 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.3752, allocations: 15.98 kB / 0.4962 GB, free: 6.172 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001818/0.3754, allocations: 189.9 kB / 0.4964 GB, free: 5.984 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3754, allocations: 0 / 0.4964 GB, free: 5.984 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005254/0.376, allocations: 115.7 kB / 0.4965 GB, free: 5.871 MB / 378.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,engine.speedSensor.flange.phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002017/0.3762, allocations: 142.8 kB / 0.4967 GB, free: 5.727 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008766/0.3771, allocations: 461.2 kB / 0.4971 GB, free: 5.281 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3771, allocations: 4.125 kB / 0.4971 GB, free: 5.277 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.3774, allocations: 139.8 kB / 0.4972 GB, free: 5.141 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007261/0.3781, allocations: 180.4 kB / 0.4974 GB, free: 4.965 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.3803, allocations: 1.317 MB / 0.4987 GB, free: 3.609 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.3807, allocations: 0.8361 MB / 0.4995 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002843/0.381, allocations: 47.27 kB / 0.4996 GB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3812, allocations: 43.42 kB / 0.4996 GB, free: 2.656 MB / 378.7 MB Notification: Performance of SimCode: time 9.81e-07/0.3812, allocations: 0 / 0.4996 GB, free: 2.656 MB / 378.7 MB Notification: Performance of Templates: time 0.2046/0.5857, allocations: 3.76 MB / 0.5033 GB, free: 98.38 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:add.k1,add.k2,engine.angleSensor.phi,engine.crankshaftPositionEvent.rotationalClock.abs1.generateEvent,engine.crankshaftPositionEvent.rotationalClock.abs2.generateEvent,engine.crankshaftPositionEvent.rotationalClock.abs2.u,engine.crankshaftPositionEvent.rotationalClock.angular_offset.y_start,engine.crankshaftPositionEvent.rotationalClock.direction_sign.generateEvent,engine.crankshaftPositionEvent.rotationalClock.sub.k1,engine.crankshaftPositionEvent.rotationalClock.sub.k2,engine.crankshaftPositionEvent.rotationalClock.trigger_interval,engine.crankshaftPositionEvent.rotationalClock.useSolver,engine.crankshaftPositionEvent.rotationalClock.y_clock.useSolver,engine.crankshaftPositionEvent.threshold.k,engine.crankshaftPositionEvent.threshold.y,engine.crankshaftPositionEvent.trigger_interval,engine.crankshaftPositionEvent.useSolver,engine.cylinderAirCharge.add.k1,engine.cylinderAirCharge.add.k2,engine.cylinderAirCharge.hold1.y_start,engine.cylinderAirCharge.integrator.initType,engine.cylinderAirCharge.integrator.k,engine.cylinderAirCharge.integrator.y,engine.cylinderAirCharge.integrator.y_start,engine.inductionToPowerDelay.delay.n,engine.inductionToPowerDelay.delay.resolution,engine.inductionToPowerDelay.delay.shift,engine.inductionToPowerDelay.hold1.y_start,engine.inertia.J,engine.inertia.phi,engine.inertia.w,engine.intakeManifold.P_0,engine.intakeManifold.P_m,engine.intakeManifold.RTVmRatio,engine.speedSensor.flange.phi,engine.speedSensor.w,engine.throttleBody.P_0,engine.throttleBody.m_ai,engine.torque.tau,engine.torqueGeneration.AFR,engine.torqueGeneration.sigma,hold1.y_start,speedControl.k_I,speedControl.k_p,speedRef.height,speedRef.offset,speedRef.startTime,step1.height,step1.offset,step1.startTime,step2.height,step2.offset,step2.startTime,time