Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.EngineThrottleControl,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Systems_EngineThrottleControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.94e-05, allocations: 0 / 292.2 MB, free: 8.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 50.41 MB / 342.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4703/0.5868, allocations: 84.82 MB / 427.4 MB, free: 9.012 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003534/0.5872, allocations: 74.45 kB / 427.5 MB, free: 8.973 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03697/0.6242, allocations: 8.684 MB / 436.2 MB, free: 1.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6242, allocations: 0 / 436.2 MB, free: 1.703 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.002e-05/0.6243, allocations: 12 kB / 436.2 MB, free: 1.691 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.00174/0.626, allocations: 0.6947 MB / 436.9 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.6261, allocations: 12.03 kB / 436.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.6263, allocations: 97.83 kB / 437 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.6264, allocations: 55.34 kB / 437.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007605/0.6272, allocations: 393.7 kB / 437.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.701e-05/0.6273, allocations: 66.7 kB / 437.5 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.6275, allocations: 49.31 kB / 437.6 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.6295, allocations: 0.8456 MB / 438.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.6295, allocations: 0 / 438.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.416e-05/0.6296, allocations: 17.06 kB / 438.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.6296, allocations: 12 kB / 438.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009136/0.6306, allocations: 317.3 kB / 438.7 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/0.6343, allocations: 1.781 MB / 440.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.6362, allocations: 0.4998 MB / 441 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/0.6368, allocations: 221.6 kB / 441.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.185e-05/0.6369, allocations: 12.17 kB / 441.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004073/0.6373, allocations: 193.1 kB / 441.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 3.226e-06/0.6373, allocations: 0 / 441.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.001176/0.6385, allocations: 417.3 kB / 441.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.6386, allocations: 172.7 kB / 442 MB, free: 12.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.639, allocations: 229.9 kB / 442.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.6391, allocations: 32.52 kB / 442.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.6393, allocations: 266.7 kB / 442.5 MB, free: 12.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.6394, allocations: 131.4 kB / 442.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.196e-05/0.6395, allocations: 14.12 kB / 442.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.6396, allocations: 329.8 kB / 443 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.64, allocations: 141.4 kB / 443.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005735/0.6406, allocations: 382.3 kB / 443.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004874/0.6411, allocations: 201 kB / 443.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.6411, allocations: 7.938 kB / 443.7 MB, free: 11.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001273/0.6424, allocations: 0.5125 MB / 444.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.6425, allocations: 12.22 kB / 444.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.6425, allocations: 8 kB / 444.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.6425, allocations: 12 kB / 444.3 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000925/0.6435, allocations: 135.2 kB / 444.4 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.895e-05/0.6435, allocations: 19.89 kB / 444.4 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/0.644, allocations: 58.14 kB / 444.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/0.6441, allocations: 31.36 kB / 444.5 MB, free: 10.64 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.000258/0.6444, allocations: 164.5 kB / 444.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005644/0.645, allocations: 222.9 kB / 444.9 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000763/0.6457, allocations: 287.8 kB / 445.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.6458, allocations: 4 kB / 445.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.6458, allocations: 4 kB / 445.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.6458, allocations: 7.938 kB / 445.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.6474, allocations: 0.856 MB / 446 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.6475, allocations: 4 kB / 446 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009942/0.6485, allocations: 107.1 kB / 446.1 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-05/0.6485, allocations: 4 kB / 446.1 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.336e-05/0.6486, allocations: 14.67 kB / 446.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/0.6486, allocations: 7.953 kB / 446.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6486, allocations: 0 / 446.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.6503, allocations: 0.7904 MB / 447 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.6504, allocations: 123.9 kB / 447.1 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.6505, allocations: 25.36 kB / 447.1 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.651, allocations: 23.23 kB / 447.1 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.785e-05/0.6511, allocations: 18.66 kB / 447.1 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.036e-05/0.6512, allocations: 14.69 kB / 447.2 MB, free: 8.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002659/0.6514, allocations: 181.1 kB / 447.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6515, allocations: 0 / 447.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008014/0.6523, allocations: 114.8 kB / 447.4 MB, free: 8.277 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.002192/0.6545, allocations: 1.575 MB / 449 MB, free: 6.883 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.6556, allocations: 406.5 kB / 449.4 MB, free: 6.598 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6557, allocations: 0 / 449.4 MB, free: 6.598 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.656, allocations: 116.1 kB / 449.5 MB, free: 6.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009159/0.6569, allocations: 165.8 kB / 449.7 MB, free: 6.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.6599, allocations: 0.9447 MB / 450.6 MB, free: 5.543 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.6605, allocations: 0.8517 MB / 451.5 MB, free: 4.668 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004369/0.661, allocations: 160.2 kB / 451.6 MB, free: 4.617 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.661, allocations: 4 kB / 451.7 MB, free: 4.613 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.788/3.449, allocations: 7.435 MB / 459.1 MB, free: 13.34 MB / 378.7 MB