Running ‘testthat.R’ [56s/96s]
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  279221396 is too close to the limit
  ── 1. Error: (unknown) (@test-DataErrorDetection.R#57)  ────────────────────────
  The job for model 'untitled17' exited abnormally with the error message: User interrupt
  Backtrace:
   1. OpenMx::mxRun(model)
   2. OpenMx:::runHelper(...)
   3. OpenMx:::processErrorConditions(model, unsafe, suppressWarnings)
  
  Error: C stack usage  279221396 is too close to the limit
  ── 2. 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  279221396 is too close to the limit
  ── 3. 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  279221396 is too close to the limit
  ── 4. 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)
  
  ── 5. Failure: (unknown) (@test-ifa-drm1.R#50)  ────────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 10000 - 5000 == 5000
  
  ── 6. Failure: (unknown) (@test-ifa-drm1.R#51)  ────────────────────────────────
  `a` not equivalent to `b`.
  3/5 mismatches (average diff: 27.1)
  [3]   0.138 -  0.0688 ==  0.0688
  [4]  14.316 -  7.1582 ==  7.1582
  [5] 148.317 - 74.1583 == 74.1583
  
  ── 7. Failure: (unknown) (@test-ifa-drm1.R#57)  ────────────────────────────────
  `a` not equivalent to `b`.
  20/20 mismatches (average diff: 250)
  [1] 163 - 326 == -163
  [2] 337 - 674 == -337
  [3] 119 - 238 == -119
  [4] 381 - 762 == -381
  [5] 221 - 442 == -221
  [6] 279 - 558 == -279
  [7] 228 - 456 == -228
  [8] 272 - 544 == -272
  [9] 289 - 578 == -289
  ...
  
  ── 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] 2788 - 0 == 2788
  
  ── 12. Failure: (unknown) (@test-ifa-drm1.R#99)  ───────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12433 - 6216 == 6216
  
  ── 13. Failure: (unknown) (@test-ifa-drm1.R#100)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12473 - 6256 == 6216
  
  ── 14. Failure: (unknown) (@test-ifa-drm1.R#101)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12557 - 6341 == 6216
  
  ── 15. Failure: (unknown) (@test-ifa-drm1.R#120)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12764 - 6382 == 6382
  
  ── 16. Failure: (unknown) (@test-ifa-drm1.R#121)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12784 - 6402 == 6382
  
  ── 17. Failure: (unknown) (@test-ifa-drm1.R#122)  ──────────────────────────────
  `a` not equivalent to `b`.
  1/1 mismatches
  [1] 12827 - 6444 == 6382
  
  ── 18. Failure: (unknown) (@test-ifa-drm1.R#165)  ──────────────────────────────
  `a` not equivalent to `b`.
  20/20 mismatches (average diff: 0.0543)
  [1] 0.0549 - 0.110 == -0.0551
  [2] 0.0512 - 0.102 == -0.0508
  [3] 0.0707 - 0.141 == -0.0703
  [4] 0.0657 - 0.131 == -0.0653
  [5] 0.0546 - 0.109 == -0.0544
  [6] 0.0483 - 0.097 == -0.0487
  [7] 0.0591 - 0.118 == -0.0589
  [8] 0.0495 - 0.099 == -0.0495
  [9] 0.0475 - 0.095 == -0.0475
  ...
  
  ── 19. Failure: (unknown) (@test-ifa-drm1.R#175)  ──────────────────────────────
  `a` not equivalent to `b`.
  20/20 mismatches (average diff: 0.126)
  [1] 0.0244 - 0.166 == -0.1416
  [2] 0.0235 - 0.111 == -0.0875
  [3] 0.0319 - 0.253 == -0.2211
  [4] 0.0297 - 0.170 == -0.1403
  [5] 0.0168 - 0.171 == -0.1542
  [6] 0.0142 - 0.104 == -0.0898
  [7] 0.0203 - 0.199 == -0.1787
  [8] 0.0203 - 0.110 == -0.0897
  [9] 0.0152 - 0.138 == -0.1228
  ...
  
  
   *** caught segfault ***
  address 98300b10, cause 'memory not mapped'
  
  Traceback:
   1: runHelper(model, frontendStart, intervals, silent, suppressWarnings,     unsafe, checkpoint, useSocket, onlyFrontend, useOptimizer,     beginMessage)
   2: mxRun(i2, silent = TRUE)
   3: eval(code, test_env)
   4: eval(code, test_env)
   5: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  13: test_code(NULL, exprs, env)
  14: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  15: force(code)
  16: doWithOneRestart(return(expr), restart)
  17: withOneRestart(expr, restarts[[1L]])
  18: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  19: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  20: FUN(X[[i]], ...)
  21: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  22: force(code)
  23: doWithOneRestart(return(expr), restart)
  24: withOneRestart(expr, restarts[[1L]])
  25: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  26: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  27: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  28: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  29: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  30: test_check("OpenMx")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 98300b10, cause 'memory not mapped'
  
  Traceback:
   1: runHelper(model, frontendStart, intervals, silent, suppressWarnings,     unsafe, checkpoint, useSocket, onlyFrontend, useOptimizer,     beginMessage)
   2: mxRun(i2, silent = TRUE)
   3: eval(code, test_env)
   4: eval(code, test_env)
   5: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  13: test_code(NULL, exprs, env)
  14: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  15: force(code)
  16: doWithOneRestart(return(expr), restart)
  17: withOneRestart(expr, restarts[[1L]])
  18: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  19: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  20: FUN(X[[i]], ...)
  21: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  22: force(code)
  23: doWithOneRestart(return(expr), restart)
  24: withOneRestart(expr, restarts[[1L]])
  25: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  26: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  27: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  28: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  29: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  30: test_check("OpenMx")
  An irrecoverable exception occurred. R is aborting now ...