Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.157e-05, allocations: 4 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 50.42 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4192/0.5216, allocations: 79.08 MB / 421.7 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.522, allocations: 70.72 kB / 421.8 MB, free: 15.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01115/0.5331, allocations: 2.71 MB / 424.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5332, allocations: 0 / 424.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.5332, allocations: 4 kB / 424.5 MB, free: 12.75 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006623/0.5339, allocations: 422.7 kB / 424.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.5339, allocations: 8.031 kB / 424.9 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.106e-05/0.534, allocations: 49.23 kB / 425 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.5341, allocations: 15.81 kB / 425 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.5343, allocations: 213.5 kB / 425.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.5344, allocations: 10.81 kB / 425.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.5344, allocations: 19.09 kB / 425.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.535, allocations: 226.1 kB / 425.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.535, allocations: 7.953 kB / 425.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.535, allocations: 3.25 kB / 425.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.5351, allocations: 8 kB / 425.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.5353, allocations: 60.67 kB / 425.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007737/0.536, allocations: 0.5984 MB / 426.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.5364, allocations: 129 kB / 426.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.5366, allocations: 70.14 kB / 426.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.5366, allocations: 4 kB / 426.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.5367, allocations: 37.56 kB / 426.3 MB, free: 10.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.234e-06/0.5367, allocations: 0 / 426.3 MB, free: 10.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003565/0.537, allocations: 117.2 kB / 426.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.5371, allocations: 113.8 kB / 426.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.5373, allocations: 141.5 kB / 426.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.5373, allocations: 29.02 kB / 426.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.5374, allocations: 185.7 kB / 426.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.5375, allocations: 27.05 kB / 426.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-06/0.5375, allocations: 3.188 kB / 426.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5376, allocations: 321.9 kB / 427.3 MB, free: 9.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.473e-05/0.5377, allocations: 22.75 kB / 427.3 MB, free: 9.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.5379, allocations: 120.5 kB / 427.4 MB, free: 9.766 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.538, allocations: 43.73 kB / 427.4 MB, free: 9.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.538, allocations: 3.938 kB / 427.4 MB, free: 9.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000346/0.5383, allocations: 156.1 kB / 427.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.5384, allocations: 8 kB / 427.6 MB, free: 9.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.5384, allocations: 4 kB / 427.6 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.5384, allocations: 11.92 kB / 427.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.5388, allocations: 44.45 kB / 427.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.849e-05/0.5388, allocations: 7.938 kB / 427.7 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.539, allocations: 27.33 kB / 427.7 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.539, allocations: 10.94 kB / 427.7 MB, free: 9.484 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.08e-05/0.5391, allocations: 120 kB / 427.8 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.5393, allocations: 87.5 kB / 427.9 MB, free: 9.285 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.971e-05/0.5394, allocations: 26.48 kB / 427.9 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.5395, allocations: 8 kB / 427.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.5395, allocations: 0 / 427.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.5395, allocations: 0 / 427.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/0.5399, allocations: 220.6 kB / 428.2 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.5399, allocations: 4 kB / 428.2 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003315/0.5402, allocations: 31.98 kB / 428.2 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.5402, allocations: 0 / 428.2 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.5403, allocations: 7.25 kB / 428.2 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.5403, allocations: 0 / 428.2 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.5403, allocations: 3.984 kB / 428.2 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004636/0.5408, allocations: 366.4 kB / 428.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.5409, allocations: 104.6 kB / 428.7 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.5409, allocations: 11.98 kB / 428.7 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.5412, allocations: 15.06 kB / 428.7 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.5412, allocations: 7.938 kB / 428.7 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.5413, allocations: 4 kB / 428.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000111/0.5414, allocations: 115.7 kB / 428.8 MB, free: 8.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5414, allocations: 3.938 kB / 428.8 MB, free: 8.371 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004554/0.5419, allocations: 33.12 kB / 428.9 MB, free: 8.344 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.0008051/0.5427, allocations: 1.048 MB / 429.9 MB, free: 7.305 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002612/0.5429, allocations: 97.59 kB / 430 MB, free: 7.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.543, allocations: 4.062 kB / 430 MB, free: 7.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.285e-05/0.543, allocations: 11.88 kB / 430 MB, free: 7.219 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004956/0.5435, allocations: 55.08 kB / 430.1 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.5447, allocations: 404.1 kB / 430.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.545, allocations: 0.7206 MB / 431.2 MB, free: 6.016 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.03e-05/0.5451, allocations: 41.3 kB / 431.2 MB, free: 5.996 MB / 346.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5451, allocations: 0 / 431.2 MB, free: 5.996 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.221/2.766, allocations: 2.182 MB / 433.4 MB, free: 3.844 MB / 346.7 MB