<div dir="ltr"><span style="font-size:13px">Anil, if you feel confident using debuggers, it may help to get some more information about this bug. You would need a debug build of both ipopt and the mex interface, start the debugger, and wait for the bug to occur (</span><a href="http://www.mathworks.com/help/matlab/matlab_external/debugging-on-mac-platforms.html" target="_blank" style="font-size:13px">http://www.mathworks.com/help/matlab/matlab_external/debugging-on-mac-platforms.html</a><span style="font-size:13px"> ).</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 19, 2015 at 2:02 PM, Anil V. Rao <span dir="ltr"><<a href="mailto:anilvrao@gmail.com" target="_blank">anilvrao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Tony </div><div><br></div><div>I am surprised that Windows is the most stable platform for using Ipopt with MATLAB. I switched to a Mac for stability and I am finding that it might not have been the best decision in the long run. </div><span class=""><div><br></div><div>Anil<br><br>Anil V. Rao, PhD<div>Associate Professor</div><div>Department of Mechanical and Aerospace Engineering</div><div>University of Florida </div><div>Gainesville, FL 32611-6250</div><div>Tel: <a href="tel:352-672-1529" value="+13526721529" target="_blank">352-672-1529</a> (cell)</div><div>Email: <a href="mailto:anilvrao@gmail.com" target="_blank">anilvrao@gmail.com</a></div></div></span><div><div class="h5"><div><br>On Jan 19, 2015, at 1:41 PM, Tony Kelman <<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>> wrote:<br><br></div><blockquote type="cite"><div>
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>No one who has reported these issues has yet provided a reproducible test
case, so I don’t know. My guess is users on Linux would have reported problems
if they were having any. There are plenty of build-related problems having to do
with integer sizes in BLAS on Linux, but I know how to solve those. From what
I’ve seen, the Linux mex file either doesn’t work at all when the linear solver
tries to use BLAS because of an integer size mismatch, or it works fairly
reliably without crashing.</div>
<div> </div>
<div>I also don’t have access to Matlab on any Linux machines at the moment, so
even if someone were to send me a test problem I wouldn’t be able to run it
under Linux Matlab right now.</div>
<div> </div>
<div>-Tony</div>
<div> </div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="anilvrao@gmail.com" href="mailto:anilvrao@gmail.com" target="_blank">Anil V. Rao</a> </div>
<div><b>Sent:</b> Monday, January 19, 2015 10:27 AM</div>
<div><b>To:</b> <a title="kelman@berkeley.edu" href="mailto:kelman@berkeley.edu" target="_blank">Tony Kelman</a> </div>
<div><b>Cc:</b> <a title="ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org" target="_blank">mailto:ipopt@list.coin-or.org</a> </div>
<div><b>Subject:</b> Re: [Ipopt] Continual Crashes with Mac OS-X MATLAB Mex
Files</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div>Tony</div>
<div> </div>
<div>Does this same problem exist in linux?</div>
<div> </div>
<div>Anil<br><br>Anil V. Rao, PhD
<div>Associate Professor</div>
<div>Department of Mechanical and Aerospace Engineering</div>
<div>University of Florida </div>
<div>Gainesville, FL 32611-6250</div>
<div>Tel: <a href="tel:352-672-1529" value="+13526721529" target="_blank">352-672-1529</a> (cell)</div>
<div>Email: <a href="mailto:anilvrao@gmail.com" target="_blank">anilvrao@gmail.com</a></div></div>
<div><br>On Jan 19, 2015, at 12:30 PM, Tony Kelman <<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>>
wrote:<br><br></div>
<blockquote type="cite">
<div>
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Not owning an actual Mac myself, all I can say here is keep trying
different combinations of Blas and Lapack implementations (BUILD vs -framework
Accelerate vs -lblas), and GCC vs Clang compilers for the C and C++
components, different settings for -stdlib=libstdc++ vs -stdlib=libc++ (in
ADD_CXXFLAGS, probably), and shared vs static linking
(--enable-matlab-static).</div>
<div> </div>
<div>Based on tickets #250 and #252, the problem might be due to the
exceptions that Ipopt throws internally for flow control in different unusual
algorithmic conditions. Your code is apparently especially susceptible to
those numerical issues that cause problems. It’s possible something could be
done in Matlab mex interface code to mitigate this or make things more robust.
But as I’ve said before, I don’t personally use Matlab any more, or own a Mac.
I only use Ipopt via its C API these days with the Julia bindings, though we
don’t have access to Matlab’s MA57 there which is an issue. Acceptable loss
for now, in exchange for freedom from Matlab.</div>
<div> </div>
<div>If Mumps 5.0 can provide multithreading and be faster than MA57, or if
someone wants to have a look at Elemental’s new sparse LDL which can return
inertia and should be usable by Ipopt, I think those are good long-term
projects worth looking into, since they can benefit everyone whether or not
you use Matlab.</div>
<div> </div>
<div>-Tony</div>
<div> </div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="anilvrao@gmail.com" href="mailto:anilvrao@gmail.com" target="_blank">Anil Rao</a> </div>
<div><b>Sent:</b> Monday, January 19, 2015 7:52 AM</div>
<div><b>To:</b> <a title="ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a> </div>
<div><b>Subject:</b> [Ipopt] Continual Crashes with Mac OS-X MATLAB Mex
Files</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div dir="ltr">
<div>
<div>
<div>
<div>All,<br><br></div>I am writing again about continual crashes in Mac OS-X
with MATLAB. It does not matter whether we compile our own Mac
OS-X mex file or use the precompiled mex files. In either case the IPOPT
mex file causes fatal crashes in MATLAB. I note that the fatal crash
occurs using either the built-in version of MA57 or Mumps. Much to my
surprise the crashes with Mac versions of MATLAB do not seem to exist in
Windows.<br><br></div>I do not know what to do to fix the problem. My
goal is to compile a "crash-free" mex file using the MATLAB MA57
library. In other words, I do not want to create a mex file that
requires the MA57 source code because I want to be able to distribute the mex
file. <br><br></div>I am grateful if somebody can help.
<br><br></div>Regards,<br><br>Anil Rao<br><br clear="all">
<div>
<div>
<div>
<div>
<div><br>-- <br>
<div>
<div dir="ltr">Anil V. Rao, PhD<br>Associate Professor<br>Department of
Mechanical and Aerospace Engineering<br>University of Florida<br>Gainesville,
FL 32611-6250<br>Tel: <a href="tel:%28352%29%20672-1529" value="+13526721529" target="_blank">(352) 672-1529</a><br>E-mail: <a href="mailto:anilvrao@gmail.com" target="_blank">anilvrao@gmail.com</a><br></div></div></div></div></div></div></div></div>
<hr>
_______________________________________________<br>Ipopt mailing list<br><a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br></div></div></div></div></blockquote></div></div></div>
</div></blockquote></div></div></div><br>_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
<br></blockquote></div><br></div>