error msg:
Calling finish() at end of Run #1...
terminate called after throwing an instance of 'omnetpp::cRuntimeError'
what(): Object App Registration Event is currently in (omnetpp::cEventHeap)simulation.scheduled-events, it cannot be deleted. If this error occurs inside omnetpp::cEventHeap, it needs to be changed to call drop() before it can delete that object. If this error occurs inside omnetpp::cEventHeap's destructor and App Registration Event is a class member, omnetpp::cEventHeap needs to call drop() in the destructor
In files(KBasicUBMApp.cc, KHeraldApp.cc and KMessengerApp.cc) finish(), before delete appRegistrationEvent;, drop may be called.