Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_FaultRXline",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.381/2.381, allocations: 233 MB / 245.6 MB, free: 15.06 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.598e-05/3.603e-05, allocations: 4 kB / 301.4 MB, free: 8.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 53.24 MB / 354.6 MB, free: 2.742 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.457/0.5664, allocations: 101 MB / 455.6 MB, free: 1.027 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/0.5668, allocations: 91.94 kB / 455.7 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1154/0.6822, allocations: 25.12 MB / 480.8 MB, free: 7.547 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.6823, allocations: 0 / 480.8 MB, free: 7.547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.368e-05/0.6824, allocations: 24 kB / 480.8 MB, free: 7.523 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: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.005662/0.6881, allocations: 1.388 MB / 482.2 MB, free: 6.051 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.075e-05/0.6882, allocations: 8.031 kB / 482.2 MB, free: 6.043 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006125/0.6888, allocations: 173.4 kB / 482.4 MB, free: 5.863 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002623/0.6914, allocations: 210.2 kB / 482.6 MB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007138/0.6986, allocations: 1.297 MB / 483.9 MB, free: 4.316 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.6989, allocations: 86 kB / 484 MB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004462/0.6993, allocations: 107.9 kB / 484.1 MB, free: 4.125 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005558/0.7049, allocations: 1.556 MB / 485.6 MB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.344e-05/0.705, allocations: 11.94 kB / 485.6 MB, free: 2.473 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002625/0.7053, allocations: 43.98 kB / 485.7 MB, free: 2.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000192/0.7055, allocations: 65.98 kB / 485.8 MB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005764/0.7113, allocations: 1.367 MB / 487.1 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01933/0.7307, allocations: 5.76 MB / 492.9 MB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00368/0.7344, allocations: 1.066 MB / 493.9 MB, free: 9.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002801/0.7373, allocations: 0.832 MB / 494.8 MB, free: 9.141 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.7374, allocations: 20.94 kB / 494.8 MB, free: 9.117 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003617/0.7411, allocations: 1.122 MB / 495.9 MB, free: 7.965 MB / 426.7 MB Notification: Performance of pre-optimization done (n=161): time 7.043e-06/0.7411, allocations: 4 kB / 495.9 MB, free: 7.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=162): time 0.01383/0.755, allocations: 3.919 MB / 499.8 MB, free: 3.945 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002333/0.7552, allocations: 246.9 kB / 0.4884 GB, free: 3.652 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.7567, allocations: 0.493 MB / 0.4888 GB, free: 3.152 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000349/0.757, allocations: 57.7 kB / 0.4889 GB, free: 3.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006184/0.7577, allocations: 488.5 kB / 0.4894 GB, free: 2.609 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.7587, allocations: 489.4 kB / 0.4898 GB, free: 2.125 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.7589, allocations: 35.98 kB / 0.4899 GB, free: 2.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003034/0.7592, allocations: 382.7 kB / 0.4902 GB, free: 1.707 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002828/0.7621, allocations: 0.6912 MB / 0.4909 GB, free: 1.016 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002329/0.7645, allocations: 0.9678 MB / 0.4919 GB, free: 15.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/0.7669, allocations: 0.8594 MB / 0.4927 GB, free: 15.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.557e-05/0.767, allocations: 4 kB / 0.4927 GB, free: 15.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.009503/0.7765, allocations: 2.773 MB / 0.4954 GB, free: 12.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/0.7766, allocations: 59.41 kB / 0.4955 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008113/0.7847, allocations: 2.357 MB / 0.4978 GB, free: 9.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005963/0.7907, allocations: 1.067 MB / 0.4988 GB, free: 8.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.7918, allocations: 147.6 kB / 0.4989 GB, free: 8.625 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02245/0.8143, allocations: 8.212 MB / 0.507 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.8159, allocations: 99.8 kB / 0.5071 GB, free: 180 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/0.8162, allocations: 56 kB / 0.5071 GB, free: 124 kB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (146): * Single equations (assignments): 139 * 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,81.9%) 41} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005592/0.8167, allocations: 292 kB / 0.5074 GB, free: 15.81 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003656/0.8171, allocations: 108 kB / 0.5075 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004921/0.822, allocations: 1.869 MB / 0.5093 GB, free: 13.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.268e-05/0.8222, allocations: 39.98 kB / 0.5094 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.8222, allocations: 0 / 0.5094 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.8222, allocations: 7.969 kB / 0.5094 GB, free: 13.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00959/0.8318, allocations: 3.519 MB / 0.5128 GB, free: 10.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.8319, allocations: 0 / 0.5128 GB, free: 10.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00399/0.8359, allocations: 383.7 kB / 0.5132 GB, free: 9.793 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000287/0.8362, allocations: 56.81 kB / 0.5132 GB, free: 9.734 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002654/0.8365, allocations: 35.97 kB / 0.5133 GB, free: 9.699 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/0.8384, allocations: 1.56 MB / 0.5148 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.8384, allocations: 4.031 kB / 0.5148 GB, free: 8.004 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007251/0.8457, allocations: 2.976 MB / 0.5177 GB, free: 4.953 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009194/0.8466, allocations: 309.3 kB / 0.518 GB, free: 4.633 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002803/0.8469, allocations: 39.98 kB / 0.518 GB, free: 4.594 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.8481, allocations: 83.88 kB / 0.5181 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000447/0.8486, allocations: 136.8 kB / 0.5182 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/0.8487, allocations: 40.11 kB / 0.5183 GB, free: 4.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007529/0.8495, allocations: 395.2 kB / 0.5186 GB, free: 3.953 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8495, allocations: 0 / 0.5186 GB, free: 3.953 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002015/0.8516, allocations: 416 kB / 0.519 GB, free: 3.547 MB / 458.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_b.closed,switch1.switch_c.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,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_b.open,switch2.switch_c.open,switch2.switch_a.open,abc.v_pos,abc.first,switch1.switch_c.open,switch1.switch_b.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 107 * Array equations: 4 * 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.2969/1.148, allocations: 3.923 MB / 0.5229 GB, free: 132.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00815/1.157, allocations: 2.449 MB / 0.5253 GB, free: 131.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.157, allocations: 0 / 0.5253 GB, free: 131.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003041/1.16, allocations: 1.22 MB / 0.5265 GB, free: 131.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/1.161, allocations: 135.6 kB / 0.5266 GB, free: 131.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008878/1.17, allocations: 2.895 MB / 0.5294 GB, free: 131 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/1.171, allocations: 1.245 MB / 0.5306 GB, free: 130.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.173, allocations: 427 kB / 0.531 GB, free: 130.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.243e-06/1.173, allocations: 1.094 kB / 0.531 GB, free: 130.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.34/4.513, allocations: 24.2 MB / 0.5547 GB, free: 128.8 MB / 458.7 MB