{"action":"created","issue":{"url":"https://api.github.com/repos/ampl/mp/issues/59","labels_url":"https://api.github.com/repos/ampl/mp/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ampl/mp/issues/59/comments","events_url":"https://api.github.com/repos/ampl/mp/issues/59/events","html_url":"https://github.com/ampl/mp/issues/59","id":95098379,"number":59,"title":"Inconsistent behavior on OSX vs Linux","user":{"login":"dpo","id":38760,"avatar_url":"https://avatars.githubusercontent.com/u/38760?v=3","gravatar_id":"","url":"https://api.github.com/users/dpo","html_url":"https://github.com/dpo","followers_url":"https://api.github.com/users/dpo/followers","following_url":"https://api.github.com/users/dpo/following{/other_user}","gists_url":"https://api.github.com/users/dpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpo/subscriptions","organizations_url":"https://api.github.com/users/dpo/orgs","repos_url":"https://api.github.com/users/dpo/repos","events_url":"https://api.github.com/users/dpo/events{/privacy}","received_events_url":"https://api.github.com/users/dpo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-15T03:41:49Z","updated_at":"2015-07-15T20:22:32Z","closed_at":null,"body":"Here's an nl file that causes different behavior on OSX and Linux: https://gist.github.com/d190549c628ac44eda0e\r\n\r\nA funny starting point is hard-coded in the nl file. Evaluating the objective and gradient at the initial point should either raise an IEEE overflow error, or set f(x0) = +Inf, and g(x0) = [Inf, -Inf]. On OSX, the latter happens, and the error code from `objval` and `objgrd` is set to zero (i.e., all seems well). On Linux however, the error code is nonzero, but the objective value and gradients contain junk.\r\n\r\nThree users have confirmed this from the Julia interface, and from my simple [miniampl](https://github.com/dpo/miniampl) driver.\r\n\r\nWould you mind trying to reproduce this?"},"comment":{"url":"https://api.github.com/repos/ampl/mp/issues/comments/121735474","html_url":"https://github.com/ampl/mp/issues/59#issuecomment-121735474","issue_url":"https://api.github.com/repos/ampl/mp/issues/59","id":121735474,"user":{"login":"vitaut","id":576385,"avatar_url":"https://avatars.githubusercontent.com/u/576385?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaut","html_url":"https://github.com/vitaut","followers_url":"https://api.github.com/users/vitaut/followers","following_url":"https://api.github.com/users/vitaut/following{/other_user}","gists_url":"https://api.github.com/users/vitaut/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaut/subscriptions","organizations_url":"https://api.github.com/users/vitaut/orgs","repos_url":"https://api.github.com/users/vitaut/repos","events_url":"https://api.github.com/users/vitaut/events{/privacy}","received_events_url":"https://api.github.com/users/vitaut/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T20:22:32Z","updated_at":"2015-07-15T20:22:32Z","body":"D'oh. I missed the comma in the initializer list of `x`.\r\n\r\nNow I get the nonzero error as expected and the objective value of 0 (with GCC and Linux) which looks OK to me as `exp` returns an error. I don't think you should rely on the value returned by `Objval` in case of error."}}