Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadModel(PowerSystems): time 2.363/2.363, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.716e-05, allocations: 4 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3655, allocations: 53.22 MB / 357.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01479/0.3803, allocations: 8.714 MB / 366.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008703/0.3891, allocations: 3.116 MB / 369.4 MB, free: 5.145 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001753/0.3909, allocations: 75.69 kB / 369.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.3924, allocations: 267.7 kB / 369.7 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003391/0.3958, allocations: 0.6056 MB / 370.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.3978, allocations: 386.9 kB / 370.7 MB, free: 4.039 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002642/0.4004, allocations: 0.7554 MB / 371.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.4023, allocations: 0.7355 MB / 372.2 MB, free: 2.844 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.4038, allocations: 470.5 kB / 372.7 MB, free: 2.383 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.4053, allocations: 494.4 kB / 373.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001064/0.4064, allocations: 255.6 kB / 373.4 MB, free: 1.648 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003214/0.4067, allocations: 44 kB / 373.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005913/0.4073, allocations: 351 kB / 373.8 MB, free: 1.262 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.4079, allocations: 108 kB / 373.9 MB, free: 1.156 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.4107, allocations: 1.492 MB / 375.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4108, allocations: 0 / 375.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.546e-06/0.4108, allocations: 4 kB / 375.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.466e-05/0.4108, allocations: 4 kB / 375.4 MB, free: 15.65 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.004295/0.4152, allocations: 1.267 MB / 376.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.4152, allocations: 15.97 kB / 376.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/0.4166, allocations: 182.3 kB / 376.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/0.4194, allocations: 0.8674 MB / 377.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.937e-05/0.4196, allocations: 74 kB / 377.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/0.4201, allocations: 123.8 kB / 377.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003581/0.4237, allocations: 1.303 MB / 379.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/0.4238, allocations: 0 / 379.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/0.424, allocations: 43.98 kB / 379.3 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001809/0.4242, allocations: 69.97 kB / 379.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003315/0.4275, allocations: 1.054 MB / 380.4 MB, free: 10.51 MB / 314.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0123/0.4399, allocations: 4.94 MB / 385.3 MB, free: 5.336 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.4421, allocations: 0.7582 MB / 386.1 MB, free: 4.531 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.4422, allocations: 8.625 kB / 386.1 MB, free: 4.523 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.4423, allocations: 47.06 kB / 386.1 MB, free: 4.469 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 5.641e-06/0.4423, allocations: 0 / 386.1 MB, free: 4.469 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.01043/0.4528, allocations: 3.1 MB / 389.2 MB, free: 1.238 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.4529, allocations: 137.1 kB / 389.4 MB, free: 1.074 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/0.4543, allocations: 0.6327 MB / 390 MB, free: 444 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.4546, allocations: 37.7 kB / 390 MB, free: 400 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005806/0.4552, allocations: 0.5482 MB / 390.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004725/0.4557, allocations: 256.3 kB / 390.8 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/0.4557, allocations: 16 kB / 390.9 MB, free: 15.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.4559, allocations: 346.8 kB / 391.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.457, allocations: 293.8 kB / 391.5 MB, free: 14.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.4582, allocations: 0.5278 MB / 392 MB, free: 14.3 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.4595, allocations: 379.1 kB / 392.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.4595, allocations: 0 / 392.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003447/0.463, allocations: 1.114 MB / 393.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001335/0.4644, allocations: 2.966 MB / 396.5 MB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.4644, allocations: 4 kB / 396.5 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/0.4669, allocations: 424.5 kB / 396.9 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.4682, allocations: 159.8 kB / 397 MB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.4711, allocations: 1.244 MB / 398.3 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.4723, allocations: 43.89 kB / 398.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.4725, allocations: 35.98 kB / 398.4 MB, free: 7.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.4725, allocations: 4 kB / 398.4 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003021/0.4755, allocations: 1.004 MB / 399.4 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.4756, allocations: 4 kB / 399.4 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/0.4776, allocations: 384.8 kB / 399.7 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.4789, allocations: 171.7 kB / 399.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.4812, allocations: 1.131 MB / 401 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/0.4819, allocations: 27.98 kB / 401.1 MB, free: 4.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-05/0.4821, allocations: 43.92 kB / 401.1 MB, free: 4.891 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * 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 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0008576/0.4829, allocations: 357.4 kB / 401.5 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.4832, allocations: 86.88 kB / 401.5 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/0.4857, allocations: 0.8792 MB / 402.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.4858, allocations: 11.94 kB / 402.4 MB, free: 3.523 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.4858, allocations: 7.984 kB / 402.4 MB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.4859, allocations: 0 / 402.4 MB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005408/0.4913, allocations: 1.866 MB / 404.3 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.4913, allocations: 0 / 404.3 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/0.4931, allocations: 167.8 kB / 404.5 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/0.4932, allocations: 0 / 404.5 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.4933, allocations: 20 kB / 404.5 MB, free: 1.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.4934, allocations: 4 kB / 404.5 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4934, allocations: 0 / 404.5 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003409/0.4968, allocations: 1.303 MB / 405.8 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007331/0.4976, allocations: 235.8 kB / 406 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.4979, allocations: 12 kB / 406 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009692/0.4989, allocations: 31.94 kB / 406.1 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.4991, allocations: 44.59 kB / 406.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.815e-05/0.4992, allocations: 20 kB / 406.1 MB, free: 15.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001142/0.5003, allocations: 499 kB / 406.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.5004, allocations: 0 / 406.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002121/0.5025, allocations: 408 kB / 407 MB, free: 14.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004997/0.503, allocations: 153 kB / 407.2 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005316/0.5084, allocations: 1.385 MB / 408.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.5084, allocations: 4 kB / 408.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.5095, allocations: 351.5 kB / 408.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.5114, allocations: 215.9 kB / 409.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007219/0.5187, allocations: 3.036 MB / 412.2 MB, free: 9.656 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.5199, allocations: 1.186 MB / 413.3 MB, free: 8.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004965/0.5205, allocations: 67.42 kB / 413.4 MB, free: 8.375 MB / 346.7 MB Notification: Performance of SimCode: time 1.293e-06/0.5205, allocations: 3.938 kB / 413.4 MB, free: 8.371 MB / 346.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.