Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadModel(PowerSystems): time 2.23/2.23, allocations: 233 MB / 246.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.592e-05/3.606e-05, allocations: 4 kB / 302.2 MB, free: 7.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09291, allocations: 53.23 MB / 355.4 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4373/0.5302, allocations: 101.9 MB / 457.3 MB, free: 15.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.5306, allocations: 83.91 kB / 457.4 MB, free: 15.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1049/0.6355, allocations: 25.01 MB / 482.4 MB, free: 6.641 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.407e-06/0.6356, allocations: 0 / 482.4 MB, free: 6.641 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.926e-05/0.6357, allocations: 27.94 kB / 482.4 MB, free: 6.613 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.003749/0.6394, allocations: 1.373 MB / 483.8 MB, free: 5.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.6395, allocations: 12.03 kB / 483.8 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001588/0.6411, allocations: 210.5 kB / 484 MB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004375/0.6455, allocations: 1.196 MB / 485.2 MB, free: 3.711 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.6457, allocations: 82 kB / 485.3 MB, free: 3.629 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002716/0.646, allocations: 107.9 kB / 485.4 MB, free: 3.523 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003518/0.6495, allocations: 1.536 MB / 486.9 MB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.494e-05/0.6496, allocations: 11.92 kB / 486.9 MB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/0.6497, allocations: 43.98 kB / 487 MB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.6499, allocations: 69.97 kB / 487.1 MB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/0.6531, allocations: 1.343 MB / 488.4 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01243/0.6656, allocations: 5.69 MB / 494.1 MB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.6681, allocations: 1.047 MB / 495.1 MB, free: 9.496 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/0.6699, allocations: 0.8056 MB / 495.9 MB, free: 8.684 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.67, allocations: 13 kB / 496 MB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002213/0.6723, allocations: 1.101 MB / 497.1 MB, free: 7.539 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 5.132e-06/0.6723, allocations: 0 / 497.1 MB, free: 7.539 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.008608/0.6809, allocations: 3.75 MB / 0.4891 GB, free: 3.699 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.6811, allocations: 217.2 kB / 0.4893 GB, free: 3.441 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008894/0.682, allocations: 492.7 kB / 0.4897 GB, free: 2.953 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002312/0.6823, allocations: 61.69 kB / 0.4898 GB, free: 2.887 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004831/0.6828, allocations: 444.5 kB / 0.4902 GB, free: 2.445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006365/0.6834, allocations: 481.5 kB / 0.4907 GB, free: 1.969 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.6836, allocations: 32 kB / 0.4907 GB, free: 1.938 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002934/0.6839, allocations: 414.7 kB / 0.4911 GB, free: 1.523 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/0.6854, allocations: 0.6717 MB / 0.4918 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.6872, allocations: 0.9453 MB / 0.4927 GB, free: 15.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001772/0.689, allocations: 0.8516 MB / 0.4935 GB, free: 14.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.462e-06/0.689, allocations: 0 / 0.4935 GB, free: 14.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007558/0.6966, allocations: 2.788 MB / 0.4962 GB, free: 12.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.896e-05/0.6967, allocations: 71.36 kB / 0.4963 GB, free: 12.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006499/0.7032, allocations: 2.353 MB / 0.4986 GB, free: 9.695 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004681/0.708, allocations: 1.087 MB / 0.4997 GB, free: 8.605 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008071/0.7088, allocations: 155.7 kB / 0.4998 GB, free: 8.453 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01843/0.7273, allocations: 8.275 MB / 0.5079 GB, free: 40 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.7285, allocations: 99.91 kB / 0.508 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/0.7287, allocations: 55.98 kB / 0.5081 GB, free: 15.89 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.0005058/0.7292, allocations: 296 kB / 0.5083 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000314/0.7296, allocations: 98.78 kB / 0.5084 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004119/0.7337, allocations: 1.838 MB / 0.5102 GB, free: 13.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.189e-05/0.7338, allocations: 31.98 kB / 0.5103 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.342e-06/0.7338, allocations: 0 / 0.5103 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.7339, allocations: 11.98 kB / 0.5103 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008029/0.7419, allocations: 3.371 MB / 0.5136 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.742, allocations: 0 / 0.5136 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/0.7446, allocations: 379.6 kB / 0.5139 GB, free: 9.754 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.7448, allocations: 36.83 kB / 0.514 GB, free: 9.715 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/0.7451, allocations: 27.98 kB / 0.514 GB, free: 9.688 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001402/0.7465, allocations: 1.323 MB / 0.5153 GB, free: 8.227 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.027e-06/0.7465, allocations: 0 / 0.5153 GB, free: 8.227 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006278/0.7528, allocations: 2.921 MB / 0.5181 GB, free: 5.246 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008253/0.7537, allocations: 295.9 kB / 0.5184 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.7539, allocations: 43.91 kB / 0.5184 GB, free: 4.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008531/0.7548, allocations: 79.91 kB / 0.5185 GB, free: 4.816 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004039/0.7552, allocations: 136.8 kB / 0.5187 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.7554, allocations: 35.98 kB / 0.5187 GB, free: 4.648 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007125/0.7561, allocations: 377.5 kB / 0.519 GB, free: 4.277 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.04e-07/0.7561, allocations: 0 / 0.519 GB, free: 4.277 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001779/0.7579, allocations: 407.9 kB / 0.5194 GB, free: 3.879 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.0004974/0.7584, allocations: 218.9 kB / 0.5196 GB, free: 3.656 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006102/0.7645, allocations: 2.449 MB / 0.522 GB, free: 1.176 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.7646, allocations: 0 / 0.522 GB, free: 1.176 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2616/1.026, allocations: 1.182 MB / 0.5232 GB, free: 133.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/1.027, allocations: 140.6 kB / 0.5233 GB, free: 133.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005884/1.033, allocations: 2.461 MB / 0.5257 GB, free: 132.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/1.034, allocations: 1.237 MB / 0.5269 GB, free: 132.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001251/1.036, allocations: 273.6 kB / 0.5272 GB, free: 132.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/1.036, allocations: 73.95 kB / 0.5273 GB, free: 132.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.88e-06/1.036, allocations: 0 / 0.5273 GB, free: 132.1 MB / 458.7 MB Notification: Performance of Templates: time 0.0432/1.079, allocations: 16.54 MB / 0.5434 GB, free: 131.3 MB / 458.7 MB