I'm using the latest version of OpenMx on Ubuntu 16.04. I re-installed it a few minutes ago hoping it would fix what appears to be wrong. I'm also running OpenMx on Ubuntu 15.04 on another computer which appears to work correctly.

Here is the example code from mxTryHard:

library(OpenMx) data(demoOneFactor) # load the demoOneFactor dataframe manifests <- names(demoOneFactor) # set the manifest to the 5 demo variables latents <- c("G") # define 1 latent variable model <- mxModel(model="One Factor", type="RAM", manifestVars = manifests, latentVars = latents, mxPath(from=latents, to=manifests, labels=paste("b", 1:5, sep="")), mxPath(from=manifests, arrows=2, labels=paste("u", 1:5, sep="")), mxPath(from=latents , arrows=2, free=FALSE, values=1.0), mxData(cov(demoOneFactor), type="cov", numObs=500) ) model <- mxTryHard(model) # Run the model, returning the result into model summary(model) # Show summary of the fitted model

Here are the results:

> model <- mxTryHard(model) # Run the model, returning the result into model Begin fit attempt 1 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 2 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 3 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 4 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 5 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 6 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 7 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 8 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 9 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 10 of at maximum 11 tries Fit attempt generated errors Begin fit attempt 11 of at maximum 11 tries Fit attempt generated errors Retry limit reached All fit attempts resulted in errors - check starting values or model specification

I tried this several times with the same results.

Now I just ran it again in the same session and I get what I think are the correct results.

The problem is, when I run my real model under 15.04 on the other computer, I get entirely reasonable results with confidence intervals. When I run it under 16.04 on this computer, all I get are error messages or if I ask for confidence intervals the code runs but never appears to finish.

The problem with 16.04 has been going on for months so I had switched to the other computer. I tried again by re-installing or installing the latest version on the 16.04 computer but OpenMx still seems to be broken under 16.04.

Hi,

It's not just ubuntu, same on all platforms. The issue is that the default start values are too far from the solution for some optimizers.

SLSQP solves the problem with no error, NPSOL solves with a code green, CSOLNP needs better start values.

I think the front page will likely be updated with a version starting the residuals at 1 and the paths from the latent variable at .2 or so.

A distinct issue is that code Red is much more common in newer versions of OpenMx. So even with good starting values, you may find code Reds.

Please let us know if the start values help.

PS: It's always helpful to append the results of

`mxVersion()`

: to queries like this.PPS:

`umxRAM`

picks nice starting values for models. You can use this directly with`umxValues()`

PPPS: A nice new OpenMx function will be of help soon in cases like this

`m1 = mxAutoStart(m1)`

Thanks! I understand what you are saying. I should have checked which optimizers were being used.

Yesterday we released v2.7.9. There are some bug fixes that might address this issue. Please try again now.

Interesting, on Mac, without values, the correct solution is now reached by all 3 optimisers. CSOLNP code-reds but the solution is fine.