Giorm: thanks for the script. We'll looked into its memory allocation, but could not confirm a garbage collection issue. The behavior is what you described: TESTNOW gave a memory fragmentation error since it had to allocate large memory areas. Due to the previous training run, there was not enough contiguous memory for them. Normally you must then reduce memory consumption per script, but sometimes it also helps just to restart Zorro. This will free all memory allocated by the script. The end of the training run only frees memory specific for the training.

You're at the border of available memory and thus get those effects.