Harmonious control between a HVDC simulation's rectifier and inverter