It's better to ask in Plant Simulation forum.
Regarding your model, there are several minor problems. To understand why it's not working, look if there is error description in the bottom of method window.
1) Rename TableFile1 object to Table_Data.
2) " missed in line 7
3) Names of columns are different from what you type in code (for example, extra space in the end)
4) Use "Failure" instead of "Failure1" in Init method
5) Remove or comment out last line in cycle (Machine.failures.failure1.MTTR.stream:=table_Data["Stream",i]) - it's not needed in 14.1