Added states at port for use in the assert block, and cleaned up code formatting.
Replaced source model to allow model check in pedantic mode with MSL 3.2 and Dymola 2014 FD01 beta3
Added missing each keyword.
Removed show_V_flow, and reformulated model to avoid an event in computing the states at the port.

The noEvent operator is correct in this case because sta_a is a
conditionally removed variable, and hence it is only allowed to be used
as a reporting variable. It would be invalid to use it in any equation.
Reformulated computation of outlet properties to avoid an event at zero mass flow rate.
Removed propagation of show_V_flow
Reformulated model to avoid an event iteration.
Reference result files changed due to a bug fix in the Python script that led to some variables not being plotted.