Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.FaultTline,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_FaultTline",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.281/2.281, allocations: 233 MB / 245.6 MB, free: 14.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.66e-05/3.671e-05, allocations: 4 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.598, allocations: 107.1 MB / 461.7 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/0.5984, allocations: 83.95 kB / 461.8 MB, free: 10.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1536/0.752, allocations: 33.53 MB / 495.3 MB, free: 8.926 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.438e-06/0.7521, allocations: 0 / 495.3 MB, free: 8.926 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001032/0.7522, allocations: 35.94 kB / 495.4 MB, free: 8.891 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.007138/0.7593, allocations: 1.792 MB / 497.2 MB, free: 6.996 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.7594, allocations: 10.19 kB / 497.2 MB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007531/0.7602, allocations: 215.2 kB / 497.4 MB, free: 6.766 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002881/0.7631, allocations: 269.8 kB / 497.6 MB, free: 6.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007836/0.771, allocations: 1.764 MB / 499.4 MB, free: 4.691 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.7712, allocations: 106.4 kB / 499.5 MB, free: 4.586 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006492/0.7719, allocations: 135.9 kB / 499.6 MB, free: 4.453 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005581/0.7775, allocations: 1.989 MB / 0.4899 GB, free: 2.375 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.345e-05/0.7776, allocations: 3.938 kB / 0.4899 GB, free: 2.371 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002494/0.7778, allocations: 59.98 kB / 0.4899 GB, free: 2.312 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004025/0.7782, allocations: 78.3 kB / 0.49 GB, free: 2.234 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005593/0.7839, allocations: 1.766 MB / 0.4917 GB, free: 476 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03498/0.8189, allocations: 9.31 MB / 0.5008 GB, free: 6.969 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004869/0.8238, allocations: 1.834 MB / 0.5026 GB, free: 5.121 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003708/0.8276, allocations: 1.462 MB / 0.504 GB, free: 3.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002404/0.8279, allocations: 29.23 kB / 0.5041 GB, free: 3.633 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005241/0.8331, allocations: 2.027 MB / 0.5061 GB, free: 1.566 MB / 442.7 MB Notification: Performance of pre-optimization done (n=218): time 6.392e-06/0.8332, allocations: 0 / 0.5061 GB, free: 1.566 MB / 442.7 MB Notification: Performance of matching and sorting (n=219): time 0.04103/0.8742, allocations: 9.124 MB / 0.515 GB, free: 8.309 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002157/0.8745, allocations: 255.6 kB / 0.5152 GB, free: 8.012 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.876, allocations: 0.6642 MB / 0.5159 GB, free: 7.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006083/0.8766, allocations: 77.69 kB / 0.5159 GB, free: 7.258 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005927/0.8772, allocations: 0.5505 MB / 0.5165 GB, free: 6.699 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001269/0.8785, allocations: 0.7257 MB / 0.5172 GB, free: 5.965 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/0.8788, allocations: 47.98 kB / 0.5172 GB, free: 5.918 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002642/0.8791, allocations: 407.6 kB / 0.5176 GB, free: 5.512 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004067/0.8832, allocations: 1.445 MB / 0.519 GB, free: 4.062 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004553/0.8878, allocations: 1.768 MB / 0.5207 GB, free: 2.188 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004524/0.8924, allocations: 1.642 MB / 0.5224 GB, free: 0.5078 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.859e-05/0.8924, allocations: 4 kB / 0.5224 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.3609/1.253, allocations: 8.445 MB / 0.5306 GB, free: 124 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.789e-05/1.253, allocations: 65.5 kB / 0.5307 GB, free: 123.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03712/1.291, allocations: 6.985 MB / 0.5375 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04802/1.339, allocations: 7.961 MB / 0.5453 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/1.34, allocations: 177.9 kB / 0.5454 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06971/1.41, allocations: 26.53 MB / 0.5713 GB, free: 115.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002665/1.412, allocations: 194.4 kB / 0.5715 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004278/1.413, allocations: 205.8 kB / 0.5717 GB, free: 115.2 MB / 458.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: 108 (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,$whenCondition29,$whenCondition28,$whenCondition27,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.breaker1.breaker_a.arc,breaker1.breaker_a.arc,$PRE.breaker1.breaker_a.open,breaker1.breaker_a.open,breaker1.breaker_a.closed,$PRE.breaker1.breaker_a.t0,breaker1.breaker_a.t0,breaker1.breaker_a.opening,$PRE.breaker1.breaker_b.arc,breaker1.breaker_b.arc,$PRE.breaker1.breaker_b.open,breaker1.breaker_b.open,breaker1.breaker_b.closed,$PRE.breaker1.breaker_b.t0,breaker1.breaker_b.t0,breaker1.breaker_b.opening,$PRE.breaker1.breaker_c.arc,breaker1.breaker_c.arc,$PRE.breaker1.breaker_c.open,breaker1.breaker_c.open,breaker1.breaker_c.closed,$PRE.breaker1.breaker_c.t0,breaker1.breaker_c.t0,breaker1.breaker_c.opening,$PRE.breaker2.breaker_a.arc,breaker2.breaker_a.arc,$PRE.breaker2.breaker_a.open,breaker2.breaker_a.open,breaker2.breaker_a.closed,$PRE.breaker2.breaker_a.t0,breaker2.breaker_a.t0,breaker2.breaker_a.opening,$PRE.breaker2.breaker_b.arc,breaker2.breaker_b.arc,$PRE.breaker2.breaker_b.open,breaker2.breaker_b.open,breaker2.breaker_b.closed,$PRE.breaker2.breaker_b.t0,breaker2.breaker_b.t0,breaker2.breaker_b.opening,$PRE.breaker2.breaker_c.arc,breaker2.breaker_c.arc,$PRE.breaker2.breaker_c.open,breaker2.breaker_c.open,breaker2.breaker_c.closed,$PRE.breaker2.breaker_c.t0,breaker2.breaker_c.t0,breaker2.breaker_c.opening,$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 (182): * Single equations (assignments): 175 * 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: 0 * Non-linear torn systems: 1 {32 66} Notification: Performance of prepare postOptimizeDAE: time 0.0007395/1.414, allocations: 332 kB / 0.572 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004956/1.414, allocations: 139.3 kB / 0.5722 GB, free: 114.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02907/1.443, allocations: 6.057 MB / 0.5781 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.861e-05/1.443, allocations: 44.3 kB / 0.5781 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/1.443, allocations: 8.578 kB / 0.5781 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.871e-05/1.444, allocations: 7.688 kB / 0.5781 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03763/1.481, allocations: 8.933 MB / 0.5869 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.786e-05/1.481, allocations: 3.609 kB / 0.5869 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00229/1.484, allocations: 236.5 kB / 0.5871 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04613/1.53, allocations: 8.226 MB / 0.5951 GB, free: 95.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009013/1.531, allocations: 269 kB / 0.5954 GB, free: 95.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0336/1.564, allocations: 23.11 MB / 0.618 GB, free: 70.92 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.564, allocations: 0 / 0.618 GB, free: 70.92 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03243/1.597, allocations: 7.51 MB / 0.6253 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/1.599, allocations: 0.5226 MB / 0.6258 GB, free: 62.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008705/1.6, allocations: 229.1 kB / 0.626 GB, free: 62.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002499/1.602, allocations: 180.8 kB / 0.6262 GB, free: 62.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/1.603, allocations: 291.5 kB / 0.6265 GB, free: 62.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004498/1.604, allocations: 207.7 kB / 0.6267 GB, free: 61.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009502/1.605, allocations: 0.5069 MB / 0.6272 GB, free: 61.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.605, allocations: 0 / 0.6272 GB, free: 61.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003869/1.609, allocations: 0.8 MB / 0.6279 GB, free: 60.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4],line.iF[1],line.iF[2],line.iF[3]) * Number of discrete variables: 75 (breaker1.breaker_c.closed,breaker1.breaker_b.closed,breaker1.breaker_a.closed,breaker2.breaker_c.closed,breaker2.breaker_a.closed,breaker2.breaker_b.closed,$whenCondition29,$whenCondition28,$whenCondition27,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,breaker1.breaker_a.arc,breaker1.breaker_a.open,breaker1.breaker_a.t0,breaker1.breaker_a.opening,breaker1.breaker_b.arc,breaker1.breaker_b.open,breaker1.breaker_b.t0,breaker1.breaker_b.opening,breaker1.breaker_c.arc,breaker1.breaker_c.open,breaker1.breaker_c.t0,breaker1.breaker_c.opening,breaker2.breaker_a.arc,breaker2.breaker_a.open,breaker2.breaker_a.t0,breaker2.breaker_a.opening,breaker2.breaker_b.arc,breaker2.breaker_b.open,breaker2.breaker_b.t0,breaker2.breaker_b.opening,breaker2.breaker_c.arc,breaker2.breaker_c.open,breaker2.breaker_c.t0,breaker2.breaker_c.opening,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: 27 (breaker1.breaker_a.arc,breaker1.breaker_b.arc,breaker1.breaker_c.arc,breaker2.breaker_a.arc,breaker2.breaker_b.arc,breaker2.breaker_c.arc,abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.on,abc.v_pos,abc.first,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,breaker2.breaker_b.open,breaker2.breaker_c.open,breaker2.breaker_a.open,breaker1.breaker_a.open,breaker1.breaker_c.open,breaker1.breaker_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 131 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {12,9} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0331/1.642, allocations: 8.512 MB / 0.6363 GB, free: 52.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01547/1.657, allocations: 4.741 MB / 0.6409 GB, free: 47.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.657, allocations: 0 / 0.6409 GB, free: 47.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009316/1.667, allocations: 3.44 MB / 0.6442 GB, free: 43.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/1.669, allocations: 210.5 kB / 0.6444 GB, free: 43.49 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02141/1.69, allocations: 6.076 MB / 0.6504 GB, free: 37.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001917/1.692, allocations: 1.461 MB / 0.6518 GB, free: 36.04 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/1.694, allocations: 0.5773 MB / 0.6524 GB, free: 35.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.532e-06/1.694, allocations: 0 / 0.6524 GB, free: 35.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.792/6.487, allocations: 61.23 MB / 0.7122 GB, free: 128.9 MB / 474.7 MB