Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.587/2.587, allocations: 233 MB / 246.1 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.2e-05/5.201e-05, allocations: 7.984 kB / 302.3 MB, free: 7.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 53.23 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5241/0.6422, allocations: 97.53 MB / 453.1 MB, free: 4.043 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003665/0.6426, allocations: 90.14 kB / 453.1 MB, free: 3.957 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1029/0.7456, allocations: 21.92 MB / 475.1 MB, free: 13.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.7456, allocations: 0 / 475.1 MB, free: 13.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.277e-05/0.7457, allocations: 23.94 kB / 475.1 MB, free: 13.77 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.004353/0.7501, allocations: 1.172 MB / 476.3 MB, free: 12.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.7502, allocations: 8.031 kB / 476.3 MB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005107/0.7507, allocations: 148 kB / 476.4 MB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.7521, allocations: 167.3 kB / 476.6 MB, free: 12.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005334/0.7575, allocations: 1.199 MB / 477.8 MB, free: 10.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.7577, allocations: 69.94 kB / 477.9 MB, free: 10.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003588/0.758, allocations: 90.52 kB / 477.9 MB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003578/0.7616, allocations: 1.252 MB / 479.2 MB, free: 9.488 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.172e-05/0.7617, allocations: 3.938 kB / 479.2 MB, free: 9.484 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/0.7619, allocations: 39.97 kB / 479.2 MB, free: 9.445 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/0.762, allocations: 61.97 kB / 479.3 MB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003476/0.7655, allocations: 1.093 MB / 480.4 MB, free: 8.293 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0121/0.7777, allocations: 4.561 MB / 485 MB, free: 3.574 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002236/0.78, allocations: 0.8046 MB / 485.8 MB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.7819, allocations: 0.6522 MB / 486.4 MB, free: 2.094 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.7821, allocations: 8.781 kB / 486.4 MB, free: 2.086 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002184/0.7843, allocations: 0.8926 MB / 487.3 MB, free: 1.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 4.709e-06/0.7843, allocations: 4 kB / 487.3 MB, free: 1.156 MB / 410.7 MB Notification: Performance of matching and sorting (n=127): time 0.008077/0.7924, allocations: 3.084 MB / 490.4 MB, free: 13.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002235/0.7927, allocations: 234.6 kB / 490.6 MB, free: 13.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008585/0.7936, allocations: 427.8 kB / 491 MB, free: 13.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002267/0.7938, allocations: 49.7 kB / 491.1 MB, free: 13.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004472/0.7943, allocations: 396.2 kB / 491.5 MB, free: 12.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000548/0.7948, allocations: 390.8 kB / 491.9 MB, free: 12.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.7949, allocations: 20 kB / 491.9 MB, free: 12.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002359/0.7952, allocations: 394.8 kB / 492.3 MB, free: 12.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.7966, allocations: 0.5187 MB / 492.8 MB, free: 11.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.7984, allocations: 0.754 MB / 493.5 MB, free: 10.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.8, allocations: 0.656 MB / 494.2 MB, free: 10 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.8001, allocations: 0 / 494.2 MB, free: 10 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006627/0.8067, allocations: 2.04 MB / 496.2 MB, free: 7.934 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.368e-05/0.8069, allocations: 67.33 kB / 496.3 MB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005488/0.8124, allocations: 1.662 MB / 498 MB, free: 6.191 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003394/0.8158, allocations: 0.6603 MB / 498.6 MB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.8169, allocations: 131.7 kB / 498.8 MB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/0.8319, allocations: 5.907 MB / 0.4928 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.8332, allocations: 63.94 kB / 0.4929 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001489/0.8334, allocations: 44 kB / 0.4929 GB, free: 15.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * 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 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004955/0.8339, allocations: 269.8 kB / 0.4932 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003342/0.8342, allocations: 83.06 kB / 0.4933 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003764/0.838, allocations: 1.438 MB / 0.4947 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.015e-05/0.8381, allocations: 24 kB / 0.4947 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.8382, allocations: 3.953 kB / 0.4947 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.8382, allocations: 3.984 kB / 0.4947 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007495/0.8457, allocations: 2.797 MB / 0.4974 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.8458, allocations: 4 kB / 0.4974 GB, free: 10.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002196/0.848, allocations: 243.8 kB / 0.4977 GB, free: 10.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.869e-05/0.848, allocations: 4 kB / 0.4977 GB, free: 10.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/0.8482, allocations: 27.97 kB / 0.4977 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-05/0.8482, allocations: 4 kB / 0.4977 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.8482, allocations: 8 kB / 0.4977 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005359/0.8536, allocations: 2.328 MB / 0.5 GB, free: 7.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003411/0.854, allocations: 152.1 kB / 0.5001 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.8542, allocations: 35.94 kB / 0.5002 GB, free: 7.637 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008849/0.8551, allocations: 55.88 kB / 0.5002 GB, free: 7.582 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003799/0.8555, allocations: 108.6 kB / 0.5003 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.8557, allocations: 31.97 kB / 0.5004 GB, free: 7.445 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006608/0.8563, allocations: 333.5 kB / 0.5007 GB, free: 7.117 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8564, allocations: 4 kB / 0.5007 GB, free: 7.113 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001723/0.8581, allocations: 328 kB / 0.501 GB, free: 6.793 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$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,system.initime) * Number of discrete states: 16 (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_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007027/0.8652, allocations: 3.263 MB / 0.5042 GB, free: 3.465 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0053/0.8705, allocations: 1.827 MB / 0.506 GB, free: 1.609 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.8706, allocations: 0 / 0.506 GB, free: 1.609 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.8727, allocations: 0.9 MB / 0.5068 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.8738, allocations: 110.4 kB / 0.5069 GB, free: 0.5742 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006845/0.8807, allocations: 2.106 MB / 0.509 GB, free: 14.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.8818, allocations: 1.125 MB / 0.5101 GB, free: 13.26 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001284/0.8832, allocations: 234.9 kB / 0.5103 GB, free: 13.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009516/0.8841, allocations: 339.3 kB / 0.5106 GB, free: 12.69 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8842, allocations: 0 / 0.5106 GB, free: 12.69 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3668/1.251, allocations: 20.37 MB / 0.5305 GB, free: 134.7 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/1.251, allocations: 173.4 kB / 0.5307 GB, free: 134.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.253/4.504, allocations: 0 / 0.5307 GB, free: 134.5 MB / 458.7 MB