Machine learning-based modeling and controller tuning of a heat pump