Running ‘testthat.R’ [57s/71s]
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")
  Error: C stack usage  212374676 is too close to the limit
  ── 1. Error: (unknown) (@test-GREML_Error_Detection.R#75)  ─────────────────────
  The job for model 'GREMLtest' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::omxCheckWarning(...)
   7. OpenMx::mxRun(testmod, suppressWarnings = TRUE)
   8. OpenMx:::runHelper(...)
   9. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374676 is too close to the limit
  ── 2. Error: (unknown) (@test-cor.R#29)  ───────────────────────────────────────
  The job for model 'L' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(fl)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374676 is too close to the limit
  ── 3. Error: (unknown) (@test-gendata-multilevel.R#34)  ────────────────────────
  The job for model 'yield' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(yield, silent = TRUE)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  ── 4. Failure: (unknown) (@test-ifa-drm1.R#48)  ────────────────────────────────
  `a` not equivalent to `b`.
  4/5 mismatches (average diff: 179)
  [1] -7.16e+02 - -7.55 == -707.961
  [2] -9.66e+00 - -7.40 ==   -2.265
  [4] -6.16e+00 - -6.94 ==    0.775
  [5] -5.55e-17 - -3.54 ==    3.541
  
  ── 5. Failure: (unknown) (@test-ifa-drm1.R#50)  ────────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] Inf - 5000 == Inf
  
  ── 6. Failure: (unknown) (@test-ifa-drm1.R#51)  ────────────────────────────────
  `a` not equivalent to `b`.
  5/5 mismatches (average diff: Inf)
  [1] 8.05e+299 - 0.00e+00 == 8.05e+299
  [2] 5.56e+303 - 5.86e-05 == 5.56e+303
  [3] 2.65e+306 - 6.88e-02 == 2.65e+306
  [4]       Inf - 7.16e+00 ==       Inf
  [5]       Inf - 7.42e+01 ==       Inf
  
  ── 7. Failure: (unknown) (@test-ifa-drm1.R#57)  ────────────────────────────────
  `a` not equivalent to `b`.
  20/20 mismatches (average diff: Inf)
  [1] 163 - Inf == -Inf
  [2] 337 - Inf == -Inf
  [3] 119 - Inf == -Inf
  [4] 381 - Inf == -Inf
  [5] 221 - Inf == -Inf
  [6] 279 - Inf == -Inf
  [7] 228 - Inf == -Inf
  [8] 272 - Inf == -Inf
  [9] 289 - Inf == -Inf
  ...
  
  ── 8. Failure: (unknown) (@test-ifa-drm1.R#66)  ────────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12887 - 6444 == 6444
  
  ── 9. Failure: (unknown) (@test-ifa-drm1.R#67)  ────────────────────────────────
  `a` not equivalent to `b`.
  5/5 mismatches (average diff: 337)
  [1] -1024.3 - -256.1 == -768.2
  [2]   -66.4 -  -16.6 ==  -49.8
  [3]    85.6 -   21.4 ==   64.2
  [4]   206.5 -   51.6 ==  154.9
  [5]   863.7 -  215.9 ==  647.8
  
  ── 10. Failure: (unknown) (@test-ifa-drm1.R#68)  ───────────────────────────────
  `a` not equivalent to `b`.
  5/5 mismatches (average diff: 285)
  [1]  52.5 -  13.1 ==  39.4
  [2]  52.5 -  13.1 ==  39.4
  [3] 263.8 -  66.0 == 197.9
  [4] 668.4 - 167.1 == 501.3
  [5] 861.7 - 215.4 == 646.3
  
  ── 11. Failure: (unknown) (@test-ifa-drm1.R#88)  ───────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 6173 - 0 == 6173
  
  ── 12. Failure: (unknown) (@test-ifa-drm1.R#92)  ───────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 27 - 10 == 17
  
  ── 13. Failure: (unknown) (@test-ifa-drm1.R#93)  ───────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 52 - 33 == 19
  
  ── 14. Failure: (unknown) (@test-ifa-drm1.R#94)  ───────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 115 - 59 == 56
  
  ── 15. Failure: (unknown) (@test-ifa-drm1.R#99)  ───────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12433 - 6216 == 6216
  
  ── 16. Failure: (unknown) (@test-ifa-drm1.R#100)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12473 - 6256 == 6216
  
  ── 17. Failure: (unknown) (@test-ifa-drm1.R#101)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12557 - 6341 == 6216
  
  ── 18. Failure: (unknown) (@test-ifa-drm1.R#120)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12764 - 6382 == 6382
  
  ── 19. Failure: (unknown) (@test-ifa-drm1.R#121)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12784 - 6402 == 6382
  
  ── 20. Failure: (unknown) (@test-ifa-drm1.R#122)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12827 - 6444 == 6382
  
  ── 21. Failure: (unknown) (@test-ifa-drm1.R#141)  ──────────────────────────────
  `a` not equivalent to `b`.
  5/5 mismatches (average diff: 12.6)
  [1] -57.8371 -  0.678 == -58.516
  [2]  -1.2407 -  0.285 ==  -1.525
  [3]   0.0686 - -0.344 ==   0.412
  [4]  -1.4828 - -0.103 ==  -1.380
  [5]   0.0000 - -1.082 ==   1.082
  
  ── 22. Failure: (unknown) (@test-ifa-drm1.R#142)  ──────────────────────────────
  `a` not equivalent to `b`.
  5/5 mismatches (average diff: 0.657)
  [1]   NaN - 0.677 ==    NaN
  [2] 0.425 - 0.667 == -0.241
  [3] 1.048 - 0.663 ==  0.385
  [4] 1.983 - 0.662 ==  1.321
  [5] 0.000 - 0.680 == -0.680
  
  ── 23. Error: (unknown) (@test-ifa-drm1.R#143)  ────────────────────────────────
  missing value where TRUE/FALSE needed
  Backtrace:
   1. OpenMx::omxCheckCloseEnough(...)
   2. testthat::expect_equivalent(...)
   4. testthat:::compare.numeric(act$val, exp$val, ..., check.attributes = FALSE)
   6. base::all.equal.numeric(...)
  
  Error: C stack usage  212374644 is too close to the limit
  ── 24. Error: (unknown) (@test-loadDataByCol.R#67)  ────────────────────────────
  The job for model 'loadData' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(model2)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374644 is too close to the limit
  ── 25. Error: (unknown) (@test-loadDataByRow.R#66)  ────────────────────────────
  The job for model 'loadData' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(model2)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374676 is too close to the limit
  ── 26. Error: (unknown) (@test-mxSE.R#23)  ─────────────────────────────────────
  The job for model 'one_is_the_loneliest_number' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(m1)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374676 is too close to the limit
  ── 27. Error: (unknown) (@test-mxsave.R#47)  ───────────────────────────────────
  The job for model 'testFish' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(testModel, checkpoint = TRUE)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  ── 28. Error: (unknown) (@test-naAction.R#16)  ─────────────────────────────────
  no 'dimnames' attribute for array
  Backtrace:
   1. OpenMx::mxModel(...)
   3. OpenMx::imxModelBuilder(...)
   4. OpenMx:::listArgumentLISREL(model, lst, remove)
   5. OpenMx:::addEntriesLISREL(model, lst)
   6. OpenMx:::insertAllPathsLISREL(model, paths)
   7. OpenMx:::insertMeansPathLISREL(...)
  
  Error: C stack usage  212374644 is too close to the limit
  ── 29. Error: (unknown) (@test-npdWarningWLS.R#44)  ────────────────────────────
  The job for model 'fake' exited abnormally with the error message: User interrupt
  Backtrace:
    1. OpenMx::omxCheckWarning(...)
    7. OpenMx::omxAugmentDataWithWLSSummary(...)
    8. OpenMx::mxRun(fake, silent = silent)
    9. OpenMx:::runHelper(...)
   10. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374676 is too close to the limit
  ── 30. Error: (unknown) (@test-simplestCI.R#41)  ───────────────────────────────
  The job for model 'CIExample' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(model, silent = TRUE)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  212374644 is too close to the limit
  ── 31. Failure: (unknown) (@test-wls-binary.R#43)  ─────────────────────────────
  `mxRun(wlsTest4)` threw an error with unexpected message.
  Expected match: "correlated gradients: [3,1]"
  Actual message: "The job for model 'GWAS' exited abnormally with the error message: User interrupt"
  Backtrace:
   1. testthat::expect_error(...)
   6. OpenMx::mxRun(wlsTest4)
   7. OpenMx:::runHelper(...)
   8. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 435 | SKIPPED: 4 | WARNINGS: 0 | FAILED: 31 ]
  1. Error: (unknown) (@test-GREML_Error_Detection.R#75) 
  2. Error: (unknown) (@test-cor.R#29) 
  3. Error: (unknown) (@test-gendata-multilevel.R#34) 
  4. Failure: (unknown) (@test-ifa-drm1.R#48) 
  5. Failure: (unknown) (@test-ifa-drm1.R#50) 
  6. Failure: (unknown) (@test-ifa-drm1.R#51) 
  7. Failure: (unknown) (@test-ifa-drm1.R#57) 
  8. Failure: (unknown) (@test-ifa-drm1.R#66) 
  9. Failure: (unknown) (@test-ifa-drm1.R#67) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted