Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.434/2.434, allocations: 233 MB / 245.6 MB, free: 14.79 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.795e-05/3.816e-05, allocations: 4 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1303, allocations: 53.23 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4765/0.6068, allocations: 90.04 MB / 444.6 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.6072, allocations: 87.94 kB / 444.7 MB, free: 11.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0464/0.6536, allocations: 10.2 MB / 454.9 MB, free: 1.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6536, allocations: 0 / 454.9 MB, free: 1.453 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.917e-05/0.6537, allocations: 12.12 kB / 454.9 MB, free: 1.441 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00154/0.6552, allocations: 0.6723 MB / 455.6 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.6553, allocations: 15.97 kB / 455.6 MB, free: 0.707 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001277/0.6554, allocations: 74.53 kB / 455.7 MB, free: 0.625 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.6556, allocations: 55.28 kB / 455.7 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003981/0.6596, allocations: 1.012 MB / 456.7 MB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.433e-05/0.6597, allocations: 29.47 kB / 456.8 MB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.699e-05/0.6598, allocations: 37.22 kB / 456.8 MB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.6608, allocations: 439.2 kB / 457.2 MB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.6609, allocations: 4 kB / 457.2 MB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.432e-05/0.6609, allocations: 16 kB / 457.3 MB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.661, allocations: 12 kB / 457.3 MB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007798/0.6618, allocations: 296.2 kB / 457.6 MB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.6649, allocations: 1.768 MB / 459.3 MB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.6652, allocations: 139.8 kB / 459.5 MB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.6654, allocations: 50.64 kB / 459.5 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.6654, allocations: 4.156 kB / 459.5 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.6655, allocations: 38.55 kB / 459.6 MB, free: 12.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 3.216e-06/0.6655, allocations: 0 / 459.6 MB, free: 12.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.001342/0.6668, allocations: 0.5656 MB / 460.1 MB, free: 11.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/0.6669, allocations: 106.8 kB / 460.2 MB, free: 11.76 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005176/0.6674, allocations: 314.8 kB / 460.5 MB, free: 11.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.6675, allocations: 33.7 kB / 460.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002384/0.6677, allocations: 325.7 kB / 460.9 MB, free: 11.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.538e-05/0.6678, allocations: 59.19 kB / 460.9 MB, free: 11.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/0.6678, allocations: 4.031 kB / 460.9 MB, free: 11.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.668, allocations: 334.8 kB / 461.3 MB, free: 10.69 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.6681, allocations: 40 kB / 461.3 MB, free: 10.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.6684, allocations: 187.1 kB / 461.5 MB, free: 10.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.6686, allocations: 87.98 kB / 461.6 MB, free: 10.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.6686, allocations: 1.969 kB / 461.6 MB, free: 10.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005929/0.6692, allocations: 245.4 kB / 461.8 MB, free: 10.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.6693, allocations: 8 kB / 461.8 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.6693, allocations: 4 kB / 461.8 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/0.6693, allocations: 8 kB / 461.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004843/0.6698, allocations: 71.91 kB / 461.9 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.6699, allocations: 11.92 kB / 461.9 MB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.6702, allocations: 15.91 kB / 461.9 MB, free: 9.953 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.6703, allocations: 16.34 kB / 462 MB, free: 9.938 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001207/0.6704, allocations: 136.8 kB / 462.1 MB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.6705, allocations: 35.53 kB / 462.1 MB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004406/0.671, allocations: 160.9 kB / 462.3 MB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.671, allocations: 4 kB / 462.3 MB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.671, allocations: 3.938 kB / 462.3 MB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.671, allocations: 0 / 462.3 MB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009932/0.672, allocations: 0.5318 MB / 462.8 MB, free: 9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.6721, allocations: 0 / 462.8 MB, free: 9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003608/0.6724, allocations: 35.92 kB / 462.9 MB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.6724, allocations: 4 kB / 462.9 MB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.6725, allocations: 0 / 462.9 MB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.6725, allocations: 4 kB / 462.9 MB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6725, allocations: 0 / 462.9 MB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.6731, allocations: 433.4 kB / 463.3 MB, free: 8.492 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.6733, allocations: 116.6 kB / 463.4 MB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.6733, allocations: 8.203 kB / 463.4 MB, free: 8.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.6736, allocations: 8 kB / 463.4 MB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.6737, allocations: 15.98 kB / 463.4 MB, free: 8.328 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.6737, allocations: 4 kB / 463.4 MB, free: 8.324 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003853/0.6741, allocations: 245.3 kB / 463.7 MB, free: 8.086 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6741, allocations: 3.938 kB / 463.7 MB, free: 8.082 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006673/0.6748, allocations: 80 kB / 463.8 MB, free: 8.004 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001009/0.6758, allocations: 1.173 MB / 464.9 MB, free: 6.789 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004177/0.6762, allocations: 148.8 kB / 465.1 MB, free: 6.645 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6763, allocations: 4.062 kB / 465.1 MB, free: 6.641 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.6764, allocations: 51.94 kB / 465.1 MB, free: 6.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.6773, allocations: 84.19 kB / 465.2 MB, free: 6.512 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.6795, allocations: 0.7868 MB / 466 MB, free: 5.672 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.6801, allocations: 0.8506 MB / 466.9 MB, free: 4.797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002902/0.6804, allocations: 147.4 kB / 467 MB, free: 4.652 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6804, allocations: 0 / 467 MB, free: 4.652 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.684/3.365, allocations: 6.434 MB / 473.4 MB, free: 14.23 MB / 410.7 MB