Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.312/2.312, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.301e-05/4.335e-05, allocations: 7.938 kB / 301.3 MB, free: 7.887 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 53.25 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4692/0.5833, allocations: 98.66 MB / 453.3 MB, free: 3.219 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.5836, allocations: 79.95 kB / 453.3 MB, free: 3.141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1211/0.7047, allocations: 25.81 MB / 479.1 MB, free: 9.035 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.448e-06/0.7048, allocations: 4 kB / 479.1 MB, free: 9.031 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.596e-05/0.7049, allocations: 31.88 kB / 479.2 MB, free: 9 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003449/0.7084, allocations: 1.076 MB / 480.3 MB, free: 7.867 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.7084, allocations: 12.03 kB / 480.3 MB, free: 7.855 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004479/0.7089, allocations: 135.5 kB / 480.4 MB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/0.711, allocations: 182.6 kB / 480.6 MB, free: 7.535 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00565/0.7167, allocations: 1.366 MB / 481.9 MB, free: 6.121 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.7168, allocations: 66 kB / 482 MB, free: 6.059 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002721/0.7171, allocations: 91.89 kB / 482.1 MB, free: 5.969 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003337/0.7205, allocations: 1.168 MB / 483.3 MB, free: 4.734 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.932e-05/0.7206, allocations: 11.89 kB / 483.3 MB, free: 4.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.7207, allocations: 32 kB / 483.3 MB, free: 4.691 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001306/0.7209, allocations: 49.98 kB / 483.4 MB, free: 4.641 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002966/0.7238, allocations: 0.9369 MB / 484.3 MB, free: 3.703 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01103/0.7349, allocations: 4.688 MB / 489 MB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001861/0.7368, allocations: 0.6599 MB / 489.6 MB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.738, allocations: 462.7 kB / 490.1 MB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.529e-05/0.7381, allocations: 12.56 kB / 490.1 MB, free: 13.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001243/0.7394, allocations: 0.5162 MB / 490.6 MB, free: 13.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 4.399e-06/0.7394, allocations: 4 kB / 490.6 MB, free: 13.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.007414/0.7469, allocations: 2.536 MB / 493.2 MB, free: 10.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.747, allocations: 167 kB / 493.3 MB, free: 10.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.7481, allocations: 0.5071 MB / 493.8 MB, free: 9.805 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002013/0.7483, allocations: 42.27 kB / 493.9 MB, free: 9.758 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004958/0.7488, allocations: 489.6 kB / 494.3 MB, free: 9.273 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004421/0.7493, allocations: 268.3 kB / 494.6 MB, free: 9.008 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.188e-05/0.7494, allocations: 20 kB / 494.6 MB, free: 8.988 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.7495, allocations: 354.8 kB / 495 MB, free: 8.633 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.7506, allocations: 377.9 kB / 495.3 MB, free: 8.262 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.752, allocations: 0.6134 MB / 496 MB, free: 7.543 MB / 426.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.0194/0.7714, allocations: 3.787 MB / 499.7 MB, free: 3.695 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.7715, allocations: 4 kB / 499.8 MB, free: 3.691 MB / 426.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00372/0.7752, allocations: 1.284 MB / 0.4893 GB, free: 2.387 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.959e-05/0.7753, allocations: 41.69 kB / 0.4893 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.7753, allocations: 8.047 kB / 0.4893 GB, free: 2.332 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.7764, allocations: 247.1 kB / 0.4896 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002507/0.7789, allocations: 271.6 kB / 0.4898 GB, free: 1.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00853/0.7875, allocations: 5.554 MB / 0.4953 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.7887, allocations: 43.88 kB / 0.4953 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.7889, allocations: 40 kB / 0.4953 GB, free: 11.77 MB / 442.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000433/0.7894, allocations: 211.6 kB / 0.4955 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.7896, allocations: 75.12 kB / 0.4956 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/0.7933, allocations: 1.172 MB / 0.4968 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.762e-05/0.7934, allocations: 12 kB / 0.4968 GB, free: 10.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.7934, allocations: 4 kB / 0.4968 GB, free: 10.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.7934, allocations: 7.984 kB / 0.4968 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006893/0.8003, allocations: 2.3 MB / 0.499 GB, free: 7.867 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.8004, allocations: 0 / 0.499 GB, free: 7.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002083/0.8025, allocations: 199.8 kB / 0.4992 GB, free: 7.672 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.8039, allocations: 242.8 kB / 0.4994 GB, free: 7.426 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/0.8041, allocations: 28.03 kB / 0.4995 GB, free: 7.398 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008326/0.8124, allocations: 5.496 MB / 0.5048 GB, free: 1.504 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.8125, allocations: 8.062 kB / 0.5048 GB, free: 1.496 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.8173, allocations: 1.758 MB / 0.5066 GB, free: 15.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003849/0.8177, allocations: 144.2 kB / 0.5067 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.818, allocations: 27.98 kB / 0.5067 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008556/0.8189, allocations: 33.66 kB / 0.5068 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.8192, allocations: 60.38 kB / 0.5068 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.061e-05/0.8193, allocations: 27.98 kB / 0.5068 GB, free: 15.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007958/0.8201, allocations: 403.1 kB / 0.5072 GB, free: 14.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8201, allocations: 0 / 0.5072 GB, free: 14.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00191/0.822, allocations: 299.9 kB / 0.5075 GB, free: 14.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005641/0.8277, allocations: 2.821 MB / 0.5103 GB, free: 11.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003862/0.8316, allocations: 1.365 MB / 0.5116 GB, free: 10.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.8317, allocations: 0 / 0.5116 GB, free: 10.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002557/0.8342, allocations: 0.9018 MB / 0.5125 GB, free: 9.398 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.8358, allocations: 159.1 kB / 0.5126 GB, free: 9.242 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006961/0.8428, allocations: 2.146 MB / 0.5147 GB, free: 7.031 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00119/0.844, allocations: 1.138 MB / 0.5158 GB, free: 5.867 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009132/0.845, allocations: 347.2 kB / 0.5162 GB, free: 5.527 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/0.845, allocations: 0 / 0.5162 GB, free: 5.527 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.674/4.519, allocations: 25.17 MB / 0.5408 GB, free: 127.4 MB / 458.7 MB