Dear Massimo,
I have a similar problem with my calculations and virtual memory usage. I ask you, therefore, if settign $HistoryLength = 1 worked for you, since I too probably need the outputs of the previous blocks in my code. Any suggestions would be appreciated.
Thanks!