Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.25/2.25, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.349e-05/3.346e-05, allocations: 7.938 kB / 302.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 53.24 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4437/0.5505, allocations: 97.04 MB / 452.6 MB, free: 4.645 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.5509, allocations: 91.94 kB / 452.7 MB, free: 4.555 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06216/0.6131, allocations: 14.28 MB / 467 MB, free: 6.145 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6131, allocations: 0 / 467 MB, free: 6.145 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.939e-05/0.6132, allocations: 20.16 kB / 467 MB, free: 6.125 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00237/0.6156, allocations: 0.9598 MB / 467.9 MB, free: 5.105 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.6156, allocations: 8.031 kB / 467.9 MB, free: 5.098 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002202/0.6159, allocations: 110.5 kB / 468 MB, free: 4.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.6161, allocations: 86.97 kB / 468.1 MB, free: 4.895 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004782/0.6209, allocations: 1.17 MB / 469.3 MB, free: 3.684 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.6211, allocations: 116.7 kB / 469.4 MB, free: 3.555 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001824/0.6213, allocations: 67.95 kB / 469.5 MB, free: 3.488 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.6233, allocations: 0.8138 MB / 470.3 MB, free: 2.629 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.6233, allocations: 0 / 470.3 MB, free: 2.629 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.6234, allocations: 28 kB / 470.3 MB, free: 2.602 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.6235, allocations: 16 kB / 470.3 MB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.625, allocations: 0.5452 MB / 470.9 MB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005741/0.6307, allocations: 2.748 MB / 473.6 MB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001895/0.6327, allocations: 0.8031 MB / 474.4 MB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005697/0.6333, allocations: 242.2 kB / 474.7 MB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.6333, allocations: 12.31 kB / 474.7 MB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006782/0.634, allocations: 302.5 kB / 475 MB, free: 13.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 3.427e-06/0.634, allocations: 0 / 475 MB, free: 13.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.003337/0.6374, allocations: 1.372 MB / 476.3 MB, free: 12.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.6375, allocations: 118.9 kB / 476.5 MB, free: 12.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008174/0.6383, allocations: 454 kB / 476.9 MB, free: 11.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.577e-05/0.6384, allocations: 37.7 kB / 476.9 MB, free: 11.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.6387, allocations: 355.8 kB / 477.3 MB, free: 11.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.6389, allocations: 142.1 kB / 477.4 MB, free: 11.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.639, allocations: 16 kB / 477.4 MB, free: 11.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.6392, allocations: 370.8 kB / 477.8 MB, free: 10.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.6397, allocations: 193.3 kB / 478 MB, free: 10.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006321/0.6404, allocations: 365.9 kB / 478.4 MB, free: 10.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006559/0.641, allocations: 283.2 kB / 478.6 MB, free: 9.855 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.6411, allocations: 4 kB / 478.6 MB, free: 9.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001822/0.6429, allocations: 0.812 MB / 479.4 MB, free: 9.004 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.539e-05/0.643, allocations: 53.69 kB / 479.5 MB, free: 8.945 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.643, allocations: 4 kB / 479.5 MB, free: 8.941 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003366/0.6434, allocations: 65.69 kB / 479.6 MB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.6441, allocations: 112.8 kB / 479.7 MB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.647, allocations: 2.837 MB / 482.5 MB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006918/0.6478, allocations: 36.05 kB / 482.6 MB, free: 5.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.6479, allocations: 43.97 kB / 482.6 MB, free: 5.578 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.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): 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002309/0.6481, allocations: 148.7 kB / 482.7 MB, free: 5.426 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.6483, allocations: 55.34 kB / 482.8 MB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.6497, allocations: 0.5963 MB / 483.4 MB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.6498, allocations: 7.953 kB / 483.4 MB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6498, allocations: 4 kB / 483.4 MB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.6498, allocations: 3.984 kB / 483.4 MB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002937/0.6528, allocations: 1.425 MB / 484.8 MB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.6528, allocations: 4 kB / 484.8 MB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005672/0.6534, allocations: 59.91 kB / 484.9 MB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003094/0.6537, allocations: 81.56 kB / 485 MB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.117e-05/0.6538, allocations: 19.98 kB / 485 MB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.6565, allocations: 2.833 MB / 487.8 MB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6566, allocations: 4.25 kB / 487.8 MB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.6586, allocations: 0.9353 MB / 488.8 MB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.659, allocations: 176.3 kB / 488.9 MB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.6591, allocations: 29.3 kB / 489 MB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007333/0.6599, allocations: 47.89 kB / 489 MB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.66, allocations: 31.97 kB / 489 MB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.6601, allocations: 15.98 kB / 489.1 MB, free: 14.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006275/0.6607, allocations: 349.5 kB / 489.4 MB, free: 14.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6607, allocations: 0 / 489.4 MB, free: 14.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001013/0.6617, allocations: 152 kB / 489.5 MB, free: 14.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * 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: 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002553/0.6643, allocations: 1.712 MB / 491.3 MB, free: 12.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.6662, allocations: 0.8098 MB / 492.1 MB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.6663, allocations: 0 / 492.1 MB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009887/0.6673, allocations: 447.7 kB / 492.5 MB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.6685, allocations: 145.9 kB / 492.6 MB, free: 10.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.6721, allocations: 1.292 MB / 493.9 MB, free: 9.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007551/0.6729, allocations: 0.9913 MB / 494.9 MB, free: 8.551 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000617/0.6735, allocations: 104.9 kB / 495 MB, free: 8.449 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/0.674, allocations: 227.4 kB / 495.3 MB, free: 8.227 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/0.674, allocations: 0 / 495.3 MB, free: 8.227 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04971/0.7237, allocations: 12.21 MB / 0.4956 GB, free: 12.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000288/0.7241, allocations: 169 kB / 0.4957 GB, free: 11.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.535/3.259, allocations: 0 / 0.4957 GB, free: 11.88 MB / 442.7 MB