3500rpm is the limit it is held to if you hold in the clutch, so possibly a sensor relating to the clutch could be the issue? It doesn't know you have released the pedal and continues to limit it maybe? Does it rev normally up to that point and then stop? What happens if you are stationary and have the car in neutral and try to rev past 3500?