Running 'testthat.R' [352s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > test_check("BMhyb")
  Loading required package: BMhyb
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.117682960 2.118832288 0.007956494 1.000000000 0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   1.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   2.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.803344
    Scaled convergence tolerance is 2.39033
  Stepsize computed as 0.217137
  BUILD              6 29.301229 23.803344
  HI-REDUCTION       8 26.718004 23.803344
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   3.000000000 23.803344082  0.113728946  2.171367318  0.007652079  0.922449548 
            vh 
   0.007455708 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.060006
    Scaled convergence tolerance is 2.416
  Stepsize computed as 0.200139
  BUILD              6 29.149635 24.060006
  HI-REDUCTION       8 26.776302 24.060006
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   4.000000000 23.803344082  0.113728946  2.171367318  0.007652079  0.922449548 
            vh 
   0.007455708 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.126134
    Scaled convergence tolerance is 2.42261
  Stepsize computed as 0.204128
  BUILD              6 29.133931 24.126134
  HI-REDUCTION       8 26.725920 24.126134
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   5.000000000 23.803344082  0.113728946  2.171367318  0.007652079  0.922449548 
            vh 
   0.007455708 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.143219260 1.863874211 0.001432193 1.000000000 0.001432193 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 2.400191
    Scaled convergence tolerance is 0.250019
  Stepsize computed as 0.186387
  BUILD              6 2.893944 1.140476
  HI-REDUCTION       8 2.484374 1.140476
  LO-REDUCTION      10 2.483972 1.140476
  HI-REDUCTION      12 2.454265 1.140476
  HI-REDUCTION      14 2.442121 1.140476
  HI-REDUCTION      16 2.400191 1.140476
  LO-REDUCTION      18 2.229103 1.140476
  LO-REDUCTION      20 2.214323 1.140476
  HI-REDUCTION      22 2.178911 1.140476
  LO-REDUCTION      24 2.172979 1.140476
  LO-REDUCTION      26 2.125052 1.140476
  HI-REDUCTION      28 2.043431 1.140476
  LO-REDUCTION      30 1.876541 1.140476
  HI-REDUCTION      32 1.800741 1.140476
  HI-REDUCTION      34 1.672659 1.140476
  HI-REDUCTION      36 1.643257 1.140476
  HI-REDUCTION      38 1.622216 1.140476
  HI-REDUCTION      40 1.562369 1.140476
  LO-REDUCTION      42 1.554581 1.140476
  HI-REDUCTION      44 1.537556 1.140476
  HI-REDUCTION      46 1.493545 1.140476
  HI-REDUCTION      48 1.458363 1.140476
  LO-REDUCTION      50 1.443346 1.140476
  HI-REDUCTION      52 1.410906 1.140476
  REFLECTION        54 1.358477 1.104436
  Exiting from Nelder Mead minimizer
      56 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
  1.0000000000 1.1044364648 0.1342366066 1.8328949865 0.0006629876 1.2354253236 
            vh 
  0.0053023471 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.104436
    Scaled convergence tolerance is 0.120444
  Stepsize computed as 0.183289
  BUILD              6 2.527815 1.104436
  HI-REDUCTION       8 2.083796 1.104436
  HI-REDUCTION      10 2.047827 1.104436
  HI-REDUCTION      12 1.857010 1.104436
  HI-REDUCTION      14 1.847888 1.104436
  HI-REDUCTION      16 1.834488 1.104436
  HI-REDUCTION      18 1.814264 1.104436
  HI-REDUCTION      20 1.724956 1.104436
  LO-REDUCTION      22 1.673251 1.104436
  HI-REDUCTION      24 1.661795 1.104436
  HI-REDUCTION      26 1.637586 1.104436
  LO-REDUCTION      28 1.566960 1.104436
  HI-REDUCTION      30 1.549002 1.104436
  LO-REDUCTION      32 1.548585 1.104436
  LO-REDUCTION      34 1.502566 1.104436
  LO-REDUCTION      36 1.476850 1.104436
  HI-REDUCTION      38 1.381871 1.104436
  LO-REDUCTION      40 1.376286 1.104436
  HI-REDUCTION      42 1.348098 1.104436
  HI-REDUCTION      44 1.285043 1.104436
  HI-REDUCTION      46 1.258256 1.104436
  REFLECTION        48 1.254813 1.098492
  LO-REDUCTION      50 1.229498 1.098492
  LO-REDUCTION      52 1.220973 1.098492
  REFLECTION        54 1.186593 1.031889
  HI-REDUCTION      56 1.154198 1.031889
  Exiting from Nelder Mead minimizer
      58 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
  2.000000e+00 1.031889e+00 1.309608e-01 1.793654e+00 1.873755e-03 1.236377e+00 
            vh 
  3.266535e-06 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.077315
    Scaled convergence tolerance is 0.117731
  Stepsize computed as 0.180969
  BUILD              6 2.491759 1.077315
  HI-REDUCTION       8 2.041219 1.077315
  HI-REDUCTION      10 1.969820 1.077315
  HI-REDUCTION      12 1.837659 1.077315
  HI-REDUCTION      14 1.810072 1.077315
  HI-REDUCTION      16 1.788077 1.077315
  HI-REDUCTION      18 1.752102 1.077315
  HI-REDUCTION      20 1.622927 1.077315
  HI-REDUCTION      22 1.607919 1.077315
  HI-REDUCTION      24 1.606176 1.077315
  LO-REDUCTION      26 1.603439 1.077315
  HI-REDUCTION      28 1.517270 1.077315
  HI-REDUCTION      30 1.488933 1.077315
  LO-REDUCTION      32 1.479073 1.077315
  LO-REDUCTION      34 1.455140 1.077315
  LO-REDUCTION      36 1.451721 1.077315
  HI-REDUCTION      38 1.441477 1.077315
  HI-REDUCTION      40 1.333122 1.077315
  HI-REDUCTION      42 1.312575 1.077315
  LO-REDUCTION      44 1.262654 1.077315
  HI-REDUCTION      46 1.241152 1.077315
  LO-REDUCTION      48 1.230494 1.077315
  LO-REDUCTION      50 1.209142 1.077315
  HI-REDUCTION      52 1.203209 1.077315
  Exiting from Nelder Mead minimizer
      54 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
  3.000000e+00 1.031889e+00 1.309608e-01 1.793654e+00 1.873755e-03 1.236377e+00 
            vh 
  3.266535e-06 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.594038
    Scaled convergence tolerance is 0.169404
  Stepsize computed as 0.163374
  BUILD              6 2.563507 1.230071
  HI-REDUCTION       8 2.076570 1.230071
  HI-REDUCTION      10 2.017506 1.230071
  HI-REDUCTION      12 1.800135 1.230071
  HI-REDUCTION      14 1.796908 1.230071
  HI-REDUCTION      16 1.734053 1.230071
  LO-REDUCTION      18 1.621850 1.230071
  HI-REDUCTION      20 1.620295 1.230071
  HI-REDUCTION      22 1.594038 1.230071
  LO-REDUCTION      24 1.462836 1.230071
  HI-REDUCTION      26 1.436776 1.230071
  Exiting from Nelder Mead minimizer
      28 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
  4.000000e+00 1.031889e+00 1.309608e-01 1.793654e+00 1.873755e-03 1.236377e+00 
            vh 
  3.266535e-06 
  [1] "100 of 100 done"
  -- 1. Failure: Simulation works (@test_condition.R#33)  ------------------------
  result$best$NegLogLik is not more than 2. Difference: -0.968
  
  == testthat results  ===========================================================
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 11 | FAILED: 1 ]
  1. Failure: Simulation works (@test_condition.R#33) 
  
  Error: testthat unit tests failed
  Execution halted