Running ‘testthat.R’ [20m/26m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(MIRES)
  > 
  > test_check("MIRES")
  [1] "no object returned"
  [1] "no object returned"
  Chain 1: ------------------------------------------------------------
  Chain 1: EXPERIMENTAL ALGORITHM:
  Chain 1:   This procedure has not been thoroughly tested and may be unstable
  Chain 1:   or buggy. The interface is subject to change.
  Chain 1: ------------------------------------------------------------
  Chain 1: 
  Chain 1: 
  Chain 1: 
  Chain 1: Gradient evaluation took 0.031387 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 313.87 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Begin eta adaptation.
  Chain 1: Iteration:   1 / 250 [  0%]  (Adaptation)
  Chain 1: Iteration:  50 / 250 [ 20%]  (Adaptation)
  Chain 1: Iteration: 100 / 250 [ 40%]  (Adaptation)
  Chain 1: Iteration: 150 / 250 [ 60%]  (Adaptation)
  Chain 1: Iteration: 200 / 250 [ 80%]  (Adaptation)
  Chain 1: Success! Found best value [eta = 1] earlier than expected.
  Chain 1: 
  Chain 1: Begin stochastic gradient ascent.
  Chain 1:   iter             ELBO   delta_ELBO_mean   delta_ELBO_med   notes 
  Chain 1:    100         -442.467             1.000            1.000
  Chain 1:    200         -227.361             0.973            1.000   MEAN ELBO CONVERGED
  Chain 1: 
  Chain 1: Drawing a sample of size 1000 from the approximate posterior... 
  Chain 1: COMPLETED.
  Chain 1: ------------------------------------------------------------
  Chain 1: EXPERIMENTAL ALGORITHM:
  Chain 1:   This procedure has not been thoroughly tested and may be unstable
  Chain 1:   or buggy. The interface is subject to change.
  Chain 1: ------------------------------------------------------------
  Chain 1: 
  Chain 1: 
  Chain 1: 
  Chain 1: Gradient evaluation took 0.040474 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 404.74 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Begin eta adaptation.
  Chain 1: Iteration:   1 / 250 [  0%]  (Adaptation)
  Chain 1: Iteration:  50 / 250 [ 20%]  (Adaptation)
  Chain 1: Iteration: 100 / 250 [ 40%]  (Adaptation)
  Chain 1: Iteration: 150 / 250 [ 60%]  (Adaptation)
  Chain 1: Iteration: 200 / 250 [ 80%]  (Adaptation)
  Chain 1: Success! Found best value [eta = 1] earlier than expected.
  Chain 1: 
  Chain 1: Begin stochastic gradient ascent.
  Chain 1:   iter             ELBO   delta_ELBO_mean   delta_ELBO_med   notes 
  Chain 1:    100         -245.557             1.000            1.000
  Chain 1:    200         -104.111             1.179            1.359
  Chain 1:    300          -21.898             2.038            1.359
  Chain 1:    400          -84.935             1.714            1.359
  Chain 1:    500          -18.558             2.086            1.359
  Chain 1:    600           55.737             1.961            1.359
  Chain 1:    700           63.486             1.698            1.333
  Chain 1:    800           82.905             1.515            1.333
  Chain 1:    900           73.904             1.360            1.000
  Chain 1:   1000           53.583             1.262            1.000
  Chain 1:   1100           69.566             1.185            0.742   MEDIAN ELBO CONVERGED   MAY BE DIVERGING... INSPECT ELBO
  Chain 1: Informational Message: The ELBO at a previous iteration is larger than the ELBO upon convergence!
  Chain 1: This variational approximation may not have converged to a good optimum.
  Chain 1: 
  Chain 1: Drawing a sample of size 1000 from the approximate posterior... 
  Chain 1: COMPLETED.
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.002799 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 27.99 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.144 seconds (Warm-up)
  Chain 1:                0.014 seconds (Sampling)
  Chain 1:                0.158 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000678 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 6.78 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.098 seconds (Warm-up)
  Chain 1:                0.017 seconds (Sampling)
  Chain 1:                0.115 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.001393 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 13.93 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.157 seconds (Warm-up)
  Chain 1:                0.058 seconds (Sampling)
  Chain 1:                0.215 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.001763 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 17.63 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.363 seconds (Warm-up)
  Chain 1:                0.301 seconds (Sampling)
  Chain 1:                0.664 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000818 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 8.18 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.178 seconds (Warm-up)
  Chain 1:                0.433 seconds (Sampling)
  Chain 1:                0.611 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000607 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 6.07 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.331 seconds (Warm-up)
  Chain 1:                0.493 seconds (Sampling)
  Chain 1:                0.824 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000844 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 8.44 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.773 seconds (Warm-up)
  Chain 1:                0.62 seconds (Sampling)
  Chain 1:                1.393 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000778 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 7.78 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.33 seconds (Warm-up)
  Chain 1:                0.427 seconds (Sampling)
  Chain 1:                0.757 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'redifhm_all' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000787 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 7.87 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 10 / 100 [ 10%]  (Warmup)
  Chain 1: Iteration: 20 / 100 [ 20%]  (Warmup)
  Chain 1: Iteration: 30 / 100 [ 30%]  (Warmup)
  Chain 1: Iteration: 40 / 100 [ 40%]  (Warmup)
  Chain 1: Iteration: 50 / 100 [ 50%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 60 / 100 [ 60%]  (Sampling)
  Chain 1: Iteration: 70 / 100 [ 70%]  (Sampling)
  Chain 1: Iteration: 80 / 100 [ 80%]  (Sampling)
  Chain 1: Iteration: 90 / 100 [ 90%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 16.622 seconds (Warm-up)
  Chain 1:                14.872 seconds (Sampling)
  Chain 1:                31.494 seconds (Total)
  Chain 1: 
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 95 ]
  > 
  > proc.time()
     user  system elapsed 
  101.320   1.373 129.103 
  Assertion failure at kmp_runtime.cpp(6918): temp_reg_status_file_name.
  OMP: Error #13: Assertion failure at kmp_runtime.cpp(6918).
  OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
  Assertion failure at kmp_runtime.cpp(6918): temp_reg_status_file_name.
  OMP: Error #13: Assertion failure at kmp_runtime.cpp(6918).
  OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see https://bugs.llvm.org/.
  Killed