@@ -313,6 +313,10 @@
self.execute_modelverse("", "protect_temporary_variables", [])
self.mvs.purge()
self.execute_modelverse("", "unprotect_temporary_variables", [])
+
+ # Clean up all used memory now, as this is rather much due to the copy of the MvS
+ import gc
+ gc.collect()
</script>
<raise scope="broad" event="resume_task"/>
</onentry>
@@ -374,8 +374,8 @@ class ModelverseState(object):
self.to_delete.add(t)
def purge(self):
- print("PURGE")
- #return
+ initial_nodes = len(self.nodes)
+ initial_edges = len(self.edges)
while self.to_delete:
t = self.to_delete.pop()
@@ -1,7 +1,7 @@
"""
Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
-Date: Tue May 22 11:16:00 2018
+Date: Tue May 22 11:57:59 2018
Model author: Yentl Van Tendeloo
Model name: MvK Server