This sounds like a homework question (edit below with more info once you explained that it isn't a homework question), so I'm just going to give hints.
First of all, notice that power can be written as
$P = Fv$
So if the engine power is fixed then at very low speed it can develop very high force. But the maximum force is dictated by static friction, which is probably what you are describing as "traction". So, below some speed the train's acceleration is limited by the maximum static friction (which is constant). Above this speed it is limited by the power since in this regime as $v$ increases the maximum force developed by the engine decreases.
So the v(t) curve will have two parts: a low speed part with constant acceleration, and a higher speed part with constant power. These will have different functional forms in terms of time.
What is the source of the maximum speed? Do you have information about drag forces? If not then I don't know how you would factor in a maximum speed. If you do have information about drag forces then you should be able to calculate a maximum speed using them. But if you are supposed to include drag forces then your v(t) curve becomes much harder to solve for.
Later edit once it was clear that it wasn't a homework problem.
So, the train accelerates because the the wheels exert a frictional force forward. This frictional force will be limited by the coefficient of static friction. So, if the friction force is at its maximum value (if the engine throttled up any higher the wheels would just slip) Newton's 2nd law says (if the train is on a flat surface so the normal force is $mg$)
$ma = \mu_s mg$
where $m$ is the mass of the train, $\mu_s$ is the static friction coefficient. Look up $\mu_s$ for steel on steel. So this just means that when the static friction is maximum the acceleration is
$a = \mu_s g$
Note that this is constant. Let's call this constant acceleration which is achieved at low speed $a_l$. So the $v(t)$ curve will, for low speed, be just
$v(t) = a_l t$
which is a straight line. The frictional force is just $f_s = \mu_s mg$ and is a constant. But, notice that the maximum power is set by the engine. Let's call it $P_{max}$. As the train speeds up the power $P = f_s v$ will increase. But this means eventually it will equal $P_{max}$. After this time the force decreases (the engine can't do enough work to keep the acceleration at the same rate at these higher speeds). So above this speed, neglecting air drag
$f_s = ma = \frac{P_{max}}{v}$
This is a differential equation since $a = dv/dt$. So, if the time when $P = P_{max}$ for the first time is called $t_c$, and the speed at that moment is $v_c$ we will have
$\int_{v_c}^v v' dv' = \frac{P_{max}}{m} \int_{t_c}^t dt'$
which can be solved to yield a $v(t)$ valid after $t_c$.
Now, neglecting drag is not a good approximation, but it makes the integral much easier. But if we neglect drag then the train has no maximum speed since we get $v \sim \sqrt{t}$, which grows without bound. So, if all of the above is clear try adding drag in to get a more realistic answer.