Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadModel(PowerSystems): time 2.417/2.417, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.978e-05, allocations: 0 / 302.2 MB, free: 7.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09619, allocations: 53.23 MB / 355.4 MB, free: 2.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3951/0.4913, allocations: 101.9 MB / 457.3 MB, free: 15.74 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.4917, allocations: 90.92 kB / 457.4 MB, free: 15.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1044/0.5961, allocations: 25.01 MB / 482.4 MB, free: 6.391 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.679e-06/0.5961, allocations: 0 / 482.4 MB, free: 6.391 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.611e-05/0.5962, allocations: 28 kB / 482.4 MB, free: 6.363 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.003537/0.5998, allocations: 1.369 MB / 483.8 MB, free: 4.918 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.5998, allocations: 12.03 kB / 483.8 MB, free: 4.906 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.6014, allocations: 210.6 kB / 484 MB, free: 4.699 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004333/0.6057, allocations: 1.193 MB / 485.2 MB, free: 3.469 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.6059, allocations: 85.98 kB / 485.3 MB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003712/0.6063, allocations: 107.9 kB / 485.4 MB, free: 3.277 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/0.61, allocations: 1.536 MB / 486.9 MB, free: 1.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.379e-05/0.61, allocations: 7.938 kB / 486.9 MB, free: 1.652 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001713/0.6102, allocations: 47.97 kB / 487 MB, free: 1.605 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/0.6104, allocations: 68.52 kB / 487.1 MB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00328/0.6137, allocations: 1.347 MB / 488.4 MB, free: 196 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/0.6256, allocations: 5.686 MB / 494.1 MB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002283/0.628, allocations: 1.049 MB / 495.1 MB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.6296, allocations: 0.8056 MB / 495.9 MB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.792e-05/0.6298, allocations: 16.94 kB / 496 MB, free: 8.422 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002141/0.6319, allocations: 1.093 MB / 497.1 MB, free: 7.297 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 5.145e-06/0.6319, allocations: 0 / 497.1 MB, free: 7.297 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.008571/0.6405, allocations: 3.753 MB / 0.4891 GB, free: 3.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.6407, allocations: 221.2 kB / 0.4893 GB, free: 3.191 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000887/0.6416, allocations: 488.8 kB / 0.4897 GB, free: 2.707 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001982/0.6418, allocations: 65.67 kB / 0.4898 GB, free: 2.637 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004668/0.6423, allocations: 440.5 kB / 0.4902 GB, free: 2.199 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006526/0.643, allocations: 481.4 kB / 0.4907 GB, free: 1.723 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.6431, allocations: 32 kB / 0.4907 GB, free: 1.691 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002966/0.6434, allocations: 410.7 kB / 0.4911 GB, free: 1.281 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/0.645, allocations: 0.6795 MB / 0.4918 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.6469, allocations: 0.9454 MB / 0.4927 GB, free: 15.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.6487, allocations: 0.8478 MB / 0.4935 GB, free: 14.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.45e-06/0.6487, allocations: 0 / 0.4935 GB, free: 14.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007571/0.6563, allocations: 2.784 MB / 0.4962 GB, free: 11.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.928e-05/0.6564, allocations: 67.42 kB / 0.4963 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006357/0.6628, allocations: 2.356 MB / 0.4986 GB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005443/0.6683, allocations: 1.083 MB / 0.4997 GB, free: 8.367 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.6697, allocations: 147.7 kB / 0.4998 GB, free: 8.223 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03335/0.7031, allocations: 8.291 MB / 0.5079 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/0.7052, allocations: 95.81 kB / 0.508 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003278/0.7056, allocations: 49.31 kB / 0.508 GB, free: 15.65 MB / 458.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: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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.fault_ab.theta_zero,fault_ab.theta_zero,$PRE.fault_ab.v_pos,fault_ab.v_pos,$PRE.fault_ab.first,fault_ab.first,$PRE.fault_ab.fault_pp.on,fault_ab.fault_pp.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * Array equations: 4 * 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,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008165/0.7065, allocations: 296 kB / 0.5083 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005742/0.7071, allocations: 98.86 kB / 0.5084 GB, free: 15.24 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007355/0.7144, allocations: 1.842 MB / 0.5102 GB, free: 13.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/0.7146, allocations: 31.98 kB / 0.5102 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.7146, allocations: 0 / 0.5102 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-05/0.7147, allocations: 11.97 kB / 0.5103 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/0.7289, allocations: 3.379 MB / 0.5136 GB, free: 9.879 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/0.7289, allocations: 4 kB / 0.5136 GB, free: 9.875 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003031/0.732, allocations: 371.7 kB / 0.5139 GB, free: 9.512 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000213/0.7323, allocations: 28.84 kB / 0.5139 GB, free: 9.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002849/0.7326, allocations: 35.98 kB / 0.514 GB, free: 9.445 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.7346, allocations: 1.327 MB / 0.5153 GB, free: 7.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.7347, allocations: 4.156 kB / 0.5153 GB, free: 7.977 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01102/0.7457, allocations: 2.914 MB / 0.5181 GB, free: 5.004 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/0.7472, allocations: 295.8 kB / 0.5184 GB, free: 4.695 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004608/0.7477, allocations: 43.92 kB / 0.5184 GB, free: 4.652 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/0.7493, allocations: 79.91 kB / 0.5185 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006779/0.75, allocations: 128.8 kB / 0.5186 GB, free: 4.449 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/0.7503, allocations: 39.97 kB / 0.5187 GB, free: 4.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00114/0.7515, allocations: 381.5 kB / 0.5191 GB, free: 4.035 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.704e-06/0.7515, allocations: 3.938 kB / 0.5191 GB, free: 4.031 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002974/0.7545, allocations: 411.9 kB / 0.5194 GB, free: 3.629 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007683/0.7553, allocations: 218.9 kB / 0.5197 GB, free: 3.406 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009514/0.7648, allocations: 2.447 MB / 0.522 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.485e-06/0.7649, allocations: 0 / 0.522 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2816/1.047, allocations: 1.18 MB / 0.5232 GB, free: 132.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/1.048, allocations: 139.3 kB / 0.5233 GB, free: 132.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005633/1.053, allocations: 2.458 MB / 0.5257 GB, free: 132.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/1.054, allocations: 1.227 MB / 0.5269 GB, free: 131.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001226/1.056, allocations: 281.3 kB / 0.5272 GB, free: 131.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004419/1.056, allocations: 73.89 kB / 0.5273 GB, free: 131.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.832e-06/1.056, allocations: 4.031 kB / 0.5273 GB, free: 131.4 MB / 458.7 MB Notification: Performance of Templates: time 0.04051/1.097, allocations: 16.55 MB / 0.5434 GB, free: 130.6 MB / 458.7 MB