Running command: translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadModel(Modelica_Synchronous): time 2.019/2.019, allocations: 218.4 MB / 231.1 MB, free: 12.45 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.338e-05/3.358e-05, allocations: 0 / 284.3 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09268, allocations: 50.37 MB / 334.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3667/0.4594, allocations: 84.69 MB / 419.4 MB, free: 9.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.4597, allocations: 69.03 kB / 419.5 MB, free: 9.625 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0335/0.4932, allocations: 8.553 MB / 428 MB, free: 2.406 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4932, allocations: 0 / 428 MB, free: 2.406 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.608e-05/0.4933, allocations: 16.22 kB / 428 MB, free: 2.391 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: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001686/0.495, allocations: 0.7444 MB / 428.8 MB, free: 1.625 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.495, allocations: 8.031 kB / 428.8 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.4953, allocations: 63.25 kB / 428.8 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008236/0.4961, allocations: 418.3 kB / 429.2 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.4963, allocations: 103.8 kB / 429.3 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.4964, allocations: 63.52 kB / 429.4 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.4986, allocations: 0.943 MB / 430.4 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.695e-05/0.4987, allocations: 4 kB / 430.4 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.019e-05/0.4988, allocations: 20.38 kB / 430.4 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.4988, allocations: 12 kB / 430.4 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009904/0.4998, allocations: 358.6 kB / 430.7 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003703/0.5035, allocations: 1.739 MB / 432.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.5054, allocations: 0.56 MB / 433 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.506, allocations: 261.6 kB / 433.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.315e-05/0.5061, allocations: 14.66 kB / 433.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.5066, allocations: 207.9 kB / 433.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 4.345e-06/0.5066, allocations: 0 / 433.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.001285/0.5079, allocations: 478.8 kB / 434 MB, free: 13.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001926/0.5081, allocations: 214.8 kB / 434.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.5085, allocations: 246.3 kB / 434.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.5086, allocations: 32.89 kB / 434.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.5088, allocations: 222.4 kB / 434.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.509, allocations: 134.9 kB / 434.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.509, allocations: 14.5 kB / 434.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.5093, allocations: 354.5 kB / 435.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.5097, allocations: 145.7 kB / 435.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006211/0.5103, allocations: 421.9 kB / 435.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005084/0.5109, allocations: 230 kB / 435.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.747e-06/0.5109, allocations: 0 / 435.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0014/0.5123, allocations: 0.5719 MB / 436.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.5124, allocations: 8 kB / 436.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/0.5124, allocations: 15.94 kB / 436.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.456e-05/0.5125, allocations: 20.05 kB / 436.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007742/0.5132, allocations: 147.1 kB / 436.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.889e-05/0.5133, allocations: 19.92 kB / 436.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005447/0.5138, allocations: 70.73 kB / 436.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/0.5139, allocations: 34 kB / 436.8 MB, free: 10.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 20 (rotationalClock.rotationalClock.changed.y,rotationalClock.rotationalClock.changed.u,$CLKPRE.rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction,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,rotationalClock.rotationalClock.less.y,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0002697/0.5142, allocations: 168.6 kB / 437 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006589/0.5149, allocations: 260.3 kB / 437.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007857/0.5157, allocations: 308 kB / 437.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.5157, allocations: 12.03 kB / 437.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.5158, allocations: 11.89 kB / 437.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.5158, allocations: 3.984 kB / 437.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.5176, allocations: 0.9373 MB / 438.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.5176, allocations: 0 / 438.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008276/0.5185, allocations: 125.6 kB / 438.6 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.6e-05/0.5185, allocations: 7.953 kB / 438.6 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.945e-05/0.5186, allocations: 15.36 kB / 438.7 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.104e-06/0.5186, allocations: 4 kB / 438.7 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.984e-06/0.5186, allocations: 7.875 kB / 438.7 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.5205, allocations: 0.8726 MB / 439.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.5207, allocations: 126.6 kB / 439.7 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-05/0.5208, allocations: 20.25 kB / 439.7 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.5212, allocations: 26.17 kB / 439.7 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.786e-05/0.5213, allocations: 27.33 kB / 439.7 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.568e-05/0.5214, allocations: 25.98 kB / 439.8 MB, free: 8.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003148/0.5217, allocations: 184.2 kB / 439.9 MB, free: 8.484 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.2e-07/0.5217, allocations: 0 / 439.9 MB, free: 8.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000805/0.5226, allocations: 136.8 kB / 440.1 MB, free: 8.371 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.m_a_total,engine.inertia1.w,derivative.u) * Number of discrete variables: 18 (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,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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.0002358/0.5228, allocations: 145.3 kB / 440.2 MB, free: 8.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.524, allocations: 449.7 kB / 440.7 MB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.524, allocations: 0.8125 kB / 440.7 MB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.5243, allocations: 128.4 kB / 440.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.5251, allocations: 168.6 kB / 440.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.528, allocations: 0.7516 MB / 441.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006733/0.5287, allocations: 0.8753 MB / 442.6 MB, free: 6.086 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003963/0.5291, allocations: 51.45 kB / 442.6 MB, free: 6.035 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.5293, allocations: 39.42 kB / 442.7 MB, free: 5.996 MB / 362.7 MB Notification: Performance of SimCode: time 1.655e-06/0.5294, allocations: 0 / 442.7 MB, free: 5.996 MB / 362.7 MB Notification: Performance of Templates: time 0.01536/0.5447, allocations: 4.098 MB / 446.8 MB, free: 1.91 MB / 362.7 MB