k. (i) The department shall perform a building-wide inspection of a building that is subject to the requirements of the alternative enforcement program if: (1) the owner has been notified that such building has not been discharged from the program pursuant to subdivision i of this section, or (2) the owner has failed to respond to written notification by the department in accordance with subdivision g of this section. Such building-wide inspection shall be commenced no later than thirty days after notice is given to the owner pursuant to paragraph ii of subdivision j of this section. After such building-wide inspection is completed, the department shall issue an order to such owner to correct existing violations of this code and the multiple dwelling law and any new violations written since the notification of the owner in accordance with subdivision g of this section and repair the related underlying conditions as shall be specified in such order, provided, however, that if such inspection does not indicate that any building systems must be repaired or replaced, the order may be limited to requiring the owner to correct violations of this code and the multiple dwelling law and any physical defects. Such building-wide inspection shall be completed and such order issued within ninety days of commencement of the building-wide inspection. Such order shall be filed in the office of the county clerk in the county in which the building is located. For purposes of this article, a "related underlying condition" shall mean a physical defect or failure of a building system that is causing or has caused a violation, such as, but not limited to, a structural defect, or failure of a heating or plumbing system.