When I was doing maintenance purchasing for a trucking company, we had one tractor that would randomly lose power. No codes, no cel..just a complete lack of power. After several tows, lots of checking and rechecking, an ECM replacement we finally put our technical director in the truck with a laptop so he could monitor all the various sensors. Turned out the boost sensor would randomly drop out, so the ECM would cut fuel- resulting in no power. This taught me the value of a "flight recorder" so every sensor output can be reviewed.