Pipe break and leakage modelling