Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.602e-05, allocations: 4 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08937, allocations: 50.42 MB / 342.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3631/0.4525, allocations: 84.8 MB / 427.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.4528, allocations: 72.09 kB / 427.4 MB, free: 9.336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0336/0.4864, allocations: 8.672 MB / 436.1 MB, free: 2.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.992e-06/0.4865, allocations: 3.938 kB / 436.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.34e-05/0.4865, allocations: 8 kB / 436.1 MB, free: 2.055 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.001463/0.488, allocations: 0.6969 MB / 436.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.488, allocations: 11.97 kB / 436.8 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.4882, allocations: 63.02 kB / 436.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007254/0.489, allocations: 394.9 kB / 437.2 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.4891, allocations: 69.77 kB / 437.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.4892, allocations: 47.12 kB / 437.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.491, allocations: 0.8411 MB / 438.2 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.4911, allocations: 4 kB / 438.2 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-05/0.4912, allocations: 19 kB / 438.2 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.4912, allocations: 12 kB / 438.2 MB, free: 168 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008444/0.492, allocations: 311.3 kB / 438.5 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.4955, allocations: 1.796 MB / 440.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.497, allocations: 495.1 kB / 440.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005069/0.4975, allocations: 224.6 kB / 441 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.057e-05/0.4976, allocations: 20.62 kB / 441.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003729/0.498, allocations: 189.6 kB / 441.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 4.443e-06/0.498, allocations: 0 / 441.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.001068/0.4991, allocations: 416.7 kB / 441.7 MB, free: 13.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.4993, allocations: 183 kB / 441.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.4996, allocations: 227.7 kB / 442.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.4997, allocations: 36.83 kB / 442.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.4999, allocations: 261.2 kB / 442.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.5001, allocations: 128.2 kB / 442.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.5001, allocations: 15 kB / 442.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.5003, allocations: 330.2 kB / 442.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.5007, allocations: 130.6 kB / 442.9 MB, free: 12.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005421/0.5012, allocations: 388 kB / 443.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00045/0.5017, allocations: 199.5 kB / 443.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.5e-06/0.5017, allocations: 4 kB / 443.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001198/0.5029, allocations: 0.5149 MB / 444 MB, free: 11.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.503, allocations: 12 kB / 444 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.503, allocations: 11.94 kB / 444.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.949e-05/0.503, allocations: 12 kB / 444.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/0.5037, allocations: 132.2 kB / 444.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-05/0.5038, allocations: 27.88 kB / 444.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004504/0.5042, allocations: 61.27 kB / 444.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-05/0.5043, allocations: 30.31 kB / 444.3 MB, free: 11.07 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.0002257/0.5046, allocations: 151.3 kB / 444.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005328/0.5051, allocations: 225.1 kB / 444.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006817/0.5058, allocations: 280.3 kB / 445 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.5058, allocations: 8 kB / 445 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.511e-06/0.5059, allocations: 3.984 kB / 445 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.5059, allocations: 11.92 kB / 445 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.5074, allocations: 0.8567 MB / 445.8 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5075, allocations: 4 kB / 445.8 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007224/0.5082, allocations: 114.8 kB / 445.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.5082, allocations: 0 / 445.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.5083, allocations: 14.69 kB / 446 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.443e-06/0.5083, allocations: 3.953 kB / 446 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.427e-06/0.5083, allocations: 8 kB / 446 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.5099, allocations: 0.7902 MB / 446.8 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.5101, allocations: 116.5 kB / 446.9 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.225e-05/0.5102, allocations: 15.31 kB / 446.9 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003543/0.5106, allocations: 23.98 kB / 446.9 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/0.5107, allocations: 27.16 kB / 446.9 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/0.5107, allocations: 23.3 kB / 447 MB, free: 8.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002523/0.511, allocations: 175.1 kB / 447.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.207e-06/0.511, allocations: 0 / 447.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007474/0.5118, allocations: 116.7 kB / 447.2 MB, free: 8.703 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.000222/0.512, allocations: 131.7 kB / 447.4 MB, free: 8.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.513, allocations: 402.1 kB / 447.8 MB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.403e-06/0.5131, allocations: 0 / 447.8 MB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.5134, allocations: 119.2 kB / 447.9 MB, free: 8.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.5141, allocations: 158.7 kB / 448 MB, free: 8.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.5162, allocations: 0.8237 MB / 448.9 MB, free: 7.359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006365/0.5168, allocations: 0.8552 MB / 449.7 MB, free: 6.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.5171, allocations: 42.62 kB / 449.8 MB, free: 6.441 MB / 362.7 MB Notification: Performance of SimCode: time 1.642e-06/0.5171, allocations: 0 / 449.8 MB, free: 6.441 MB / 362.7 MB Notification: Performance of Templates: time 0.01097/0.5281, allocations: 5.42 MB / 455.2 MB, free: 1.133 MB / 362.7 MB