Co-simulation of the package and transducer