The TrueRMS.pm part adds window sizes after the header #endif in the MODEL.h header. Moving endif print to right before the header file close so they are contained.
Old generated header:
New generated header: