Running command: translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadModel(Modelica_Synchronous): time 2.153/2.153, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.477e-05/3.487e-05, allocations: 4 kB / 284.3 MB, free: 8.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08496/0.08501, allocations: 50.36 MB / 334.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3888/0.4739, allocations: 84.74 MB / 419.4 MB, free: 9.586 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.4742, allocations: 70.78 kB / 419.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03379/0.508, allocations: 8.55 MB / 428 MB, free: 2.336 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.041e-06/0.508, allocations: 4 kB / 428 MB, free: 2.332 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.274e-05/0.5081, allocations: 12 kB / 428 MB, free: 2.32 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.001658/0.5097, allocations: 0.7509 MB / 428.8 MB, free: 1.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.5098, allocations: 12.03 kB / 428.8 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.51, allocations: 63.25 kB / 428.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007932/0.5108, allocations: 412.6 kB / 429.3 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.511, allocations: 101.6 kB / 429.4 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.5111, allocations: 64.84 kB / 429.4 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.5132, allocations: 0.9428 MB / 430.4 MB, free: 276 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/0.5133, allocations: 3.984 kB / 430.4 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.118e-05/0.5133, allocations: 29.44 kB / 430.4 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.5134, allocations: 15.94 kB / 430.4 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.5143, allocations: 360.3 kB / 430.8 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.5179, allocations: 1.732 MB / 432.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.5197, allocations: 0.5578 MB / 433.1 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005995/0.5204, allocations: 256.5 kB / 433.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-05/0.5205, allocations: 23.75 kB / 433.3 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004527/0.5209, allocations: 210.5 kB / 433.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 4.613e-06/0.521, allocations: 0 / 433.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.001228/0.5222, allocations: 474.6 kB / 434 MB, free: 13.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001697/0.5224, allocations: 207.4 kB / 434.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003835/0.5228, allocations: 243.8 kB / 434.4 MB, free: 13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.387e-05/0.5229, allocations: 40.55 kB / 434.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.5231, allocations: 270.1 kB / 434.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.5232, allocations: 143.8 kB / 434.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.5233, allocations: 9.25 kB / 434.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.5235, allocations: 342.6 kB / 435.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.5239, allocations: 147.3 kB / 435.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.5245, allocations: 423.9 kB / 435.8 MB, free: 11.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005037/0.525, allocations: 217.4 kB / 436 MB, free: 11.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.525, allocations: 4 kB / 436 MB, free: 11.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001297/0.5263, allocations: 0.5629 MB / 436.6 MB, free: 11.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.5264, allocations: 12.25 kB / 436.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.5264, allocations: 8 kB / 436.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.368e-05/0.5264, allocations: 16 kB / 436.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/0.5272, allocations: 146.6 kB / 436.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.922e-05/0.5273, allocations: 19.92 kB / 436.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.5278, allocations: 73.55 kB / 436.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.156e-05/0.5279, allocations: 35.38 kB / 436.9 MB, free: 10.85 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.0002574/0.5281, allocations: 172.8 kB / 437 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006448/0.5288, allocations: 254.5 kB / 437.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007617/0.5296, allocations: 308.7 kB / 437.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.5296, allocations: 8 kB / 437.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5296, allocations: 3.953 kB / 437.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/0.5297, allocations: 11.98 kB / 437.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.5314, allocations: 0.9467 MB / 438.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.141e-06/0.5314, allocations: 0 / 438.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008475/0.5323, allocations: 114.8 kB / 438.7 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.567e-05/0.5323, allocations: 7.953 kB / 438.7 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.29e-05/0.5324, allocations: 22.3 kB / 438.7 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.064e-06/0.5324, allocations: 0 / 438.7 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.935e-06/0.5324, allocations: 11.94 kB / 438.7 MB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.5343, allocations: 0.8638 MB / 439.6 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.5344, allocations: 132 kB / 439.7 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.5345, allocations: 18.23 kB / 439.7 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.535, allocations: 29.73 kB / 439.8 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.5351, allocations: 23.22 kB / 439.8 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-05/0.5352, allocations: 19.17 kB / 439.8 MB, free: 8.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002794/0.5355, allocations: 191.1 kB / 440 MB, free: 8.379 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.89e-07/0.5355, allocations: 4 kB / 440 MB, free: 8.375 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008188/0.5363, allocations: 133 kB / 440.1 MB, free: 8.266 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.0002409/0.5366, allocations: 145.3 kB / 440.3 MB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.5377, allocations: 457.6 kB / 440.7 MB, free: 7.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5377, allocations: 448 / 440.7 MB, free: 7.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.538, allocations: 131.6 kB / 440.8 MB, free: 7.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/0.5388, allocations: 165.9 kB / 441 MB, free: 7.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.5409, allocations: 0.7749 MB / 441.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006236/0.5415, allocations: 0.8675 MB / 442.6 MB, free: 6.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.5418, allocations: 47.23 kB / 442.7 MB, free: 5.973 MB / 362.7 MB Notification: Performance of SimCode: time 1.981e-06/0.5418, allocations: 0 / 442.7 MB, free: 5.973 MB / 362.7 MB Notification: Performance of Templates: time 0.01202/0.5538, allocations: 5.947 MB / 448.6 MB, free: 140 kB / 362.7 MB