Task state bug fix

* Fix initial state of prev task to RUN
* Fix this by creating one task per CPU
  with tid = 0, change system model task accessor0