Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadModel(PowerSystems): time 2.151/2.151, allocations: 233 MB / 246.1 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.514e-05/3.523e-05, allocations: 4 kB / 302.2 MB, free: 7.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09096, allocations: 53.24 MB / 355.4 MB, free: 2.125 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.5131, allocations: 98.13 MB / 453.6 MB, free: 3.605 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.5135, allocations: 83.95 kB / 453.7 MB, free: 3.523 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2522/0.7657, allocations: 66.47 MB / 0.5079 GB, free: 372 kB / 442.7 MB Notification: Performance of FrontEnd: time 4.69e-06/0.7658, allocations: 4 kB / 0.5079 GB, free: 368 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.355e-05/0.7658, allocations: 23.94 kB / 0.508 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.00353/0.7694, allocations: 1.379 MB / 0.5093 GB, free: 14.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.7695, allocations: 12.03 kB / 0.5093 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005462/0.7749, allocations: 490.4 kB / 0.5098 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.777, allocations: 0.6717 MB / 0.5104 GB, free: 13.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.7771, allocations: 78.09 kB / 0.5105 GB, free: 13.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003232/0.7775, allocations: 116 kB / 0.5106 GB, free: 13.49 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003683/0.7812, allocations: 1.457 MB / 0.512 GB, free: 11.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.577e-05/0.7813, allocations: 7.891 kB / 0.5121 GB, free: 11.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000177/0.7814, allocations: 47.98 kB / 0.5121 GB, free: 11.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000373/0.7818, allocations: 114.1 kB / 0.5122 GB, free: 11.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003839/0.7857, allocations: 1.441 MB / 0.5136 GB, free: 10.37 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01253/0.7983, allocations: 4.711 MB / 0.5182 GB, free: 5.535 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002893/0.8012, allocations: 1.202 MB / 0.5194 GB, free: 4.32 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.8029, allocations: 0.7316 MB / 0.5201 GB, free: 3.582 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.803, allocations: 24.97 kB / 0.5201 GB, free: 3.559 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0017/0.8047, allocations: 0.7574 MB / 0.5209 GB, free: 2.781 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 5.713e-06/0.8048, allocations: 0 / 0.5209 GB, free: 2.781 MB / 458.7 MB Notification: Performance of matching and sorting (n=136): time 0.3363/1.141, allocations: 4.717 MB / 0.5255 GB, free: 109.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/1.141, allocations: 122.5 kB / 0.5256 GB, free: 109.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001802/1.143, allocations: 467.8 kB / 0.526 GB, free: 109.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002998/1.143, allocations: 52.64 kB / 0.5261 GB, free: 109.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/1.144, allocations: 460.1 kB / 0.5265 GB, free: 109.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007241/1.145, allocations: 465.5 kB / 0.527 GB, free: 108.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/1.145, allocations: 24.03 kB / 0.527 GB, free: 108.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002299/1.145, allocations: 403.7 kB / 0.5274 GB, free: 108.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/1.148, allocations: 0.5393 MB / 0.5279 GB, free: 108.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002317/1.15, allocations: 0.676 MB / 0.5286 GB, free: 108.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/1.152, allocations: 0.6676 MB / 0.5292 GB, free: 108.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/1.153, allocations: 1.5 kB / 0.5292 GB, free: 108.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01017/1.163, allocations: 2.071 MB / 0.5312 GB, free: 108.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004182/1.163, allocations: 0.9879 MB / 0.5322 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/1.163, allocations: 6.312 kB / 0.5322 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006012/1.169, allocations: 0.705 MB / 0.5329 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/1.172, allocations: 228 kB / 0.5331 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005553/1.178, allocations: 1.557 MB / 0.5346 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002864/1.181, allocations: 104.6 kB / 0.5347 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/1.181, allocations: 46.95 kB / 0.5348 GB, free: 106.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.181, allocations: 4.125 kB / 0.5348 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01137/1.193, allocations: 1.944 MB / 0.5367 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/1.193, allocations: 3.031 kB / 0.5367 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005957/1.199, allocations: 0.6986 MB / 0.5374 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002989/1.202, allocations: 227.3 kB / 0.5376 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/1.214, allocations: 5.615 MB / 0.5431 GB, free: 104.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/1.215, allocations: 104.4 kB / 0.5432 GB, free: 104.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/1.215, allocations: 45.12 kB / 0.5432 GB, free: 104.8 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.0003605/1.216, allocations: 169.8 kB / 0.5434 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/1.216, allocations: 92.31 kB / 0.5435 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005165/1.221, allocations: 2.021 MB / 0.5454 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/1.221, allocations: 15.55 kB / 0.5455 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.65e-06/1.221, allocations: 0 / 0.5455 GB, free: 104.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/1.221, allocations: 8.344 kB / 0.5455 GB, free: 104.5 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.009356/1.231, allocations: 3.79 MB / 0.5492 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/1.231, allocations: 3.781 kB / 0.5492 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/1.232, allocations: 216.2 kB / 0.5494 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/1.234, allocations: 0.4893 MB / 0.5498 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002325/1.234, allocations: 32.53 kB / 0.5499 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/1.245, allocations: 6.516 MB / 0.5562 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.161e-06/1.245, allocations: 3.812 kB / 0.5562 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00616/1.251, allocations: 2.997 MB / 0.5592 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007347/1.252, allocations: 289.9 kB / 0.5595 GB, free: 99.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/1.252, allocations: 27.69 kB / 0.5595 GB, free: 99.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.253, allocations: 91.34 kB / 0.5596 GB, free: 99.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/1.253, allocations: 124.8 kB / 0.5597 GB, free: 99.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.253, allocations: 44.69 kB / 0.5597 GB, free: 99.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005543/1.254, allocations: 362.4 kB / 0.5601 GB, free: 99.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.254, allocations: 0 / 0.5601 GB, free: 99.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002325/1.256, allocations: 0.6416 MB / 0.5607 GB, free: 99.66 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.0002829/1.257, allocations: 160.9 kB / 0.5609 GB, free: 99.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006026/1.263, allocations: 2.708 MB / 0.5635 GB, free: 98.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.562e-06/1.263, allocations: 0 / 0.5635 GB, free: 98.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002389/1.265, allocations: 1.202 MB / 0.5647 GB, free: 97.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/1.266, allocations: 140.6 kB / 0.5648 GB, free: 97.84 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/1.271, allocations: 2.15 MB / 0.5669 GB, free: 96.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000955/1.272, allocations: 1.262 MB / 0.5681 GB, free: 96.15 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001373/1.273, allocations: 336.5 kB / 0.5685 GB, free: 96.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003297/1.274, allocations: 66.08 kB / 0.5685 GB, free: 96.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.906e-06/1.274, allocations: 0 / 0.5685 GB, free: 96.1 MB / 458.7 MB Notification: Performance of Templates: time 0.04526/1.319, allocations: 20.92 MB / 0.5889 GB, free: 95.02 MB / 458.7 MB