1. opaque_construction.assembly_code must be of correct assembly type for construction
2. If you use ROOF1-ROOF4 construction you must also submit an opaque_construction of type ACEIL1-ACEIL4 to represent the ceiling construction and you must submit a space object of type attic with a story set to the level above.
The type of roof is determined by the construction name not by the type attribute:
ROOF1-ROOF4: Vented attic
ROOF5-ROOF6: Cathedral roof
ROOF7-ROOF8: Flat roof