Filter your serial.log by "Recv: T:" to see the responses back from your RAMPS board. 230, 230, 230...
And then around "2018-05-21 15:42:00,666" things don't look so good for your T0 extruder. By "2018-05-21 15:43:13,670" the temperature has reached the fatal 170C threshold of plasticity and the failsafe kicks in. In the span of about a minute, it just cooled rapidly. So now, was it set to zero or did the connection fail?
ONOZ (it's subtle but this tells the story):
2018-05-21 15:41:52,667 - Recv: T:230.53 /230 B:100.06 /100 B@:145 @:57
2018-05-21 15:41:53,669 - Recv: T:230.53 /0 B:100.06 /0 B@:0 @:100:
That "/0" means that the target for T0 is now 0. Oh... and also the bed!
Filter this time by "2018-05-21 15:41:5" and let's see what happened.
2018-05-21 15:41:52,667 - Recv: T:230.53 /230 B:100.06 /100 B@:145 @:57
2018-05-21 15:41:52,695 - Recv: ok
2018-05-21 15:41:52,699 - Send: N13285 G1 X172.375 Y161.062 E25.8742*102
2018-05-21 15:41:52,719 - Recv: ok
2018-05-21 15:41:52,723 - Send: N13286 G1 X172.375 Y160.355 E25.9036*102
2018-05-21 15:41:53,150 - Recv: ok
2018-05-21 15:41:53,154 - Send: N13287 G1 X166.645 Y154.624 E26.2405*108
2018-05-21 15:41:53,156 - Recv: ok
2018-05-21 15:41:53,160 - Send: N13288 G1 X167.352 Y154.624 E26.2699*102
2018-05-21 15:41:53,584 - Recv: ok
2018-05-21 15:41:53,588 - Send: N13289 G1 X172.375 Y159.648 E26.5652*97
2018-05-21 15:41:53,608 - Recv: ok
2018-05-21 15:41:53,612 - Send: N13290 G1 X172.375 Y158.940 E26.5946*101
2018-05-21 15:41:53,669 - Recv: T:230.53 /0 B:100.06 /0 B@:0 @:0
Wait... what...? Suddenly you went from a set extruder/bed to cleared (zero) for both. Reviewing the stack of commands above this, there's nothing that was sent to merit that change.
Looks like mk4duo, if I were to guess.
What this isn't:
- This isn't the power supply because the set temperatures would have stayed where they were supposed to be
- This isn't OctoPrint since it didn't clear those set temperatures
- This doesn't feel like a single sensor or heating element since the set temperatures were actually cleared in the RAMPS board somehow