Hybrid Modelling of Manufacturing Systems with Flexible Automation