Optimizing Mechatronic Systems Using Simulation