Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.345/2.345, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.516e-05, allocations: 7.938 kB / 301.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 53.24 MB / 354.6 MB, free: 2.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4579/0.5726, allocations: 97.53 MB / 452.1 MB, free: 4.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.573, allocations: 83.95 kB / 452.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09753/0.6705, allocations: 21.92 MB / 474.1 MB, free: 14.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6706, allocations: 4 kB / 474.1 MB, free: 14.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.227e-05/0.6707, allocations: 27.94 kB / 474.2 MB, free: 14.17 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.003278/0.6739, allocations: 1.164 MB / 475.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.674, allocations: 12.03 kB / 475.3 MB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003053/0.6743, allocations: 148.6 kB / 475.5 MB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001265/0.6756, allocations: 159.3 kB / 475.6 MB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00489/0.6805, allocations: 1.206 MB / 476.8 MB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.6807, allocations: 70 kB / 476.9 MB, free: 11.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.6809, allocations: 84 kB / 477 MB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003072/0.684, allocations: 1.245 MB / 478.2 MB, free: 9.898 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/0.6841, allocations: 3.938 kB / 478.2 MB, free: 9.895 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.6842, allocations: 44.53 kB / 478.3 MB, free: 9.852 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001216/0.6844, allocations: 61.97 kB / 478.4 MB, free: 9.793 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002901/0.6873, allocations: 1.097 MB / 479.4 MB, free: 8.695 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.6974, allocations: 4.573 MB / 484 MB, free: 3.965 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.6995, allocations: 0.8036 MB / 484.8 MB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.7009, allocations: 0.6381 MB / 485.5 MB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.528e-05/0.701, allocations: 20.77 kB / 485.5 MB, free: 2.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001916/0.703, allocations: 0.8818 MB / 486.4 MB, free: 1.566 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 3.928e-06/0.703, allocations: 0 / 486.4 MB, free: 1.566 MB / 410.7 MB Notification: Performance of matching and sorting (n=127): time 0.007386/0.7104, allocations: 3.092 MB / 489.5 MB, free: 14.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.7106, allocations: 234.6 kB / 489.7 MB, free: 14.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/0.7114, allocations: 423.8 kB / 490.1 MB, free: 13.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001453/0.7115, allocations: 61.67 kB / 490.2 MB, free: 13.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/0.7119, allocations: 422.7 kB / 490.6 MB, free: 13.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004654/0.7124, allocations: 386.8 kB / 491 MB, free: 12.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.7125, allocations: 24 kB / 491 MB, free: 12.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.7127, allocations: 362.8 kB / 491.3 MB, free: 12.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.7141, allocations: 0.5227 MB / 491.9 MB, free: 11.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.7157, allocations: 0.754 MB / 492.6 MB, free: 11.06 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.7172, allocations: 0.6521 MB / 493.3 MB, free: 10.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.7172, allocations: 0 / 493.3 MB, free: 10.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0061/0.7234, allocations: 2.014 MB / 495.3 MB, free: 8.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.591e-05/0.7235, allocations: 67.34 kB / 495.3 MB, free: 8.285 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005207/0.7287, allocations: 1.662 MB / 497 MB, free: 6.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003328/0.7321, allocations: 0.6564 MB / 497.7 MB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009672/0.733, allocations: 135.7 kB / 497.8 MB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/0.7476, allocations: 5.907 MB / 0.4919 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.7488, allocations: 67.84 kB / 0.492 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.7489, allocations: 43.98 kB / 0.492 GB, free: 15.68 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.0004668/0.7494, allocations: 269.3 kB / 0.4923 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/0.7497, allocations: 83.05 kB / 0.4923 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00355/0.7532, allocations: 1.434 MB / 0.4937 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.435e-05/0.7533, allocations: 23.98 kB / 0.4938 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.7533, allocations: 7.953 kB / 0.4938 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.7534, allocations: 4.641 kB / 0.4938 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006991/0.7604, allocations: 2.799 MB / 0.4965 GB, free: 10.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.7604, allocations: 3.984 kB / 0.4965 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/0.7626, allocations: 235.8 kB / 0.4967 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.779e-05/0.7627, allocations: 4 kB / 0.4967 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.7628, allocations: 27.98 kB / 0.4968 GB, free: 10.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-05/0.7628, allocations: 4 kB / 0.4968 GB, free: 10.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.7628, allocations: 1.688 kB / 0.4968 GB, free: 10.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005225/0.7681, allocations: 2.332 MB / 0.499 GB, free: 8.273 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.7684, allocations: 152.1 kB / 0.4992 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.7686, allocations: 39.94 kB / 0.4992 GB, free: 8.066 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008708/0.7695, allocations: 55.94 kB / 0.4993 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/0.7699, allocations: 112.6 kB / 0.4994 GB, free: 7.902 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.77, allocations: 35.98 kB / 0.4994 GB, free: 7.867 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006089/0.7706, allocations: 325.6 kB / 0.4997 GB, free: 7.547 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7706, allocations: 0 / 0.4997 GB, free: 7.547 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001483/0.7721, allocations: 328 kB / 0.5 GB, free: 7.227 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.005902/0.778, allocations: 3.265 MB / 0.5032 GB, free: 3.895 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004999/0.7831, allocations: 1.819 MB / 0.505 GB, free: 2.047 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.7831, allocations: 3.938 kB / 0.505 GB, free: 2.043 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.7851, allocations: 0.8773 MB / 0.5059 GB, free: 1.141 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.7861, allocations: 117 kB / 0.506 GB, free: 1.027 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006106/0.7923, allocations: 2.19 MB / 0.5081 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.7933, allocations: 1.117 MB / 0.5092 GB, free: 13.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000851/0.7942, allocations: 351.3 kB / 0.5095 GB, free: 13.29 MB / 458.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7942, allocations: 0 / 0.5095 GB, free: 13.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.558/4.352, allocations: 18.12 MB / 0.5272 GB, free: 133.4 MB / 458.7 MB