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.001539/0.001539, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.286/1.286, allocations: 221.3 MB / 235.5 MB, free: 2.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009096/0.0009097, allocations: 93.73 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.261e-05, allocations: 0 / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08652/0.08655, allocations: 50.42 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2689/0.3555, allocations: 84.52 MB / 478.8 MB, free: 3.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.3557, allocations: 71.97 kB / 478.8 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0227/0.3784, allocations: 8.673 MB / 487.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3785, allocations: 4 kB / 487.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.482e-05/0.3785, allocations: 8 kB / 487.5 MB, free: 10.26 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.001137/0.3796, allocations: 0.6964 MB / 488.2 MB, free: 9.512 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3797, allocations: 11.97 kB / 488.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.3798, allocations: 55.34 kB / 488.3 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.3804, allocations: 398.5 kB / 488.7 MB, free: 9.012 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.009e-05/0.3805, allocations: 67 kB / 488.7 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-05/0.3805, allocations: 56 kB / 488.8 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.3819, allocations: 0.8482 MB / 489.6 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.382, allocations: 4 kB / 489.6 MB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/0.382, allocations: 23.98 kB / 489.7 MB, free: 7.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.382, allocations: 12 kB / 489.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005623/0.3826, allocations: 319.7 kB / 490 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.3849, allocations: 1.795 MB / 491.8 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.3861, allocations: 0.4965 MB / 492.3 MB, free: 5.223 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.3865, allocations: 222.9 kB / 492.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.828e-05/0.3865, allocations: 32.67 kB / 492.5 MB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002751/0.3868, allocations: 182.8 kB / 492.7 MB, free: 4.766 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 1.984e-06/0.3868, allocations: 0 / 492.7 MB, free: 4.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.0007422/0.3876, allocations: 421 kB / 493.1 MB, free: 4.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.3877, allocations: 186.1 kB / 493.3 MB, free: 4.129 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.3879, allocations: 227.2 kB / 493.5 MB, free: 3.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.388, allocations: 37.7 kB / 493.6 MB, free: 3.855 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.3881, allocations: 204.9 kB / 493.8 MB, free: 3.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.435e-05/0.3882, allocations: 126.4 kB / 493.9 MB, free: 3.527 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.3882, allocations: 12 kB / 493.9 MB, free: 3.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3883, allocations: 350.8 kB / 494.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.3886, allocations: 137.5 kB / 494.4 MB, free: 3.027 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.3889, allocations: 380.4 kB / 494.7 MB, free: 2.539 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.3893, allocations: 207.9 kB / 494.9 MB, free: 2.336 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3893, allocations: 4 kB / 494.9 MB, free: 2.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008267/0.3901, allocations: 0.5443 MB / 495.5 MB, free: 1.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3901, allocations: 8 kB / 495.5 MB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3902, allocations: 11.98 kB / 495.5 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.3902, allocations: 12.72 kB / 495.5 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004717/0.3907, allocations: 139.8 kB / 495.7 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.3907, allocations: 19.89 kB / 495.7 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.391, allocations: 59.58 kB / 495.7 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.345e-05/0.391, allocations: 31.94 kB / 495.8 MB, free: 1.504 MB / 362.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 () * 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.0001339/0.3912, allocations: 159.9 kB / 495.9 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/0.3915, allocations: 225.2 kB / 496.1 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000489/0.392, allocations: 289.1 kB / 496.4 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.3921, allocations: 4 kB / 496.4 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3921, allocations: 7.938 kB / 496.4 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3921, allocations: 7.938 kB / 496.4 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.3931, allocations: 0.8456 MB / 497.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3931, allocations: 4 kB / 497.3 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.3936, allocations: 111.8 kB / 497.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.3936, allocations: 4 kB / 497.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.3937, allocations: 12 kB / 497.4 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.283e-06/0.3937, allocations: 11.94 kB / 497.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3937, allocations: 0 / 497.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3948, allocations: 0.7891 MB / 498.2 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.075e-05/0.3948, allocations: 120.6 kB / 498.3 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.977e-05/0.3949, allocations: 16 kB / 498.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.3952, allocations: 23.98 kB / 498.4 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.3952, allocations: 23.97 kB / 498.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.3953, allocations: 19.98 kB / 498.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000149/0.3954, allocations: 175.1 kB / 498.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3954, allocations: 0 / 498.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004511/0.3959, allocations: 119.7 kB / 498.7 MB, free: 14.43 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 () * 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.0001563/0.3961, allocations: 138.7 kB / 498.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006227/0.3967, allocations: 426.8 kB / 499.3 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3967, allocations: 1.938 kB / 499.3 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.3969, allocations: 116.3 kB / 499.4 MB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.3974, allocations: 169.2 kB / 499.5 MB, free: 13.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.3988, allocations: 0.7966 MB / 0.4886 GB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.3991, allocations: 0.8518 MB / 0.4894 GB, free: 11.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002324/0.3994, allocations: 51.27 kB / 0.4895 GB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.3995, allocations: 31.44 kB / 0.4895 GB, free: 11.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3995, allocations: 0 / 0.4895 GB, free: 11.81 MB / 378.7 MB Notification: Performance of Templates: time 0.007378/0.4069, allocations: 3.758 MB / 0.4932 GB, free: 8.07 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