Running ‘testthat.R’ [0m/180m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(umx)
  Loading required package: OpenMx
  To take full advantage of multiple cores, use:
    mxOption(NULL, 'Number of Threads', parallel::detectCores()) #now
    Sys.setenv(OMP_NUM_THREADS=parallel::detectCores()) #before library(OpenMx)
  Registered S3 method overwritten by 'umx':
    method       from  
    vcov.MxModel OpenMx
  For an overview type '?umx'
  
  Attaching package: 'umx'
  
  The following object is masked from 'package:stats':
  
      loadings
  
  > 
  > test_check("umx")
  ── 1. Error: (unknown) (@test_residuals.MxModel.r#16)  ─────────────────────────
  no 'restart' 'muffleWarning' found
  1: umxRAM("test", data = mxData(cov(demoOneFactor), type = "cov", numObs = 500), umxPath(latents, 
         to = manifests), umxPath(var = manifests), umxPath(var = latents, fixedAt = 1)) at testthat/test_residuals.MxModel.r:16
  2: xmu_safe_run_summary(newModel, autoRun = autoRun, tryHard = tryHard)
  3: tryCatch({
         if (tryHard == "no") {
             model1 = mxRun(model1)
         }
         else if (tryHard == "mxTryHard") {
             model1 = mxTryHard(model1)
         }
         else if (tryHard == "mxTryHardOrdinal") {
             model1 = mxTryHardOrdinal(model1)
         }
         else if (tryHard == "mxTryHardWideSearch") {
             model1 = mxTryHardWideSearch(model1)
         }
         else {
             stop("Don't know how to do tryHard = ", omxQuotes(tryHard))
         }
     }, warning = function(w) {
         message("Warning incurred trying to run model: try mxTryHard on it.")
         message(w)
     }, error = function(e) {
         message("Error incurred trying to run model: try mxTryHard on it.")
         message(e)
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], 
         parentenv, handlers[[nh]])
  6: doTryCatch(return(expr), name, parentenv, handler)
  7: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  10: message(w)
  11: withRestarts({
         signalCondition(cond)
         defaultHandler(cond)
     }, muffleMessage = function() NULL)
  12: withOneRestart(expr, restarts[[1L]])
  13: doWithOneRestart(return(expr), restart)
  14: signalCondition(cond)
  15: (function (e) 
     {
         handled <<- TRUE
         e$expectation_calls <- frame_calls(11, 5)
         register_expectation(e)
         invokeRestart("muffleWarning")
     })(structure(list(message = "In model 'test' 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)", 
         call = NULL), class = c("simpleWarning", "warning", "condition")))
  16: invokeRestart("muffleWarning")
  17: stop(gettextf("no 'restart' '%s' found", as.character(r)), domain = NA)
  
  
   *** caught segfault ***
  address 155d10, cause 'memory not mapped'
  
   *** caught segfault ***
  address 155d5000, cause 'memory not mapped'