Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") Notification: Performance of loadModel(PowerSystems): time 2.412/2.412, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.275e-05/3.266e-05, allocations: 8 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3875, allocations: 53.21 MB / 357.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.FaultRXline): time 0.01158/0.3991, allocations: 6.91 MB / 364.5 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006558/0.4057, allocations: 2.316 MB / 366.8 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.4069, allocations: 45.25 kB / 366.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007517/0.4077, allocations: 169 kB / 367 MB, free: 7.012 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002351/0.4101, allocations: 473.8 kB / 367.5 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001696/0.4118, allocations: 387.3 kB / 367.9 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00172/0.4136, allocations: 0.5466 MB / 368.4 MB, free: 5.906 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002268/0.4159, allocations: 0.9092 MB / 369.3 MB, free: 5.273 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.4172, allocations: 414.6 kB / 369.7 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.4186, allocations: 0.5402 MB / 370.3 MB, free: 4.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.4201, allocations: 429.7 kB / 370.7 MB, free: 4.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003703/0.4205, allocations: 56 kB / 370.7 MB, free: 4.355 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007886/0.4213, allocations: 494.8 kB / 371.2 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005627/0.4219, allocations: 108 kB / 371.3 MB, free: 3.766 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.4243, allocations: 1.251 MB / 372.6 MB, free: 2.512 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4243, allocations: 0 / 372.6 MB, free: 2.512 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.27e-06/0.4243, allocations: 4 kB / 372.6 MB, free: 2.508 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.021e-05/0.4244, allocations: 0 / 372.6 MB, free: 2.508 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.004427/0.4288, allocations: 1.371 MB / 373.9 MB, free: 1.066 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.4289, allocations: 8.031 kB / 374 MB, free: 1.059 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001881/0.4308, allocations: 202.3 kB / 374.2 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.4329, allocations: 0.6814 MB / 374.8 MB, free: 136 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.4331, allocations: 85.98 kB / 374.9 MB, free: 52 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005457/0.4337, allocations: 135.8 kB / 375 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004319/0.438, allocations: 1.617 MB / 376.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.687e-05/0.4381, allocations: 7.938 kB / 376.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.4383, allocations: 40 kB / 376.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000433/0.4387, allocations: 81.95 kB / 376.8 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004318/0.4431, allocations: 1.452 MB / 378.2 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01491/0.458, allocations: 5.874 MB / 384.1 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003217/0.4613, allocations: 1.563 MB / 385.7 MB, free: 4.891 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001747/0.4615, allocations: 24.97 kB / 385.7 MB, free: 4.867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002823/0.4644, allocations: 1.12 MB / 386.8 MB, free: 3.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=157): time 5.34e-06/0.4644, allocations: 0 / 386.8 MB, free: 3.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=158): time 0.01311/0.4775, allocations: 5.145 MB / 392 MB, free: 14.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002213/0.4778, allocations: 238.9 kB / 392.2 MB, free: 14.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.4789, allocations: 0.5099 MB / 392.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002928/0.4792, allocations: 69.73 kB / 392.8 MB, free: 13.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005004/0.4797, allocations: 498.8 kB / 393.3 MB, free: 13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007466/0.4805, allocations: 475.1 kB / 393.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.4806, allocations: 32 kB / 393.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.4809, allocations: 378.8 kB / 394.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.4828, allocations: 0.6832 MB / 394.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002237/0.4851, allocations: 0.985 MB / 395.8 MB, free: 10.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002235/0.4874, allocations: 0.8518 MB / 396.7 MB, free: 9.473 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.4874, allocations: 0 / 396.7 MB, free: 9.473 MB / 330.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.009726/0.4971, allocations: 2.793 MB / 399.4 MB, free: 6.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.373e-05/0.4973, allocations: 60.34 kB / 399.5 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008206/0.5055, allocations: 2.317 MB / 401.8 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005974/0.5115, allocations: 1.063 MB / 402.9 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.5126, allocations: 155.7 kB / 403 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02458/0.5372, allocations: 8.588 MB / 411.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.5387, allocations: 99.77 kB / 411.7 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.5389, allocations: 59.98 kB / 411.8 MB, free: 10.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 84 (system.initime,$PRE.abc.fault_pp1.t0,abc.fault_pp1.t0,$PRE.abc.fault_pp2.t0,abc.fault_pp2.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3],$PRE.abc.theta_zero,abc.theta_zero,$PRE.abc.v_pos,abc.v_pos,$PRE.abc.first,abc.first,$PRE.abc.fault_pp1.on,abc.fault_pp1.on,$PRE.abc.fault_pp2.on,abc.fault_pp2.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 2 * 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: 1 {(12,81.9%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001034/0.5399, allocations: 492.5 kB / 412.3 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/0.5403, allocations: 98.86 kB / 412.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004919/0.5452, allocations: 1.873 MB / 414.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-05/0.5454, allocations: 31.98 kB / 414.3 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.5454, allocations: 8 kB / 414.3 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.512e-05/0.5454, allocations: 11.92 kB / 414.3 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009431/0.5549, allocations: 3.511 MB / 417.8 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.5549, allocations: 8.094 kB / 417.8 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004001/0.5589, allocations: 363.7 kB / 418.2 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003043/0.5593, allocations: 52.75 kB / 418.2 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/0.5596, allocations: 31.98 kB / 418.2 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.5618, allocations: 1.572 MB / 419.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5618, allocations: 0 / 419.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007506/0.5694, allocations: 3.006 MB / 422.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009189/0.5703, allocations: 295.8 kB / 423.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/0.5707, allocations: 39.98 kB / 423.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.5718, allocations: 75.86 kB / 423.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/0.5723, allocations: 128.8 kB / 423.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.5724, allocations: 44.08 kB / 423.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007694/0.5732, allocations: 415 kB / 423.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.647e-06/0.5732, allocations: 0 / 423.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001813/0.5751, allocations: 391.9 kB / 424.2 MB, free: 13.4 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 57 (switch1.switch_a.closed,switch1.switch_c.closed,switch1.switch_b.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,abc.theta_zero,abc.v_pos,abc.first,abc.fault_pp1.on,abc.fault_pp1.t0,abc.fault_pp2.on,abc.fault_pp2.t0,system.initime) * Number of discrete states: 21 (abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.on,abc.v_pos,abc.first,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_b.open,switch2.switch_c.open,switch2.switch_a.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 107 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 11 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005511/0.5756, allocations: 206.9 kB / 424.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008059/0.5837, allocations: 2.512 MB / 426.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.5838, allocations: 0 / 426.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003001/0.5868, allocations: 1.229 MB / 428.1 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.588, allocations: 135.7 kB / 428.3 MB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008247/0.5963, allocations: 3.549 MB / 431.8 MB, free: 5.652 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.5975, allocations: 1.245 MB / 433 MB, free: 4.375 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007702/0.5983, allocations: 83.42 kB / 433.1 MB, free: 4.297 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.5983, allocations: 0 / 433.1 MB, free: 4.297 MB / 362.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.