Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.33/2.33, allocations: 233 MB / 245.6 MB, free: 15.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.701e-05/3.708e-05, allocations: 4 kB / 301.4 MB, free: 8.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 53.24 MB / 354.6 MB, free: 2.742 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/0.5707, allocations: 107.4 MB / 461.9 MB, free: 10.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003516/0.5711, allocations: 91.95 kB / 462 MB, free: 10.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1071/0.6782, allocations: 23.97 MB / 486 MB, free: 2.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6783, allocations: 0 / 486 MB, free: 2.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.098e-05/0.6783, allocations: 24 kB / 486 MB, free: 2.375 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004145/0.6825, allocations: 1.335 MB / 487.4 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.6826, allocations: 8.031 kB / 487.4 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00053/0.6831, allocations: 160.1 kB / 487.5 MB, free: 0.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001339/0.6845, allocations: 174.5 kB / 487.7 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006477/0.691, allocations: 1.372 MB / 489.1 MB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002731/0.6913, allocations: 171.1 kB / 489.2 MB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.6917, allocations: 104 kB / 489.3 MB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00361/0.6953, allocations: 1.413 MB / 490.8 MB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.43e-05/0.6954, allocations: 4 kB / 490.8 MB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.6956, allocations: 43.94 kB / 490.8 MB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.6958, allocations: 57.98 kB / 490.9 MB, free: 13.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.6987, allocations: 1.015 MB / 491.9 MB, free: 12.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01098/0.7097, allocations: 4.794 MB / 496.7 MB, free: 7.363 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002445/0.7122, allocations: 0.887 MB / 497.6 MB, free: 6.438 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.7135, allocations: 0.4907 MB / 498 MB, free: 5.945 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.367e-05/0.7136, allocations: 12.55 kB / 498.1 MB, free: 5.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001515/0.7152, allocations: 0.6325 MB / 498.7 MB, free: 5.277 MB / 426.7 MB Notification: Performance of pre-optimization done (n=82): time 3.537e-06/0.7152, allocations: 3.938 kB / 498.7 MB, free: 5.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=83): time 0.006298/0.7215, allocations: 2.368 MB / 0.4893 GB, free: 2.824 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.7216, allocations: 127.3 kB / 0.4894 GB, free: 2.672 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.7227, allocations: 0.5048 MB / 0.4899 GB, free: 2.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.7228, allocations: 53.75 kB / 0.49 GB, free: 2.102 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005158/0.7234, allocations: 493.5 kB / 0.4905 GB, free: 1.613 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003789/0.7238, allocations: 280.1 kB / 0.4907 GB, free: 1.336 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-05/0.7239, allocations: 16 kB / 0.4907 GB, free: 1.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.7241, allocations: 360 kB / 0.4911 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.7253, allocations: 0.4904 MB / 0.4916 GB, free: 484 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.7268, allocations: 0.7563 MB / 0.4923 GB, free: 15.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.7282, allocations: 0.6348 MB / 0.4929 GB, free: 14.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.7283, allocations: 4 kB / 0.4929 GB, free: 14.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003833/0.7321, allocations: 1.55 MB / 0.4944 GB, free: 13.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.7323, allocations: 61.64 kB / 0.4945 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003161/0.7354, allocations: 1.366 MB / 0.4958 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/0.736, allocations: 105.6 kB / 0.4959 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.7376, allocations: 191.7 kB / 0.4961 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003445/0.741, allocations: 2.978 MB / 0.499 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.7424, allocations: 75.84 kB / 0.4991 GB, free: 8.297 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.7426, allocations: 72.03 kB / 0.4992 GB, free: 8.227 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004153/0.743, allocations: 188.8 kB / 0.4993 GB, free: 8.035 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.7433, allocations: 75.06 kB / 0.4994 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.7463, allocations: 1.104 MB / 0.5005 GB, free: 6.824 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.565e-05/0.7464, allocations: 23.98 kB / 0.5005 GB, free: 6.801 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.7464, allocations: 0 / 0.5005 GB, free: 6.801 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/0.7464, allocations: 7.984 kB / 0.5005 GB, free: 6.793 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005711/0.7522, allocations: 2.281 MB / 0.5027 GB, free: 4.422 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.7522, allocations: 3.938 kB / 0.5027 GB, free: 4.418 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.7537, allocations: 147.8 kB / 0.5029 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.7538, allocations: 28.94 kB / 0.5029 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001269/0.7539, allocations: 23.97 kB / 0.5029 GB, free: 4.219 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.7553, allocations: 1.387 MB / 0.5043 GB, free: 2.699 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7553, allocations: 0 / 0.5043 GB, free: 2.699 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003981/0.7593, allocations: 1.739 MB / 0.506 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006202/0.76, allocations: 244 kB / 0.5062 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003184/0.7603, allocations: 79.94 kB / 0.5063 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.7618, allocations: 107.8 kB / 0.5064 GB, free: 456 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.762, allocations: 52.7 kB / 0.5065 GB, free: 404 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/0.7621, allocations: 31.97 kB / 0.5065 GB, free: 372 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007584/0.7629, allocations: 393.7 kB / 0.5069 GB, free: 15.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.7629, allocations: 0 / 0.5069 GB, free: 15.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001454/0.7643, allocations: 252.2 kB / 0.5071 GB, free: 15.72 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.00468/0.769, allocations: 2.66 MB / 0.5097 GB, free: 12.99 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003537/0.7726, allocations: 1.548 MB / 0.5112 GB, free: 11.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.7727, allocations: 4.125 kB / 0.5112 GB, free: 11.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.7741, allocations: 0.5709 MB / 0.5118 GB, free: 10.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.7754, allocations: 159 kB / 0.5119 GB, free: 10.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005976/0.7814, allocations: 2.233 MB / 0.5141 GB, free: 8.383 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.7825, allocations: 1.126 MB / 0.5152 GB, free: 7.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009201/0.7834, allocations: 339.3 kB / 0.5155 GB, free: 6.898 MB / 458.7 MB Notification: Performance of SimCode: time 1.343e-06/0.7834, allocations: 0 / 0.5155 GB, free: 6.898 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.676/4.46, allocations: 21.49 MB / 0.5365 GB, free: 128 MB / 458.7 MB