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") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.083e-05, allocations: 4 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.08966, allocations: 50.41 MB / 343.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.4888, allocations: 84.73 MB / 427.8 MB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4891, allocations: 72.84 kB / 427.9 MB, free: 9.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03452/0.5236, allocations: 8.672 MB / 436.6 MB, free: 2.215 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.226e-06/0.5236, allocations: 0 / 436.6 MB, free: 2.215 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.775e-05/0.5237, allocations: 12 kB / 436.6 MB, free: 2.203 MB / 346.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.001511/0.5252, allocations: 0.6949 MB / 437.3 MB, free: 1.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.5253, allocations: 11.97 kB / 437.3 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.5255, allocations: 59.34 kB / 437.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007446/0.5262, allocations: 397 kB / 437.7 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.5263, allocations: 68.14 kB / 437.8 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.5265, allocations: 49.31 kB / 437.8 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.5283, allocations: 0.8396 MB / 438.7 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.5284, allocations: 0 / 438.7 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.302e-05/0.5285, allocations: 24.92 kB / 438.7 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.5285, allocations: 12 kB / 438.7 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008318/0.5294, allocations: 308.9 kB / 439 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.5329, allocations: 1.791 MB / 440.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.5344, allocations: 0.4912 MB / 441.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005283/0.535, allocations: 225.8 kB / 441.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.5351, allocations: 23.69 kB / 441.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/0.5354, allocations: 193.2 kB / 441.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 4.005e-06/0.5355, allocations: 0 / 441.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.001088/0.5366, allocations: 418.2 kB / 442.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.5367, allocations: 173 kB / 442.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.5371, allocations: 230.4 kB / 442.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.862e-05/0.5372, allocations: 36.14 kB / 442.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.5374, allocations: 208.2 kB / 442.8 MB, free: 13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.5375, allocations: 127.9 kB / 442.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.5376, allocations: 14.88 kB / 442.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.5378, allocations: 353.1 kB / 443.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.5381, allocations: 132.2 kB / 443.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/0.5387, allocations: 383.6 kB / 443.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004633/0.5392, allocations: 200.4 kB / 443.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.5392, allocations: 4 kB / 444 MB, free: 11.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00124/0.5404, allocations: 0.528 MB / 444.5 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.5405, allocations: 12 kB / 444.5 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.5405, allocations: 8 kB / 444.5 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.084e-05/0.5405, allocations: 12 kB / 444.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.5412, allocations: 131.7 kB / 444.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.103e-05/0.5413, allocations: 19.89 kB / 444.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.5417, allocations: 62.36 kB / 444.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.428e-05/0.5418, allocations: 27.25 kB / 444.7 MB, free: 11.25 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.0002268/0.5421, allocations: 157.2 kB / 444.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005457/0.5426, allocations: 225 kB / 445.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007072/0.5434, allocations: 281.6 kB / 445.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.5434, allocations: 11.98 kB / 445.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.646e-06/0.5434, allocations: 3.938 kB / 445.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.5434, allocations: 7.984 kB / 445.4 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.5451, allocations: 0.8537 MB / 446.3 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.638e-06/0.5451, allocations: 4 kB / 446.3 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007165/0.5458, allocations: 109.2 kB / 446.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.797e-06/0.5459, allocations: 0 / 446.4 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.777e-05/0.5459, allocations: 14.8 kB / 446.4 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.842e-06/0.546, allocations: 11.95 kB / 446.4 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.743e-06/0.546, allocations: 4 kB / 446.4 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.5476, allocations: 0.782 MB / 447.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.5477, allocations: 119.7 kB / 447.3 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.356e-05/0.5479, allocations: 21.48 kB / 447.3 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003655/0.5482, allocations: 18.12 kB / 447.3 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.663e-05/0.5484, allocations: 37.52 kB / 447.4 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.074e-05/0.5484, allocations: 11.06 kB / 447.4 MB, free: 9.137 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.5487, allocations: 176.6 kB / 447.6 MB, free: 8.992 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.5487, allocations: 0 / 447.6 MB, free: 8.992 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007526/0.5495, allocations: 131.5 kB / 447.7 MB, free: 8.883 MB / 362.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.0002248/0.5497, allocations: 125.3 kB / 447.8 MB, free: 8.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000975/0.5507, allocations: 403.9 kB / 448.2 MB, free: 8.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.155e-06/0.5507, allocations: 0 / 448.2 MB, free: 8.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.551, allocations: 118.6 kB / 448.3 MB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.5518, allocations: 175.9 kB / 448.5 MB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.5538, allocations: 0.7892 MB / 449.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006193/0.5545, allocations: 0.8541 MB / 450.1 MB, free: 6.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003764/0.5549, allocations: 43.27 kB / 450.2 MB, free: 6.648 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.5551, allocations: 34.12 kB / 450.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of SimCode: time 2.083e-06/0.5551, allocations: 0 / 450.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of Templates: time 0.0131/0.5682, allocations: 3.72 MB / 453.9 MB, free: 2.918 MB / 362.7 MB "" 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