Tasrail recorded profit over financial year when loss was expected