"Error in if (target < min(modVar)) { : the condition has length > 1" in a LOSEM analysis using OpenMX under R

Please include a reprex (see the FAQ) using twinData or one of the other builtin datasets from umx or OpenMX if that reproduces the problem; otherwise enough of the data you are actually using.