I've been down the same road past two years, the IB 1040 is most likely correct.
Strip out the option trades, don't forget to add in the bond/notes etc.. they will match. Use tradelog if you want the easy path, they don't factor in the notes/bonds but it makes life a lot easier if you have a...