for profileNum = 1:2
      if(profileNum == 1)
        startDT = 3;
    else
        startDT = 2;
      end
      
    dtLength = min(length(profile(profileNum).pumpJoulesDT), length(profile(profileNum).hotelJoulesDT));
    totalJoules = profile(profileNum).hotelJoules(startDT:dtLength) + profile(profileNum).pumpJoules(startDT:dtLength);

    hold on
    yyaxis left;
    p(1) = plot(profile(profileNum).pumpJoulesDT(startDT:end), profile(profileNum).pumpJoules(startDT:end), "DisplayName", 'pumpJoules');
    ylabel('Pump Energy (Joules)')
    p(2) = plot(profile(profileNum).hotelJoulesDT(startDT:end), profile(profileNum).hotelJoules(startDT:end), "DisplayName", 'hotelJoules');
    ylim([0 25000])
    
    yyaxis right
    %p(3) = plot(profile(profileNum).hotelJoulesDT(startDT:end), totalJoules(startDT:end), "DisplayName", 'totalJoules');
    ylim([0 25000])
    
    title(['Pump and Hotel Energy ' profile(profileNum).fileName]);
    ylabel('Total Energy (Joules)')
    xlabel('Time');
    plotStateTransitions(td{profileNum}, profile(profileNum).DT);
    %legend(p(1:3))
end