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.001497/0.001497, allocations: 180.2 kB / 16.39 MB, free: 5.766 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.312/1.312, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001022/0.001022, allocations: 98.23 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002833/0.0002833, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2355, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3369, allocations: 84.59 MB / 486.1 MB, free: 11.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.3372, allocations: 79.95 kB / 486.2 MB, free: 11.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02286/0.36, allocations: 8.701 MB / 494.9 MB, free: 3.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.3601, allocations: 0 / 494.9 MB, free: 3.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.478e-05/0.3602, allocations: 8 kB / 494.9 MB, free: 3.082 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.001763/0.3619, allocations: 0.7199 MB / 495.6 MB, free: 2.309 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.362, allocations: 12.03 kB / 495.6 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.3622, allocations: 59.34 kB / 495.7 MB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007265/0.3629, allocations: 402.4 kB / 496 MB, free: 1.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-05/0.3631, allocations: 67.02 kB / 496.1 MB, free: 1.727 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.3632, allocations: 52 kB / 496.2 MB, free: 1.676 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.3648, allocations: 0.8862 MB / 497 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/0.3649, allocations: 4 kB / 497.1 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.365, allocations: 16 kB / 497.1 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.365, allocations: 12 kB / 497.1 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008565/0.3658, allocations: 371 kB / 497.4 MB, free: 368 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002858/0.3687, allocations: 1.79 MB / 499.2 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.3701, allocations: 0.5274 MB / 499.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.3702, allocations: 12.77 kB / 499.8 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000398/0.3706, allocations: 215.2 kB / 500 MB, free: 13.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 4.008e-06/0.3706, allocations: 0 / 500 MB, free: 13.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.00136/0.3719, allocations: 0.608 MB / 0.4889 GB, free: 13.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.3721, allocations: 186.1 kB / 0.489 GB, free: 12.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.3724, allocations: 226 kB / 0.4893 GB, free: 12.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.584e-05/0.3724, allocations: 41.7 kB / 0.4893 GB, free: 12.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3726, allocations: 212.9 kB / 0.4895 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3727, allocations: 126.3 kB / 0.4896 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-05/0.3727, allocations: 15.88 kB / 0.4896 GB, free: 12.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3729, allocations: 354.8 kB / 0.49 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.3732, allocations: 153.2 kB / 0.4901 GB, free: 11.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/0.3737, allocations: 411 kB / 0.4905 GB, free: 11.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004147/0.3742, allocations: 217.3 kB / 0.4907 GB, free: 10.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3742, allocations: 8 kB / 0.4907 GB, free: 10.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001076/0.3753, allocations: 0.5983 MB / 0.4913 GB, free: 10.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3753, allocations: 12 kB / 0.4913 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.3753, allocations: 8 kB / 0.4913 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.3754, allocations: 12 kB / 0.4913 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.3759, allocations: 135.8 kB / 0.4915 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.34e-05/0.3759, allocations: 19.92 kB / 0.4915 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.3762, allocations: 63.69 kB / 0.4915 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/0.3763, allocations: 28 kB / 0.4916 GB, free: 10.1 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.0003172/0.3766, allocations: 220.5 kB / 0.4918 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004107/0.377, allocations: 233.4 kB / 0.492 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006271/0.3777, allocations: 316.4 kB / 0.4923 GB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3777, allocations: 4 kB / 0.4923 GB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.3777, allocations: 4 kB / 0.4923 GB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.3777, allocations: 3.984 kB / 0.4923 GB, free: 9.312 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.379, allocations: 0.8846 MB / 0.4932 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.379, allocations: 0 / 0.4932 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005076/0.3796, allocations: 99.89 kB / 0.4933 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.3796, allocations: 4 kB / 0.4933 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.3796, allocations: 15.98 kB / 0.4933 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.3796, allocations: 11.92 kB / 0.4933 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3797, allocations: 7.891 kB / 0.4933 GB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.381, allocations: 0.8515 MB / 0.4941 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3811, allocations: 124.6 kB / 0.4943 GB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.3812, allocations: 16 kB / 0.4943 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.3815, allocations: 27.98 kB / 0.4943 GB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/0.3816, allocations: 19.97 kB / 0.4943 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.3816, allocations: 19.98 kB / 0.4943 GB, free: 7.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001932/0.3818, allocations: 178 kB / 0.4945 GB, free: 6.941 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3818, allocations: 4 kB / 0.4945 GB, free: 6.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005393/0.3823, allocations: 115.7 kB / 0.4946 GB, free: 6.824 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.0002138/0.3826, allocations: 138 kB / 0.4948 GB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009264/0.3835, allocations: 464.8 kB / 0.4952 GB, free: 6.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3835, allocations: 3.938 kB / 0.4952 GB, free: 6.227 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.3838, allocations: 141.2 kB / 0.4953 GB, free: 6.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005562/0.3844, allocations: 179.6 kB / 0.4955 GB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.3864, allocations: 1.305 MB / 0.4968 GB, free: 4.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.3869, allocations: 0.8556 MB / 0.4976 GB, free: 3.688 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.3872, allocations: 43.28 kB / 0.4977 GB, free: 3.648 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3873, allocations: 35.42 kB / 0.4977 GB, free: 3.613 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.3873, allocations: 0 / 0.4977 GB, free: 3.613 MB / 378.7 MB Notification: Performance of Templates: time 0.1635/0.5508, allocations: 3.735 MB / 0.5013 GB, free: 98.67 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/jenkins/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