Hi - unfortunately THERMOS doesn't handle this for you.
You can probably solve this problem in QGIS or similar, but the specific operation will depend on the details of your data.
What you need to produce for THERMOS is a shapefile in which there is one polygon or multipolygon per building, with any attributes you want THERMOS to use associated with that polygon or multipolygon.