Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.358/2.358, allocations: 233 MB / 246.1 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.836e-05/3.841e-05, allocations: 4 kB / 302.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1155, allocations: 53.24 MB / 355.5 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4583/0.5739, allocations: 90.04 MB / 445.6 MB, free: 11.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.5742, allocations: 79.95 kB / 445.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04675/0.621, allocations: 10.21 MB / 455.9 MB, free: 1.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.621, allocations: 0 / 455.9 MB, free: 1.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.508e-05/0.6211, allocations: 12 kB / 455.9 MB, free: 1.152 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.001543/0.6227, allocations: 0.6723 MB / 456.5 MB, free: 444 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.6227, allocations: 15.91 kB / 456.6 MB, free: 428 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.6229, allocations: 78.53 kB / 456.6 MB, free: 340 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.623, allocations: 51.91 kB / 456.7 MB, free: 288 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004221/0.6273, allocations: 1.003 MB / 457.7 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/0.6274, allocations: 33.47 kB / 457.7 MB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.6275, allocations: 40 kB / 457.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.6286, allocations: 443.2 kB / 458.2 MB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.6286, allocations: 1.969 kB / 458.2 MB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-05/0.6287, allocations: 20 kB / 458.2 MB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.6287, allocations: 8 kB / 458.2 MB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007942/0.6295, allocations: 296.2 kB / 458.5 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003074/0.6326, allocations: 1.768 MB / 460.3 MB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.6329, allocations: 131.9 kB / 460.4 MB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.6331, allocations: 58.64 kB / 460.5 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.6331, allocations: 0 / 460.5 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.6332, allocations: 34.56 kB / 460.5 MB, free: 12.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 4.157e-06/0.6332, allocations: 0 / 460.5 MB, free: 12.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.001268/0.6345, allocations: 0.5726 MB / 461.1 MB, free: 11.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/0.6346, allocations: 106.8 kB / 461.2 MB, free: 11.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005253/0.6351, allocations: 314.8 kB / 461.5 MB, free: 11.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.6351, allocations: 33.7 kB / 461.5 MB, free: 11.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.6354, allocations: 283.3 kB / 461.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.544e-05/0.6355, allocations: 51.2 kB / 461.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.541e-05/0.6355, allocations: 8 kB / 461.9 MB, free: 10.78 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.6357, allocations: 354.8 kB / 462.2 MB, free: 10.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.6358, allocations: 44 kB / 462.2 MB, free: 10.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/0.6361, allocations: 190.3 kB / 462.4 MB, free: 10.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.6363, allocations: 87.83 kB / 462.5 MB, free: 10.05 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.6364, allocations: 5.125 kB / 462.5 MB, free: 10.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006858/0.6371, allocations: 273.3 kB / 462.8 MB, free: 9.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.6371, allocations: 10.34 kB / 462.8 MB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.6371, allocations: 4 kB / 462.8 MB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.6372, allocations: 8 kB / 462.8 MB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004866/0.6377, allocations: 67.91 kB / 462.9 MB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.6377, allocations: 7.938 kB / 462.9 MB, free: 9.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.638, allocations: 12 kB / 462.9 MB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.6381, allocations: 16 kB / 462.9 MB, free: 9.648 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.0001261/0.6382, allocations: 129 kB / 463 MB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.6383, allocations: 39.53 kB / 463.1 MB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005002/0.6389, allocations: 173.8 kB / 463.2 MB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.6389, allocations: 4 kB / 463.2 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.6389, allocations: 0 / 463.2 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.6389, allocations: 0 / 463.2 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.6399, allocations: 0.5265 MB / 463.8 MB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.64, allocations: 0 / 463.8 MB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.6403, allocations: 37.33 kB / 463.8 MB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.6404, allocations: 4 kB / 463.8 MB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/0.6404, allocations: 8.234 kB / 463.8 MB, free: 8.664 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.6404, allocations: 4 kB / 463.8 MB, free: 8.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6404, allocations: 4 kB / 463.8 MB, free: 8.656 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006502/0.6411, allocations: 429.4 kB / 464.2 MB, free: 8.195 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.6412, allocations: 112.6 kB / 464.4 MB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.729e-05/0.6413, allocations: 7.953 kB / 464.4 MB, free: 8.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.6416, allocations: 4 kB / 464.4 MB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.6417, allocations: 12.03 kB / 464.4 MB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.6417, allocations: 8 kB / 464.4 MB, free: 8.035 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004036/0.6421, allocations: 253.2 kB / 464.6 MB, free: 7.789 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6421, allocations: 0 / 464.6 MB, free: 7.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007286/0.6428, allocations: 76.09 kB / 464.7 MB, free: 7.715 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.001117/0.644, allocations: 1.171 MB / 465.9 MB, free: 6.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004628/0.6445, allocations: 150.5 kB / 466 MB, free: 6.355 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.6445, allocations: 0.5 kB / 466 MB, free: 6.355 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.6447, allocations: 55.94 kB / 466.1 MB, free: 6.301 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.6456, allocations: 80.19 kB / 466.2 MB, free: 6.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.648, allocations: 0.7615 MB / 466.9 MB, free: 5.418 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.6485, allocations: 0.8428 MB / 467.8 MB, free: 4.551 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003416/0.6489, allocations: 43.27 kB / 467.8 MB, free: 4.508 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002784/0.6492, allocations: 155.4 kB / 468 MB, free: 4.355 MB / 394.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6492, allocations: 0 / 468 MB, free: 4.355 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0329/0.6821, allocations: 6.517 MB / 474.5 MB, free: 13.92 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003187/0.6825, allocations: 162.6 kB / 474.6 MB, free: 13.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.605/3.288, allocations: 3.938 kB / 474.6 MB, free: 13.68 MB / 410.7 MB