model: routine to check if execution is complete