Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 225.8 MB / 239.3 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.867e-05/3.872e-05, allocations: 4 kB / 292.2 MB, free: 11.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 50.4 MB / 342.6 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4549/0.5622, allocations: 78.54 MB / 421.1 MB, free: 7.902 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.5625, allocations: 67.77 kB / 421.2 MB, free: 7.902 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009041/0.5716, allocations: 2.304 MB / 423.5 MB, free: 7.461 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5716, allocations: 0 / 423.5 MB, free: 7.461 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.5717, allocations: 0 / 423.5 MB, free: 7.461 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005696/0.5723, allocations: 404 kB / 423.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.5723, allocations: 13.97 kB / 423.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.5724, allocations: 50.94 kB / 424 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.159e-05/0.5724, allocations: 11.72 kB / 424 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.5726, allocations: 197.4 kB / 424.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.5727, allocations: 10.19 kB / 424.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.5727, allocations: 15.59 kB / 424.2 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.5732, allocations: 209.3 kB / 424.4 MB, free: 6.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5732, allocations: 7.812 kB / 424.4 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.5733, allocations: 11.2 kB / 424.4 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.5733, allocations: 3.875 kB / 424.4 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.5734, allocations: 59.8 kB / 424.5 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006789/0.5741, allocations: 0.5881 MB / 425.1 MB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.5744, allocations: 129.8 kB / 425.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.5745, allocations: 61.05 kB / 425.3 MB, free: 6.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.554e-05/0.5746, allocations: 7.141 kB / 425.3 MB, free: 6.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.5746, allocations: 38.25 kB / 425.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.976e-06/0.5746, allocations: 0 / 425.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003454/0.575, allocations: 110.3 kB / 425.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.575, allocations: 114.1 kB / 425.5 MB, free: 5.875 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.5752, allocations: 117.4 kB / 425.6 MB, free: 5.777 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.5752, allocations: 29.58 kB / 425.7 MB, free: 5.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.5753, allocations: 184.2 kB / 425.9 MB, free: 5.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/0.5753, allocations: 29.41 kB / 425.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-06/0.5753, allocations: 0 / 425.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.5754, allocations: 321.3 kB / 426.2 MB, free: 5.246 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.49e-05/0.5755, allocations: 26.62 kB / 426.2 MB, free: 5.242 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.5756, allocations: 117.9 kB / 426.3 MB, free: 5.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.771e-05/0.5757, allocations: 37.34 kB / 426.4 MB, free: 5.113 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.5757, allocations: 7.812 kB / 426.4 MB, free: 5.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002942/0.576, allocations: 142.4 kB / 426.5 MB, free: 5.062 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.576, allocations: 7.719 kB / 426.5 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.576, allocations: 3.938 kB / 426.5 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.5761, allocations: 11.38 kB / 426.5 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/0.5764, allocations: 48.98 kB / 426.6 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.5764, allocations: 7.859 kB / 426.6 MB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.5766, allocations: 25.8 kB / 426.6 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.5766, allocations: 7.75 kB / 426.6 MB, free: 5.039 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 7.466e-05/0.5767, allocations: 115 kB / 426.7 MB, free: 4.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.5769, allocations: 83.66 kB / 426.8 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.466e-05/0.577, allocations: 21.78 kB / 426.8 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.577, allocations: 3.719 kB / 426.8 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.577, allocations: 0 / 426.8 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.577, allocations: 3.953 kB / 426.9 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.5773, allocations: 209.2 kB / 427.1 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5774, allocations: 0 / 427.1 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003079/0.5777, allocations: 37.09 kB / 427.1 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.5777, allocations: 3.844 kB / 427.1 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.5777, allocations: 3.312 kB / 427.1 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.5777, allocations: 7.781 kB / 427.1 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5777, allocations: 0 / 427.1 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005947/0.5783, allocations: 359.8 kB / 427.5 MB, free: 20.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.576e-05/0.5784, allocations: 88.8 kB / 427.5 MB, free: 20.31 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.5785, allocations: 11.53 kB / 427.6 MB, free: 20.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.5787, allocations: 11.28 kB / 427.6 MB, free: 20.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.5787, allocations: 14.52 kB / 427.6 MB, free: 20.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.5788, allocations: 3.844 kB / 427.6 MB, free: 20.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.686e-05/0.5788, allocations: 101.6 kB / 427.7 MB, free: 20.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5789, allocations: 3.844 kB / 427.7 MB, free: 20.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004751/0.5793, allocations: 26.41 kB / 427.7 MB, free: 20.22 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 (14): * Single equations (assignments): 14 * 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.0007527/0.5801, allocations: 1.039 MB / 428.8 MB, free: 19.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000245/0.5804, allocations: 87.25 kB / 428.8 MB, free: 19.28 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5804, allocations: 0 / 428.8 MB, free: 19.28 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.362e-05/0.5805, allocations: 20.66 kB / 428.9 MB, free: 19.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.5809, allocations: 46.06 kB / 428.9 MB, free: 19.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.582, allocations: 364.2 kB / 429.3 MB, free: 19.01 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.5823, allocations: 0.7157 MB / 430 MB, free: 18.31 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.5824, allocations: 35.41 kB / 430 MB, free: 18.3 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5824, allocations: 4 kB / 430 MB, free: 18.3 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.302/2.885, allocations: 2.021 MB / 432 MB, free: 17.98 MB / 346.7 MB