Static and dynamic modeling of a UPS system in an IP topology