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.