private void validateFail(Context context, String output, int exitCode, SearchCluster sc, String sdName) {
        StringBuilder message = new StringBuilder("Error in rank setup in schema '").append(sdName)
                .append("' for content cluster '").append(sc.getClusterName()).append("'.").append(" Details:\n");
        if (output.isEmpty()) {
            message.append("Verifying rank setup failed and got no output from stderr and stdout from '")
                   .append(binaryName)
                   .append("' (exit code: ")
                   .append(exitCode)
                   .append(").");
            if (exitCode == 137)
                message.append(" Exit code 137 usually means that the program has been killed by the OOM killer")
                       .append(", too little memory is allocated for the instance/container/machine");
            else
                message.append(" This could be due to full disk, out of memory etc. ");
        } else {
            for (String line : output.split("\n")) {
                // Remove debug lines from start script
                if (line.startsWith("debug\t")) continue;
                try {
                    LogMessage logMessage = LogMessage.parseNativeFormat(line);
                    message.append(logMessage.getLevel())
			    .append(": ")
			    .append(logMessage.getPayload().replace("\\n", "\n\t"))
			    .append("\n");
                } catch (InvalidLogFormatException e) {
                    message.append(line).append("\n");
                }
            }
        }

        if (ignoreValidationErrors) {
            context.deployState().getDeployLogger().log(Level.WARNING, message.append("(Continuing since ignoreValidationErrors flag is set.)").toString());
        } else {
            context.illegal(message.toString());
        }
    }
Validates rank setup for all content clusters (rank-profiles, index-schema, attributes configs), validation is done
by running the binary 'vespa-verify-ranksetup-bin'

@author vegardh
config-model/src/main/java/com/yahoo/vespa/model/application/validation/RankSetupValidator.java