Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadModel(PowerSystems): time 2.342/2.342, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.264e-05, allocations: 7.938 kB / 301.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09378, allocations: 53.23 MB / 354.5 MB, free: 2.625 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3798/0.4736, allocations: 101.9 MB / 456.4 MB, free: 176 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.4739, allocations: 83.95 kB / 456.5 MB, free: 92 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1043/0.5783, allocations: 25.01 MB / 481.5 MB, free: 6.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.037e-06/0.5783, allocations: 0 / 481.5 MB, free: 6.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.78e-05/0.5784, allocations: 28 kB / 481.5 MB, free: 6.793 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.003334/0.5817, allocations: 1.378 MB / 482.9 MB, free: 5.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.5818, allocations: 8.031 kB / 482.9 MB, free: 5.332 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/0.5832, allocations: 202.6 kB / 483.1 MB, free: 5.133 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004098/0.5873, allocations: 1.2 MB / 484.3 MB, free: 3.895 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.5875, allocations: 78 kB / 484.3 MB, free: 3.816 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002697/0.5878, allocations: 107.9 kB / 484.5 MB, free: 3.711 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003331/0.5911, allocations: 1.544 MB / 486 MB, free: 2.086 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/0.5912, allocations: 3.938 kB / 486 MB, free: 2.082 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001639/0.5914, allocations: 44 kB / 486 MB, free: 2.039 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.5915, allocations: 69.97 kB / 486.1 MB, free: 1.969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/0.5945, allocations: 1.343 MB / 487.5 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01121/0.6057, allocations: 5.702 MB / 493.2 MB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002229/0.608, allocations: 1.042 MB / 494.2 MB, free: 9.676 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.6096, allocations: 0.8104 MB / 495 MB, free: 8.859 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-05/0.6098, allocations: 9 kB / 495 MB, free: 8.852 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00216/0.6119, allocations: 1.097 MB / 496.1 MB, free: 7.723 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 5.173e-06/0.612, allocations: 0 / 496.1 MB, free: 7.723 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.008136/0.6201, allocations: 3.757 MB / 499.9 MB, free: 3.875 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.6203, allocations: 213.2 kB / 0.4884 GB, free: 3.621 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008455/0.6212, allocations: 493.1 kB / 0.4888 GB, free: 3.133 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001527/0.6213, allocations: 57.7 kB / 0.4889 GB, free: 3.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.6218, allocations: 479 kB / 0.4893 GB, free: 2.598 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005982/0.6224, allocations: 485.4 kB / 0.4898 GB, free: 2.117 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.6225, allocations: 28.03 kB / 0.4898 GB, free: 2.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000232/0.6228, allocations: 380.1 kB / 0.4902 GB, free: 1.711 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.6243, allocations: 0.6795 MB / 0.4909 GB, free: 1.031 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/0.626, allocations: 0.9449 MB / 0.4918 GB, free: 15.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.6278, allocations: 0.8438 MB / 0.4926 GB, free: 15.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/0.6278, allocations: 4 kB / 0.4926 GB, free: 15.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007402/0.6352, allocations: 2.753 MB / 0.4953 GB, free: 12.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.004e-05/0.6353, allocations: 63.39 kB / 0.4954 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01081/0.6462, allocations: 2.356 MB / 0.4977 GB, free: 9.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008778/0.655, allocations: 1.083 MB / 0.4987 GB, free: 8.832 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/0.6566, allocations: 151.7 kB / 0.4989 GB, free: 8.684 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0357/0.6923, allocations: 8.283 MB / 0.5069 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.6946, allocations: 99.81 kB / 0.507 GB, free: 168 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/0.6949, allocations: 52 kB / 0.5071 GB, free: 116 kB / 442.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.0009132/0.6959, allocations: 290.7 kB / 0.5074 GB, free: 15.81 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006/0.6965, allocations: 103.5 kB / 0.5075 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00774/0.7043, allocations: 1.834 MB / 0.5093 GB, free: 13.85 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/0.7045, allocations: 39.98 kB / 0.5093 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.7045, allocations: 0 / 0.5093 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.455e-05/0.7045, allocations: 7.969 kB / 0.5093 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/0.7191, allocations: 3.371 MB / 0.5126 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/0.7192, allocations: 4 kB / 0.5126 GB, free: 10.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005169/0.7244, allocations: 385.1 kB / 0.513 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002869/0.7247, allocations: 28.84 kB / 0.513 GB, free: 9.945 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003377/0.7251, allocations: 31.97 kB / 0.513 GB, free: 9.914 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001765/0.7269, allocations: 1.331 MB / 0.5143 GB, free: 8.445 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.539e-06/0.7269, allocations: 4.031 kB / 0.5143 GB, free: 8.441 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005991/0.7329, allocations: 2.909 MB / 0.5172 GB, free: 5.473 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008057/0.7337, allocations: 299.8 kB / 0.5175 GB, free: 5.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/0.734, allocations: 39.98 kB / 0.5175 GB, free: 5.121 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008806/0.7349, allocations: 75.91 kB / 0.5176 GB, free: 5.047 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004494/0.7354, allocations: 140.8 kB / 0.5177 GB, free: 4.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/0.7355, allocations: 39.98 kB / 0.5177 GB, free: 4.871 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006771/0.7362, allocations: 373.5 kB / 0.5181 GB, free: 4.504 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.86e-07/0.7362, allocations: 3.938 kB / 0.5181 GB, free: 4.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001653/0.7379, allocations: 403.9 kB / 0.5185 GB, free: 4.105 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.0004803/0.7384, allocations: 222.9 kB / 0.5187 GB, free: 3.879 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006088/0.7445, allocations: 2.444 MB / 0.5211 GB, free: 1.406 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.402e-06/0.7446, allocations: 4 kB / 0.5211 GB, free: 1.402 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002899/0.7475, allocations: 1.169 MB / 0.5222 GB, free: 200 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.7487, allocations: 145.9 kB / 0.5224 GB, free: 52 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2484/0.9971, allocations: 2.543 MB / 0.5249 GB, free: 133 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.9983, allocations: 1.233 MB / 0.5261 GB, free: 132.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005932/0.9989, allocations: 79.62 kB / 0.5261 GB, free: 132.2 MB / 458.7 MB Notification: Performance of SimCode: time 2.199e-06/0.9989, allocations: 3.688 kB / 0.5261 GB, free: 132.2 MB / 458.7 MB Notification: Performance of Templates: time 0.03526/1.034, allocations: 18.61 MB / 0.5443 GB, free: 131.4 MB / 458.7 MB