Try feeding in just the first room and see if that changes the results.
are the elements (that you want referenced, not talking about rooms but the elements inside the rooms) inside the current model?
This is the block of code that’s failing, specifically the bbox line as one of your references isn’t returning valid geometry. Comment these lines out and see if everything else works. You may just have a corrupt instance of geometry or a weird multi-faceted floor/ceiling/roof (I’ve definitely had issues with some of these myself).