Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator") Notification: Performance of loadModel(PowerSystems): time 2.342/2.342, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.899e-05, allocations: 4 kB / 304.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3594, allocations: 53.22 MB / 357.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGroupGenerator): time 0.01781/0.3773, allocations: 10.89 MB / 368.5 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.3932, allocations: 6.448 MB / 374.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.3955, allocations: 107.4 kB / 375 MB, free: 13.99 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0377/0.4332, allocations: 14.7 MB / 389.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003532/0.4368, allocations: 0.7319 MB / 390.5 MB, free: 14.53 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002815/0.4397, allocations: 0.62 MB / 391.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002786/0.4425, allocations: 0.9838 MB / 392.1 MB, free: 12.92 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003816/0.4464, allocations: 1.533 MB / 393.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.4481, allocations: 0.6077 MB / 394.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.4498, allocations: 0.7205 MB / 394.9 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001217/0.4511, allocations: 327.5 kB / 395.2 MB, free: 9.703 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003919/0.4515, allocations: 72 kB / 395.3 MB, free: 9.633 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009601/0.4524, allocations: 0.6078 MB / 395.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006759/0.4531, allocations: 172 kB / 396.1 MB, free: 8.855 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00455/0.4577, allocations: 2.466 MB / 398.6 MB, free: 6.383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.4578, allocations: 0 / 398.6 MB, free: 6.383 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4578, allocations: 0 / 398.6 MB, free: 6.383 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001136/0.4579, allocations: 8 kB / 398.6 MB, free: 6.375 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.006087/0.464, allocations: 1.725 MB / 400.3 MB, free: 4.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.4641, allocations: 11.97 kB / 400.3 MB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.466, allocations: 269.5 kB / 400.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005619/0.4717, allocations: 1.582 MB / 402.1 MB, free: 2.668 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.4719, allocations: 122.8 kB / 402.3 MB, free: 2.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007725/0.4727, allocations: 179.8 kB / 402.4 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005708/0.4784, allocations: 1.866 MB / 404.3 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-05/0.4785, allocations: 11.84 kB / 404.3 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002323/0.4788, allocations: 56 kB / 404.4 MB, free: 376 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004811/0.4793, allocations: 102.7 kB / 404.5 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005492/0.4848, allocations: 1.599 MB / 406.1 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.5024, allocations: 6.569 MB / 412.6 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003636/0.5061, allocations: 1.469 MB / 414.1 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.5063, allocations: 17.06 kB / 414.1 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002212/0.5086, allocations: 0.8055 MB / 414.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 4.879e-06/0.5086, allocations: 0 / 414.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=130): time 0.02054/0.5292, allocations: 5.686 MB / 420.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.5294, allocations: 252.3 kB / 420.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.5319, allocations: 0.9975 MB / 421.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003481/0.5323, allocations: 57.69 kB / 421.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009039/0.5332, allocations: 0.7319 MB / 422.6 MB, free: 13.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008164/0.5341, allocations: 469.3 kB / 423.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.5342, allocations: 35.98 kB / 423.1 MB, free: 13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.5345, allocations: 374.8 kB / 423.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/0.5366, allocations: 0.6676 MB / 424.2 MB, free: 11.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/0.5391, allocations: 1.029 MB / 425.2 MB, free: 10.79 MB / 362.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02734/0.5664, allocations: 5.762 MB / 431 MB, free: 4.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.477e-05/0.5665, allocations: 4 kB / 431 MB, free: 4.957 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01151/0.578, allocations: 2.663 MB / 433.6 MB, free: 2.207 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002407/0.5805, allocations: 3.861 MB / 437.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009905/0.5904, allocations: 2.237 MB / 439.7 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004866/0.5954, allocations: 0.631 MB / 440.4 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006627/0.602, allocations: 0.6633 MB / 441 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02755/0.6296, allocations: 14.42 MB / 455.4 MB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/0.6319, allocations: 123.8 kB / 455.6 MB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/0.6321, allocations: 67.98 kB / 455.6 MB, free: 10.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.6322, allocations: 5.406 kB / 455.6 MB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007777/0.6399, allocations: 2.541 MB / 458.2 MB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006604/0.6466, allocations: 2.159 MB / 460.3 MB, free: 5.922 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003152/0.6498, allocations: 0.5921 MB / 460.9 MB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/0.6531, allocations: 411.4 kB / 461.3 MB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0201/0.6732, allocations: 13.05 MB / 474.4 MB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.6746, allocations: 71.86 kB / 474.4 MB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/0.6748, allocations: 64 kB / 474.5 MB, free: 6.758 MB / 410.7 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization sytem: $DER.turboGrpGen.turboGroup.genRotor.w = 0.0 $DER.turboGrpGen.turboGroup.aux1.w = 0.0 turboGrpGen.turboGroup.turbine1.a = turboGrpGen.turboGroup.turbine2.a $DER.turboGrpGen.turboGroup.aux2.w = 0.0 $DER.turboGrpGen.turboGroup.turbine3.w = 0.0 $DER.turboGrpGen.turboGroup.turbine2.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayGrd.cnt,relayGrd.cnt,$whenCondition2,switchGrd.control[1],$PRE.switchGrd.t0,switchGrd.t0,$PRE.switchGrd.open,switchGrd.open,$PRE.switchGrd.closed,switchGrd.closed,$PRE.relayGrd.y[1],relayGrd.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 175 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 2,(2,100.0%) 1,(2,100.0%) 1,(1,100.0%) 7,(1,100.0%) 3} * Non-linear torn systems: 1 {2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001624/0.6765, allocations: 0.5891 MB / 475.1 MB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.6769, allocations: 142.4 kB / 475.2 MB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/0.6821, allocations: 1.824 MB / 477.1 MB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.73e-05/0.6822, allocations: 19.98 kB / 477.1 MB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.6822, allocations: 0 / 477.1 MB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-05/0.6822, allocations: 11.97 kB / 477.1 MB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.6925, allocations: 3.779 MB / 480.9 MB, free: 196 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.6926, allocations: 0 / 480.9 MB, free: 196 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3043/0.9969, allocations: 393.2 kB / 481.3 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007951/0.9977, allocations: 134.6 kB / 481.4 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003528/0.9981, allocations: 51.94 kB / 481.4 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004072/1.002, allocations: 3.152 MB / 484.6 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.002, allocations: 2.375 kB / 484.6 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007033/1.009, allocations: 2.72 MB / 487.3 MB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/1.01, allocations: 337.9 kB / 487.6 MB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/1.011, allocations: 45.36 kB / 487.7 MB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/1.012, allocations: 75.41 kB / 487.8 MB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/1.013, allocations: 87.7 kB / 487.8 MB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/1.013, allocations: 41 kB / 487.9 MB, free: 107.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001691/1.014, allocations: 0.7673 MB / 488.7 MB, free: 107.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.014, allocations: 3.938 kB / 488.7 MB, free: 107.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003367/1.018, allocations: 0.7388 MB / 489.4 MB, free: 107 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 25 (turboGrpGen.generator.phi_el,turboGrpGen.generator.w_el,turboGrpGen.generator.i_s[1],turboGrpGen.generator.i_s[2],turboGrpGen.generator.i_s[3],turboGrpGen.generator.i_rd[1],turboGrpGen.generator.i_rd[2],turboGrpGen.generator.i_rq[1],turboGrpGen.generator.i_rq[2],turboGrpGen.exciter.voltageReg.x_scaled[1],turboGrpGen.turboGroup.aux1.phi,turboGrpGen.turboGroup.aux1.w,turboGrpGen.turboGroup.turbine1.phi,turboGrpGen.turboGroup.turbine1.w,turboGrpGen.turboGroup.turbine2.phi,turboGrpGen.turboGroup.turbine2.w,turboGrpGen.turboGroup.turbine3.phi,turboGrpGen.turboGroup.turbine3.w,turboGrpGen.turboGroup.turbine4.phi,turboGrpGen.turboGroup.turbine4.w,turboGrpGen.turboGroup.aux2.phi,turboGrpGen.turboGroup.aux2.w,line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 9 (switchGrd.control[1],$whenCondition2,$whenCondition1,switchGrd.t0,switchGrd.open,switchGrd.closed,relayGrd.y[1],relayGrd.cnt,system.initime) * Number of discrete states: 5 (relayGrd.y[1],relayGrd.cnt,$whenCondition1,switchGrd.open,switchGrd.closed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005867/1.018, allocations: 200.7 kB / 489.6 MB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01297/1.031, allocations: 5.001 MB / 494.6 MB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.032, allocations: 0 / 494.6 MB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002931/1.034, allocations: 1.077 MB / 495.7 MB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/1.037, allocations: 281.9 kB / 495.9 MB, free: 103.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/1.048, allocations: 5.753 MB / 0.4899 GB, free: 99.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/1.049, allocations: 1.539 MB / 0.4914 GB, free: 98.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00082/1.05, allocations: 115.3 kB / 0.4916 GB, free: 98.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/1.05, allocations: 4 kB / 0.4916 GB, free: 98.38 MB / 410.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.