Running ‘test_all.R’ [1s/2s]
Running the tests in ‘tests/test_all.R’ failed.
Complete output:
  > library("testthat")
  > test_check("bssm")
  Loading required package: bssm
  
   *** caught segfault ***
  address 0xf, cause 'memory not mapped'
  
  Traceback:
   1: gaussian_loglik(object, model_type = -1L)
   2: logLik.mv_gssm(bssm_model)
   3: logLik(bssm_model)
   4: eval_bare(get_expr(quo), get_env(quo))
   5: quasi_label(enquo(expected), expected.label, arg = "expected")
   6: expect_equivalent(logLik(kfas_model), logLik(bssm_model))
   7: eval(code, test_env)
   8: eval(code, test_env)
   9: 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)
  10: doTryCatch(return(expr), name, parentenv, handler)
  11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  13: doTryCatch(return(expr), name, parentenv, handler)
  14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  15: tryCatchList(expr, classes, parentenv, handlers)
  16: 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) {    })
  17: test_code(desc, code, env = parent.frame())
  18: test_that("results for multivariate gaussian model are comparable to KFAS",     {        library("KFAS")        data("Seatbelts", package = "datasets")        kfas_model <- SSModel(log(cbind(front, rear)) ~ -1 +             log(PetrolPrice) + log(kms) + SSMregression(~law,             data = Seatbelts, index = 1) + SSMcustom(Z = diag(2),             T = diag(2), R = matrix(1, 2, 1), Q = matrix(1),             P1inf = diag(2)) + SSMseasonal(period = 12, sea.type = "trigonometric"),             data = Seatbelts, H = matrix(NA, 2, 2))        diag(kfas_model$P1) <- 50        diag(kfas_model$P1inf) <- 0        kfas_model$H <- structure(c(0.00544500509177812, 0.00437558178720609,             0.00437558178720609, 0.00885692410165593), .Dim = c(2L,             2L, 1L))        kfas_model$R <- structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0,             0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,             0, 0.0152150188066314, 0.0144897116711475), .Dim = c(29L,             1L, 1L), .Dimnames = list(c("log(PetrolPrice).front",             "log(kms).front", "log(PetrolPrice).rear", "log(kms).rear",             "law.front", "sea_trig1.front", "sea_trig*1.front",             "sea_trig2.front", "sea_trig*2.front", "sea_trig3.front",             "sea_trig*3.front", "sea_trig4.front", "sea_trig*4.front",             "sea_trig5.front", "sea_trig*5.front", "sea_trig6.front",             "sea_trig1.rear", "sea_trig*1.rear", "sea_trig2.rear",             "sea_trig*2.rear", "sea_trig3.rear", "sea_trig*3.rear",             "sea_trig4.rear", "sea_trig*4.rear", "sea_trig5.rear",             "sea_trig*5.rear", "sea_trig6.rear", "custom1", "custom2"),             NULL, NULL))        bssm_model <- as_gssm(kfas_model)        expect_equivalent(logLik(kfas_model), logLik(bssm_model))        expect_equivalent(KFS(kfas_model)$alphahat, smoother(bssm_model)$alphahat)    })
  19: eval(code, test_env)
  20: eval(code, test_env)
  21: 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)
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  25: doTryCatch(return(expr), name, parentenv, handler)
  26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  27: tryCatchList(expr, classes, parentenv, handlers)
  28: 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) {    })
  29: test_code(NULL, exprs, env)
  30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  31: force(code)
  32: 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()    })
  33: FUN(X[[i]], ...)
  34: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  35: force(code)
  36: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  37: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  38: 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)
  39: 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)
  40: test_check("bssm")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault