I ran simulation for 128 nodes and used the following oo = gc.get_objects() print len(oo) on every time step the number of objects are increasing. For 128 nodes I had 1058177 objects. I think I need to revisit the code and remove the references....but how to do that. I am still a newbie coder and every help will be greatly appreciated. thanks