Production control for a tandem two-machine system