Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.445/2.445, allocations: 233 MB / 245.6 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.7e-05/3.697e-05, allocations: 4 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.133, allocations: 53.23 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4727/0.6058, allocations: 90.16 MB / 444.7 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003466/0.6062, allocations: 87.95 kB / 444.8 MB, free: 11.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0355/0.6417, allocations: 7.38 MB / 452.2 MB, free: 4.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6417, allocations: 0 / 452.2 MB, free: 4.211 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.223e-05/0.6418, allocations: 4 kB / 452.2 MB, free: 4.207 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001358/0.6432, allocations: 0.5746 MB / 452.8 MB, free: 3.586 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.6432, allocations: 8.031 kB / 452.8 MB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.6434, allocations: 66.53 kB / 452.9 MB, free: 3.504 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.6435, allocations: 39.53 kB / 452.9 MB, free: 3.465 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003302/0.6468, allocations: 0.7986 MB / 453.7 MB, free: 2.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.6469, allocations: 20.56 kB / 453.7 MB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.36e-05/0.647, allocations: 28.52 kB / 453.8 MB, free: 2.578 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008005/0.6478, allocations: 336 kB / 454.1 MB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.6479, allocations: 3.953 kB / 454.1 MB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.6479, allocations: 15.94 kB / 454.1 MB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.6479, allocations: 9.219 kB / 454.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000629/0.6486, allocations: 225 kB / 454.3 MB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.6512, allocations: 1.364 MB / 455.7 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.6518, allocations: 161 kB / 455.8 MB, free: 356 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.6521, allocations: 106.9 kB / 456 MB, free: 244 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.6522, allocations: 0 / 456 MB, free: 244 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.6522, allocations: 38.56 kB / 456 MB, free: 196 kB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.214e-06/0.6522, allocations: 0 / 456 MB, free: 196 kB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.001645/0.6539, allocations: 0.596 MB / 456.6 MB, free: 15.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.654, allocations: 81.05 kB / 456.7 MB, free: 15.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004387/0.6544, allocations: 262.6 kB / 456.9 MB, free: 15.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.6545, allocations: 25.7 kB / 456.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.6547, allocations: 278 kB / 457.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.6548, allocations: 53.83 kB / 457.3 MB, free: 14.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.6548, allocations: 4 kB / 457.3 MB, free: 14.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.6549, allocations: 330.8 kB / 457.6 MB, free: 14.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.6551, allocations: 55.98 kB / 457.7 MB, free: 14.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.6554, allocations: 156.8 kB / 457.8 MB, free: 14.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.6557, allocations: 91.89 kB / 457.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.6557, allocations: 0 / 457.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000786/0.6565, allocations: 278.4 kB / 458.2 MB, free: 13.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.6565, allocations: 8 kB / 458.2 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.6565, allocations: 4 kB / 458.2 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003073/0.6569, allocations: 52.8 kB / 458.2 MB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.6572, allocations: 51.92 kB / 458.3 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.659, allocations: 1.456 MB / 459.7 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.6594, allocations: 11.91 kB / 459.7 MB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.6594, allocations: 11.95 kB / 459.8 MB, free: 12.13 MB / 394.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.6596, allocations: 125.5 kB / 459.9 MB, free: 12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.876e-05/0.6596, allocations: 31.84 kB / 459.9 MB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006632/0.6603, allocations: 217.2 kB / 460.1 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.6603, allocations: 0 / 460.1 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6604, allocations: 7.984 kB / 460.1 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.6604, allocations: 3.953 kB / 460.1 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.6618, allocations: 0.622 MB / 460.8 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.6618, allocations: 4.031 kB / 460.8 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.662, allocations: 27.94 kB / 460.8 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003058/0.6624, allocations: 56.67 kB / 460.8 MB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.6624, allocations: 8 kB / 460.9 MB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.6642, allocations: 1.448 MB / 462.3 MB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.6642, allocations: 8.578 kB / 462.3 MB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008753/0.6651, allocations: 413.1 kB / 462.7 MB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.6652, allocations: 104.8 kB / 462.8 MB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.6653, allocations: 11.98 kB / 462.8 MB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.6656, allocations: 4 kB / 462.8 MB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.6656, allocations: 15.88 kB / 462.8 MB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.6657, allocations: 8.562 kB / 462.9 MB, free: 8.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003299/0.666, allocations: 214.2 kB / 463.1 MB, free: 8.559 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.666, allocations: 0 / 463.1 MB, free: 8.559 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006008/0.6666, allocations: 76 kB / 463.1 MB, free: 8.484 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001341/0.668, allocations: 1.091 MB / 464.2 MB, free: 7.352 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007541/0.6688, allocations: 267.8 kB / 464.5 MB, free: 7.082 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6688, allocations: 1.594 kB / 464.5 MB, free: 7.082 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005623/0.6694, allocations: 198.6 kB / 464.7 MB, free: 6.879 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/0.6701, allocations: 56.73 kB / 464.7 MB, free: 6.824 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001946/0.6721, allocations: 0.6496 MB / 465.4 MB, free: 6.129 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005422/0.6727, allocations: 0.8184 MB / 466.2 MB, free: 5.285 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.6729, allocations: 103.4 kB / 466.3 MB, free: 5.184 MB / 394.7 MB Notification: Performance of SimCode: time 1.342e-06/0.673, allocations: 3.938 kB / 466.3 MB, free: 5.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.404, allocations: 6.214 MB / 472.5 MB, free: 14.96 MB / 410.7 MB