Thursday 's profit report came as a surprise to many analysts who had expected further losses from the struggling auto company .