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 2.321/2.321, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.471e-05/2.466e-05, allocations: 0 / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 50.4 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.00491/0.1144, allocations: 2.639 MB / 347.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1164, allocations: 0.6463 MB / 348.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003482/0.1168, allocations: 27.94 kB / 348.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002909/0.1171, allocations: 55.55 kB / 348.3 MB, free: 5.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.1174, allocations: 63.73 kB / 348.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007567/0.1182, allocations: 171.6 kB / 348.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006294/0.1188, allocations: 276.3 kB / 348.8 MB, free: 5.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.1193, allocations: 209.5 kB / 349 MB, free: 4.863 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.1195, allocations: 119.6 kB / 349.1 MB, free: 4.746 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003769/0.1199, allocations: 163.3 kB / 349.3 MB, free: 4.586 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.542e-05/0.12, allocations: 12 kB / 349.3 MB, free: 4.574 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-05/0.1201, allocations: 12 kB / 349.3 MB, free: 4.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.1202, allocations: 75.62 kB / 349.4 MB, free: 4.488 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1203, allocations: 28 kB / 349.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000912/0.1213, allocations: 0.647 MB / 350.1 MB, free: 3.812 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1213, allocations: 4 kB / 350.1 MB, free: 3.809 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1213, allocations: 0 / 350.1 MB, free: 3.809 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.1213, allocations: 0 / 350.1 MB, free: 3.809 MB / 282.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.001866/0.1232, allocations: 0.6807 MB / 350.8 MB, free: 3.074 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1233, allocations: 12.03 kB / 350.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.1235, allocations: 63.3 kB / 350.8 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007169/0.1242, allocations: 385 kB / 351.2 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.1243, allocations: 71.02 kB / 351.3 MB, free: 2.508 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.1245, allocations: 55.98 kB / 351.3 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.1269, allocations: 0.8745 MB / 352.2 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.127, allocations: 4 kB / 352.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.1271, allocations: 23.95 kB / 352.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.1271, allocations: 12 kB / 352.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.1285, allocations: 371 kB / 352.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/0.1324, allocations: 1.755 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.1348, allocations: 0.5316 MB / 354.9 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.404e-05/0.1349, allocations: 16.77 kB / 354.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006121/0.1356, allocations: 222.3 kB / 355.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 3.868e-06/0.1356, allocations: 0 / 355.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.00223/0.1378, allocations: 0.6062 MB / 355.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.138, allocations: 198.2 kB / 355.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.1385, allocations: 225.8 kB / 356.2 MB, free: 13.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.705e-05/0.1385, allocations: 33.7 kB / 356.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.1388, allocations: 267.3 kB / 356.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.1389, allocations: 122.4 kB / 356.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/0.139, allocations: 16 kB / 356.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1392, allocations: 334.8 kB / 356.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005719/0.1397, allocations: 161.2 kB / 357.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007827/0.1405, allocations: 411 kB / 357.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007021/0.1413, allocations: 222.3 kB / 357.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.1413, allocations: 4 kB / 357.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001764/0.1431, allocations: 0.5791 MB / 358.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.1431, allocations: 8 kB / 358.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.1432, allocations: 8 kB / 358.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.503e-05/0.1432, allocations: 12 kB / 358.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009154/0.1441, allocations: 132.1 kB / 358.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-05/0.1442, allocations: 23.92 kB / 358.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.1447, allocations: 63.53 kB / 358.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.057e-05/0.1448, allocations: 35.94 kB / 358.5 MB, free: 10.88 MB / 298.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.0004316/0.1452, allocations: 212.5 kB / 358.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006837/0.1459, allocations: 225.2 kB / 359 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.147, allocations: 315.9 kB / 359.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.147, allocations: 8 kB / 359.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1471, allocations: 0 / 359.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.1471, allocations: 3.984 kB / 359.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.1491, allocations: 0.8883 MB / 360.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.1491, allocations: 0 / 360.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009934/0.1501, allocations: 103.9 kB / 360.3 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.1502, allocations: 4 kB / 360.3 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.136e-05/0.1502, allocations: 19.98 kB / 360.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/0.1503, allocations: 4 kB / 360.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1503, allocations: 0 / 360.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.1527, allocations: 0.8632 MB / 361.2 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.1529, allocations: 116.5 kB / 361.3 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.153, allocations: 20.05 kB / 361.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.1534, allocations: 23.98 kB / 361.3 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.1536, allocations: 27.94 kB / 361.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.346e-05/0.1536, allocations: 19.94 kB / 361.4 MB, free: 7.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000298/0.1539, allocations: 182 kB / 361.6 MB, free: 7.734 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.154, allocations: 4 kB / 361.6 MB, free: 7.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007793/0.1547, allocations: 107.7 kB / 361.7 MB, free: 7.625 MB / 298.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,derivative.u) * 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.0002066/0.155, allocations: 131.3 kB / 361.8 MB, free: 7.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.1565, allocations: 461.2 kB / 362.2 MB, free: 7.043 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.1565, allocations: 0 / 362.2 MB, free: 7.043 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004754/0.157, allocations: 140 kB / 362.4 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009111/0.1579, allocations: 174.2 kB / 362.6 MB, free: 6.734 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.1608, allocations: 1.215 MB / 363.8 MB, free: 5.477 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000581/0.1615, allocations: 0.8517 MB / 364.6 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002923/0.1618, allocations: 43.42 kB / 364.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1618, allocations: 0 / 364.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of Templates: time 0.01379/0.1756, allocations: 5.452 MB / 370.1 MB, free: 15.1 MB / 314.7 MB