Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadModel(PowerSystems): time 2.308/2.308, allocations: 233 MB / 246.1 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.552e-05/4.565e-05, allocations: 4 kB / 302.2 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09366, allocations: 53.23 MB / 355.4 MB, free: 2.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3797/0.4734, allocations: 98.13 MB / 453.6 MB, free: 3.617 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.4737, allocations: 83.95 kB / 453.7 MB, free: 3.535 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2454/0.7192, allocations: 66.47 MB / 0.5079 GB, free: 384 kB / 442.7 MB Notification: Performance of FrontEnd: time 1.901e-06/0.7192, allocations: 0 / 0.5079 GB, free: 384 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.221e-05/0.7193, allocations: 27.98 kB / 0.508 GB, free: 356 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.003458/0.7228, allocations: 1.374 MB / 0.5093 GB, free: 14.92 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.7229, allocations: 12.03 kB / 0.5093 GB, free: 14.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005831/0.7287, allocations: 490.3 kB / 0.5098 GB, free: 14.43 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.7306, allocations: 0.6717 MB / 0.5104 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.7307, allocations: 78.09 kB / 0.5105 GB, free: 13.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002774/0.731, allocations: 112 kB / 0.5106 GB, free: 13.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003539/0.7346, allocations: 1.465 MB / 0.512 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.274e-05/0.7346, allocations: 7.906 kB / 0.5121 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001714/0.7348, allocations: 39.98 kB / 0.5121 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003817/0.7352, allocations: 118.1 kB / 0.5122 GB, free: 11.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003803/0.739, allocations: 1.445 MB / 0.5136 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01147/0.7506, allocations: 4.715 MB / 0.5182 GB, free: 5.551 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002637/0.7532, allocations: 1.196 MB / 0.5194 GB, free: 4.344 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.7548, allocations: 0.7278 MB / 0.5201 GB, free: 3.609 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.755, allocations: 20.97 kB / 0.5201 GB, free: 3.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001697/0.7567, allocations: 0.7651 MB / 0.5209 GB, free: 2.805 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 5.28e-06/0.7567, allocations: 0 / 0.5209 GB, free: 2.805 MB / 458.7 MB Notification: Performance of matching and sorting (n=136): time 0.2636/1.02, allocations: 4.725 MB / 0.5255 GB, free: 109.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/1.02, allocations: 124.6 kB / 0.5256 GB, free: 109.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009147/1.021, allocations: 466.5 kB / 0.526 GB, free: 109.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002104/1.022, allocations: 52.83 kB / 0.5261 GB, free: 109.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003931/1.022, allocations: 460.2 kB / 0.5265 GB, free: 109 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004929/1.023, allocations: 464.5 kB / 0.527 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/1.023, allocations: 25.47 kB / 0.527 GB, free: 108.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/1.023, allocations: 404 kB / 0.5274 GB, free: 108.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/1.024, allocations: 0.5399 MB / 0.5279 GB, free: 108.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/1.025, allocations: 0.6772 MB / 0.5286 GB, free: 108.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/1.027, allocations: 0.6656 MB / 0.5292 GB, free: 108.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/1.027, allocations: 1.25 kB / 0.5292 GB, free: 108.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.005505/1.032, allocations: 2.069 MB / 0.5312 GB, free: 108.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002388/1.033, allocations: 0.991 MB / 0.5322 GB, free: 107.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/1.033, allocations: 3.812 kB / 0.5322 GB, free: 107.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/1.036, allocations: 0.7086 MB / 0.5329 GB, free: 107 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/1.037, allocations: 228.6 kB / 0.5331 GB, free: 107 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/1.04, allocations: 1.556 MB / 0.5346 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/1.041, allocations: 106.1 kB / 0.5347 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001793/1.041, allocations: 41.19 kB / 0.5348 GB, free: 106.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/1.041, allocations: 4.062 kB / 0.5348 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005154/1.046, allocations: 1.943 MB / 0.5367 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/1.046, allocations: 2 kB / 0.5367 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/1.049, allocations: 0.6993 MB / 0.5374 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/1.051, allocations: 225 kB / 0.5376 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/1.062, allocations: 5.618 MB / 0.5431 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/1.063, allocations: 98.5 kB / 0.5432 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/1.063, allocations: 47.38 kB / 0.5432 GB, free: 104.7 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.0003568/1.064, allocations: 166.2 kB / 0.5434 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/1.064, allocations: 92.66 kB / 0.5435 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005121/1.069, allocations: 2.023 MB / 0.5454 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/1.069, allocations: 14.31 kB / 0.5454 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.491e-06/1.069, allocations: 1.344 kB / 0.5454 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.002e-05/1.069, allocations: 12.45 kB / 0.5455 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.008997/1.078, allocations: 3.787 MB / 0.5492 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/1.078, allocations: 2.875 kB / 0.5492 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/1.08, allocations: 219.9 kB / 0.5494 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/1.082, allocations: 0.4884 MB / 0.5498 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002277/1.082, allocations: 34.33 kB / 0.5499 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/1.092, allocations: 6.513 MB / 0.5562 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.409e-06/1.092, allocations: 4.875 kB / 0.5562 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006241/1.099, allocations: 2.999 MB / 0.5592 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007456/1.099, allocations: 282.2 kB / 0.5594 GB, free: 99.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/1.1, allocations: 33.44 kB / 0.5595 GB, free: 99.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/1.101, allocations: 95.09 kB / 0.5596 GB, free: 99.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003144/1.101, allocations: 117.3 kB / 0.5597 GB, free: 99.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/1.101, allocations: 42.5 kB / 0.5597 GB, free: 99.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000534/1.102, allocations: 368.1 kB / 0.5601 GB, free: 99.67 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.36e-07/1.102, allocations: 0 / 0.5601 GB, free: 99.67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002332/1.104, allocations: 0.6426 MB / 0.5607 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.0002696/1.104, allocations: 151.3 kB / 0.5608 GB, free: 99.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005456/1.11, allocations: 2.711 MB / 0.5635 GB, free: 98.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.335e-06/1.11, allocations: 0 / 0.5635 GB, free: 98.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002439/1.112, allocations: 1.202 MB / 0.5647 GB, free: 97.84 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/1.113, allocations: 143.8 kB / 0.5648 GB, free: 97.78 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004707/1.118, allocations: 2.153 MB / 0.5669 GB, free: 96.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009333/1.119, allocations: 1.262 MB / 0.5681 GB, free: 96.09 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001357/1.12, allocations: 325.9 kB / 0.5684 GB, free: 96.06 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/1.121, allocations: 65.59 kB / 0.5685 GB, free: 96.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.885e-06/1.121, allocations: 4 kB / 0.5685 GB, free: 96.05 MB / 458.7 MB Notification: Performance of Templates: time 0.05215/1.173, allocations: 20.92 MB / 0.5889 GB, free: 94.97 MB / 458.7 MB