Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.343/2.343, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.89e-05/3.893e-05, allocations: 7.938 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1167, allocations: 53.24 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5114/0.6282, allocations: 89.09 MB / 443.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.6286, allocations: 83.95 kB / 443.8 MB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0266/0.6552, allocations: 6.125 MB / 449.9 MB, free: 6.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.6552, allocations: 0 / 449.9 MB, free: 6.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.428e-05/0.6553, allocations: 7.938 kB / 449.9 MB, free: 6.562 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009286/0.6562, allocations: 0.5072 MB / 450.4 MB, free: 6.008 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.6563, allocations: 12.03 kB / 450.4 MB, free: 5.996 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.1e-05/0.6564, allocations: 54.55 kB / 450.5 MB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.513e-05/0.6565, allocations: 31.62 kB / 450.5 MB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002846/0.6593, allocations: 0.7408 MB / 451.2 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.6594, allocations: 16.44 kB / 451.3 MB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.6595, allocations: 16.52 kB / 451.3 MB, free: 5.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005771/0.66, allocations: 269.3 kB / 451.5 MB, free: 4.797 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.6601, allocations: 3.953 kB / 451.5 MB, free: 4.793 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.6601, allocations: 12 kB / 451.6 MB, free: 4.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.6601, allocations: 4.656 kB / 451.6 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/0.6606, allocations: 151.9 kB / 451.7 MB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.6624, allocations: 1.176 MB / 452.9 MB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.6626, allocations: 81.28 kB / 453 MB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.016e-05/0.6627, allocations: 29.78 kB / 453 MB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.6627, allocations: 0 / 453 MB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.6628, allocations: 34.56 kB / 453 MB, free: 3.188 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.084e-06/0.6628, allocations: 0.5625 kB / 453 MB, free: 3.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008802/0.6637, allocations: 393.9 kB / 453.4 MB, free: 2.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.6638, allocations: 81.11 kB / 453.5 MB, free: 2.652 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.6641, allocations: 218.8 kB / 453.7 MB, free: 2.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.6641, allocations: 25.7 kB / 453.7 MB, free: 2.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.6643, allocations: 250 kB / 454 MB, free: 2.152 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.6643, allocations: 29.14 kB / 454 MB, free: 2.125 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.6644, allocations: 8 kB / 454 MB, free: 2.117 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.6645, allocations: 314.8 kB / 454.3 MB, free: 1.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.027e-05/0.6646, allocations: 28.41 kB / 454.3 MB, free: 1.773 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.6647, allocations: 121.4 kB / 454.5 MB, free: 1.609 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.6649, allocations: 47.92 kB / 454.5 MB, free: 1.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6649, allocations: 0 / 454.5 MB, free: 1.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003771/0.6653, allocations: 161.8 kB / 454.7 MB, free: 1.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.6653, allocations: 8.031 kB / 454.7 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.6653, allocations: 4 kB / 454.7 MB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.6654, allocations: 7.953 kB / 454.7 MB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.6657, allocations: 43.91 kB / 454.7 MB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.6657, allocations: 4 kB / 454.7 MB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001789/0.6659, allocations: 12 kB / 454.7 MB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.6659, allocations: 8 kB / 454.8 MB, free: 1.312 MB / 378.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 (22): * Single equations (assignments): 22 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.666, allocations: 120.9 kB / 454.9 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/0.6661, allocations: 20.84 kB / 454.9 MB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002369/0.6663, allocations: 99.48 kB / 455 MB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.6663, allocations: 0 / 455 MB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.6664, allocations: 3.953 kB / 455 MB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.6664, allocations: 0 / 455 MB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006222/0.667, allocations: 419.3 kB / 455.4 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.667, allocations: 0 / 455.4 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.6672, allocations: 19.98 kB / 455.4 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.944e-06/0.6672, allocations: 3.984 kB / 455.4 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.6673, allocations: 7.984 kB / 455.4 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.6673, allocations: 7.938 kB / 455.4 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6673, allocations: 0 / 455.4 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.6676, allocations: 250.6 kB / 455.7 MB, free: 280 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.705e-05/0.6677, allocations: 96.92 kB / 455.8 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.429e-05/0.6678, allocations: 8 kB / 455.8 MB, free: 156 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.6679, allocations: 256 / 455.8 MB, free: 156 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.421e-05/0.668, allocations: 7.984 kB / 455.8 MB, free: 148 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.668, allocations: 4 kB / 455.8 MB, free: 144 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002287/0.6682, allocations: 167.1 kB / 456 MB, free: 15.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6682, allocations: 0 / 456 MB, free: 15.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004445/0.6687, allocations: 44 kB / 456 MB, free: 15.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000704/0.6694, allocations: 0.9175 MB / 456.9 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002524/0.6697, allocations: 95.98 kB / 457 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.6697, allocations: 0 / 457 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.156e-05/0.6698, allocations: 20 kB / 457 MB, free: 14.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.6703, allocations: 47.28 kB / 457.1 MB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.6716, allocations: 435.8 kB / 457.5 MB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.672, allocations: 0.7638 MB / 458.3 MB, free: 13.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.6722, allocations: 75.41 kB / 458.3 MB, free: 13.48 MB / 394.7 MB Notification: Performance of SimCode: time 8.01e-07/0.6722, allocations: 0 / 458.3 MB, free: 13.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.522/3.194, allocations: 3.669 MB / 462 MB, free: 9.812 MB / 394.7 MB