Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TieLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TieLine") Notification: Performance of loadModel(PowerSystems): time 2.299/2.299, allocations: 232.9 MB / 248.1 MB, free: 11.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.794e-05, allocations: 4 kB / 304.4 MB, free: 2.934 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.343, allocations: 53.23 MB / 357.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TieLine): time 0.02777/0.3708, allocations: 17.8 MB / 375.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02389/0.3947, allocations: 9.593 MB / 385 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003873/0.3987, allocations: 174.9 kB / 385.2 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.07018/0.4689, allocations: 28.17 MB / 413.3 MB, free: 7.75 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006701/0.4756, allocations: 1.3 MB / 414.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005741/0.4814, allocations: 1.268 MB / 415.9 MB, free: 5.176 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005625/0.4871, allocations: 1.838 MB / 417.7 MB, free: 3.332 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006787/0.4939, allocations: 2.453 MB / 420.2 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003571/0.4976, allocations: 1.254 MB / 421.4 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004079/0.5017, allocations: 1.55 MB / 423 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002819/0.5046, allocations: 0.55 MB / 423.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.506, allocations: 120 kB / 423.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003027/0.509, allocations: 1.473 MB / 425.1 MB, free: 11.88 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.5108, allocations: 316 kB / 425.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008821/0.5197, allocations: 4.8 MB / 430.2 MB, free: 6.758 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.5197, allocations: 0 / 430.2 MB, free: 6.758 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5198, allocations: 0 / 430.2 MB, free: 6.758 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002244/0.52, allocations: 3.938 kB / 430.2 MB, free: 6.754 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 697 * Number of variables: 697 Notification: Performance of Generate backend data structure: time 0.01263/0.5326, allocations: 3.282 MB / 433.5 MB, free: 3.406 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.5327, allocations: 8.031 kB / 433.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005644/0.5383, allocations: 0.6704 MB / 434.2 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01462/0.553, allocations: 3.487 MB / 437.7 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002898/0.5534, allocations: 205 kB / 437.9 MB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.5551, allocations: 327.7 kB / 438.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/0.5674, allocations: 3.839 MB / 442 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001327/0.5676, allocations: 7.906 kB / 442.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004442/0.568, allocations: 104 kB / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0013/0.5693, allocations: 253 kB / 442.4 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/0.5818, allocations: 3.627 MB / 446 MB, free: 6.684 MB / 378.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 preOpt removeSimpleEquations (simulation): time 0.03903/0.6209, allocations: 13.26 MB / 459.3 MB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007395/0.6283, allocations: 2.291 MB / 461.6 MB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003907/0.6288, allocations: 45.97 kB / 461.6 MB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005115/0.6339, allocations: 1.575 MB / 463.2 MB, free: 4.938 MB / 394.7 MB Notification: Performance of pre-optimization done (n=223): time 6.562e-06/0.634, allocations: 0 / 463.2 MB, free: 4.938 MB / 394.7 MB Notification: Performance of matching and sorting (n=267): time 0.4757/1.11, allocations: 21.15 MB / 484.3 MB, free: 109.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/1.11, allocations: 261.6 kB / 484.6 MB, free: 109.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00935/1.119, allocations: 2.532 MB / 487.1 MB, free: 108.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007196/1.12, allocations: 77.67 kB / 487.2 MB, free: 108.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00141/1.121, allocations: 1.348 MB / 488.6 MB, free: 107.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00149/1.123, allocations: 0.9505 MB / 489.5 MB, free: 107.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003325/1.123, allocations: 64.72 kB / 489.6 MB, free: 107.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00022/1.124, allocations: 440.8 kB / 490 MB, free: 106.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004617/1.128, allocations: 1.68 MB / 491.7 MB, free: 106.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005253/1.134, allocations: 2.272 MB / 494 MB, free: 105 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00545/1.139, allocations: 2.02 MB / 496 MB, free: 104.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.347e-05/1.139, allocations: 3.656 kB / 496 MB, free: 104.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.02115/1.16, allocations: 6.584 MB / 0.4908 GB, free: 101.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00107/1.161, allocations: 5.329 MB / 0.496 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.832e-05/1.161, allocations: 14.88 kB / 0.496 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01249/1.174, allocations: 2.369 MB / 0.4983 GB, free: 94.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009298/1.183, allocations: 1.356 MB / 0.4996 GB, free: 93.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08253/1.266, allocations: 39.96 MB / 0.5387 GB, free: 51.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008167/1.274, allocations: 388 kB / 0.539 GB, free: 51.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009695/1.275, allocations: 120 kB / 0.5391 GB, free: 51.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/1.275, allocations: 4 kB / 0.5392 GB, free: 51.26 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02087/1.296, allocations: 6.289 MB / 0.5453 GB, free: 44.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-05/1.296, allocations: 19.98 kB / 0.5453 GB, free: 44.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01111/1.307, allocations: 2.3 MB / 0.5476 GB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004427/1.312, allocations: 0.5694 MB / 0.5481 GB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05543/1.367, allocations: 35.71 MB / 0.583 GB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003036/1.37, allocations: 163.8 kB / 0.5831 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/1.371, allocations: 124 kB / 0.5833 GB, free: 3.996 MB / 410.7 MB Warning: Assuming fixed start value for the following 3 variables: setpts3.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts2.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts1.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (297): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1,(4,62.5%) 21,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 2 {6 8,8 46} Notification: Performance of prepare postOptimizeDAE: time 0.002616/1.373, allocations: 1.083 MB / 0.5843 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008593/1.374, allocations: 320 kB / 0.5846 GB, free: 2.586 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/1.391, allocations: 5.255 MB / 0.5898 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.312e-05/1.391, allocations: 28 kB / 0.5898 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/1.391, allocations: 8 kB / 0.5898 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.614e-05/1.391, allocations: 11.95 kB / 0.5898 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/1.421, allocations: 9.136 MB / 0.5987 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.236e-05/1.422, allocations: 0 / 0.5987 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003846/1.425, allocations: 371.5 kB / 0.5991 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008973/1.434, allocations: 1.725 MB / 0.6008 GB, free: 1.902 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008127/1.435, allocations: 127.9 kB / 0.6009 GB, free: 1.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04234/1.478, allocations: 14.68 MB / 0.6152 GB, free: 2.816 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.478, allocations: 4 kB / 0.6152 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/1.502, allocations: 7.164 MB / 0.6222 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002808/1.505, allocations: 0.696 MB / 0.6229 GB, free: 10.78 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.507, allocations: 111.9 kB / 0.623 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004877/1.511, allocations: 235.7 kB / 0.6232 GB, free: 10.44 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/1.513, allocations: 206.5 kB / 0.6234 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006417/1.513, allocations: 91.94 kB / 0.6235 GB, free: 10.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006726/1.52, allocations: 1.891 MB / 0.6254 GB, free: 8.254 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.52, allocations: 8 kB / 0.6254 GB, free: 8.246 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009901/1.53, allocations: 1.708 MB / 0.627 GB, free: 6.543 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 34 (system.theta,turboGen1.generator.i_s[1],turboGen1.generator.i_s[2],turboGen1.generator.i_s[3],turboGen1.generator.i_rd[1],turboGen1.generator.i_rd[2],turboGen1.generator.i_rq[1],turboGen1.generator.i_rq[2],turboGen1.exciter.voltageReg.x_scaled[1],turboGen1.governor.speedReg.x_scaled[1],turboGen1.rotor.phi,turboGen1.rotor.w,turboGen2.generator.i_s[1],turboGen2.generator.i_s[2],turboGen2.generator.i_s[3],turboGen2.generator.i_rd[1],turboGen2.generator.i_rd[2],turboGen2.generator.i_rq[1],turboGen2.generator.i_rq[2],turboGen2.exciter.voltageReg.x_scaled[1],turboGen2.governor.speedReg.x_scaled[1],turboGen2.rotor.phi,turboGen2.rotor.w,turboGen3.generator.i_s[1],turboGen3.generator.i_s[2],turboGen3.generator.i_s[3],turboGen3.generator.i_rd[1],turboGen3.generator.i_rd[2],turboGen3.generator.i_rq[1],turboGen3.generator.i_rq[2],turboGen3.exciter.voltageReg.x_scaled[1],turboGen3.governor.speedReg.x_scaled[1],turboGen3.rotor.phi,turboGen3.rotor.w) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 1 {(3,77.8%) 13} * Non-linear torn systems: 1 {20 61} Notification: Performance of Backend phase and start with SimCode phase: time 0.001238/1.531, allocations: 266.8 kB / 0.6273 GB, free: 6.293 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04028/1.572, allocations: 12.07 MB / 0.6391 GB, free: 9.836 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.572, allocations: 0 / 0.6391 GB, free: 9.836 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01151/1.583, allocations: 2.957 MB / 0.642 GB, free: 6.852 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005089/1.588, allocations: 0.5719 MB / 0.6425 GB, free: 6.285 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3337/1.922, allocations: 11.52 MB / 0.6538 GB, free: 148.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004189/1.926, allocations: 2.748 MB / 0.6565 GB, free: 148 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001661/1.928, allocations: 220 kB / 0.6567 GB, free: 148 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/1.928, allocations: 7.594 kB / 0.6567 GB, free: 148 MB / 474.7 MB [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN.