Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.469/2.469, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.091e-05/4.103e-05, allocations: 9.547 kB / 302.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 53.23 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5151/0.6329, allocations: 98.13 MB / 453.7 MB, free: 3.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.6332, allocations: 84.8 kB / 453.7 MB, free: 3.355 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2771/0.9103, allocations: 66.48 MB / 0.508 GB, free: 192 kB / 442.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.9104, allocations: 0 / 0.508 GB, free: 192 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.261e-05/0.9105, allocations: 24 kB / 0.5081 GB, free: 168 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.004242/0.9147, allocations: 1.375 MB / 0.5094 GB, free: 14.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.9148, allocations: 8.031 kB / 0.5094 GB, free: 14.72 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003794/0.9152, allocations: 177.3 kB / 0.5096 GB, free: 14.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005902/0.9211, allocations: 494.4 kB / 0.51 GB, free: 14.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.9232, allocations: 0.6678 MB / 0.5107 GB, free: 13.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-05/0.9233, allocations: 82.09 kB / 0.5108 GB, free: 13.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003131/0.9236, allocations: 108 kB / 0.5109 GB, free: 13.15 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003861/0.9275, allocations: 1.461 MB / 0.5123 GB, free: 11.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.462e-05/0.9276, allocations: 11.91 kB / 0.5123 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001899/0.9278, allocations: 43.97 kB / 0.5124 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005175/0.9283, allocations: 114.1 kB / 0.5125 GB, free: 11.47 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004001/0.9323, allocations: 1.441 MB / 0.5139 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.9461, allocations: 4.723 MB / 0.5185 GB, free: 5.176 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003084/0.9492, allocations: 1.19 MB / 0.5197 GB, free: 3.973 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.951, allocations: 0.7278 MB / 0.5204 GB, free: 3.238 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001329/0.9512, allocations: 20.97 kB / 0.5204 GB, free: 3.219 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001903/0.9531, allocations: 0.7652 MB / 0.5211 GB, free: 2.434 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 5.791e-06/0.9531, allocations: 0 / 0.5211 GB, free: 2.434 MB / 458.7 MB Notification: Performance of matching and sorting (n=136): time 0.3316/1.285, allocations: 4.726 MB / 0.5257 GB, free: 108.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/1.285, allocations: 122.7 kB / 0.5259 GB, free: 108.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/1.286, allocations: 470.5 kB / 0.5263 GB, free: 108.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003197/1.286, allocations: 49.77 kB / 0.5264 GB, free: 108.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005807/1.287, allocations: 462 kB / 0.5268 GB, free: 108.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008195/1.288, allocations: 468.3 kB / 0.5272 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/1.288, allocations: 26.47 kB / 0.5273 GB, free: 108.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002189/1.288, allocations: 407.6 kB / 0.5277 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/1.29, allocations: 0.5375 MB / 0.5282 GB, free: 107.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/1.291, allocations: 0.6752 MB / 0.5288 GB, free: 107.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/1.293, allocations: 0.667 MB / 0.5295 GB, free: 107.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/1.293, allocations: 1.156 kB / 0.5295 GB, free: 107.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.009247/1.303, allocations: 2.069 MB / 0.5315 GB, free: 107.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003203/1.303, allocations: 0.9917 MB / 0.5325 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/1.303, allocations: 2.75 kB / 0.5325 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004891/1.308, allocations: 0.7096 MB / 0.5332 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/1.311, allocations: 230.6 kB / 0.5334 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004328/1.315, allocations: 1.55 MB / 0.5349 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0107/1.326, allocations: 106.1 kB / 0.535 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002892/1.326, allocations: 43.34 kB / 0.5351 GB, free: 106 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/1.326, allocations: 4.125 kB / 0.5351 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01317/1.339, allocations: 1.945 MB / 0.537 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/1.339, allocations: 3.359 kB / 0.537 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01294/1.352, allocations: 0.6931 MB / 0.5376 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006533/1.359, allocations: 230.9 kB / 0.5379 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02476/1.384, allocations: 5.609 MB / 0.5433 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/1.385, allocations: 101.1 kB / 0.5434 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/1.386, allocations: 45.75 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.0004137/1.386, allocations: 170.1 kB / 0.5436 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002462/1.386, allocations: 93.97 kB / 0.5437 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006467/1.393, allocations: 2.018 MB / 0.5457 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/1.393, allocations: 15.22 kB / 0.5457 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.393, allocations: 0 / 0.5457 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.019e-05/1.393, allocations: 14.95 kB / 0.5457 GB, free: 104 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.01111/1.404, allocations: 3.781 MB / 0.5494 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/1.404, allocations: 6.75 kB / 0.5494 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/1.406, allocations: 222.9 kB / 0.5496 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002574/1.409, allocations: 0.4885 MB / 0.5501 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002991/1.409, allocations: 32.22 kB / 0.5501 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/1.421, allocations: 6.513 MB / 0.5565 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.421, allocations: 5.094 kB / 0.5565 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007171/1.428, allocations: 3 MB / 0.5594 GB, free: 99.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007889/1.429, allocations: 282.7 kB / 0.5597 GB, free: 99.63 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/1.429, allocations: 26.56 kB / 0.5597 GB, free: 99.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.431, allocations: 98.7 kB / 0.5598 GB, free: 99.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003689/1.431, allocations: 126 kB / 0.56 GB, free: 99.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/1.431, allocations: 41.08 kB / 0.56 GB, free: 99.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006029/1.432, allocations: 360.4 kB / 0.5603 GB, free: 99.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.432, allocations: 3.938 kB / 0.5603 GB, free: 99.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002533/1.435, allocations: 0.6418 MB / 0.561 GB, free: 99.32 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.007537/1.442, allocations: 4.269 MB / 0.5651 GB, free: 96.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01053/1.453, allocations: 2.709 MB / 0.5678 GB, free: 95.63 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/1.453, allocations: 4.062 kB / 0.5678 GB, free: 95.63 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004267/1.457, allocations: 1.198 MB / 0.569 GB, free: 95.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/1.459, allocations: 141.3 kB / 0.5691 GB, free: 94.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/1.47, allocations: 2.437 MB / 0.5715 GB, free: 93.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001592/1.472, allocations: 1.264 MB / 0.5727 GB, free: 93.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002918/1.475, allocations: 329.1 kB / 0.573 GB, free: 93.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001327/1.476, allocations: 413.8 kB / 0.5734 GB, free: 92.85 MB / 458.7 MB Notification: Performance of SimCode: time 3.427e-06/1.476, allocations: 0 / 0.5734 GB, free: 92.85 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1249/1.601, allocations: 29.98 MB / 0.6027 GB, free: 87.55 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/1.601, allocations: 197.1 kB / 0.6029 GB, free: 87.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.659/5.261, allocations: 0 / 0.6029 GB, free: 87.32 MB / 458.7 MB