Digital Twins to Optimize Production Systems in Real Time