The script compiles without errors in the FMB compiler. When I run the mission, I get 2 outcomes in about 50/50 proportion:
(1) mission load & runs OK & time/weather is random

(2) mission load fails & I get an "object reference not set to an instance of an object" error dialog window.