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") Notification: Performance of loadModel(Modelica): time 2.082/2.082, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.783e-05, allocations: 5.406 kB / 292.1 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09045, allocations: 50.42 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/0.4589, allocations: 84.73 MB / 427.3 MB, free: 9.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4592, allocations: 71.38 kB / 427.4 MB, free: 9.508 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03452/0.4938, allocations: 8.678 MB / 436 MB, free: 2.238 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.03e-06/0.4938, allocations: 0 / 436 MB, free: 2.238 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.696e-05/0.4939, allocations: 12 kB / 436 MB, free: 2.227 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.001519/0.4954, allocations: 0.6967 MB / 436.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.4954, allocations: 8.031 kB / 436.8 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.4956, allocations: 59.34 kB / 436.8 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007711/0.4964, allocations: 394 kB / 437.2 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.4965, allocations: 73.5 kB / 437.3 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.4967, allocations: 48.44 kB / 437.3 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.4986, allocations: 0.8408 MB / 438.2 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.4986, allocations: 0 / 438.2 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.176e-05/0.4987, allocations: 17.12 kB / 438.2 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.4987, allocations: 12 kB / 438.2 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008314/0.4996, allocations: 310.9 kB / 438.5 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003549/0.5031, allocations: 1.801 MB / 440.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.5048, allocations: 497.3 kB / 440.8 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005495/0.5054, allocations: 225.8 kB / 441 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-05/0.5054, allocations: 20.62 kB / 441 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003896/0.5058, allocations: 186 kB / 441.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 4.174e-06/0.5059, allocations: 0 / 441.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.001163/0.507, allocations: 420.6 kB / 441.6 MB, free: 13.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.5072, allocations: 177.7 kB / 441.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.5076, allocations: 234 kB / 442 MB, free: 13.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.5077, allocations: 33.95 kB / 442 MB, free: 13.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.5079, allocations: 206.6 kB / 442.2 MB, free: 13.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.5081, allocations: 127.1 kB / 442.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.5081, allocations: 13.19 kB / 442.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.5083, allocations: 347 kB / 442.7 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.5087, allocations: 137.5 kB / 442.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005452/0.5092, allocations: 381.7 kB / 443.2 MB, free: 12.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004669/0.5097, allocations: 203.4 kB / 443.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.987e-06/0.5097, allocations: 4 kB / 443.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001275/0.511, allocations: 0.5257 MB / 444 MB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.5111, allocations: 12 kB / 444 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.5111, allocations: 8 kB / 444 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.429e-05/0.5111, allocations: 15.98 kB / 444 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007395/0.5119, allocations: 134.9 kB / 444.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.958e-05/0.512, allocations: 23.89 kB / 444.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004683/0.5124, allocations: 58.14 kB / 444.2 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.5125, allocations: 26.75 kB / 444.2 MB, free: 11.29 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.0002348/0.5128, allocations: 156.3 kB / 444.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005855/0.5134, allocations: 229.4 kB / 444.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007117/0.5141, allocations: 281.1 kB / 444.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.5141, allocations: 11.94 kB / 444.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.316e-06/0.5141, allocations: 0 / 444.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.5142, allocations: 7.938 kB / 444.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.5158, allocations: 0.855 MB / 445.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.907e-06/0.5159, allocations: 4 kB / 445.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007937/0.5167, allocations: 107.2 kB / 445.9 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/0.5167, allocations: 3.938 kB / 445.9 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.722e-05/0.5168, allocations: 10.94 kB / 445.9 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.149e-06/0.5168, allocations: 7.953 kB / 445.9 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.19e-06/0.5168, allocations: 11.98 kB / 445.9 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.5185, allocations: 0.7822 MB / 446.7 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.5186, allocations: 123.9 kB / 446.8 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.592e-05/0.5188, allocations: 16.5 kB / 446.8 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003813/0.5192, allocations: 24.67 kB / 446.8 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.897e-05/0.5193, allocations: 22.84 kB / 446.9 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.5193, allocations: 22.86 kB / 446.9 MB, free: 9.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002643/0.5196, allocations: 177.6 kB / 447.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.75e-07/0.5196, allocations: 0 / 447.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007984/0.5204, allocations: 122.4 kB / 447.2 MB, free: 8.91 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.000238/0.5207, allocations: 139 kB / 447.3 MB, free: 8.773 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.5217, allocations: 400.6 kB / 447.7 MB, free: 8.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.055e-06/0.5217, allocations: 0 / 447.7 MB, free: 8.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.522, allocations: 118.9 kB / 447.8 MB, free: 8.418 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007426/0.5228, allocations: 160.6 kB / 448 MB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.525, allocations: 0.7912 MB / 448.8 MB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.5257, allocations: 0.8556 MB / 449.6 MB, free: 6.719 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003712/0.526, allocations: 39.28 kB / 449.7 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.5262, allocations: 39.42 kB / 449.7 MB, free: 6.641 MB / 362.7 MB Notification: Performance of SimCode: time 1.701e-06/0.5263, allocations: 0 / 449.7 MB, free: 6.641 MB / 362.7 MB Notification: Performance of Templates: time 0.01316/0.5394, allocations: 3.72 MB / 453.4 MB, free: 2.953 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