You are adding the whole graph to bmv, which is why you need more memory in each iteration.
If you only need the output without its graph stored/added in bmv, use outputs.data and have a look if your memory consumption still grows.