refers to https://github.com/openETCS/modeling/issues/40
Change of memory function implemented (not tested yet)