Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.382/2.382, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.174e-05/4.183e-05, allocations: 11.92 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4603/0.5799, allocations: 96.94 MB / 451.5 MB, free: 4.941 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003438/0.5803, allocations: 87.95 kB / 451.6 MB, free: 4.855 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07449/0.6548, allocations: 15.6 MB / 467.2 MB, free: 5.098 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.6549, allocations: 0 / 467.2 MB, free: 5.098 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.998e-05/0.6549, allocations: 15.94 kB / 467.2 MB, free: 5.082 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003975/0.6589, allocations: 1.046 MB / 468.3 MB, free: 3.977 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.659, allocations: 8.031 kB / 468.3 MB, free: 3.969 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004297/0.6594, allocations: 110.5 kB / 468.4 MB, free: 3.852 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.6598, allocations: 88.59 kB / 468.5 MB, free: 3.766 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005878/0.6657, allocations: 1.216 MB / 469.7 MB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007778/0.6665, allocations: 346.8 kB / 470 MB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002912/0.6668, allocations: 63.95 kB / 470.1 MB, free: 2.055 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.6693, allocations: 0.8974 MB / 471 MB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.6694, allocations: 0 / 471 MB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.6695, allocations: 24 kB / 471 MB, free: 1.094 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.6696, allocations: 12 kB / 471 MB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.6721, allocations: 0.8335 MB / 471.9 MB, free: 252 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009073/0.6812, allocations: 3.251 MB / 475.1 MB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.683, allocations: 0.5345 MB / 475.7 MB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001143/0.6841, allocations: 409.6 kB / 476.1 MB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-05/0.6842, allocations: 8.422 kB / 476.1 MB, free: 11.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.6855, allocations: 488.9 kB / 476.5 MB, free: 11.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.667e-06/0.6855, allocations: 0 / 476.5 MB, free: 11.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002149/0.6877, allocations: 0.6637 MB / 477.2 MB, free: 10.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.6878, allocations: 141.7 kB / 477.3 MB, free: 10.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000654/0.6885, allocations: 335.1 kB / 477.7 MB, free: 10.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.6887, allocations: 41.69 kB / 477.7 MB, free: 10.22 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.689, allocations: 334.8 kB / 478 MB, free: 9.895 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.6893, allocations: 161.7 kB / 478.2 MB, free: 9.734 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.86e-05/0.6894, allocations: 12 kB / 478.2 MB, free: 9.723 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.6895, allocations: 330.8 kB / 478.5 MB, free: 9.391 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009347/0.6905, allocations: 345.2 kB / 478.9 MB, free: 9.051 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009975/0.6915, allocations: 437.4 kB / 479.3 MB, free: 8.586 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008903/0.6924, allocations: 344.8 kB / 479.6 MB, free: 8.242 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.6924, allocations: 4 kB / 479.6 MB, free: 8.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002242/0.6947, allocations: 0.8126 MB / 480.4 MB, free: 7.414 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.225e-05/0.6948, allocations: 49.69 kB / 480.5 MB, free: 7.359 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.6948, allocations: 4.641 kB / 480.5 MB, free: 7.355 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/0.6949, allocations: 11.95 kB / 480.5 MB, free: 7.344 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0128/0.7077, allocations: 1.592 MB / 482.1 MB, free: 5.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.719, allocations: 4.075 MB / 486.2 MB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.7205, allocations: 139.4 kB / 486.3 MB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.7207, allocations: 39.97 kB / 486.4 MB, free: 1.238 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003478/0.7211, allocations: 154.5 kB / 486.5 MB, free: 1.078 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.7213, allocations: 49.12 kB / 486.6 MB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002121/0.7234, allocations: 0.7077 MB / 487.3 MB, free: 320 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.7235, allocations: 4 kB / 487.3 MB, free: 316 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.7235, allocations: 7.984 kB / 487.3 MB, free: 308 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.7235, allocations: 0 / 487.3 MB, free: 308 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/0.7281, allocations: 1.866 MB / 489.1 MB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/0.7282, allocations: 4 kB / 489.1 MB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01553/0.7437, allocations: 1.846 MB / 491 MB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.811e-05/0.7438, allocations: 4 kB / 491 MB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001834/0.744, allocations: 15.98 kB / 491 MB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.744, allocations: 0 / 491 MB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.744, allocations: 4 kB / 491 MB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.7475, allocations: 1.367 MB / 492.4 MB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005512/0.7481, allocations: 200.5 kB / 492.6 MB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001928/0.7483, allocations: 27.98 kB / 492.6 MB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.7497, allocations: 127.9 kB / 492.7 MB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/0.7501, allocations: 91.8 kB / 492.8 MB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-05/0.7502, allocations: 12 kB / 492.8 MB, free: 10.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005062/0.7507, allocations: 273.1 kB / 493.1 MB, free: 10.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.62e-07/0.7507, allocations: 3.938 kB / 493.1 MB, free: 10.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001088/0.7518, allocations: 187.5 kB / 493.3 MB, free: 10.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.004104/0.7559, allocations: 2.422 MB / 495.7 MB, free: 7.609 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01198/0.768, allocations: 2.054 MB / 497.8 MB, free: 5.543 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.768, allocations: 0 / 497.8 MB, free: 5.543 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005891/0.7739, allocations: 0.9604 MB / 498.7 MB, free: 4.582 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.7752, allocations: 123.4 kB / 498.8 MB, free: 4.461 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006997/0.7822, allocations: 1.494 MB / 0.4886 GB, free: 2.898 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009887/0.7832, allocations: 0.945 MB / 0.4895 GB, free: 1.926 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008862/0.7842, allocations: 199.4 kB / 0.4897 GB, free: 1.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.212e-06/0.7842, allocations: 3.938 kB / 0.4897 GB, free: 1.727 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.196/3.98, allocations: 13.78 MB / 0.5032 GB, free: 3.961 MB / 442.7 MB