Running 'testthat.R' [101s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(OpenMx)
  > 
  > test_check("OpenMx")
   [1]   1  33  34  40  54  55  81  83  97 104 105 111 113 135 142 145 160 161 188
  [20] 193 196 209 212 230 241 261
  == Skipped tests ===============================================================
  * .Platform$OS.type == "windows" && .Platform$r_arch == "i386" is TRUE (1)
  * On CRAN (3)
  * empty test (1)
  * imxHasOpenMP() is not TRUE (1)
  
  == Warnings ====================================================================
  -- Warning (test-cor.R:31:1): (code run outside of `test_that()`) --------------
  In model 'Both' Optimizer returned a non-zero status code 6. The model does not satisfy the first-order optimality conditions to the required accuracy, and no improved point for the merit function could be found during the final linesearch (Mx status RED)
  Backtrace:
   1. OpenMx::mxRun(mg) test-cor.R:31:0
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
   4. OpenMx:::npsolWarnings(...)
  -- Warning (test-discrete.R:85:3): Normal --------------------------------------
  In model 'One Factor' Optimizer returned a non-zero status code 5. The Hessian at the solution does not appear to be convex. See ?mxCheckIdentification for possible diagnosis (Mx status RED).
  Backtrace:
   1. OpenMx::mxRun(factorModel) test-discrete.R:85:2
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
   4. OpenMx:::npsolWarnings(...)
  
  == Failed tests ================================================================
  -- Failure (test-discrete.R:203:3): mediation ----------------------------------
  fit$Discrete$values not equivalent to c(zif, size, prob).
  2/3 mismatches (average diff: 0.0892)
  [1] 0.360 - 0.3 == 0.0596
  [2] 0.619 - 0.5 == 0.1187
  
  [ FAIL 1 | WARN 2 | SKIP 6 | PASS 623 ]
  Error: Test failures
  Execution halted