Change input to a bus "Is" composed of doubles "Id" and "Iq". Specify bus structure. God this is a huge mess.