Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.326/2.326, allocations: 233 MB / 245.6 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.302e-05, allocations: 3.938 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 53.24 MB / 354.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5105/0.6188, allocations: 108.1 MB / 462.7 MB, free: 9.789 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.6192, allocations: 89.86 kB / 462.7 MB, free: 9.703 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1352/0.7545, allocations: 29.95 MB / 492.7 MB, free: 11.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.7545, allocations: 0 / 492.7 MB, free: 11.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.53e-05/0.7546, allocations: 24 kB / 492.7 MB, free: 11.39 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003636/0.7583, allocations: 1.045 MB / 493.8 MB, free: 10.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.7584, allocations: 8.031 kB / 493.8 MB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004568/0.7588, allocations: 139.5 kB / 493.9 MB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002007/0.7608, allocations: 194.6 kB / 494.1 MB, free: 9.957 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005288/0.7662, allocations: 1.196 MB / 495.3 MB, free: 8.719 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-05/0.7663, allocations: 58 kB / 495.3 MB, free: 8.664 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004386/0.7668, allocations: 95.88 kB / 495.4 MB, free: 8.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/0.7694, allocations: 1.055 MB / 496.5 MB, free: 7.469 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.524e-05/0.7695, allocations: 3.984 kB / 496.5 MB, free: 7.465 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.7696, allocations: 39.92 kB / 496.5 MB, free: 7.426 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/0.7698, allocations: 69.97 kB / 496.6 MB, free: 7.355 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002306/0.7722, allocations: 0.8198 MB / 497.4 MB, free: 6.535 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008835/0.781, allocations: 4.005 MB / 0.4897 GB, free: 2.332 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009812/0.782, allocations: 419 kB / 0.4901 GB, free: 1.887 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006536/0.7827, allocations: 279.4 kB / 0.4903 GB, free: 1.609 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-05/0.7828, allocations: 8.422 kB / 0.4904 GB, free: 1.602 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.7828, allocations: 43 kB / 0.4904 GB, free: 1.551 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.366e-06/0.7828, allocations: 0 / 0.4904 GB, free: 1.551 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.00452/0.7874, allocations: 1.571 MB / 0.4919 GB, free: 15.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.7875, allocations: 81.55 kB / 0.492 GB, free: 15.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009669/0.7885, allocations: 0.5033 MB / 0.4925 GB, free: 15.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.777e-05/0.7885, allocations: 41.73 kB / 0.4925 GB, free: 15.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004106/0.789, allocations: 496.8 kB / 0.493 GB, free: 14.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.7892, allocations: 190.7 kB / 0.4932 GB, free: 14.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-05/0.7893, allocations: 16 kB / 0.4932 GB, free: 14.58 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.7894, allocations: 343.3 kB / 0.4935 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006796/0.7901, allocations: 245.5 kB / 0.4938 GB, free: 14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008506/0.791, allocations: 469.2 kB / 0.4942 GB, free: 13.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008304/0.7918, allocations: 331.1 kB / 0.4945 GB, free: 13.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.7919, allocations: 4 kB / 0.4945 GB, free: 13.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003109/0.795, allocations: 1.033 MB / 0.4955 GB, free: 12.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.7951, allocations: 8.344 kB / 0.4956 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002406/0.7975, allocations: 0.7956 MB / 0.4963 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.7988, allocations: 230.3 kB / 0.4965 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.7999, allocations: 151.7 kB / 0.4967 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007971/0.8079, allocations: 5.217 MB / 0.5018 GB, free: 5.207 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009467/0.8089, allocations: 47.88 kB / 0.5018 GB, free: 5.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.084e-05/0.809, allocations: 28 kB / 0.5019 GB, free: 5.133 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (81): * Single equations (assignments): 78 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002284/0.8092, allocations: 148.8 kB / 0.502 GB, free: 4.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.8094, allocations: 71.19 kB / 0.5021 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.8111, allocations: 0.6047 MB / 0.5027 GB, free: 4.297 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.8111, allocations: 11.95 kB / 0.5027 GB, free: 4.285 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.8111, allocations: 0 / 0.5027 GB, free: 4.285 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.8111, allocations: 3.984 kB / 0.5027 GB, free: 4.281 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/0.815, allocations: 1.483 MB / 0.5041 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.815, allocations: 4 kB / 0.5041 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.8162, allocations: 119.9 kB / 0.5042 GB, free: 2.609 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.366e-05/0.8163, allocations: 4 kB / 0.5042 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.8163, allocations: 15.98 kB / 0.5043 GB, free: 2.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.876e-06/0.8164, allocations: 4.281 kB / 0.5043 GB, free: 2.586 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.8164, allocations: 7.938 kB / 0.5043 GB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.8184, allocations: 0.9884 MB / 0.5052 GB, free: 1.516 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000415/0.8189, allocations: 192 kB / 0.5054 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.819, allocations: 15.98 kB / 0.5054 GB, free: 1.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005714/0.8196, allocations: 15.98 kB / 0.5055 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.8197, allocations: 40.33 kB / 0.5055 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.8198, allocations: 12 kB / 0.5055 GB, free: 1.227 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000788/0.8206, allocations: 411.2 kB / 0.5059 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8206, allocations: 0 / 0.5059 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001141/0.8217, allocations: 216 kB / 0.5061 GB, free: 0.6172 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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.002739/0.8245, allocations: 1.997 MB / 0.508 GB, free: 14.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.8271, allocations: 0.9787 MB / 0.509 GB, free: 13.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/0.8271, allocations: 8.125 kB / 0.509 GB, free: 13.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006138/0.8277, allocations: 249.4 kB / 0.5093 GB, free: 13.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.8289, allocations: 131.2 kB / 0.5094 GB, free: 13.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00539/0.8343, allocations: 1.969 MB / 0.5113 GB, free: 11.13 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.8353, allocations: 1.094 MB / 0.5124 GB, free: 10.01 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007317/0.8361, allocations: 327.3 kB / 0.5127 GB, free: 9.688 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8361, allocations: 0 / 0.5127 GB, free: 9.688 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.418/4.254, allocations: 18.67 MB / 0.5309 GB, free: 127.6 MB / 458.7 MB