Running ‘testthat.R’ [56s/85s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(OpenMx)
  To take full advantage of multiple cores, use:
    mxOption(key='Number of Threads', value=parallel::detectCores()) #now
    Sys.setenv(OMP_NUM_THREADS=parallel::detectCores()) #before library(OpenMx)
  > 
  > test_check("OpenMx")
  ── Skip (test-268.R:28:1): 268 ─────────────────────────────────────────────────
  Reason: empty test
  
  ── Skip (test-ACELRTCI20160808.R:21:1): (code run outside of `test_that()`) ────
  Reason: On CRAN
  
  Error: C stack usage  279221396 is too close to the limit
  ── ERROR (test-DataErrorDetection.R:57:1): (code run outside of `test_that()`) ─
  Error: The job for model 'untitled17' exited abnormally with the error message: User interrupt
  Backtrace:
      █
   1. └─OpenMx::mxRun(model) test-DataErrorDetection.R:57:0
   2.   └─OpenMx:::runHelper(...)
   3.     └─OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  ── Skip (test-FactorScores.R:26:1): (code run outside of `test_that()`) ────────
  Reason: On CRAN
  
  Error: C stack usage  279221396 is too close to the limit
  ── ERROR (test-GREML_Error_Detection.R:75:1): (code run outside of `test_that()`
  Error: The job for model 'GREMLtest' exited abnormally with the error message: User interrupt
  Backtrace:
      █
   1. ├─OpenMx::omxCheckWarning(...) test-GREML_Error_Detection.R:75:0
   2. │ └─testthat::expect_warning(expression, message, fixed = TRUE)
   3. │   └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
   4. │     ├─testthat:::.capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─OpenMx::mxRun(testmod, suppressWarnings = TRUE)
   8.   └─OpenMx:::runHelper(...)
   9.     └─OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  ── Skip (test-LatentAR-190605.R:6:1): (code run outside of `test_that()`) ──────
  Reason: On CRAN
  
  ── FAILURE (test-LegacyMultipleGroupWLS.R:70:1): (code run outside of `test_that
  `a` not equivalent to `b`.
  3/3 mismatches (average diff: 0.0701)
  [1] 0.976 - 1.058 == -0.0818
  [2] 0.999 - 0.949 ==  0.0499
  [3] 0.553 - 0.475 ==  0.0787
  
  ── Warning (test-NelderMead--bothConstraintTypes.R:58:1): (code run outside of `
  Polite note: Model finished with a larger ordinal error than we typically expect.
   This may be fine, but you may wish to re-run the model using
   `mxTryHardOrdinal()` in place of `mxRun()` to try for a better fit.
   Expert version: model$output[['maxRelativeOrdinalError']] is 
   larger than the mvnRelEps value of  0.005 .
   If this is expected for your model, you might wish to increase `mvnRelEps`, e.g:
   mxOption(NULL, 'mvnRelEps', value= mxOption(NULL, 'mvnRelEps')*5)
   see `?mxOptions`
  
  
   *** caught segfault ***
  address 14e39000, cause 'memory not mapped'