thermal model compiling