Warning message:

The job for model 'ccc' exited abnormally with the error message: Objective function returned a value of NaN at iteration 0.1.

The attached file is an RData file (but saved as .sav to upload)

However, the objective function looks fine in the fitted model object and summary.

estimated parameters: 0 (all parameters were intentially fixed to starting values)

degrees of freedom: 2266

-2 log likelihood: 2885.098

> mxEval(MZf.objective,cccFit) [,1] [1,] 754.0471 > mxEval(MZm.objective,cccFit) [,1] [1,] 719.298 > mxEval(DZm.objective,cccFit) [,1] [1,] 355.4492 > mxEval(DZf.objective,cccFit) [,1] [1,] 251.3265 > mxEval(DZo.objective,cccFit) [,1] [1,] 804.9774

Attachment | Size |
---|---|

cccModel.sav | 7.36 KB |

Reporter:

Created:

Tue, 06/25/2013 - 00:23

Updated:

Fri, 08/22/2014 - 13:19

- Log in or register to post comments
- Printer-friendly version

## Comments

## #1

When I load the workspace, there is no cccFit object. Evaluating the cccModel object yields NA.

Similarly for each of the submodels objectives.

cccFit could be left over from a different model run where the objective was well not NA.

## #2

Ah yes, I think one is supposed to do this:

cccFit

in order to generate the error code and to make the mxEval's work.

## #3

I haven't been able to figure out much about this issue. I do know that it is not a faulty warning message, rather it is a faulty error.

Making some changes only leads to more mysteries. The m2LL algebra seems to compute okay, and the model runs fine without an objective function.

Moreover, replacing the algebra with a simpler one and using an algebra objective gives the same error as before.

Could this be a corner case of badness for the algebra objective when there are submodels, an algebra objective, and no free parameters? Do the same errors persist when there is a free parameter?

Not with this example:

Thoughts?

## #4

I bet this is fixed in SVN trunk. Can somebody test it again?

If it's still broken, can we have an R script to reproduce the problem? Thanks.

## #5

Current thought is this was related to

http://openmx.psyc.virginia.edu/thread/3871

where setting independent=TRUE fixed the problem. The code in the linked thread runs fine unmodified in the r3750 Beta, so I'm closing this.