babsimHospital leaks memory somewhere. Cursory testing indicates, that simmer "collects" tons of stuff in the parent environment of the result of run(). I think this is unintended and setting the parent environment to emptyenv() seems to help, but this needs more testing!