Simulation of human-machine-interaction for the detection of human errors