There might be no solver message in solution file. For example, a MINLP solver minotaur generates solution file without any solver message. To address such case, please incorporate the following modification to lines 574-579 in AmplNLWriter.jl:
# Skip the following lines when there is no solver message or just white spaces.
if strip(chomp(line)) != "Options"
# Keep building solver message by reading until empty line
while true
m.solve_message *= line
line = readline(f)
strip(chomp(line)) == "" && break
end
@assert chomp(readline(f)) == "Options"
end
There might be no solver message in solution file. For example, a MINLP solver minotaur generates solution file without any solver message. To address such case, please incorporate the following modification to lines 574-579 in AmplNLWriter.jl: