returns position of phase in phaseList array, -1 if not present
function getPhaseIndex input String phaseName; input Boolean caseSensitive = false; output Integer index "position of phase in phaseList array, -1 if not present"; end getPhaseIndex;