Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.426/2.426, allocations: 233 MB / 246.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.496e-05/4.504e-05, allocations: 7.938 kB / 302.3 MB, free: 7.605 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1401, allocations: 53.24 MB / 355.5 MB, free: 2.254 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4617/0.6018, allocations: 98.13 MB / 453.7 MB, free: 3.617 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.6022, allocations: 83.95 kB / 453.7 MB, free: 3.535 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2731/0.8753, allocations: 66.47 MB / 0.508 GB, free: 372 kB / 442.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.8754, allocations: 0 / 0.508 GB, free: 372 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.881e-05/0.8755, allocations: 27.98 kB / 0.5081 GB, free: 344 kB / 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.004633/0.8801, allocations: 1.375 MB / 0.5094 GB, free: 14.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.8802, allocations: 12.03 kB / 0.5094 GB, free: 14.89 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005077/0.8807, allocations: 173.3 kB / 0.5096 GB, free: 14.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006254/0.887, allocations: 490.4 kB / 0.51 GB, free: 14.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.8892, allocations: 0.6756 MB / 0.5107 GB, free: 13.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.8894, allocations: 82.09 kB / 0.5108 GB, free: 13.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003654/0.8897, allocations: 112 kB / 0.5109 GB, free: 13.31 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004271/0.894, allocations: 1.457 MB / 0.5123 GB, free: 11.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.088e-05/0.8941, allocations: 7.906 kB / 0.5123 GB, free: 11.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.8943, allocations: 47.97 kB / 0.5124 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005455/0.8949, allocations: 114.1 kB / 0.5125 GB, free: 11.64 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00449/0.8994, allocations: 1.441 MB / 0.5139 GB, free: 10.19 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01436/0.9138, allocations: 4.723 MB / 0.5185 GB, free: 5.344 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003155/0.917, allocations: 1.19 MB / 0.5197 GB, free: 4.141 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/0.919, allocations: 0.7355 MB / 0.5204 GB, free: 3.398 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.9192, allocations: 24.97 kB / 0.5204 GB, free: 3.375 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001964/0.9211, allocations: 0.7612 MB / 0.5211 GB, free: 2.594 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 5.23e-06/0.9212, allocations: 0 / 0.5211 GB, free: 2.594 MB / 458.7 MB Notification: Performance of matching and sorting (n=136): time 0.3585/1.28, allocations: 4.719 MB / 0.5257 GB, free: 108.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/1.28, allocations: 123.7 kB / 0.5259 GB, free: 108.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009878/1.281, allocations: 466.7 kB / 0.5263 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003273/1.281, allocations: 48.48 kB / 0.5264 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006072/1.282, allocations: 464 kB / 0.5268 GB, free: 108.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007966/1.283, allocations: 467 kB / 0.5272 GB, free: 108.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/1.283, allocations: 23.88 kB / 0.5273 GB, free: 108.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002416/1.283, allocations: 407.2 kB / 0.5277 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00155/1.285, allocations: 0.5385 MB / 0.5282 GB, free: 107.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001842/1.286, allocations: 0.6768 MB / 0.5288 GB, free: 107.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/1.288, allocations: 0.6642 MB / 0.5295 GB, free: 107.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/1.288, allocations: 0.875 kB / 0.5295 GB, free: 107.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.007544/1.296, allocations: 2.075 MB / 0.5315 GB, free: 107.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002968/1.296, allocations: 0.9923 MB / 0.5325 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/1.296, allocations: 4.016 kB / 0.5325 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003879/1.3, allocations: 0.7038 MB / 0.5332 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/1.302, allocations: 226.9 kB / 0.5334 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/1.306, allocations: 1.551 MB / 0.5349 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/1.308, allocations: 106.5 kB / 0.535 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002179/1.308, allocations: 45.34 kB / 0.5351 GB, free: 105.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/1.308, allocations: 7.688 kB / 0.5351 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00683/1.315, allocations: 1.939 MB / 0.537 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/1.315, allocations: 2.969 kB / 0.537 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003759/1.319, allocations: 0.695 MB / 0.5376 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/1.321, allocations: 230.6 kB / 0.5379 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/1.336, allocations: 5.611 MB / 0.5433 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/1.338, allocations: 101.4 kB / 0.5434 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002567/1.338, allocations: 45.98 kB / 0.5435 GB, free: 104.2 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.0004549/1.338, allocations: 169.8 kB / 0.5436 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/1.339, allocations: 93.98 kB / 0.5437 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00668/1.345, allocations: 2.022 MB / 0.5457 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.355e-05/1.346, allocations: 14.69 kB / 0.5457 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/1.346, allocations: 1.031 kB / 0.5457 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.713e-05/1.346, allocations: 6.938 kB / 0.5457 GB, free: 103.9 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.01219/1.358, allocations: 3.786 MB / 0.5494 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/1.358, allocations: 1.969 kB / 0.5494 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/1.36, allocations: 223.2 kB / 0.5496 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/1.363, allocations: 496.2 kB / 0.5501 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003038/1.363, allocations: 34.09 kB / 0.5501 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/1.376, allocations: 6.521 MB / 0.5565 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/1.376, allocations: 7.188 kB / 0.5565 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007929/1.384, allocations: 2.988 MB / 0.5594 GB, free: 99.85 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009898/1.385, allocations: 285.3 kB / 0.5597 GB, free: 99.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/1.385, allocations: 30.34 kB / 0.5597 GB, free: 99.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/1.387, allocations: 88.34 kB / 0.5598 GB, free: 99.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/1.387, allocations: 125.3 kB / 0.5599 GB, free: 99.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/1.387, allocations: 47.81 kB / 0.56 GB, free: 99.61 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006375/1.388, allocations: 361.2 kB / 0.5603 GB, free: 99.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.388, allocations: 3.906 kB / 0.5603 GB, free: 99.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002909/1.391, allocations: 0.6437 MB / 0.561 GB, free: 99.37 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.008035/1.399, allocations: 4.265 MB / 0.5651 GB, free: 96.78 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007563/1.407, allocations: 2.718 MB / 0.5678 GB, free: 95.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/1.407, allocations: 0 / 0.5678 GB, free: 95.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003218/1.41, allocations: 1.202 MB / 0.569 GB, free: 95.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/1.411, allocations: 141.3 kB / 0.5691 GB, free: 95.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007377/1.419, allocations: 2.437 MB / 0.5715 GB, free: 94.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009721/1.42, allocations: 1.26 MB / 0.5727 GB, free: 93.25 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001727/1.421, allocations: 330.7 kB / 0.573 GB, free: 93.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009076/1.422, allocations: 421 kB / 0.5734 GB, free: 92.89 MB / 458.7 MB Notification: Performance of SimCode: time 1.243e-06/1.422, allocations: 0 / 0.5734 GB, free: 92.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1319/1.554, allocations: 29.96 MB / 0.6027 GB, free: 87.67 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/1.555, allocations: 189.7 kB / 0.6029 GB, free: 87.44 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.68/5.235, allocations: 4.062 kB / 0.6029 GB, free: 87.43 MB / 458.7 MB