answered 2023-01-30 23:59:32 -0500
After debugging I identified that the cause was a missing END statement in the last line of the sub file, ending the file as a whole rather than ending a subsystem definition block.