Because of the inherent flexibility of TRNSYS, this is not a straight-forward process and depends on what you are looking for in the energy consumption of the building. Gains from lighting and equipment are specified in the building model (Type56) either by specifying the schedules and rates inside of the building model using TRNBUILD or set as inputs and then specified outside of the building model using other components in the TRNSYS project. If you are specifying the gains inside of the building model you can use the balance output 958 for the total internal gains for a zone. If you are specifying the gains using other components in your project you can use the standard integrator and printer components to get the energy consumption. For an HVAC system, you can specify ideal heating and cooling systems inside the building component that calculate the amount of energy that needs to be added or removed from zone to maintain a setpoint. These energies can be output from the building model using multiple different outputs including QSENS, QLATD, QHEAT, QCOOL, etc. However this is energy input to the zone and not the energy consumption by an HVAC system. To determine the energy consumption of an HVAC system, you will need to include an HVAC system in your TRNSYS project.