Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7") Notification: Performance of loadModel(PowerSystems): time 2.343/2.343, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.664e-05/3.663e-05, allocations: 4 kB / 304.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4159, allocations: 53.22 MB / 357.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7): time 0.02173/0.4377, allocations: 13.13 MB / 370.7 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0186/0.4563, allocations: 7.49 MB / 378.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002806/0.4592, allocations: 107.4 kB / 378.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03264/0.4919, allocations: 10.16 MB / 388.5 MB, free: 2.625 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006108/0.498, allocations: 0.9927 MB / 389.5 MB, free: 1.629 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004474/0.5025, allocations: 0.7882 MB / 390.2 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004872/0.5074, allocations: 1.254 MB / 391.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005229/0.5127, allocations: 1.646 MB / 393.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.5155, allocations: 0.814 MB / 394 MB, free: 13.08 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003085/0.5186, allocations: 1.013 MB / 395 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002785/0.5214, allocations: 0.6436 MB / 395.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008016/0.5223, allocations: 100 kB / 395.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002024/0.5243, allocations: 0.9313 MB / 396.6 MB, free: 10.39 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.5255, allocations: 216 kB / 396.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007152/0.5327, allocations: 3.109 MB / 400 MB, free: 7.062 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.5328, allocations: 0 / 400 MB, free: 7.062 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.5328, allocations: 0 / 400 MB, free: 7.062 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001264/0.5329, allocations: 0 / 400 MB, free: 7.062 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.01061/0.5436, allocations: 2.32 MB / 402.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.5436, allocations: 8.031 kB / 402.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004229/0.5479, allocations: 396.5 kB / 402.7 MB, free: 4.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007589/0.5555, allocations: 1.911 MB / 404.6 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.5558, allocations: 147.7 kB / 404.7 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.5569, allocations: 243.7 kB / 405 MB, free: 1.926 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008156/0.565, allocations: 2.735 MB / 407.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.919e-05/0.5652, allocations: 4 kB / 407.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/0.5655, allocations: 83.92 kB / 407.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007109/0.5662, allocations: 167.5 kB / 408 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009037/0.5753, allocations: 2.501 MB / 410.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02434/0.5997, allocations: 8.761 MB / 419.2 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004152/0.6039, allocations: 1.567 MB / 420.8 MB, free: 1.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001924/0.6041, allocations: 21.36 kB / 420.8 MB, free: 1.719 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003615/0.6078, allocations: 1.443 MB / 422.2 MB, free: 244 kB / 346.7 MB Notification: Performance of pre-optimization done (n=200): time 4.939e-06/0.6078, allocations: 0 / 422.2 MB, free: 244 kB / 346.7 MB Notification: Performance of matching and sorting (n=249): time 0.1254/0.7332, allocations: 21.57 MB / 443.8 MB, free: 10.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002739/0.7335, allocations: 401.9 kB / 444.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.7373, allocations: 1.375 MB / 445.6 MB, free: 8.637 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005439/0.7379, allocations: 77.7 kB / 445.7 MB, free: 8.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.739, allocations: 0.8818 MB / 446.5 MB, free: 7.664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001298/0.7403, allocations: 0.8127 MB / 447.3 MB, free: 6.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.7406, allocations: 52 kB / 447.4 MB, free: 6.789 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000284/0.7409, allocations: 424.5 kB / 447.8 MB, free: 6.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003995/0.7449, allocations: 1.36 MB / 449.2 MB, free: 5.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004557/0.7495, allocations: 1.799 MB / 451 MB, free: 3.059 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004549/0.754, allocations: 1.59 MB / 452.6 MB, free: 1.445 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.508e-05/0.7541, allocations: 4 kB / 452.6 MB, free: 1.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=355) (initialization): time 0.0183/0.7724, allocations: 5.27 MB / 457.8 MB, free: 12.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001799/0.7742, allocations: 3.69 MB / 461.5 MB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0169/0.7912, allocations: 4.784 MB / 466.3 MB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01077/0.802, allocations: 1.987 MB / 468.3 MB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006126/0.8082, allocations: 0.8622 MB / 469.2 MB, free: 260 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3556/1.164, allocations: 30.82 MB / 500 MB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003758/1.168, allocations: 213.4 kB / 0.4885 GB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007104/1.168, allocations: 94.64 kB / 0.4886 GB, free: 123.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/1.168, allocations: 6.375 kB / 0.4886 GB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01785/1.186, allocations: 5.054 MB / 0.4935 GB, free: 122.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01878/1.205, allocations: 4.655 MB / 0.498 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01299/1.218, allocations: 1.914 MB / 0.4999 GB, free: 120.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/1.222, allocations: 357.8 kB / 0.5003 GB, free: 120.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0581/1.28, allocations: 28.03 MB / 0.5276 GB, free: 94.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/1.282, allocations: 131.5 kB / 0.5277 GB, free: 94.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003135/1.282, allocations: 93.25 kB / 0.5278 GB, free: 94.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 58 (system.initime,$whenCondition1,$PRE.relayGrd.cnt,relayGrd.cnt,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.switchGrd1.switch_a.arc,switchGrd1.switch_a.arc,$PRE.switchGrd1.switch_a.open,switchGrd1.switch_a.open,switchGrd1.switch_a.closed,$PRE.switchGrd1.switch_b.arc,switchGrd1.switch_b.arc,$PRE.switchGrd1.switch_b.open,switchGrd1.switch_b.open,switchGrd1.switch_b.closed,$PRE.switchGrd1.switch_c.arc,switchGrd1.switch_c.arc,$PRE.switchGrd1.switch_c.open,switchGrd1.switch_c.open,switchGrd1.switch_c.closed,$PRE.switchGrd2.switch_a.arc,switchGrd2.switch_a.arc,$PRE.switchGrd2.switch_a.open,switchGrd2.switch_a.open,switchGrd2.switch_a.closed,$PRE.switchGrd2.switch_b.arc,switchGrd2.switch_b.arc,$PRE.switchGrd2.switch_b.open,switchGrd2.switch_b.open,switchGrd2.switch_b.closed,$PRE.switchGrd2.switch_c.arc,switchGrd2.switch_c.arc,$PRE.switchGrd2.switch_c.open,switchGrd2.switch_c.open,switchGrd2.switch_c.closed,$PRE.relayGrd.y[1],relayGrd.y[1],$PRE.relayGrd.y[2],relayGrd.y[2],$PRE.relayGrd.y[3],relayGrd.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (244): * Single equations (assignments): 223 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,2,1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(3,100.0%) 23,(1,100.0%) 2,(6,77.8%) 12,(1,100.0%) 3,(1,100.0%) 2,(2,100.0%) 1,(2,100.0%) 1,(6,77.8%) 12,(1,100.0%) 3} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002122/1.285, allocations: 0.7899 MB / 0.5286 GB, free: 93.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007551/1.285, allocations: 215.1 kB / 0.5288 GB, free: 93.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01914/1.305, allocations: 4.039 MB / 0.5328 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001312/1.305, allocations: 39.98 kB / 0.5328 GB, free: 89.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.333e-05/1.305, allocations: 11.72 kB / 0.5328 GB, free: 89.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001072/1.305, allocations: 7.969 kB / 0.5328 GB, free: 89.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02063/1.326, allocations: 7.587 MB / 0.5402 GB, free: 81.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-05/1.326, allocations: 4 kB / 0.5402 GB, free: 81.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004269/1.33, allocations: 452.9 kB / 0.5407 GB, free: 80.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00386/1.334, allocations: 0.7894 MB / 0.5414 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005249/1.334, allocations: 84.17 kB / 0.5415 GB, free: 80.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/1.35, allocations: 8.817 MB / 0.5501 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/1.35, allocations: 8 kB / 0.5501 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/1.365, allocations: 6.046 MB / 0.556 GB, free: 64.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/1.367, allocations: 0.5409 MB / 0.5566 GB, free: 64.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008095/1.368, allocations: 79.92 kB / 0.5566 GB, free: 64.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00252/1.37, allocations: 151 kB / 0.5568 GB, free: 64.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006501/1.371, allocations: 215.3 kB / 0.557 GB, free: 63.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/1.371, allocations: 75.97 kB / 0.5571 GB, free: 63.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002333/1.374, allocations: 1.044 MB / 0.5581 GB, free: 62.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.374, allocations: 0 / 0.5581 GB, free: 62.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004908/1.378, allocations: 1.257 MB / 0.5593 GB, free: 61.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 22 (turboGen1.generator.i_s[1],turboGen1.generator.i_s[2],turboGen1.generator.i_s[3],turboGen1.exciter.voltageReg.x_scaled[1],turboGen1.rotor.phi,turboGen1.rotor.w,line1.i[1],line1.i[2],line1.i[3],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.rotor.phi,turboGen2.rotor.w,line2.i[1],line2.i[2],line2.i[3]) * Number of discrete variables: 42 (switchGrd1.switch_a.closed,switchGrd2.switch_a.closed,switchGrd1.switch_b.closed,switchGrd2.switch_b.closed,switchGrd1.switch_c.closed,switchGrd2.switch_c.closed,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,switchGrd1.switch_a.arc,switchGrd1.switch_a.open,switchGrd1.switch_b.arc,switchGrd1.switch_b.open,switchGrd1.switch_c.arc,switchGrd1.switch_c.open,switchGrd2.switch_a.arc,switchGrd2.switch_a.open,switchGrd2.switch_b.arc,switchGrd2.switch_b.open,switchGrd2.switch_c.arc,switchGrd2.switch_c.open,relayGrd.y[1],relayGrd.y[2],relayGrd.y[3],relayGrd.cnt,system.initime) * Number of discrete states: 11 (relayGrd.y[3],relayGrd.y[2],relayGrd.y[1],relayGrd.cnt,$whenCondition1,switchGrd1.switch_c.open,switchGrd2.switch_c.open,switchGrd1.switch_b.open,switchGrd2.switch_b.open,switchGrd1.switch_a.open,switchGrd2.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 184 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * 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: 3 {(3,100.0%) 23,(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.0008174/1.379, allocations: 271.6 kB / 0.5596 GB, free: 61.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02675/1.406, allocations: 10.04 MB / 0.5694 GB, free: 50.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/1.406, allocations: 4 kB / 0.5694 GB, free: 50.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006244/1.412, allocations: 2.413 MB / 0.5717 GB, free: 48.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002903/1.415, allocations: 353.2 kB / 0.5721 GB, free: 48.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01652/1.432, allocations: 8.02 MB / 0.5799 GB, free: 39.99 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002288/1.434, allocations: 2.008 MB / 0.5819 GB, free: 37.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/1.436, allocations: 167.3 kB / 0.582 GB, free: 37.78 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/1.436, allocations: 0 / 0.582 GB, free: 37.78 MB / 426.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.