Unless I'm greatly mistaken (and I may be since I know very little about models, hence the question here), the script depends on a floating point return value from the model. If the model isn't done the same as the BIS stuff, it may return a totally different set of numbers, maybe even just junk.
I'm not doubting that it works OK with BIS units themselves since they're most likely done relatively consistently. But if you go throwing it at an addon unit, you can't actually predict what numbers it will return.
If I'm incorrect, then please say so, without a doubt.