Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadModel(PowerSystems): time 2.32/2.32, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.199e-05/4.178e-05, allocations: 4 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3653, allocations: 53.22 MB / 357.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.01233/0.3777, allocations: 7.344 MB / 364.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008072/0.3858, allocations: 2.94 MB / 367.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.3871, allocations: 52.16 kB / 367.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008368/0.3879, allocations: 198.4 kB / 368.1 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002641/0.3906, allocations: 0.5173 MB / 368.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.3923, allocations: 336.5 kB / 369 MB, free: 5.293 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00185/0.3942, allocations: 0.5343 MB / 369.5 MB, free: 4.922 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002126/0.3963, allocations: 0.8286 MB / 370.3 MB, free: 4.352 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009894/0.3973, allocations: 336.5 kB / 370.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009963/0.3984, allocations: 374.3 kB / 371 MB, free: 3.961 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.3996, allocations: 355.3 kB / 371.4 MB, free: 3.613 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002295/0.3998, allocations: 32 kB / 371.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005328/0.4004, allocations: 355.1 kB / 371.7 MB, free: 3.234 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004053/0.4008, allocations: 96 kB / 371.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001912/0.4027, allocations: 1.06 MB / 372.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4027, allocations: 0 / 372.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4028, allocations: 0 / 372.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.006e-05/0.4028, allocations: 0 / 372.9 MB, free: 2.078 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.00289/0.4057, allocations: 1.025 MB / 373.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4058, allocations: 15.97 kB / 373.9 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002195/0.408, allocations: 218.6 kB / 374.1 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002471/0.4105, allocations: 0.6969 MB / 374.8 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.833e-05/0.4106, allocations: 62.03 kB / 374.9 MB, free: 15.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003924/0.411, allocations: 99.89 kB / 375 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002685/0.4137, allocations: 1.076 MB / 376.1 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.686e-05/0.4138, allocations: 7.906 kB / 376.1 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.414, allocations: 35.98 kB / 376.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003007/0.4143, allocations: 73.94 kB / 376.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002509/0.4168, allocations: 0.8548 MB / 377 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008745/0.4256, allocations: 3.996 MB / 381 MB, free: 9.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.4267, allocations: 436.5 kB / 381.5 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.62e-05/0.4267, allocations: 12.48 kB / 381.5 MB, free: 9.113 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.4268, allocations: 42.94 kB / 381.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 3.707e-06/0.4268, allocations: 4 kB / 381.5 MB, free: 9.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=52): time 0.00516/0.432, allocations: 1.769 MB / 383.3 MB, free: 7.238 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.4321, allocations: 85.48 kB / 383.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.4331, allocations: 0.5148 MB / 383.9 MB, free: 6.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-05/0.4332, allocations: 37.7 kB / 383.9 MB, free: 6.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004469/0.4337, allocations: 493.2 kB / 384.4 MB, free: 6.082 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.4339, allocations: 193.2 kB / 384.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-05/0.434, allocations: 16 kB / 384.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.4342, allocations: 346.8 kB / 385 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006825/0.4349, allocations: 249.8 kB / 385.2 MB, free: 5.285 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008957/0.4358, allocations: 476.9 kB / 385.7 MB, free: 4.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008827/0.4367, allocations: 338 kB / 386 MB, free: 4.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.4367, allocations: 0 / 386 MB, free: 4.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003302/0.44, allocations: 1.076 MB / 387.1 MB, free: 3.281 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.4401, allocations: 8 kB / 387.1 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002385/0.4425, allocations: 0.7959 MB / 387.9 MB, free: 2.449 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.4438, allocations: 218.4 kB / 388.1 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.4449, allocations: 159.7 kB / 388.2 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00896/0.4539, allocations: 5.323 MB / 393.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008792/0.4548, allocations: 43.88 kB / 393.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/0.4549, allocations: 32.23 kB / 393.6 MB, free: 12.26 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (81): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006803/0.4556, allocations: 313.2 kB / 393.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.4558, allocations: 67.16 kB / 394 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.4575, allocations: 0.6128 MB / 394.6 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.4575, allocations: 4.562 kB / 394.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.4575, allocations: 4 kB / 394.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.4576, allocations: 3.984 kB / 394.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004195/0.4618, allocations: 1.506 MB / 396.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4618, allocations: 0 / 396.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.4631, allocations: 127.9 kB / 396.3 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.555e-05/0.4632, allocations: 11.88 kB / 396.3 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.277e-05/0.4633, allocations: 24.11 kB / 396.3 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.239e-05/0.4633, allocations: 4 kB / 396.3 MB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4633, allocations: 3.938 kB / 396.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.4655, allocations: 0.9955 MB / 397.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.466, allocations: 188.1 kB / 397.5 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/0.4662, allocations: 16 kB / 397.5 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006/0.4668, allocations: 31.92 kB / 397.5 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.4669, allocations: 32.34 kB / 397.6 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.407e-05/0.467, allocations: 19.98 kB / 397.6 MB, free: 8.133 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000812/0.4678, allocations: 411 kB / 398 MB, free: 7.734 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4678, allocations: 0 / 398 MB, free: 7.734 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001228/0.4691, allocations: 240 kB / 398.2 MB, free: 7.5 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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.0004455/0.4695, allocations: 151.1 kB / 398.4 MB, free: 7.348 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00276/0.4723, allocations: 1.018 MB / 399.4 MB, free: 6.289 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4724, allocations: 0 / 399.4 MB, free: 6.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006841/0.4731, allocations: 259.6 kB / 399.6 MB, free: 6.039 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.4742, allocations: 135.9 kB / 399.8 MB, free: 5.906 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/0.4799, allocations: 2.57 MB / 402.3 MB, free: 3.285 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.481, allocations: 1.102 MB / 403.4 MB, free: 2.148 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/0.4814, allocations: 63.42 kB / 403.5 MB, free: 2.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.4814, allocations: 0 / 403.5 MB, free: 2.09 MB / 330.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.