Yeah, ullage is one of those snarky terms we naval architects deal with all the time that has various meanings depending on context. Literally, ullage is the empty space in a liquid container. In shipbuilding, a tank only has one "capacity", and that is the total volume until the fluid begins to enter/exit the vents. So what do we call the amount of fluid in the tank when the tank is not at full capacity? The "ullage" of a tank is the general term.
Realistically, you could sound (measure the depth of the fluid in) the tank or you could measure the head space (the ullage measurement) in the tank. Note that a sounding tube does not have to be vertical, but the ullage measurement generally is (but not anymore with ultrasonic/RF ullage/capacity gages) . In any case, there is a table/graph/function that correlates the sounding/ullage to the amount of fluid in the tank. These are generally referred to a "tank capacity curves" if graphical or "Ullage tables" if not.
Physically however, there is a point where, for most ships tanks, the pump is unable to draw suction. Generally, a well laid out sounding tube will end right next to this suction inlet. As a designer, zero (0) sounding should be loss of suction and the "residual" which still has a ullage measurement is the "ullage" left in the tank. This will have a volume, weight, and free surface.
When inclining a ship, generally the requirement is to "press up" or "pump to residual" all tanks. Because you don't want fluid coming out the vents, and the fact that you can't get suction to completely empty the tank, this leads to the concept of the "working capacity" of any given tank. This is generally between 2 to 5% head space/residual depending on tank geometry meaning "working capacity" is between 90 to 96% of actual tank capacity.
There are two major exceptions to this that I know of. First, in submarine main ballast tanks, the water left in the tank after blow down is referred to as the "residual water" and carried as a fixed load in the load to submerge calculation. Secondly, in cargo tanks, any product left behind is the loss of real money. In this case, the tanks are "washed" and "stripped" by a secondary system to ensure that all money making cargo is removed.