Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultTline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultTline") Notification: Performance of loadModel(PowerSystems): time 2.299/2.299, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.727e-05, allocations: 4 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3484, allocations: 53.23 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.FaultTline): time 0.01281/0.3613, allocations: 8.129 MB / 365.7 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007988/0.3694, allocations: 2.85 MB / 368.6 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.3707, allocations: 47.69 kB / 368.6 MB, free: 4.422 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008643/0.3716, allocations: 238.5 kB / 368.8 MB, free: 4.188 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002309/0.3739, allocations: 0.5918 MB / 369.4 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.3758, allocations: 0.5341 MB / 370 MB, free: 3.059 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001736/0.3776, allocations: 0.7944 MB / 370.8 MB, free: 2.266 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002224/0.3799, allocations: 0.9978 MB / 371.8 MB, free: 1.234 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.3811, allocations: 0.5765 MB / 372.3 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3827, allocations: 0.8339 MB / 373.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001295/0.384, allocations: 463.5 kB / 373.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003441/0.3844, allocations: 80 kB / 373.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008687/0.3853, allocations: 0.6078 MB / 374.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005522/0.3858, allocations: 144 kB / 374.5 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002622/0.3885, allocations: 1.719 MB / 376.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3885, allocations: 0 / 376.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3885, allocations: 7.938 kB / 376.2 MB, free: 12.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.431e-05/0.3886, allocations: 4 kB / 376.2 MB, free: 12.8 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: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.005749/0.3943, allocations: 1.763 MB / 377.9 MB, free: 10.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.3944, allocations: 12.03 kB / 378 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00227/0.3967, allocations: 265.8 kB / 378.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/0.3993, allocations: 0.9066 MB / 379.1 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.3994, allocations: 110.4 kB / 379.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009108/0.4004, allocations: 219.8 kB / 379.4 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005411/0.4058, allocations: 2.063 MB / 381.5 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.008e-05/0.4059, allocations: 4 kB / 381.5 MB, free: 7.238 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002313/0.4061, allocations: 55.98 kB / 381.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001041/0.4072, allocations: 118.4 kB / 381.7 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005024/0.4122, allocations: 1.856 MB / 383.5 MB, free: 5.199 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01855/0.4308, allocations: 7.339 MB / 390.9 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004588/0.4354, allocations: 2.118 MB / 393 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001972/0.4357, allocations: 25.36 kB / 393 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003719/0.4394, allocations: 1.555 MB / 394.6 MB, free: 9.809 MB / 330.7 MB Notification: Performance of pre-optimization done (n=214): time 5.37e-06/0.4394, allocations: 0 / 394.6 MB, free: 9.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=215): time 0.01867/0.4581, allocations: 7.533 MB / 402.1 MB, free: 1.945 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/0.4584, allocations: 267.6 kB / 402.4 MB, free: 1.637 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.4598, allocations: 0.6797 MB / 403.1 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002697/0.4601, allocations: 81.62 kB / 403.1 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005621/0.4607, allocations: 0.5658 MB / 403.7 MB, free: 296 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009104/0.4616, allocations: 0.6631 MB / 404.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.4618, allocations: 40 kB / 404.4 MB, free: 15.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002348/0.462, allocations: 403.6 kB / 404.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00278/0.4648, allocations: 1.039 MB / 405.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003145/0.468, allocations: 1.39 MB / 407.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00312/0.4711, allocations: 1.232 MB / 408.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.4712, allocations: 4 kB / 408.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01766/0.4888, allocations: 4.621 MB / 413.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-05/0.489, allocations: 65.27 kB / 413.1 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01653/0.5055, allocations: 4.144 MB / 417.3 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01353/0.5191, allocations: 2.848 MB / 420.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.5204, allocations: 175.6 kB / 420.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04974/0.5701, allocations: 17 MB / 437.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002383/0.5726, allocations: 175.7 kB / 437.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002545/0.5728, allocations: 79.98 kB / 437.6 MB, free: 13.98 MB / 378.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: 108 (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,$whenCondition29,$whenCondition28,$whenCondition27,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.breaker1.breaker_a.arc,breaker1.breaker_a.arc,$PRE.breaker1.breaker_a.open,breaker1.breaker_a.open,breaker1.breaker_a.closed,$PRE.breaker1.breaker_a.t0,breaker1.breaker_a.t0,breaker1.breaker_a.opening,$PRE.breaker1.breaker_b.arc,breaker1.breaker_b.arc,$PRE.breaker1.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_b.closed,$PRE.breaker1.breaker_b.t0,breaker1.breaker_b.t0,breaker1.breaker_b.opening,$PRE.breaker1.breaker_c.arc,breaker1.breaker_c.arc,$PRE.breaker1.breaker_c.open,breaker1.breaker_c.open,breaker1.breaker_c.closed,$PRE.breaker1.breaker_c.t0,breaker1.breaker_c.t0,breaker1.breaker_c.opening,$PRE.breaker2.breaker_a.arc,breaker2.breaker_a.arc,$PRE.breaker2.breaker_a.open,breaker2.breaker_a.open,breaker2.breaker_a.closed,$PRE.breaker2.breaker_a.t0,breaker2.breaker_a.t0,breaker2.breaker_a.opening,$PRE.breaker2.breaker_b.arc,breaker2.breaker_b.arc,$PRE.breaker2.breaker_b.open,breaker2.breaker_b.open,breaker2.breaker_b.closed,$PRE.breaker2.breaker_b.t0,breaker2.breaker_b.t0,breaker2.breaker_b.opening,$PRE.breaker2.breaker_c.arc,breaker2.breaker_c.arc,$PRE.breaker2.breaker_c.open,breaker2.breaker_c.open,breaker2.breaker_c.closed,$PRE.breaker2.breaker_c.t0,breaker2.breaker_c.t0,breaker2.breaker_c.opening,$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 (177): * Single equations (assignments): 171 * 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: 0 * Non-linear torn systems: 1 {32 73} Notification: Performance of prepare postOptimizeDAE: time 0.001301/0.5741, allocations: 0.5638 MB / 438.1 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004507/0.5746, allocations: 142.3 kB / 438.3 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007442/0.5821, allocations: 2.772 MB / 441 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.006e-05/0.5822, allocations: 39.98 kB / 441.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.5822, allocations: 8 kB / 441.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.489e-05/0.5822, allocations: 7.969 kB / 441.1 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/0.5964, allocations: 5.046 MB / 446.1 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/0.5965, allocations: 3.938 kB / 446.1 MB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003652/0.6002, allocations: 339.6 kB / 446.5 MB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007038/0.6009, allocations: 229.9 kB / 446.7 MB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002522/0.6011, allocations: 59.95 kB / 446.7 MB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009431/0.6106, allocations: 9.452 MB / 456.2 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6106, allocations: 3.938 kB / 456.2 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/0.6217, allocations: 4.121 MB / 460.3 MB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/0.6232, allocations: 419.1 kB / 460.7 MB, free: 5.562 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005247/0.6238, allocations: 63.97 kB / 460.8 MB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00207/0.6258, allocations: 151.8 kB / 460.9 MB, free: 5.352 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007128/0.6266, allocations: 185.7 kB / 461.1 MB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/0.6268, allocations: 59.97 kB / 461.2 MB, free: 5.109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001113/0.628, allocations: 0.5263 MB / 461.7 MB, free: 4.586 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.628, allocations: 0 / 461.7 MB, free: 4.586 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003085/0.6311, allocations: 0.6015 MB / 462.3 MB, free: 3.984 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4],line.iF[1],line.iF[2],line.iF[3]) * Number of discrete variables: 75 (breaker1.breaker_b.closed,breaker1.breaker_a.closed,breaker1.breaker_c.closed,breaker2.breaker_c.closed,breaker2.breaker_a.closed,breaker2.breaker_b.closed,$whenCondition29,$whenCondition28,$whenCondition27,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,breaker1.breaker_a.arc,breaker1.breaker_a.open,breaker1.breaker_a.t0,breaker1.breaker_a.opening,breaker1.breaker_b.arc,breaker1.breaker_b.open,breaker1.breaker_b.t0,breaker1.breaker_b.opening,breaker1.breaker_c.arc,breaker1.breaker_c.open,breaker1.breaker_c.t0,breaker1.breaker_c.opening,breaker2.breaker_a.arc,breaker2.breaker_a.open,breaker2.breaker_a.t0,breaker2.breaker_a.opening,breaker2.breaker_b.arc,breaker2.breaker_b.open,breaker2.breaker_b.t0,breaker2.breaker_b.opening,breaker2.breaker_c.arc,breaker2.breaker_c.open,breaker2.breaker_c.t0,breaker2.breaker_c.opening,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: 27 (breaker1.breaker_a.arc,breaker1.breaker_b.arc,breaker1.breaker_c.arc,breaker2.breaker_a.arc,breaker2.breaker_b.arc,breaker2.breaker_c.arc,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,breaker2.breaker_b.open,breaker2.breaker_a.open,breaker2.breaker_c.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,breaker1.breaker_c.open,breaker1.breaker_a.open,breaker1.breaker_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008467/0.632, allocations: 249.9 kB / 462.6 MB, free: 3.738 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0116/0.6436, allocations: 3.726 MB / 466.3 MB, free: 15.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.6437, allocations: 0.875 kB / 466.3 MB, free: 15.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005314/0.649, allocations: 2.286 MB / 468.6 MB, free: 13.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.6509, allocations: 211.2 kB / 468.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01878/0.6697, allocations: 6.318 MB / 475.1 MB, free: 6.984 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001689/0.6714, allocations: 1.473 MB / 476.6 MB, free: 5.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/0.6726, allocations: 107.4 kB / 476.7 MB, free: 5.375 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6726, allocations: 4 kB / 476.7 MB, free: 5.371 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.