Running 'testthat.R' [32s/36s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(OpenMx)
  > 
  > test_check("OpenMx")
  == Skipped tests ===============================================================
  * On CRAN (3)
  * empty test (1)
  
  == Failed tests ================================================================
  -- Error (test-AlgebraComputePassing.R:317:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [25] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model) test-AlgebraComputePassing.R:317:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-ConstantSubst.R:24:1): (code run outside of `test_that()`) ------
  Error: 'names' attribute [4] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model) test-ConstantSubst.R:24:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-DataErrorDetection.R:26:1): (code run outside of `test_that()`) --
  `expression` threw an error with unexpected message.
  Expected match: "The data object 'model.data' contains an observed matrix that is not of type 'double'"
  Actual message: "'names' attribute [2] must be the same length as the vector [0]"
  Backtrace:
       x
    1. +-OpenMx::omxCheckError(...) test-DataErrorDetection.R:26:0
    2. | \-testthat::expect_error(expression, message, fixed = TRUE)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-OpenMx::mxRun(model)
    8.   \-OpenMx:::runHelper(...)
    9.     \-OpenMx:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-DataErrorDetection.R:57:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model) test-DataErrorDetection.R:57:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-GREML_Error_Detection.R:40:1): (code run outside of `test_that()`) --
  `expression` threw an error with unexpected message.
  Expected match: "the GREML expectation function does not have a dataset associated with it in model 'GREMLtest'"
  Actual message: "'names' attribute [2] must be the same length as the vector [0]"
  Backtrace:
       x
    1. +-OpenMx::omxCheckError(mxRun(testmod), "the GREML expectation function does not have a dataset associated with it in model 'GREMLtest'") test-GREML_Error_Detection.R:40:0
    2. | \-testthat::expect_error(expression, message, fixed = TRUE)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-OpenMx::mxRun(testmod)
    8.   \-OpenMx:::runHelper(...)
    9.     \-OpenMx:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-GREML_Error_Detection.R:48:1): (code run outside of `test_that()`) --
  `expression` threw an error with unexpected message.
  Expected match: "definition variables are incompatible (and unnecessary) with GREML expectation"
  Actual message: "'names' attribute [3] must be the same length as the vector [0]"
  Backtrace:
       x
    1. +-OpenMx::omxCheckError(mxRun(testmod), "definition variables are incompatible (and unnecessary) with GREML expectation") test-GREML_Error_Detection.R:48:0
    2. | \-testthat::expect_error(expression, message, fixed = TRUE)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-OpenMx::mxRun(testmod)
    8.   \-OpenMx:::runHelper(...)
    9.     \-OpenMx:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-GREML_Error_Detection.R:59:1): (code run outside of `test_that()`) --
  `expression` threw an error with unexpected message.
  Expected match: "'V' matrix is not square"
  Actual message: "'names' attribute [2] must be the same length as the vector [0]"
  Backtrace:
       x
    1. +-OpenMx::omxCheckError(mxRun(testmod), "'V' matrix is not square") test-GREML_Error_Detection.R:59:0
    2. | \-testthat::expect_error(expression, message, fixed = TRUE)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-OpenMx::mxRun(testmod)
    8.   \-OpenMx:::runHelper(...)
    9.     \-OpenMx:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-GREML_Error_Detection.R:63:1): (code run outside of `test_that()`) --
  `expression` threw an error with unexpected message.
  Expected match: "y and V matrices do not have equal numbers of rows"
  Actual message: "'names' attribute [2] must be the same length as the vector [0]"
  Backtrace:
       x
    1. +-OpenMx::omxCheckError(mxRun(testmod), "y and V matrices do not have equal numbers of rows") test-GREML_Error_Detection.R:63:0
    2. | \-testthat::expect_error(expression, message, fixed = TRUE)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-OpenMx::mxRun(testmod)
    8.   \-OpenMx:::runHelper(...)
    9.     \-OpenMx:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-GREML_Error_Detection.R:75:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [2] must be the same length as the vector [0]
  Backtrace:
       x
    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:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-LegacyMultipleGroupWLS.R:53:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(tmpModel) test-LegacyMultipleGroupWLS.R:53:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-MatrixErrorDetection.R:59:1): (code run outside of `test_that()`) --
  `expression` threw an error with unexpected message.
  Expected match: "Requested improper value (2, 3) from (2, 2) matrix 'model.C'"
  Actual message: "'names' attribute [3] must be the same length as the vector [0]"
  Backtrace:
       x
    1. +-OpenMx::omxCheckError(mxRun(model), "Requested improper value (2, 3) from (2, 2) matrix 'model.C'") test-MatrixErrorDetection.R:59:0
    2. | \-testthat::expect_error(expression, message, fixed = TRUE)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat:::.capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. \-OpenMx::mxRun(model)
    8.   \-OpenMx:::runHelper(...)
    9.     \-OpenMx:::generateMatrixList(flatModel)
   10.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-MatrixErrorDetection.R:504:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [1] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(mxModel("asdf", Fu)) test-MatrixErrorDetection.R:504:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-ModelIdentification.R:188:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [7] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxCheckIdentification(xmod2) test-ModelIdentification.R:188:0
   2.   \-OpenMx::mxRun(tmpModel, silent = TRUE)
   3.     \-OpenMx:::runHelper(...)
   4.       \-OpenMx:::generateMatrixList(flatModel)
   5.         \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-NelderMead--bothConstraintTypes.R:58:1): (code run outside of `test_that()`) --
  Error: 'names' attribute [6] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(m1) test-NelderMead--bothConstraintTypes.R:58:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-cor.R:29:1): (code run outside of `test_that()`) ----------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(fl) test-cor.R:29:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-defvar.R:70:1): (code run outside of `test_that()`) -------------
  Error: 'names' attribute [4] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model) test-defvar.R:70:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-discrete.R:85:3): Normal ----------------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(factorModel) test-discrete.R:85:2
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-discrete.R:133:3): RAM ------------------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx:::verifyFrontBackMatch(factorModel) test-discrete.R:133:2
   2.   \-OpenMx::mxRun(...) test-discrete.R:11:2
   3.     \-OpenMx:::runHelper(...)
   4.       \-OpenMx:::generateMatrixList(flatModel)
   5.         \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-discrete.R:201:3): mediation ------------------------------------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(factorModel) test-discrete.R:201:2
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-discrete.R:219:3): LISREL ---------------------------------------
  Error: no 'dimnames' attribute for array
  Backtrace:
      x
   1. \-OpenMx::mxModel(...) test-discrete.R:219:2
   2.   +-OpenMx::imxModelBuilder(...)
   3.   \-OpenMx::imxModelBuilder(...)
   4.     \-OpenMx:::listArgumentLISREL(model, lst, remove)
   5.       \-OpenMx:::addEntriesLISREL(model, lst)
   6.         \-OpenMx:::insertAllPathsLISREL(model, paths)
   7.           \-OpenMx:::insertMeansPathLISREL(...)
  -- Error (test-discrete.R:290:3): probit+poisson ML+WLS ------------------------
  Error: 'names' attribute [6] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(build()) test-discrete.R:290:2
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-gendata-multilevel.R:32:3): (code run outside of `test_that()`) --
  Error: 'names' attribute [8] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxGenerateData(trueYield, returnModel = TRUE) test-gendata-multilevel.R:32:2
   2.   +-OpenMx:::genericGenerateData(...)
   3.   \-OpenMx:::genericGenerateData(...)
   4.     \-OpenMx:::generateRelationalData(...)
   5.       \-OpenMx::mxRun(modelE, silent = TRUE)
   6.         \-OpenMx:::runHelper(...)
   7.           \-OpenMx:::generateMatrixList(flatModel)
   8.             \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-ifa-drm1.R:47:1): (code run outside of `test_that()`) -----------
  Error: 'names' attribute [1] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(m1) test-ifa-drm1.R:47:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-loadDataByCol.R:69:3): (code run outside of `test_that()`) ------
  Error: 'names' attribute [4] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model2) test-loadDataByCol.R:69:2
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-loadDataByRow.R:66:3): (code run outside of `test_that()`) ------
  Error: 'names' attribute [4] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model2) test-loadDataByRow.R:66:2
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-mxSE.R:23:1): (code run outside of `test_that()`) ---------------
  Error: 'names' attribute [3] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(m1) test-mxSE.R:23:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-mxsave.R:47:1): (code run outside of `test_that()`) -------------
  Error: 'names' attribute [1] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(testModel, checkpoint = TRUE) test-mxsave.R:47:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-naAction.R:16:1): (code run outside of `test_that()`) -----------
  Error: no 'dimnames' attribute for array
  Backtrace:
      x
   1. \-OpenMx::mxModel(...) test-naAction.R:16:0
   2.   +-OpenMx::imxModelBuilder(...)
   3.   \-OpenMx::imxModelBuilder(...)
   4.     \-OpenMx:::listArgumentLISREL(model, lst, remove)
   5.       \-OpenMx:::addEntriesLISREL(model, lst)
   6.         \-OpenMx:::insertAllPathsLISREL(model, paths)
   7.           \-OpenMx:::insertMeansPathLISREL(...)
  -- Error (test-npdWarningWLS.R:44:1): (code run outside of `test_that()`) ------
  Error: 'names' attribute [5] must be the same length as the vector [0]
  Backtrace:
       x
    1. +-OpenMx::omxCheckWarning(...) test-npdWarningWLS.R:44: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::omxAugmentDataWithWLSSummary(...)
    8.   \-OpenMx::mxRun(fake, silent = silent)
    9.     \-OpenMx:::runHelper(...)
   10.       \-OpenMx:::generateMatrixList(flatModel)
   11.         \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-omp.R:18:1): (code run outside of `test_that()`) --------------
  `mxRun(m1)` threw an error with unexpected message.
  Expected match: "2 threads requested."
  Actual message: "'names' attribute [3] must be the same length as the vector [0]"
  Backtrace:
      x
   1. +-testthat::expect_error(mxRun(m1), "2 threads requested.") test-omp.R:18:0
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-OpenMx::mxRun(m1)
   7.   \-OpenMx:::runHelper(...)
   8.     \-OpenMx:::generateMatrixList(flatModel)
   9.       \-OpenMx:::generateMatrixReferences(model)
  -- Error (test-simplestCI.R:43:1): (code run outside of `test_that()`) ---------
  Error: 'names' attribute [2] must be the same length as the vector [0]
  Backtrace:
      x
   1. \-OpenMx::mxRun(model, silent = TRUE) test-simplestCI.R:43:0
   2.   \-OpenMx:::runHelper(...)
   3.     \-OpenMx:::generateMatrixList(flatModel)
   4.       \-OpenMx:::generateMatrixReferences(model)
  -- Failure (test-wls-binary.R:45:1): (code run outside of `test_that()`) -------
  `mxRun(wlsTest4)` threw an error with unexpected message.
  Expected match: "correlated gradients: [3,1]"
  Actual message: "'names' attribute [4] must be the same length as the vector [0]"
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-wls-binary.R:45:0
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-OpenMx::mxRun(wlsTest4)
   7.   \-OpenMx:::runHelper(...)
   8.     \-OpenMx:::generateMatrixList(flatModel)
   9.       \-OpenMx:::generateMatrixReferences(model)
  
  [ FAIL 32 | WARN 0 | SKIP 4 | PASS 127 ]
  Error: Test failures
  Execution halted