Either a rough commutater or poor wiring...
If a motor is a fresh rebuild it will smell for 2 mins after first run. That's probably not it, but this smell is definitely carbon brush/armature isssues. COuld also be faulty wiring after a rebuild, poor connections, burning grease in the bearings...