SMS: Discrete time analysis of batch processes in material flow systems