I upgraded to the latest version 2.44.4 and ran the TradeTest script. All tests out fine.

Now running my script. Will see what happens.