As Hydrogen-Oxygen proton exchange membrane fuel cell(known as PEMFC) technology spreads in automotive field, energy efficiency improvement and precise performance control of fuel cell systems becomes critical for industrial applications. As a matter of fact, the dynamic performance of PEMFC is profoundly influenced by a variant of working conditions like temperature, working pressure and reactant and product transfer in the fuel cell. Therefore precise and physical oriented modeling methodology of fuel cell systems should be invested for vehicle energy system design and validation. This paper illustrates a fuel cell system modelling solution based on Modelica together with its supporting library including stack and main components developed by Catarc. This library is developed for fuel cell system modeling, simulation and further control design. An application of this method from reality is listed in this paper to state how this library is applied in a user case of stack temperature control.