Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.371/2.371, allocations: 233 MB / 245.6 MB, free: 14.86 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.206e-05/4.221e-05, allocations: 7.938 kB / 301.4 MB, free: 7.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 53.24 MB / 354.6 MB, free: 2.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.5923, allocations: 93.49 MB / 448.1 MB, free: 8.484 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/0.5927, allocations: 91.94 kB / 448.2 MB, free: 8.395 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05679/0.6495, allocations: 11.06 MB / 459.2 MB, free: 13.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6496, allocations: 0 / 459.2 MB, free: 13.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.192e-05/0.6496, allocations: 16 kB / 459.3 MB, free: 13.21 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002681/0.6523, allocations: 0.7769 MB / 460 MB, free: 12.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.6524, allocations: 8.031 kB / 460 MB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000257/0.6527, allocations: 70.53 kB / 460.1 MB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002677/0.6529, allocations: 51.44 kB / 460.2 MB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005808/0.6588, allocations: 1.253 MB / 461.4 MB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.464e-05/0.6589, allocations: 29.12 kB / 461.4 MB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002575/0.6591, allocations: 55.86 kB / 461.5 MB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.661, allocations: 0.7724 MB / 462.3 MB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.6611, allocations: 0 / 462.3 MB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.483e-05/0.6612, allocations: 12 kB / 462.3 MB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.6612, allocations: 16 kB / 462.3 MB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.6624, allocations: 441.2 kB / 462.7 MB, free: 9.613 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006828/0.6692, allocations: 2.759 MB / 465.5 MB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.6706, allocations: 471 kB / 465.9 MB, free: 6.297 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.6718, allocations: 437.6 kB / 466.4 MB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.506e-05/0.6719, allocations: 8.531 kB / 466.4 MB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.672, allocations: 34.56 kB / 466.4 MB, free: 5.812 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 3.547e-06/0.672, allocations: 3.938 kB / 466.4 MB, free: 5.809 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.01319/0.6852, allocations: 3.098 MB / 469.5 MB, free: 2.641 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.6853, allocations: 85.06 kB / 469.6 MB, free: 2.539 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006445/0.6859, allocations: 339.3 kB / 469.9 MB, free: 2.203 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.6861, allocations: 33.7 kB / 470 MB, free: 2.164 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.6863, allocations: 290.6 kB / 470.2 MB, free: 1.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.6866, allocations: 162.1 kB / 470.4 MB, free: 1.719 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.6867, allocations: 12 kB / 470.4 MB, free: 1.707 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.6868, allocations: 330.8 kB / 470.7 MB, free: 1.375 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.6879, allocations: 434.4 kB / 471.2 MB, free: 0.9531 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.689, allocations: 0.5328 MB / 471.7 MB, free: 388 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.6902, allocations: 485.3 kB / 472.2 MB, free: 15.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.6902, allocations: 0 / 472.2 MB, free: 15.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01124/0.7015, allocations: 2.442 MB / 474.6 MB, free: 13.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.483e-05/0.7015, allocations: 15.95 kB / 474.6 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.7016, allocations: 7.984 kB / 474.6 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01341/0.715, allocations: 2.073 MB / 476.7 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006991/0.7157, allocations: 87.89 kB / 476.8 MB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01889/0.7347, allocations: 8.902 MB / 485.7 MB, free: 2.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006866/0.7354, allocations: 27.95 kB / 485.7 MB, free: 2.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/0.7356, allocations: 71.97 kB / 485.8 MB, free: 1.992 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002429/0.7358, allocations: 128.9 kB / 485.9 MB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.736, allocations: 43.48 kB / 486 MB, free: 1.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/0.7468, allocations: 2.204 MB / 488.2 MB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.7469, allocations: 8 kB / 488.2 MB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.7469, allocations: 1.219 kB / 488.2 MB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.7469, allocations: 3.938 kB / 488.2 MB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.7596, allocations: 2.994 MB / 491.2 MB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/0.7597, allocations: 0 / 491.2 MB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.7601, allocations: 43.92 kB / 491.2 MB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01811/0.7782, allocations: 3.244 MB / 494.5 MB, free: 9.215 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003214/0.7786, allocations: 107.9 kB / 494.6 MB, free: 9.109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01925/0.7979, allocations: 8.921 MB / 0.4917 GB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.7979, allocations: 3.953 kB / 0.4917 GB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/0.8096, allocations: 2.622 MB / 0.4942 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.8099, allocations: 124.5 kB / 0.4944 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003006/0.8102, allocations: 83.95 kB / 0.4944 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.8108, allocations: 27.95 kB / 0.4945 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/0.8112, allocations: 72.55 kB / 0.4945 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/0.8114, allocations: 75.88 kB / 0.4946 GB, free: 12.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004616/0.8119, allocations: 257.2 kB / 0.4949 GB, free: 12.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8119, allocations: 0 / 0.4949 GB, free: 12.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001318/0.8132, allocations: 232 kB / 0.4951 GB, free: 12.39 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (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.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]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01151/0.8248, allocations: 3.224 MB / 0.4982 GB, free: 9.117 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004279/0.8291, allocations: 1.317 MB / 0.4995 GB, free: 7.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.8292, allocations: 384 / 0.4995 GB, free: 7.773 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003116/0.8323, allocations: 0.8991 MB / 0.5004 GB, free: 6.848 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.8334, allocations: 116.4 kB / 0.5005 GB, free: 6.734 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005537/0.8389, allocations: 2.22 MB / 0.5027 GB, free: 4.457 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006478/0.8396, allocations: 0.9015 MB / 0.5036 GB, free: 3.527 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.84, allocations: 159.4 kB / 0.5037 GB, free: 3.371 MB / 442.7 MB Notification: Performance of SimCode: time 1.233e-06/0.84, allocations: 4 kB / 0.5037 GB, free: 3.367 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.392/4.232, allocations: 15.15 MB / 0.5185 GB, free: 4.211 MB / 458.7 MB