Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadModel(PowerSystems): time 2.222/2.222, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.017e-05, allocations: 4 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3458, allocations: 53.22 MB / 357.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01297/0.3588, allocations: 8.158 MB / 365.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.3694, allocations: 4.632 MB / 370.4 MB, free: 2.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.3705, allocations: 39.88 kB / 370.4 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006467/0.3712, allocations: 190.7 kB / 370.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003466/0.3747, allocations: 0.7356 MB / 371.3 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001942/0.3767, allocations: 422.9 kB / 371.7 MB, free: 1.281 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001964/0.3786, allocations: 0.6676 MB / 372.4 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003716/0.3824, allocations: 1.285 MB / 373.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.3841, allocations: 474.5 kB / 374.2 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.3854, allocations: 470.6 kB / 374.6 MB, free: 14.37 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003279/0.3887, allocations: 0.7875 MB / 375.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004811/0.3892, allocations: 56 kB / 375.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008555/0.3901, allocations: 458.8 kB / 375.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004932/0.3906, allocations: 108 kB / 376 MB, free: 12.97 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003937/0.3946, allocations: 1.419 MB / 377.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3946, allocations: 0 / 377.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3946, allocations: 0 / 377.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.464e-05/0.3947, allocations: 0 / 377.4 MB, free: 11.55 MB / 314.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.005108/0.3998, allocations: 1.338 MB / 378.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.3999, allocations: 12.03 kB / 378.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00855/0.4085, allocations: 0.5096 MB / 379.3 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.4109, allocations: 0.6384 MB / 379.9 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.4111, allocations: 82.09 kB / 380 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004463/0.4115, allocations: 104 kB / 380.1 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00634/0.4179, allocations: 1.578 MB / 381.7 MB, free: 7.129 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.642e-05/0.418, allocations: 11.89 kB / 381.7 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002681/0.4183, allocations: 43.98 kB / 381.7 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002517/0.4186, allocations: 90.19 kB / 381.8 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006821/0.4254, allocations: 1.633 MB / 383.5 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01799/0.4434, allocations: 4.753 MB / 388.2 MB, free: 476 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005576/0.4491, allocations: 1.358 MB / 389.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001959/0.4493, allocations: 24.91 kB / 389.6 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003292/0.4526, allocations: 0.8334 MB / 390.4 MB, free: 14.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=125): time 6.192e-06/0.4527, allocations: 4 kB / 390.4 MB, free: 14.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=136): time 0.02873/0.4814, allocations: 6.327 MB / 396.8 MB, free: 7.758 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.4816, allocations: 120.1 kB / 396.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009604/0.4826, allocations: 478.2 kB / 397.3 MB, free: 7.141 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002919/0.4829, allocations: 45.7 kB / 397.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004902/0.4834, allocations: 494.7 kB / 397.9 MB, free: 6.602 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008128/0.4842, allocations: 457.3 kB / 398.3 MB, free: 6.148 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.4844, allocations: 24 kB / 398.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.4846, allocations: 362.8 kB / 398.7 MB, free: 5.762 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.4866, allocations: 0.6194 MB / 399.3 MB, free: 5.145 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.4889, allocations: 0.762 MB / 400.1 MB, free: 4.348 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/0.4913, allocations: 0.742 MB / 400.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.4914, allocations: 0 / 400.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.007116/0.4985, allocations: 2.022 MB / 402.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000521/0.4991, allocations: 0.9903 MB / 403.8 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.4991, allocations: 3.938 kB / 403.8 MB, free: 500 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002522/0.5016, allocations: 465.3 kB / 404.3 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/0.5041, allocations: 259.6 kB / 404.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.5156, allocations: 5.007 MB / 409.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.5173, allocations: 87.91 kB / 409.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.5175, allocations: 51.98 kB / 409.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.5175, allocations: 4 kB / 409.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006516/0.5241, allocations: 1.892 MB / 411.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.5241, allocations: 4 kB / 411.6 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001911/0.5261, allocations: 389.6 kB / 412 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00236/0.5285, allocations: 267.6 kB / 412.2 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/0.5417, allocations: 6.12 MB / 418.4 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.5433, allocations: 87.92 kB / 418.4 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/0.5435, allocations: 55.92 kB / 418.5 MB, free: 1.328 MB / 346.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 (120): * Single equations (assignments): 117 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0009907/0.5445, allocations: 353.3 kB / 418.8 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.5448, allocations: 94.88 kB / 418.9 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007802/0.5527, allocations: 2.173 MB / 421.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-05/0.5527, allocations: 16 kB / 421.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5527, allocations: 0 / 421.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-05/0.5528, allocations: 7.969 kB / 421.1 MB, free: 14.66 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.0124/0.5652, allocations: 3.939 MB / 425.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/0.5653, allocations: 4 kB / 425.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.5672, allocations: 216 kB / 425.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002865/0.5701, allocations: 0.505 MB / 425.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002448/0.5704, allocations: 39.98 kB / 425.8 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/0.5858, allocations: 6.692 MB / 432.5 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/0.5858, allocations: 3.938 kB / 432.5 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/0.5959, allocations: 3.22 MB / 435.7 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008715/0.5968, allocations: 287.7 kB / 436 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.5971, allocations: 32.25 kB / 436.1 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.5985, allocations: 79.92 kB / 436.1 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004052/0.5989, allocations: 125.1 kB / 436.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/0.599, allocations: 47.98 kB / 436.3 MB, free: 14.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000718/0.5998, allocations: 366.8 kB / 436.7 MB, free: 14.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5998, allocations: 3.938 kB / 436.7 MB, free: 14.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002825/0.6026, allocations: 0.6484 MB / 437.3 MB, free: 13.92 MB / 378.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.0003205/0.603, allocations: 131.1 kB / 437.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009276/0.6123, allocations: 3.184 MB / 440.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.6123, allocations: 3.938 kB / 440.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004184/0.6165, allocations: 1.312 MB / 441.9 MB, free: 9.199 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.6179, allocations: 147.2 kB / 442.1 MB, free: 9.059 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00791/0.6258, allocations: 3.191 MB / 445.3 MB, free: 5.805 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.6273, allocations: 1.271 MB / 446.5 MB, free: 4.504 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007319/0.628, allocations: 91.39 kB / 446.6 MB, free: 4.414 MB / 378.7 MB Notification: Performance of SimCode: time 1.773e-06/0.6281, allocations: 0 / 446.6 MB, free: 4.414 MB / 378.7 MB Notification: Performance of Templates: time 0.04573/0.6738, allocations: 21.61 MB / 468.2 MB, free: 14.77 MB / 410.7 MB