Hi everyone,
I installed OpenMx2.11 thought source('https://openmx.ssri.psu.edu/software/getOpenMx.R') and wanted to switch optimizer by mxOption(NULL,"Default optimizer","NPSOL"), but I got error message
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
NPSOL is not available in this build. See ?omxGetNPSOL() to download this optimizer
I also had the same error message when I tried to use cluster to run the model.
How can I fix it? Any advice would be appreciated!
Did you clear R's workspace and restart R after the getOpenMx.R script finished?
Thanks for your prompt reply. After restarting R, I got the following error message. Also, I failed to open the link http://openmx.psyc.virginia.edu/thread/316. How can I fixed it? Thank you.
Try https://openmx.ssri.psu.edu//node/316 , and in the future, do a Content search instead of a Google search.
What version of R are you running? Are you running macOS? If so, what version?
R: 3.5.1
MacOS: 10.14.1
I see. I don't use a Mac and am not involved in maintaining macOS support for OpenMx, but I'll ask other developers who are to reply to this thread.
I do have two guesses as to what might be going on. My first guess is that our macOS OpenMx build for R v3.5 wasn't correctly statically linked to the OpenMP library (what we use for multithreading under Unix-likes). That has been a recurring problem that rears its ugly head at least once per year. My other guess is that some idiosyncrasy of macOS 10.14.1 "Mojave"--which is not even two months old--is causing the problem, though I think that's rather unlikely.
You mentioned upthread that you also ran into difficulty on the cluster. Would you mind elaborating on that?
Edit: my first guess turned out to be correct.
Can we discuss it via email so that I can CC the maintainer of our cluster? I have almost zero knowledge about Linux.
Sure. You have my email address.
I am having the same problem - so far I have install a new version of R and Open MX and I still get an error for NPSOL. I am using R version 3.6.3 (2020-02-29) with Mac 10.15.5
source("https://openmx.ssri.psu.edu/getOpenMx.R")
Is the Mac on which you tried to reproduce the error configured for building OpenMx? Because if so, and if my first suspicion here is correct, then you would certainly not encounter the same error, because the OpenMx build would try to dynamically load the OpenMP library, and succeed.
Could you please try the following installation instead? I am trying to figure out where the OpenMx version with the missing library originated.
then restart R and see if it works after that?
The versions I build (and the travis one) should have the libraries attached, due to use of a libtastic.py script - but perhaps it hit a snag.
Dr. Neale,
It works. Thank you.
This worked, but why did this work???? I tired 4 different solutions.