Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.801/2.801, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.269e-05/4.28e-05, allocations: 11.94 kB / 302.3 MB, free: 7.375 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1188, allocations: 53.24 MB / 355.5 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5109/0.6297, allocations: 101.9 MB / 457.4 MB, free: 15.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004131/0.6302, allocations: 91.94 kB / 457.5 MB, free: 15.6 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1303/0.7605, allocations: 25.01 MB / 482.5 MB, free: 6.336 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7606, allocations: 0 / 482.5 MB, free: 6.336 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.096e-05/0.7607, allocations: 28 kB / 482.5 MB, free: 6.309 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.004994/0.7657, allocations: 1.378 MB / 483.9 MB, free: 4.855 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.7658, allocations: 8.031 kB / 483.9 MB, free: 4.848 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000607/0.7664, allocations: 169.3 kB / 484.1 MB, free: 4.672 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001968/0.7684, allocations: 206.6 kB / 484.3 MB, free: 4.469 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00526/0.7737, allocations: 1.196 MB / 485.5 MB, free: 3.234 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.7739, allocations: 85.98 kB / 485.6 MB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003895/0.7743, allocations: 103.9 kB / 485.7 MB, free: 3.047 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004353/0.7786, allocations: 1.544 MB / 487.2 MB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.719e-05/0.7787, allocations: 4 kB / 487.2 MB, free: 1.418 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.7789, allocations: 47.97 kB / 487.3 MB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.7791, allocations: 73.97 kB / 487.3 MB, free: 1.297 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004034/0.7832, allocations: 1.351 MB / 488.7 MB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01569/0.7989, allocations: 5.682 MB / 494.4 MB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.8018, allocations: 1.046 MB / 495.4 MB, free: 9.012 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.804, allocations: 0.8055 MB / 496.2 MB, free: 8.199 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.8042, allocations: 16.98 kB / 496.2 MB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002884/0.8071, allocations: 1.094 MB / 497.3 MB, free: 7.059 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 5.861e-06/0.8071, allocations: 4 kB / 497.3 MB, free: 7.055 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01081/0.818, allocations: 3.753 MB / 0.4893 GB, free: 3.211 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/0.8182, allocations: 213.2 kB / 0.4895 GB, free: 2.957 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.8193, allocations: 492.7 kB / 0.49 GB, free: 2.469 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003732/0.8197, allocations: 61.69 kB / 0.4901 GB, free: 2.402 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006196/0.8203, allocations: 452.5 kB / 0.4905 GB, free: 1.953 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008373/0.8212, allocations: 481.4 kB / 0.491 GB, free: 1.477 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.8213, allocations: 25.12 kB / 0.491 GB, free: 1.453 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002996/0.8216, allocations: 414.7 kB / 0.4914 GB, free: 1.039 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/0.8235, allocations: 0.6756 MB / 0.492 GB, free: 372 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/0.8257, allocations: 0.9493 MB / 0.493 GB, free: 15.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.8279, allocations: 0.84 MB / 0.4938 GB, free: 14.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/0.828, allocations: 4 kB / 0.4938 GB, free: 14.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.009888/0.8379, allocations: 2.792 MB / 0.4965 GB, free: 11.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.519e-05/0.838, allocations: 59.41 kB / 0.4966 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008461/0.8465, allocations: 2.357 MB / 0.4989 GB, free: 9.215 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006318/0.8529, allocations: 1.087 MB / 0.4999 GB, free: 8.125 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.854, allocations: 151.7 kB / 0.5001 GB, free: 7.977 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03043/0.8845, allocations: 8.279 MB / 0.5082 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.8862, allocations: 96.66 kB / 0.5083 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002809/0.8865, allocations: 55.98 kB / 0.5083 GB, free: 15.4 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.0005851/0.8871, allocations: 291.9 kB / 0.5086 GB, free: 15.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003761/0.8875, allocations: 98.88 kB / 0.5087 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/0.8923, allocations: 1.834 MB / 0.5105 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.575e-05/0.8924, allocations: 47.98 kB / 0.5105 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8925, allocations: 0 / 0.5105 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.8925, allocations: 3.984 kB / 0.5105 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009108/0.9016, allocations: 3.379 MB / 0.5138 GB, free: 9.641 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.9017, allocations: 5.406 kB / 0.5138 GB, free: 9.637 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003953/0.9056, allocations: 371.7 kB / 0.5142 GB, free: 9.273 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001875/0.9059, allocations: 28.84 kB / 0.5142 GB, free: 9.242 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002056/0.9061, allocations: 35.97 kB / 0.5142 GB, free: 9.207 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001413/0.9075, allocations: 1.327 MB / 0.5155 GB, free: 7.742 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.9075, allocations: 4.031 kB / 0.5155 GB, free: 7.738 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00724/0.9148, allocations: 2.909 MB / 0.5184 GB, free: 4.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009581/0.9158, allocations: 299.8 kB / 0.5187 GB, free: 4.457 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002814/0.9161, allocations: 43.97 kB / 0.5187 GB, free: 4.414 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.9173, allocations: 79.89 kB / 0.5188 GB, free: 4.336 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004628/0.9178, allocations: 128.8 kB / 0.5189 GB, free: 4.211 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.918, allocations: 39.98 kB / 0.5189 GB, free: 4.172 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007703/0.9187, allocations: 373.5 kB / 0.5193 GB, free: 3.805 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9188, allocations: 3.938 kB / 0.5193 GB, free: 3.801 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001953/0.9207, allocations: 407.9 kB / 0.5197 GB, free: 3.402 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.3206/1.241, allocations: 3.785 MB / 0.5234 GB, free: 132 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008966/1.25, allocations: 2.446 MB / 0.5258 GB, free: 131.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.25, allocations: 0 / 0.5258 GB, free: 131.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003225/1.254, allocations: 1.189 MB / 0.5269 GB, free: 131.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/1.255, allocations: 145.1 kB / 0.5271 GB, free: 131.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009912/1.265, allocations: 2.754 MB / 0.5298 GB, free: 131 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/1.267, allocations: 1.234 MB / 0.531 GB, free: 130.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00173/1.269, allocations: 279.2 kB / 0.5312 GB, free: 130.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/1.27, allocations: 398.4 kB / 0.5316 GB, free: 130.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.753e-06/1.27, allocations: 2.281 kB / 0.5316 GB, free: 130.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/1.372, allocations: 26.01 MB / 0.557 GB, free: 128.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002582/1.372, allocations: 177.5 kB / 0.5572 GB, free: 128.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.393/4.765, allocations: 4 kB / 0.5572 GB, free: 128.1 MB / 458.7 MB