Hazard and operability analysis is a decisive factor to evaluate safety and reliability of plants considering the propagated effects due to consecutive failures of known critical components. A good design and analysis practice increases the robustness of the considered system in different operating conditions; however, in the plant design process, the use of a model-based design approach is fundamental to increase speed, efficiency and reliability. In this work, a tool for the 1-D simulation of thermal hydraulic plants is presented and applied to the analysis of critical system for compressor and gas turbine units, e.g. the lubrication circuits. Different from known commercial products, the proposed tool is implemented to work in cooperation with PidXP TM (the GE Nuovo Pignone P&ID definition tool), and it is optimized for fixed step solvers in order to easily include the rotating machine control logics within the simulation environment (essential prerequisite for hazard and operability evaluations). All the above makes it suitable for the fast prototyping of real time code. Moreover, the proposed tool represents a general tool in the model-based approach, and it can be used as a Simulink TM library of components that have been optimized and specifically designed in order to make easier the automatic generation of simulation models from P&Id schemes and technical documentation, reducing errors associated to data transcription and operator misbehaviour. In this work, proposed approach and test bench on experimental data for validation purposes are shown.