Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001572/0.001572, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 226.5 MB / 245.4 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007812/0.0007812, allocations: 104.6 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002073/0.0002073, allocations: 8 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2232, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3265, allocations: 85.38 MB / 494.7 MB, free: 6.141 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.3268, allocations: 79.95 kB / 494.8 MB, free: 6.062 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02269/0.3495, allocations: 8.747 MB / 0.4918 GB, free: 13.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3495, allocations: 7.938 kB / 0.4918 GB, free: 13.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.932e-05/0.3496, allocations: 8 kB / 0.4918 GB, free: 13.28 MB / 378.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.001317/0.3509, allocations: 0.7235 MB / 0.4925 GB, free: 12.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3509, allocations: 8.031 kB / 0.4925 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.3511, allocations: 56.28 kB / 0.4926 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005787/0.3517, allocations: 423.5 kB / 0.493 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.507e-05/0.3518, allocations: 67.58 kB / 0.493 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.405e-05/0.3519, allocations: 56.38 kB / 0.4931 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.3534, allocations: 0.875 MB / 0.4939 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.3535, allocations: 3.938 kB / 0.4939 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.075e-05/0.3536, allocations: 28 kB / 0.494 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3536, allocations: 8 kB / 0.494 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007844/0.3544, allocations: 375 kB / 0.4943 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002501/0.3569, allocations: 1.779 MB / 0.4961 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.3582, allocations: 0.5303 MB / 0.4966 GB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004489/0.3587, allocations: 258.7 kB / 0.4968 GB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.3587, allocations: 12.77 kB / 0.4968 GB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003409/0.3591, allocations: 214.2 kB / 0.497 GB, free: 7.586 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.695e-06/0.3591, allocations: 0 / 0.497 GB, free: 7.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.001261/0.3603, allocations: 0.6194 MB / 0.4976 GB, free: 6.961 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.3605, allocations: 182.9 kB / 0.4978 GB, free: 6.746 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.3608, allocations: 262.6 kB / 0.4981 GB, free: 6.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.3608, allocations: 33.7 kB / 0.4981 GB, free: 6.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3609, allocations: 205 kB / 0.4983 GB, free: 6.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3611, allocations: 126.3 kB / 0.4984 GB, free: 6.109 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/0.3611, allocations: 12 kB / 0.4984 GB, free: 6.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3613, allocations: 354.8 kB / 0.4988 GB, free: 5.742 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/0.3616, allocations: 153.2 kB / 0.4989 GB, free: 5.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004729/0.3621, allocations: 411 kB / 0.4993 GB, free: 5.078 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.3629, allocations: 0.581 MB / 0.4999 GB, free: 4.383 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3629, allocations: 3.938 kB / 0.4999 GB, free: 4.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009949/0.3639, allocations: 0.5982 MB / 0.5005 GB, free: 3.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.3639, allocations: 10.66 kB / 0.5005 GB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.3639, allocations: 8 kB / 0.5005 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.364, allocations: 12.56 kB / 0.5005 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004611/0.3644, allocations: 135.8 kB / 0.5006 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.3645, allocations: 19.92 kB / 0.5006 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.3648, allocations: 59.53 kB / 0.5007 GB, free: 3.535 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/0.3648, allocations: 31.98 kB / 0.5007 GB, free: 3.504 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.0002822/0.3651, allocations: 216.6 kB / 0.5009 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/0.3655, allocations: 233.1 kB / 0.5012 GB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006654/0.3662, allocations: 312.4 kB / 0.5015 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.3662, allocations: 4 kB / 0.5015 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.3662, allocations: 8 kB / 0.5015 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.3662, allocations: 3.984 kB / 0.5015 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.3676, allocations: 0.8961 MB / 0.5023 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.3677, allocations: 0 / 0.5023 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.3682, allocations: 103.9 kB / 0.5024 GB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/0.3682, allocations: 4 kB / 0.5024 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.3682, allocations: 15.98 kB / 0.5025 GB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.3683, allocations: 4 kB / 0.5025 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3683, allocations: 0 / 0.5025 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.3698, allocations: 0.8315 MB / 0.5033 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.37, allocations: 116.6 kB / 0.5034 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.974e-05/0.37, allocations: 24.09 kB / 0.5034 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.3703, allocations: 27.97 kB / 0.5034 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.3704, allocations: 19.97 kB / 0.5035 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.3704, allocations: 12 kB / 0.5035 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002038/0.3706, allocations: 189.9 kB / 0.5037 GB, free: 396 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3706, allocations: 0 / 0.5037 GB, free: 396 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006208/0.3712, allocations: 127.6 kB / 0.5038 GB, free: 268 kB / 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.0002301/0.3715, allocations: 137.3 kB / 0.5039 GB, free: 124 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1659/0.5374, allocations: 452.2 kB / 0.5043 GB, free: 95.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.5374, allocations: 0 / 0.5043 GB, free: 95.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.5378, allocations: 140.2 kB / 0.5045 GB, free: 95.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009035/0.5387, allocations: 172.5 kB / 0.5046 GB, free: 95.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.5409, allocations: 1.296 MB / 0.5059 GB, free: 94.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.5412, allocations: 0.8431 MB / 0.5067 GB, free: 93.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002725/0.5415, allocations: 46.41 kB / 0.5068 GB, free: 93.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.5416, allocations: 43.41 kB / 0.5068 GB, free: 93.71 MB / 378.7 MB Notification: Performance of SimCode: time 9.91e-07/0.5416, allocations: 1.5 kB / 0.5068 GB, free: 93.71 MB / 378.7 MB Notification: Performance of Templates: time 0.01059/0.5522, allocations: 3.765 MB / 0.5105 GB, free: 93.5 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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