Extending Sim# for simulation-based optimisation of semi-automated machinery. (2017)