The loan only needed to be repaid if those objectives weren’t reached.

When A123 filed for bankruptcy in October, it had hit the employment targets necessary for forgiveness of the first half of the loan, but about $2.5 million remained outstanding.

With the $3 million payment received by the state, that money has now been repaid with interest, said Krista Selmi, a spokeswoman for the Executive Office of Energy and Environmental Affairs.

Wanxiang America Corp., the North American subsidiary of the Chinese auto parts conglomerate Wanxiang Group, finalized its purchase of nearly all of A123’s assets Tuesday, after receiving word that it had gotten the necessary federal approval to move forward with the deal.