Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.42/2.42, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.746e-05/4.747e-05, allocations: 4 kB / 302.3 MB, free: 7.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.136, allocations: 53.24 MB / 355.5 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5181/0.6542, allocations: 101.9 MB / 457.4 MB, free: 15.72 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.6546, allocations: 83.95 kB / 457.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.13/0.7846, allocations: 25 MB / 482.5 MB, free: 6.387 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7847, allocations: 3.938 kB / 482.5 MB, free: 6.383 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.562e-05/0.7848, allocations: 32 kB / 482.5 MB, free: 6.352 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.005337/0.7902, allocations: 1.377 MB / 483.9 MB, free: 4.898 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.7902, allocations: 8.031 kB / 483.9 MB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000628/0.7909, allocations: 177.8 kB / 484.1 MB, free: 4.707 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001937/0.7928, allocations: 206.6 kB / 484.3 MB, free: 4.504 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005179/0.798, allocations: 1.196 MB / 485.5 MB, free: 3.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.7982, allocations: 81.98 kB / 485.6 MB, free: 3.188 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004156/0.7986, allocations: 107.9 kB / 485.7 MB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004152/0.8028, allocations: 1.547 MB / 487.2 MB, free: 1.453 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.496e-05/0.8029, allocations: 1.969 kB / 487.2 MB, free: 1.453 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.8031, allocations: 43.98 kB / 487.3 MB, free: 1.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.8033, allocations: 69.98 kB / 487.3 MB, free: 1.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003837/0.8071, allocations: 1.351 MB / 488.7 MB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01454/0.8217, allocations: 5.686 MB / 494.4 MB, free: 10.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002921/0.8247, allocations: 1.051 MB / 495.4 MB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/0.827, allocations: 0.8094 MB / 496.2 MB, free: 8.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.8272, allocations: 9 kB / 496.2 MB, free: 8.223 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002843/0.83, allocations: 1.101 MB / 497.3 MB, free: 7.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 5.871e-06/0.8301, allocations: 0 / 497.3 MB, free: 7.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01046/0.8405, allocations: 3.761 MB / 0.4893 GB, free: 3.238 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/0.8408, allocations: 217.2 kB / 0.4896 GB, free: 2.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.8419, allocations: 488.8 kB / 0.49 GB, free: 2.496 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003181/0.8422, allocations: 57.7 kB / 0.4901 GB, free: 2.434 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000531/0.8427, allocations: 444.5 kB / 0.4905 GB, free: 1.992 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007896/0.8435, allocations: 481.4 kB / 0.491 GB, free: 1.516 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.8437, allocations: 28 kB / 0.491 GB, free: 1.488 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002946/0.844, allocations: 414.7 kB / 0.4914 GB, free: 1.074 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001901/0.8459, allocations: 0.6834 MB / 0.492 GB, free: 400 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/0.8482, allocations: 0.9376 MB / 0.493 GB, free: 15.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002344/0.8506, allocations: 0.8517 MB / 0.4938 GB, free: 14.49 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.8507, allocations: 0.5625 kB / 0.4938 GB, free: 14.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.009919/0.8606, allocations: 2.784 MB / 0.4965 GB, free: 11.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.926e-05/0.8607, allocations: 67.42 kB / 0.4966 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0101/0.8708, allocations: 2.36 MB / 0.4989 GB, free: 9.242 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008781/0.8797, allocations: 1.083 MB / 0.4999 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.8813, allocations: 151.7 kB / 0.5001 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02636/0.9077, allocations: 8.285 MB / 0.5082 GB, free: 15.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.9095, allocations: 99.72 kB / 0.5083 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003205/0.9099, allocations: 56 kB / 0.5083 GB, free: 15.43 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.0005936/0.9105, allocations: 282.8 kB / 0.5086 GB, free: 15.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.9109, allocations: 98.86 kB / 0.5087 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005059/0.916, allocations: 1.842 MB / 0.5105 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.129e-05/0.9161, allocations: 39.97 kB / 0.5105 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.9161, allocations: 0 / 0.5105 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-05/0.9162, allocations: 7.969 kB / 0.5105 GB, free: 13.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.9264, allocations: 3.371 MB / 0.5138 GB, free: 9.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.9265, allocations: 4 kB / 0.5138 GB, free: 9.676 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004716/0.9312, allocations: 375.7 kB / 0.5142 GB, free: 9.309 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002183/0.9315, allocations: 32.84 kB / 0.5142 GB, free: 9.273 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/0.9319, allocations: 35.98 kB / 0.5142 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.9333, allocations: 1.332 MB / 0.5156 GB, free: 7.77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.9334, allocations: 0 / 0.5156 GB, free: 7.77 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007808/0.9412, allocations: 2.917 MB / 0.5184 GB, free: 4.793 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.9424, allocations: 299.8 kB / 0.5187 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.9427, allocations: 35.98 kB / 0.5187 GB, free: 4.445 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.944, allocations: 75.91 kB / 0.5188 GB, free: 4.371 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004841/0.9445, allocations: 132.8 kB / 0.5189 GB, free: 4.242 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/0.9447, allocations: 39.98 kB / 0.519 GB, free: 4.203 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008169/0.9455, allocations: 377.5 kB / 0.5193 GB, free: 3.832 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.9455, allocations: 0 / 0.5193 GB, free: 3.832 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002282/0.9478, allocations: 411.9 kB / 0.5197 GB, free: 3.43 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.3307/1.279, allocations: 3.782 MB / 0.5234 GB, free: 132 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008408/1.287, allocations: 2.445 MB / 0.5258 GB, free: 131.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.287, allocations: 0.8438 kB / 0.5258 GB, free: 131.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/1.29, allocations: 1.188 MB / 0.527 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.00142/1.292, allocations: 143 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.009609/1.301, allocations: 2.755 MB / 0.5298 GB, free: 131 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/1.303, allocations: 1.233 MB / 0.531 GB, free: 130.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001652/1.305, allocations: 277 kB / 0.5312 GB, free: 130.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/1.306, allocations: 397.5 kB / 0.5316 GB, free: 130.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.383e-06/1.306, allocations: 0.9375 kB / 0.5316 GB, free: 130.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1329/1.439, allocations: 26.04 MB / 0.5571 GB, free: 128.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/1.439, allocations: 172.7 kB / 0.5572 GB, free: 128 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.467/4.906, allocations: 0 / 0.5572 GB, free: 128 MB / 458.7 MB