Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.561e-05, allocations: 5.406 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 50.42 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4286/0.531, allocations: 78.9 MB / 421.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5313, allocations: 69.16 kB / 421.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01012/0.5414, allocations: 2.33 MB / 423.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5415, allocations: 0 / 423.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.5415, allocations: 0 / 423.9 MB, free: 12.88 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006866/0.5422, allocations: 409.2 kB / 424.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.5423, allocations: 12.03 kB / 424.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.369e-05/0.5424, allocations: 50.3 kB / 424.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.5424, allocations: 7.906 kB / 424.4 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.5427, allocations: 202.6 kB / 424.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.5427, allocations: 11.88 kB / 424.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.5428, allocations: 11.94 kB / 424.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.5433, allocations: 227.4 kB / 424.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.5434, allocations: 7.859 kB / 424.8 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.5434, allocations: 3.875 kB / 424.8 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.5434, allocations: 4 kB / 424.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.5436, allocations: 55.12 kB / 424.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000815/0.5444, allocations: 0.5902 MB / 425.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.5448, allocations: 130.7 kB / 425.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.545, allocations: 69.97 kB / 425.7 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.545, allocations: 4.172 kB / 425.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.5451, allocations: 38.59 kB / 425.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.286e-06/0.5451, allocations: 3.938 kB / 425.7 MB, free: 11 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003794/0.5455, allocations: 116.4 kB / 425.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/0.5456, allocations: 110.8 kB / 426 MB, free: 10.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.5457, allocations: 124.4 kB / 426.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.5458, allocations: 25.7 kB / 426.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.425e-05/0.5459, allocations: 193.5 kB / 426.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.5459, allocations: 23.58 kB / 426.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.308e-06/0.5459, allocations: 3.812 kB / 426.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.5461, allocations: 322.8 kB / 426.6 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.627e-05/0.5461, allocations: 24.06 kB / 426.7 MB, free: 10.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.5463, allocations: 117.7 kB / 426.8 MB, free: 9.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.5464, allocations: 43.8 kB / 426.8 MB, free: 9.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5465, allocations: 0 / 426.8 MB, free: 9.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003587/0.5468, allocations: 160.4 kB / 427 MB, free: 9.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.5469, allocations: 8 kB / 427 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.5469, allocations: 4 kB / 427 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.5469, allocations: 4 kB / 427 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.5472, allocations: 43.92 kB / 427 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.5473, allocations: 11.92 kB / 427 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.5475, allocations: 32.06 kB / 427.1 MB, free: 9.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.5475, allocations: 11.95 kB / 427.1 MB, free: 9.641 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.718e-05/0.5476, allocations: 116.7 kB / 427.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.5479, allocations: 88.89 kB / 427.3 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.548, allocations: 16.38 kB / 427.3 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.548, allocations: 0 / 427.3 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.548, allocations: 0 / 427.3 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.548, allocations: 4 kB / 427.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.5484, allocations: 208.8 kB / 427.5 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.5484, allocations: 4.188 kB / 427.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.5488, allocations: 39.91 kB / 427.6 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.5488, allocations: 7.938 kB / 427.6 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.5488, allocations: 3.75 kB / 427.6 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.5488, allocations: 4 kB / 427.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5488, allocations: 0 / 427.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004986/0.5493, allocations: 369.7 kB / 427.9 MB, free: 8.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.5494, allocations: 88.95 kB / 428 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.5495, allocations: 7.938 kB / 428 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.5497, allocations: 11.98 kB / 428 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.5498, allocations: 11.58 kB / 428 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.5498, allocations: 8.062 kB / 428.1 MB, free: 8.656 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.566e-05/0.5499, allocations: 107.5 kB / 428.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5499, allocations: 0 / 428.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004864/0.5504, allocations: 23.94 kB / 428.2 MB, free: 8.539 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0008519/0.5513, allocations: 1.047 MB / 429.2 MB, free: 7.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.5516, allocations: 83 kB / 429.3 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5516, allocations: 0 / 429.3 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.415e-05/0.5517, allocations: 24.67 kB / 429.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.5522, allocations: 43.59 kB / 429.4 MB, free: 7.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.5533, allocations: 370.3 kB / 429.7 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.5536, allocations: 0.7167 MB / 430.5 MB, free: 6.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.046e-05/0.5537, allocations: 38.42 kB / 430.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5537, allocations: 0 / 430.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.31/2.864, allocations: 2.069 MB / 432.6 MB, free: 4.195 MB / 346.7 MB