© 2016 IEEE. Cosimulation platforms are necessary to study the interactions of complex systems integrated in future smart grids. The Virtual Grid Integration Laboratory (VirGIL) is a modular cosimulation platform designed to study interactions between demand-response (DR) strategies, building comfort, communication networks, and power system operation. This paper presents the coupling of power systems, buildings, communications, and control under a master algorithm. There are two objectives: first, to use a modular architecture for VirGIL, based on the functional mockup interface (FMI), where several different modules can be added, exchanged, and tested; and second, to use a commercial power system simulation platform, familiar to power system operators, such as DIgSILENT PowerFactory. This will help reduce the barriers to the industry for adopting such platforms, investigate and subsequently deploy DR strategies in their daily operation. VirGIL further introduces the integration of the quantized state system (QSS) methods for simulation in this cosimulation platform. Results on how these systems interact using a real network and consumption data are also presented.