max(a, b) returns the maximum of the two values a and b. It only accepts two arguments. Getting the maximum of six input signals is a bit cumbersome:
max(u[1], max(u[2], max(u[3], max(u[4], max(u[5], u[6])))))
The same applies to min(a, b).
'u' only references the first input signal and is the same as u(1) or u[1].
You could also use intrinsic blocks (max, min, sum and gain) to achieve the desired functionality.