Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.386/2.386, allocations: 233 MB / 245.6 MB, free: 14.99 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.373e-05/4.391e-05, allocations: 11.94 kB / 301.4 MB, free: 8.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 53.24 MB / 354.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.6053, allocations: 98.13 MB / 452.7 MB, free: 3.977 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/0.6057, allocations: 83.95 kB / 452.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2843/0.8899, allocations: 66.47 MB / 0.5071 GB, free: 0.7266 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.89, allocations: 0 / 0.5071 GB, free: 0.7266 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.494e-05/0.8901, allocations: 20 kB / 0.5071 GB, free: 0.707 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004107/0.8942, allocations: 1.387 MB / 0.5085 GB, free: 15.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.8943, allocations: 12.03 kB / 0.5085 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003648/0.8947, allocations: 173.3 kB / 0.5087 GB, free: 15.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006033/0.9007, allocations: 490.4 kB / 0.5091 GB, free: 14.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002336/0.9031, allocations: 0.6756 MB / 0.5098 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.9033, allocations: 78.09 kB / 0.5099 GB, free: 13.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004116/0.9037, allocations: 112 kB / 0.51 GB, free: 13.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004282/0.908, allocations: 1.461 MB / 0.5114 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.275e-05/0.9081, allocations: 3.906 kB / 0.5114 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001954/0.9083, allocations: 51.98 kB / 0.5115 GB, free: 12.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005456/0.9089, allocations: 114.1 kB / 0.5116 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004591/0.9135, allocations: 1.441 MB / 0.513 GB, free: 10.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01302/0.9265, allocations: 4.711 MB / 0.5176 GB, free: 5.715 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003037/0.9296, allocations: 1.194 MB / 0.5187 GB, free: 4.508 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.9315, allocations: 0.7355 MB / 0.5195 GB, free: 3.766 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.9316, allocations: 20.98 kB / 0.5195 GB, free: 3.746 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001907/0.9335, allocations: 0.7612 MB / 0.5202 GB, free: 2.965 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 4.178e-06/0.9336, allocations: 4 kB / 0.5202 GB, free: 2.961 MB / 458.7 MB Notification: Performance of matching and sorting (n=136): time 0.3196/1.253, allocations: 4.718 MB / 0.5248 GB, free: 109.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/1.253, allocations: 120.8 kB / 0.5249 GB, free: 109.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/1.254, allocations: 465.5 kB / 0.5254 GB, free: 109.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003262/1.255, allocations: 48.23 kB / 0.5254 GB, free: 109.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004302/1.255, allocations: 492.7 kB / 0.5259 GB, free: 108.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006581/1.256, allocations: 462.9 kB / 0.5263 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/1.256, allocations: 23.56 kB / 0.5264 GB, free: 108.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/1.256, allocations: 367.4 kB / 0.5267 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001495/1.258, allocations: 0.5382 MB / 0.5272 GB, free: 108.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/1.259, allocations: 0.6767 MB / 0.5279 GB, free: 108.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/1.261, allocations: 0.6663 MB / 0.5286 GB, free: 108.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/1.261, allocations: 4.625 kB / 0.5286 GB, free: 108.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.007607/1.269, allocations: 2.031 MB / 0.5305 GB, free: 108 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002859/1.269, allocations: 0.9905 MB / 0.5315 GB, free: 107 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/1.269, allocations: 2.219 kB / 0.5315 GB, free: 107 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003842/1.273, allocations: 0.7102 MB / 0.5322 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00204/1.275, allocations: 228.8 kB / 0.5324 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/1.279, allocations: 1.552 MB / 0.5339 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/1.281, allocations: 110.2 kB / 0.534 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/1.281, allocations: 45 kB / 0.5341 GB, free: 106.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/1.281, allocations: 4.125 kB / 0.5341 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006733/1.288, allocations: 1.942 MB / 0.536 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/1.288, allocations: 3.219 kB / 0.536 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/1.291, allocations: 0.5916 MB / 0.5366 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002032/1.293, allocations: 228.7 kB / 0.5368 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/1.307, allocations: 5.623 MB / 0.5423 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/1.309, allocations: 104.5 kB / 0.5424 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/1.309, allocations: 45.42 kB / 0.5424 GB, free: 104.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 56} Notification: Performance of prepare postOptimizeDAE: time 0.0004308/1.31, allocations: 169.4 kB / 0.5426 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003228/1.31, allocations: 92.88 kB / 0.5427 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006607/1.316, allocations: 2.023 MB / 0.5446 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.317, allocations: 16 kB / 0.5447 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/1.317, allocations: 0 / 0.5447 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-05/1.317, allocations: 9.125 kB / 0.5447 GB, free: 104.4 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.328, allocations: 3.786 MB / 0.5484 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.82e-05/1.328, allocations: 2.312 kB / 0.5484 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/1.33, allocations: 220.6 kB / 0.5486 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002596/1.333, allocations: 0.4901 MB / 0.5491 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002916/1.333, allocations: 34.73 kB / 0.5491 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.346, allocations: 6.52 MB / 0.5555 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.346, allocations: 6.531 kB / 0.5555 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007528/1.353, allocations: 2.994 MB / 0.5584 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009292/1.354, allocations: 279.4 kB / 0.5587 GB, free: 99.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/1.355, allocations: 33.17 kB / 0.5587 GB, free: 99.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/1.356, allocations: 94.55 kB / 0.5588 GB, free: 99.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003969/1.356, allocations: 120.7 kB / 0.5589 GB, free: 99.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.357, allocations: 42.03 kB / 0.5589 GB, free: 99.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006433/1.357, allocations: 367 kB / 0.5593 GB, free: 99.67 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.357, allocations: 0 / 0.5593 GB, free: 99.67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002874/1.36, allocations: 0.6371 MB / 0.5599 GB, free: 99.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00799/1.368, allocations: 4.274 MB / 0.5641 GB, free: 97.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007327/1.376, allocations: 2.686 MB / 0.5667 GB, free: 95.93 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.376, allocations: 0 / 0.5667 GB, free: 95.93 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003117/1.379, allocations: 1.196 MB / 0.5679 GB, free: 95.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/1.38, allocations: 140.2 kB / 0.568 GB, free: 95.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007383/1.388, allocations: 2.514 MB / 0.5705 GB, free: 94.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009969/1.389, allocations: 1.266 MB / 0.5717 GB, free: 93.44 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.39, allocations: 433.4 kB / 0.5721 GB, free: 93.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.072e-06/1.39, allocations: 0 / 0.5721 GB, free: 93.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.018/4.407, allocations: 24.89 MB / 0.5964 GB, free: 91.68 MB / 458.7 MB