Access method for bru_log
objects.
Note: Up to version 2.8.0
, bru_log()
was a deprecated alias for
bru_log_message()
. When running on 2.8.0
or earlier, use bru_log_get()
to access the global log, and cat(fit$bru_iinla$log, sep = "\n")
to print a
stored estimation object log.
After version 2.8.0
, use bru_log()
to access the global log, and
bru_log(fit)
to access a stored estimation log.
Usage
bru_log(x = NULL, verbosity = NULL)
# S3 method for class 'character'
bru_log(x, verbosity = NULL)
# S3 method for class 'bru_log'
bru_log(x, verbosity = NULL)
# S3 method for class 'iinla'
bru_log(x, verbosity = NULL)
# S3 method for class 'bru'
bru_log(x, verbosity = NULL)
# S3 method for class 'bru_log'
format(x, ..., timestamp = TRUE, verbosity = FALSE)
# S3 method for class 'bru_log'
print(x, ..., timestamp = TRUE, verbosity = FALSE)
# S3 method for class 'bru_log'
as.character(x, ...)
# S3 method for class 'bru_log'
x[i]
# S3 method for class 'bru_log'
c(...)
# S3 method for class 'bru_log'
length(x)
Arguments
- x
An object that is, contains, or can be converted to, a
bru_log
object. IfNULL
, refers to the globalinlabru
log.- verbosity
integer value for limiting the highest verbosity level being returned.
- ...
further arguments passed to or from other methods.
- timestamp
If
TRUE
, include the timestamp of each message. DefaultTRUE
.- i
indices specifying elements to extract. If
character
, denotes the sequence between bookmarki
and the next bookmark (or the end of the log ifi
is the last bookmark)
Value
bru_log
A bru_log
object, containing a
character vector of log messages, and potentially a vector of bookmarks.
Methods (by generic)
format(bru_log)
: Format abru_log
object for printing. Ifverbosity
isTRUE
, include the verbosity level of each message.print(bru_log)
: Print abru_log
object withcat(x, sep = "\n")
. Ifverbosity
isTRUE
, include the verbosity level of each message.as.character(bru_log)
: Convertbru_log
object to a plaincharacter
vector[
: Extract a subset of abru_log
objectc(bru_log)
: Concatenate severalbru_log
orcharacter
objects into abru_log
object.length(bru_log)
: Obtain the number of log entries into abru_log
object.
Functions
bru_log()
: Extract stored log messages. If non-NULL
, theverbosity
argument determines the maximum verbosity level of the messages to extract.
See also
Other inlabru log methods:
bru_log_bookmark()
,
bru_log_message()
,
bru_log_new()
,
bru_log_offset()
,
bru_log_reset()
Examples
bru_log(verbosity = 2L)
#> 2025-07-04 14:57:45.673988: inlabru loaded
#> 2025-07-04 14:57:45.67445: Clear override options
#> 2025-07-04 14:57:56.587361: bru: Preprocessing
#> 2025-07-04 14:57:56.84898: iinla: Iteration 1 [max:1]
#> 2025-07-04 14:57:57.395694: bru: Preprocessing
#> 2025-07-04 14:57:57.573988: iinla: Iteration 1 [max:1]
#> 2025-07-04 14:57:57.993959: bru: Preprocessing
#> 2025-07-04 14:57:58.166036: iinla: Iteration 1 [max:10]
#> 2025-07-04 14:57:58.554149: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560)
#> 2025-07-04 14:57:58.60174: iinla: Iteration 2 [max:10]
#> 2025-07-04 14:57:59.262424: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)
#> 2025-07-04 14:57:59.307004: iinla: Max deviation from previous: 74400% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:57:59.308728: iinla: Iteration 3 [max:10]
#> 2025-07-04 14:57:59.703419: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)
#> 2025-07-04 14:57:59.747514: iinla: Max deviation from previous: 748% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:57:59.749241: iinla: Iteration 4 [max:10]
#> 2025-07-04 14:58:00.190486: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:58:00.192229: iinla: Iteration 5 [max:10]
#> 2025-07-04 14:58:00.630224: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:58:00.631404: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode.
#> 2025-07-04 14:58:00.633085: iinla: Iteration 6 [max:10]
#> 2025-07-04 14:58:01.923901: bru: Preprocessing
#> 2025-07-04 14:58:02.027451: iinla: Iteration 1 [max:1]
#> 2025-07-04 14:58:08.756744: bru: Preprocessing
#> 2025-07-04 14:58:08.916302: iinla: Iteration 1 [max:1]
format(bru_log())
#> [1] "2025-07-04 14:57:45.673988: inlabru loaded"
#> [2] "2025-07-04 14:57:45.67445: Clear override options"
#> [3] "2025-07-04 14:57:56.587361: bru: Preprocessing"
#> [4] "2025-07-04 14:57:56.596358: Evaluate component inputs for each observation model"
#> [5] "2025-07-04 14:57:56.597806: input_eval.bru_comp_list"
#> [6] "2025-07-04 14:57:56.599126: input_eval.bru_comp(x)"
#> [7] "2025-07-04 14:57:56.600707: input_eval.bru_input(x)"
#> [8] "2025-07-04 14:57:56.608525: input_eval.bru_input(x.group)"
#> [9] "2025-07-04 14:57:56.61412: input_eval.bru_input(x.repl)"
#> [10] "2025-07-04 14:57:56.619608: input_eval.bru_comp(Intercept)"
#> [11] "2025-07-04 14:57:56.620961: input_eval.bru_input(Intercept)"
#> [12] "2025-07-04 14:57:56.627461: input_eval.bru_input(Intercept.group)"
#> [13] "2025-07-04 14:57:56.632972: input_eval.bru_input(Intercept.repl)"
#> [14] "2025-07-04 14:57:56.755709: iinla: Start"
#> [15] "2025-07-04 14:57:56.756896: iinla: Evaluate component linearisations"
#> [16] "2025-07-04 14:57:56.758099: Linearise components for each observation model"
#> [17] "2025-07-04 14:57:56.759498: Linearise component 'x'"
#> [18] "2025-07-04 14:57:56.77342: Linearise component 'Intercept'"
#> [19] "2025-07-04 14:57:56.785585: iinla: Evaluate component simplifications"
#> [20] "2025-07-04 14:57:56.786969: Simplify component mappers for each observation model"
#> [21] "2025-07-04 14:57:56.788386: Simplify component 'x'"
#> [22] "2025-07-04 14:57:56.800887: Simplify component 'Intercept'"
#> [23] "2025-07-04 14:57:56.81286: iinla: Evaluate predictor linearisation"
#> [24] "2025-07-04 14:57:56.825006: iinla: Construct inla stack"
#> [25] "2025-07-04 14:57:56.847667: iinla: Model initialisation completed"
#> [26] "2025-07-04 14:57:56.84898: iinla: Iteration 1 [max:1]"
#> [27] "2025-07-04 14:57:57.395694: bru: Preprocessing"
#> [28] "2025-07-04 14:57:57.39916: Evaluate component inputs for each observation model"
#> [29] "2025-07-04 14:57:57.400527: input_eval.bru_comp_list"
#> [30] "2025-07-04 14:57:57.401801: input_eval.bru_comp(x)"
#> [31] "2025-07-04 14:57:57.403026: input_eval.bru_input(x)"
#> [32] "2025-07-04 14:57:57.409787: input_eval.bru_input(x.group)"
#> [33] "2025-07-04 14:57:57.415211: input_eval.bru_input(x.repl)"
#> [34] "2025-07-04 14:57:57.420382: input_eval.bru_comp(Intercept)"
#> [35] "2025-07-04 14:57:57.421608: input_eval.bru_input(Intercept)"
#> [36] "2025-07-04 14:57:57.426664: input_eval.bru_input(Intercept.group)"
#> [37] "2025-07-04 14:57:57.431886: input_eval.bru_input(Intercept.repl)"
#> [38] "2025-07-04 14:57:57.485715: iinla: Start"
#> [39] "2025-07-04 14:57:57.486911: iinla: Evaluate component linearisations"
#> [40] "2025-07-04 14:57:57.488082: Linearise components for each observation model"
#> [41] "2025-07-04 14:57:57.48946: Linearise component 'x'"
#> [42] "2025-07-04 14:57:57.503309: Linearise component 'Intercept'"
#> [43] "2025-07-04 14:57:57.51557: iinla: Evaluate component simplifications"
#> [44] "2025-07-04 14:57:57.516932: Simplify component mappers for each observation model"
#> [45] "2025-07-04 14:57:57.518301: Simplify component 'x'"
#> [46] "2025-07-04 14:57:57.531368: Simplify component 'Intercept'"
#> [47] "2025-07-04 14:57:57.551451: iinla: Evaluate predictor linearisation"
#> [48] "2025-07-04 14:57:57.558492: iinla: Construct inla stack"
#> [49] "2025-07-04 14:57:57.572678: iinla: Model initialisation completed"
#> [50] "2025-07-04 14:57:57.573988: iinla: Iteration 1 [max:1]"
#> [51] "2025-07-04 14:57:57.993959: bru: Preprocessing"
#> [52] "2025-07-04 14:57:57.997247: Evaluate component inputs for each observation model"
#> [53] "2025-07-04 14:57:57.998502: input_eval.bru_comp_list"
#> [54] "2025-07-04 14:57:57.999742: input_eval.bru_comp(z)"
#> [55] "2025-07-04 14:57:58.000931: input_eval.bru_input(z)"
#> [56] "2025-07-04 14:57:58.01495: input_eval.bru_input(z.group)"
#> [57] "2025-07-04 14:57:58.020589: input_eval.bru_input(z.repl)"
#> [58] "2025-07-04 14:57:58.025512: input_eval.bru_comp(Intercept)"
#> [59] "2025-07-04 14:57:58.026829: input_eval.bru_input(Intercept)"
#> [60] "2025-07-04 14:57:58.031686: input_eval.bru_input(Intercept.group)"
#> [61] "2025-07-04 14:57:58.036585: input_eval.bru_input(Intercept.repl)"
#> [62] "2025-07-04 14:57:58.08843: iinla: Start"
#> [63] "2025-07-04 14:57:58.089682: iinla: Evaluate component linearisations"
#> [64] "2025-07-04 14:57:58.090891: Linearise components for each observation model"
#> [65] "2025-07-04 14:57:58.092191: Linearise component 'z'"
#> [66] "2025-07-04 14:57:58.104051: Linearise component 'Intercept'"
#> [67] "2025-07-04 14:57:58.115461: iinla: Evaluate component simplifications"
#> [68] "2025-07-04 14:57:58.116761: Simplify component mappers for each observation model"
#> [69] "2025-07-04 14:57:58.118075: Simplify component 'z'"
#> [70] "2025-07-04 14:57:58.129743: Simplify component 'Intercept'"
#> [71] "2025-07-04 14:57:58.141603: iinla: Evaluate predictor linearisation"
#> [72] "2025-07-04 14:57:58.144356: Linearise with respect to component 'z'"
#> [73] "2025-07-04 14:57:58.14884: Linearise with respect to component 'Intercept'"
#> [74] "2025-07-04 14:57:58.151963: iinla: Construct inla stack"
#> [75] "2025-07-04 14:57:58.164793: iinla: Model initialisation completed"
#> [76] "2025-07-04 14:57:58.166036: iinla: Iteration 1 [max:10]"
#> [77] "2025-07-04 14:57:58.545969: iinla: Step rescaling: 61.8%, Contract (norm0 = 3092, norm1 = 2833, norm01 = 560)"
#> [78] "2025-07-04 14:57:58.548345: iinla: Step rescaling: 38.2%, Contract (norm0 = 632.8, norm1 = 468.9, norm01 = 560)"
#> [79] "2025-07-04 14:57:58.551478: iinla: Step rescaling: 27.61%, Approx Optimisation (norm0 = 298.2, norm1 = 362.7, norm01 = 560)"
#> [80] "2025-07-04 14:57:58.552856: iinla: |lin1-lin0| = 560\n <eta-lin1,delta>/|delta| = -318.1\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 174.3"
#> [81] "2025-07-04 14:57:58.554149: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560)"
#> [82] "2025-07-04 14:57:58.555897: iinla: Evaluate component linearisations"
#> [83] "2025-07-04 14:57:58.557078: Linearise components for each observation model"
#> [84] "2025-07-04 14:57:58.558408: Linearise component 'z'"
#> [85] "2025-07-04 14:57:58.570176: Linearise component 'Intercept'"
#> [86] "2025-07-04 14:57:58.582162: iinla: Evaluate predictor linearisation"
#> [87] "2025-07-04 14:57:58.584695: Linearise with respect to component 'z'"
#> [88] "2025-07-04 14:57:58.588352: Linearise with respect to component 'Intercept'"
#> [89] "2025-07-04 14:57:58.60174: iinla: Iteration 2 [max:10]"
#> [90] "2025-07-04 14:57:59.254617: iinla: Step rescaling: 162%, Expand (norm0 = 586.7, norm1 = 226.9, norm01 = 362.6)"
#> [91] "2025-07-04 14:57:59.25702: iinla: Step rescaling: 100%, Overstep (norm0 = 362.3, norm1 = 16.18, norm01 = 362.6)"
#> [92] "2025-07-04 14:57:59.260041: iinla: Step rescaling: 99.77%, Approx Optimisation (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)"
#> [93] "2025-07-04 14:57:59.261274: iinla: |lin1-lin0| = 362.6\n <eta-lin1,delta>/|delta| = -1.44\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 16.09"
#> [94] "2025-07-04 14:57:59.262424: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)"
#> [95] "2025-07-04 14:57:59.26407: iinla: Evaluate component linearisations"
#> [96] "2025-07-04 14:57:59.265193: Linearise components for each observation model"
#> [97] "2025-07-04 14:57:59.266418: Linearise component 'z'"
#> [98] "2025-07-04 14:57:59.277919: Linearise component 'Intercept'"
#> [99] "2025-07-04 14:57:59.289262: iinla: Evaluate predictor linearisation"
#> [100] "2025-07-04 14:57:59.291614: Linearise with respect to component 'z'"
#> [101] "2025-07-04 14:57:59.294904: Linearise with respect to component 'Intercept'"
#> [102] "2025-07-04 14:57:59.307004: iinla: Max deviation from previous: 74400% of SD, and line search is active\n [stop if: <10% and line search inactive]"
#> [103] "2025-07-04 14:57:59.308728: iinla: Iteration 3 [max:10]"
#> [104] "2025-07-04 14:57:59.690459: iinla: Step rescaling: 162%, Expand (norm0 = 25.48, norm1 = 9.329, norm01 = 16.15)"
#> [105] "2025-07-04 14:57:59.69284: iinla: Step rescaling: 100%, Overstep (norm0 = 15.9, norm1 = 0.2508, norm01 = 16.15)"
#> [106] "2025-07-04 14:57:59.701035: iinla: Step rescaling: 101.6%, Approx Optimisation (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)"
#> [107] "2025-07-04 14:57:59.702267: iinla: |lin1-lin0| = 16.15\n <eta-lin1,delta>/|delta| = -5.412e-06\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 0.01358"
#> [108] "2025-07-04 14:57:59.703419: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)"
#> [109] "2025-07-04 14:57:59.705049: iinla: Evaluate component linearisations"
#> [110] "2025-07-04 14:57:59.706162: Linearise components for each observation model"
#> [111] "2025-07-04 14:57:59.707379: Linearise component 'z'"
#> [112] "2025-07-04 14:57:59.718798: Linearise component 'Intercept'"
#> [113] "2025-07-04 14:57:59.72994: iinla: Evaluate predictor linearisation"
#> [114] "2025-07-04 14:57:59.732207: Linearise with respect to component 'z'"
#> [115] "2025-07-04 14:57:59.735464: Linearise with respect to component 'Intercept'"
#> [116] "2025-07-04 14:57:59.747514: iinla: Max deviation from previous: 748% of SD, and line search is active\n [stop if: <10% and line search inactive]"
#> [117] "2025-07-04 14:57:59.749241: iinla: Iteration 4 [max:10]"
#> [118] "2025-07-04 14:58:00.13214: iinla: Step rescaling: 162%, Expand (norm0 = 0.02197, norm1 = 0.008393, norm01 = 0.01358)"
#> [119] "2025-07-04 14:58:00.13466: iinla: Step rescaling: 100%, Overstep (norm0 = 0.01358, norm1 = 5.334e-08, norm01 = 0.01358)"
#> [120] "2025-07-04 14:58:00.137763: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 0.01358, norm1 = 5.327e-08, norm01 = 0.01358)"
#> [121] "2025-07-04 14:58:00.139062: iinla: |lin1-lin0| = 0.01358\n <eta-lin1,delta>/|delta| = 5.962e-11\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 5.327e-08"
#> [122] "2025-07-04 14:58:00.140918: iinla: Evaluate component linearisations"
#> [123] "2025-07-04 14:58:00.146972: Linearise components for each observation model"
#> [124] "2025-07-04 14:58:00.148528: Linearise component 'z'"
#> [125] "2025-07-04 14:58:00.160346: Linearise component 'Intercept'"
#> [126] "2025-07-04 14:58:00.172296: iinla: Evaluate predictor linearisation"
#> [127] "2025-07-04 14:58:00.174835: Linearise with respect to component 'z'"
#> [128] "2025-07-04 14:58:00.178172: Linearise with respect to component 'Intercept'"
#> [129] "2025-07-04 14:58:00.190486: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive\n [stop if: <10% and line search inactive]"
#> [130] "2025-07-04 14:58:00.192229: iinla: Iteration 5 [max:10]"
#> [131] "2025-07-04 14:58:00.572478: iinla: Step rescaling: 162%, Expand (norm0 = 4.305e-07, norm1 = 1.644e-07, norm01 = 2.661e-07)"
#> [132] "2025-07-04 14:58:00.574878: iinla: Step rescaling: 100%, Overstep (norm0 = 2.661e-07, norm1 = 6.59e-13, norm01 = 2.661e-07)"
#> [133] "2025-07-04 14:58:00.577864: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 2.661e-07, norm1 = 6.985e-13, norm01 = 2.661e-07)"
#> [134] "2025-07-04 14:58:00.579071: iinla: Optimisation did not improve on previous solution."
#> [135] "2025-07-04 14:58:00.580278: iinla: |lin1-lin0| = 2.661e-07\n <eta-lin1,delta>/|delta| = -1.067e-13\n |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 6.503e-13"
#> [136] "2025-07-04 14:58:00.58203: iinla: Evaluate component linearisations"
#> [137] "2025-07-04 14:58:00.583283: Linearise components for each observation model"
#> [138] "2025-07-04 14:58:00.584665: Linearise component 'z'"
#> [139] "2025-07-04 14:58:00.60129: Linearise component 'Intercept'"
#> [140] "2025-07-04 14:58:00.612552: iinla: Evaluate predictor linearisation"
#> [141] "2025-07-04 14:58:00.614889: Linearise with respect to component 'z'"
#> [142] "2025-07-04 14:58:00.618246: Linearise with respect to component 'Intercept'"
#> [143] "2025-07-04 14:58:00.630224: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive\n [stop if: <10% and line search inactive]"
#> [144] "2025-07-04 14:58:00.631404: iinla: Convergence criterion met.\n Running final INLA integration step with known theta mode."
#> [145] "2025-07-04 14:58:00.633085: iinla: Iteration 6 [max:10]"
#> [146] "2025-07-04 14:58:01.923901: bru: Preprocessing"
#> [147] "2025-07-04 14:58:01.929492: Evaluate component inputs for each observation model"
#> [148] "2025-07-04 14:58:01.93079: input_eval.bru_comp_list"
#> [149] "2025-07-04 14:58:01.93205: input_eval.bru_comp(field)"
#> [150] "2025-07-04 14:58:01.933236: input_eval.bru_input(field)"
#> [151] "2025-07-04 14:58:01.941024: input_eval.bru_input(field.group)"
#> [152] "2025-07-04 14:58:01.947118: input_eval.bru_input(field.repl)"
#> [153] "2025-07-04 14:58:01.977662: iinla: Start"
#> [154] "2025-07-04 14:58:01.978859: iinla: Evaluate component linearisations"
#> [155] "2025-07-04 14:58:01.980166: Linearise components for each observation model"
#> [156] "2025-07-04 14:58:01.981447: Linearise component 'field'"
#> [157] "2025-07-04 14:58:01.995604: iinla: Evaluate component simplifications"
#> [158] "2025-07-04 14:58:01.996879: Simplify component mappers for each observation model"
#> [159] "2025-07-04 14:58:01.998164: Simplify component 'field'"
#> [160] "2025-07-04 14:58:02.012002: iinla: Evaluate predictor linearisation"
#> [161] "2025-07-04 14:58:02.015295: iinla: Construct inla stack"
#> [162] "2025-07-04 14:58:02.026229: iinla: Model initialisation completed"
#> [163] "2025-07-04 14:58:02.027451: iinla: Iteration 1 [max:1]"
#> [164] "2025-07-04 14:58:04.55413: input_eval.bru_comp_list"
#> [165] "2025-07-04 14:58:08.756744: bru: Preprocessing"
#> [166] "2025-07-04 14:58:08.764646: Evaluate component inputs for each observation model"
#> [167] "2025-07-04 14:58:08.76594: input_eval.bru_comp_list"
#> [168] "2025-07-04 14:58:08.767192: input_eval.bru_comp(x)"
#> [169] "2025-07-04 14:58:08.768369: input_eval.bru_input(x)"
#> [170] "2025-07-04 14:58:08.775249: input_eval.bru_input(x.group)"
#> [171] "2025-07-04 14:58:08.780567: input_eval.bru_input(x.repl)"
#> [172] "2025-07-04 14:58:08.787573: input_eval.bru_comp_list"
#> [173] "2025-07-04 14:58:08.788825: input_eval.bru_comp(x)"
#> [174] "2025-07-04 14:58:08.790015: input_eval.bru_input(x)"
#> [175] "2025-07-04 14:58:08.795421: input_eval.bru_input(x.group)"
#> [176] "2025-07-04 14:58:08.800728: input_eval.bru_input(x.repl)"
#> [177] "2025-07-04 14:58:08.836605: iinla: Start"
#> [178] "2025-07-04 14:58:08.837785: iinla: Evaluate component linearisations"
#> [179] "2025-07-04 14:58:08.838939: Linearise components for each observation model"
#> [180] "2025-07-04 14:58:08.840205: Linearise component 'x'"
#> [181] "2025-07-04 14:58:08.853895: Linearise component 'x'"
#> [182] "2025-07-04 14:58:08.865899: iinla: Evaluate component simplifications"
#> [183] "2025-07-04 14:58:08.867098: Simplify component mappers for each observation model"
#> [184] "2025-07-04 14:58:08.868355: Simplify component 'x'"
#> [185] "2025-07-04 14:58:08.880469: Simplify component 'x'"
#> [186] "2025-07-04 14:58:08.892706: iinla: Evaluate predictor linearisation"
#> [187] "2025-07-04 14:58:08.899852: iinla: Construct inla stack"
#> [188] "2025-07-04 14:58:08.915005: iinla: Model initialisation completed"
#> [189] "2025-07-04 14:58:08.916302: iinla: Iteration 1 [max:1]"
bru_log(verbosity = 2L)
#> 2025-07-04 14:57:45.673988: inlabru loaded
#> 2025-07-04 14:57:45.67445: Clear override options
#> 2025-07-04 14:57:56.587361: bru: Preprocessing
#> 2025-07-04 14:57:56.84898: iinla: Iteration 1 [max:1]
#> 2025-07-04 14:57:57.395694: bru: Preprocessing
#> 2025-07-04 14:57:57.573988: iinla: Iteration 1 [max:1]
#> 2025-07-04 14:57:57.993959: bru: Preprocessing
#> 2025-07-04 14:57:58.166036: iinla: Iteration 1 [max:10]
#> 2025-07-04 14:57:58.554149: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560)
#> 2025-07-04 14:57:58.60174: iinla: Iteration 2 [max:10]
#> 2025-07-04 14:57:59.262424: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6)
#> 2025-07-04 14:57:59.307004: iinla: Max deviation from previous: 74400% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:57:59.308728: iinla: Iteration 3 [max:10]
#> 2025-07-04 14:57:59.703419: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15)
#> 2025-07-04 14:57:59.747514: iinla: Max deviation from previous: 748% of SD, and line search is active
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:57:59.749241: iinla: Iteration 4 [max:10]
#> 2025-07-04 14:58:00.190486: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:58:00.192229: iinla: Iteration 5 [max:10]
#> 2025-07-04 14:58:00.630224: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive
#> [stop if: <10% and line search inactive]
#> 2025-07-04 14:58:00.631404: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode.
#> 2025-07-04 14:58:00.633085: iinla: Iteration 6 [max:10]
#> 2025-07-04 14:58:01.923901: bru: Preprocessing
#> 2025-07-04 14:58:02.027451: iinla: Iteration 1 [max:1]
#> 2025-07-04 14:58:08.756744: bru: Preprocessing
#> 2025-07-04 14:58:08.916302: iinla: Iteration 1 [max:1]
print(bru_log(), timestamp = TRUE, verbosity = TRUE)
#> 2025-07-04 14:57:45.673988: inlabru loaded (level 1)
#> 2025-07-04 14:57:45.67445: Clear override options (level 1)
#> 2025-07-04 14:57:56.587361: bru: Preprocessing (level 1)
#> 2025-07-04 14:57:56.596358: Evaluate component inputs for each observation model (level 3)
#> 2025-07-04 14:57:56.597806: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:57:56.599126: input_eval.bru_comp(x) (level 4)
#> 2025-07-04 14:57:56.600707: input_eval.bru_input(x) (level 5)
#> 2025-07-04 14:57:56.608525: input_eval.bru_input(x.group) (level 5)
#> 2025-07-04 14:57:56.61412: input_eval.bru_input(x.repl) (level 5)
#> 2025-07-04 14:57:56.619608: input_eval.bru_comp(Intercept) (level 4)
#> 2025-07-04 14:57:56.620961: input_eval.bru_input(Intercept) (level 5)
#> 2025-07-04 14:57:56.627461: input_eval.bru_input(Intercept.group) (level 5)
#> 2025-07-04 14:57:56.632972: input_eval.bru_input(Intercept.repl) (level 5)
#> 2025-07-04 14:57:56.755709: iinla: Start (level 3)
#> 2025-07-04 14:57:56.756896: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:57:56.758099: Linearise components for each observation model (level 3)
#> 2025-07-04 14:57:56.759498: Linearise component 'x' (level 4)
#> 2025-07-04 14:57:56.77342: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:57:56.785585: iinla: Evaluate component simplifications (level 3)
#> 2025-07-04 14:57:56.786969: Simplify component mappers for each observation model (level 3)
#> 2025-07-04 14:57:56.788386: Simplify component 'x' (level 4)
#> 2025-07-04 14:57:56.800887: Simplify component 'Intercept' (level 4)
#> 2025-07-04 14:57:56.81286: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:57:56.825006: iinla: Construct inla stack (level 3)
#> 2025-07-04 14:57:56.847667: iinla: Model initialisation completed (level 3)
#> 2025-07-04 14:57:56.84898: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-04 14:57:57.395694: bru: Preprocessing (level 1)
#> 2025-07-04 14:57:57.39916: Evaluate component inputs for each observation model (level 3)
#> 2025-07-04 14:57:57.400527: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:57:57.401801: input_eval.bru_comp(x) (level 4)
#> 2025-07-04 14:57:57.403026: input_eval.bru_input(x) (level 5)
#> 2025-07-04 14:57:57.409787: input_eval.bru_input(x.group) (level 5)
#> 2025-07-04 14:57:57.415211: input_eval.bru_input(x.repl) (level 5)
#> 2025-07-04 14:57:57.420382: input_eval.bru_comp(Intercept) (level 4)
#> 2025-07-04 14:57:57.421608: input_eval.bru_input(Intercept) (level 5)
#> 2025-07-04 14:57:57.426664: input_eval.bru_input(Intercept.group) (level 5)
#> 2025-07-04 14:57:57.431886: input_eval.bru_input(Intercept.repl) (level 5)
#> 2025-07-04 14:57:57.485715: iinla: Start (level 3)
#> 2025-07-04 14:57:57.486911: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:57:57.488082: Linearise components for each observation model (level 3)
#> 2025-07-04 14:57:57.48946: Linearise component 'x' (level 4)
#> 2025-07-04 14:57:57.503309: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:57:57.51557: iinla: Evaluate component simplifications (level 3)
#> 2025-07-04 14:57:57.516932: Simplify component mappers for each observation model (level 3)
#> 2025-07-04 14:57:57.518301: Simplify component 'x' (level 4)
#> 2025-07-04 14:57:57.531368: Simplify component 'Intercept' (level 4)
#> 2025-07-04 14:57:57.551451: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:57:57.558492: iinla: Construct inla stack (level 3)
#> 2025-07-04 14:57:57.572678: iinla: Model initialisation completed (level 3)
#> 2025-07-04 14:57:57.573988: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-04 14:57:57.993959: bru: Preprocessing (level 1)
#> 2025-07-04 14:57:57.997247: Evaluate component inputs for each observation model (level 3)
#> 2025-07-04 14:57:57.998502: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:57:57.999742: input_eval.bru_comp(z) (level 4)
#> 2025-07-04 14:57:58.000931: input_eval.bru_input(z) (level 5)
#> 2025-07-04 14:57:58.01495: input_eval.bru_input(z.group) (level 5)
#> 2025-07-04 14:57:58.020589: input_eval.bru_input(z.repl) (level 5)
#> 2025-07-04 14:57:58.025512: input_eval.bru_comp(Intercept) (level 4)
#> 2025-07-04 14:57:58.026829: input_eval.bru_input(Intercept) (level 5)
#> 2025-07-04 14:57:58.031686: input_eval.bru_input(Intercept.group) (level 5)
#> 2025-07-04 14:57:58.036585: input_eval.bru_input(Intercept.repl) (level 5)
#> 2025-07-04 14:57:58.08843: iinla: Start (level 3)
#> 2025-07-04 14:57:58.089682: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:57:58.090891: Linearise components for each observation model (level 3)
#> 2025-07-04 14:57:58.092191: Linearise component 'z' (level 4)
#> 2025-07-04 14:57:58.104051: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:57:58.115461: iinla: Evaluate component simplifications (level 3)
#> 2025-07-04 14:57:58.116761: Simplify component mappers for each observation model (level 3)
#> 2025-07-04 14:57:58.118075: Simplify component 'z' (level 4)
#> 2025-07-04 14:57:58.129743: Simplify component 'Intercept' (level 4)
#> 2025-07-04 14:57:58.141603: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:57:58.144356: Linearise with respect to component 'z' (level 5)
#> 2025-07-04 14:57:58.14884: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-04 14:57:58.151963: iinla: Construct inla stack (level 3)
#> 2025-07-04 14:57:58.164793: iinla: Model initialisation completed (level 3)
#> 2025-07-04 14:57:58.166036: iinla: Iteration 1 [max:10] (level 1)
#> 2025-07-04 14:57:58.545969: iinla: Step rescaling: 61.8%, Contract (norm0 = 3092, norm1 = 2833, norm01 = 560) (level 3)
#> 2025-07-04 14:57:58.548345: iinla: Step rescaling: 38.2%, Contract (norm0 = 632.8, norm1 = 468.9, norm01 = 560) (level 3)
#> 2025-07-04 14:57:58.551478: iinla: Step rescaling: 27.61%, Approx Optimisation (norm0 = 298.2, norm1 = 362.7, norm01 = 560) (level 3)
#> 2025-07-04 14:57:58.552856: iinla: |lin1-lin0| = 560
#> <eta-lin1,delta>/|delta| = -318.1
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 174.3 (level 4)
#> 2025-07-04 14:57:58.554149: iinla: Step rescaling: 27.6% (norm0 = 298.2, norm1 = 362.7, norm01 = 560) (level 2)
#> 2025-07-04 14:57:58.555897: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:57:58.557078: Linearise components for each observation model (level 3)
#> 2025-07-04 14:57:58.558408: Linearise component 'z' (level 4)
#> 2025-07-04 14:57:58.570176: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:57:58.582162: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:57:58.584695: Linearise with respect to component 'z' (level 5)
#> 2025-07-04 14:57:58.588352: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-04 14:57:58.60174: iinla: Iteration 2 [max:10] (level 1)
#> 2025-07-04 14:57:59.254617: iinla: Step rescaling: 162%, Expand (norm0 = 586.7, norm1 = 226.9, norm01 = 362.6) (level 3)
#> 2025-07-04 14:57:59.25702: iinla: Step rescaling: 100%, Overstep (norm0 = 362.3, norm1 = 16.18, norm01 = 362.6) (level 3)
#> 2025-07-04 14:57:59.260041: iinla: Step rescaling: 99.77%, Approx Optimisation (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6) (level 3)
#> 2025-07-04 14:57:59.261274: iinla: |lin1-lin0| = 362.6
#> <eta-lin1,delta>/|delta| = -1.44
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 16.09 (level 4)
#> 2025-07-04 14:57:59.262424: iinla: Step rescaling: 99.8% (norm0 = 361.5, norm1 = 16.15, norm01 = 362.6) (level 2)
#> 2025-07-04 14:57:59.26407: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:57:59.265193: Linearise components for each observation model (level 3)
#> 2025-07-04 14:57:59.266418: Linearise component 'z' (level 4)
#> 2025-07-04 14:57:59.277919: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:57:59.289262: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:57:59.291614: Linearise with respect to component 'z' (level 5)
#> 2025-07-04 14:57:59.294904: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-04 14:57:59.307004: iinla: Max deviation from previous: 74400% of SD, and line search is active
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-04 14:57:59.308728: iinla: Iteration 3 [max:10] (level 1)
#> 2025-07-04 14:57:59.690459: iinla: Step rescaling: 162%, Expand (norm0 = 25.48, norm1 = 9.329, norm01 = 16.15) (level 3)
#> 2025-07-04 14:57:59.69284: iinla: Step rescaling: 100%, Overstep (norm0 = 15.9, norm1 = 0.2508, norm01 = 16.15) (level 3)
#> 2025-07-04 14:57:59.701035: iinla: Step rescaling: 101.6%, Approx Optimisation (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15) (level 3)
#> 2025-07-04 14:57:59.702267: iinla: |lin1-lin0| = 16.15
#> <eta-lin1,delta>/|delta| = -5.412e-06
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 0.01358 (level 4)
#> 2025-07-04 14:57:59.703419: iinla: Step rescaling: 102% (norm0 = 16.15, norm1 = 0.01358, norm01 = 16.15) (level 2)
#> 2025-07-04 14:57:59.705049: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:57:59.706162: Linearise components for each observation model (level 3)
#> 2025-07-04 14:57:59.707379: Linearise component 'z' (level 4)
#> 2025-07-04 14:57:59.718798: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:57:59.72994: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:57:59.732207: Linearise with respect to component 'z' (level 5)
#> 2025-07-04 14:57:59.735464: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-04 14:57:59.747514: iinla: Max deviation from previous: 748% of SD, and line search is active
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-04 14:57:59.749241: iinla: Iteration 4 [max:10] (level 1)
#> 2025-07-04 14:58:00.13214: iinla: Step rescaling: 162%, Expand (norm0 = 0.02197, norm1 = 0.008393, norm01 = 0.01358) (level 3)
#> 2025-07-04 14:58:00.13466: iinla: Step rescaling: 100%, Overstep (norm0 = 0.01358, norm1 = 5.334e-08, norm01 = 0.01358) (level 3)
#> 2025-07-04 14:58:00.137763: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 0.01358, norm1 = 5.327e-08, norm01 = 0.01358) (level 3)
#> 2025-07-04 14:58:00.139062: iinla: |lin1-lin0| = 0.01358
#> <eta-lin1,delta>/|delta| = 5.962e-11
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 5.327e-08 (level 4)
#> 2025-07-04 14:58:00.140918: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:58:00.146972: Linearise components for each observation model (level 3)
#> 2025-07-04 14:58:00.148528: Linearise component 'z' (level 4)
#> 2025-07-04 14:58:00.160346: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:58:00.172296: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:58:00.174835: Linearise with respect to component 'z' (level 5)
#> 2025-07-04 14:58:00.178172: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-04 14:58:00.190486: iinla: Max deviation from previous: 11.6% of SD, and line search is inactive
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-04 14:58:00.192229: iinla: Iteration 5 [max:10] (level 1)
#> 2025-07-04 14:58:00.572478: iinla: Step rescaling: 162%, Expand (norm0 = 4.305e-07, norm1 = 1.644e-07, norm01 = 2.661e-07) (level 3)
#> 2025-07-04 14:58:00.574878: iinla: Step rescaling: 100%, Overstep (norm0 = 2.661e-07, norm1 = 6.59e-13, norm01 = 2.661e-07) (level 3)
#> 2025-07-04 14:58:00.577864: iinla: Step rescaling: 100%, Approx Optimisation (norm0 = 2.661e-07, norm1 = 6.985e-13, norm01 = 2.661e-07) (level 3)
#> 2025-07-04 14:58:00.579071: iinla: Optimisation did not improve on previous solution. (level 3)
#> 2025-07-04 14:58:00.580278: iinla: |lin1-lin0| = 2.661e-07
#> <eta-lin1,delta>/|delta| = -1.067e-13
#> |eta-lin0 - delta <delta,eta-lin0>/<delta,delta>| = 6.503e-13 (level 4)
#> 2025-07-04 14:58:00.58203: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:58:00.583283: Linearise components for each observation model (level 3)
#> 2025-07-04 14:58:00.584665: Linearise component 'z' (level 4)
#> 2025-07-04 14:58:00.60129: Linearise component 'Intercept' (level 4)
#> 2025-07-04 14:58:00.612552: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:58:00.614889: Linearise with respect to component 'z' (level 5)
#> 2025-07-04 14:58:00.618246: Linearise with respect to component 'Intercept' (level 5)
#> 2025-07-04 14:58:00.630224: iinla: Max deviation from previous: 0.214% of SD, and line search is inactive
#> [stop if: <10% and line search inactive] (level 1)
#> 2025-07-04 14:58:00.631404: iinla: Convergence criterion met.
#> Running final INLA integration step with known theta mode. (level 1)
#> 2025-07-04 14:58:00.633085: iinla: Iteration 6 [max:10] (level 1)
#> 2025-07-04 14:58:01.923901: bru: Preprocessing (level 1)
#> 2025-07-04 14:58:01.929492: Evaluate component inputs for each observation model (level 3)
#> 2025-07-04 14:58:01.93079: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:58:01.93205: input_eval.bru_comp(field) (level 4)
#> 2025-07-04 14:58:01.933236: input_eval.bru_input(field) (level 5)
#> 2025-07-04 14:58:01.941024: input_eval.bru_input(field.group) (level 5)
#> 2025-07-04 14:58:01.947118: input_eval.bru_input(field.repl) (level 5)
#> 2025-07-04 14:58:01.977662: iinla: Start (level 3)
#> 2025-07-04 14:58:01.978859: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:58:01.980166: Linearise components for each observation model (level 3)
#> 2025-07-04 14:58:01.981447: Linearise component 'field' (level 4)
#> 2025-07-04 14:58:01.995604: iinla: Evaluate component simplifications (level 3)
#> 2025-07-04 14:58:01.996879: Simplify component mappers for each observation model (level 3)
#> 2025-07-04 14:58:01.998164: Simplify component 'field' (level 4)
#> 2025-07-04 14:58:02.012002: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:58:02.015295: iinla: Construct inla stack (level 3)
#> 2025-07-04 14:58:02.026229: iinla: Model initialisation completed (level 3)
#> 2025-07-04 14:58:02.027451: iinla: Iteration 1 [max:1] (level 1)
#> 2025-07-04 14:58:04.55413: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:58:08.756744: bru: Preprocessing (level 1)
#> 2025-07-04 14:58:08.764646: Evaluate component inputs for each observation model (level 3)
#> 2025-07-04 14:58:08.76594: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:58:08.767192: input_eval.bru_comp(x) (level 4)
#> 2025-07-04 14:58:08.768369: input_eval.bru_input(x) (level 5)
#> 2025-07-04 14:58:08.775249: input_eval.bru_input(x.group) (level 5)
#> 2025-07-04 14:58:08.780567: input_eval.bru_input(x.repl) (level 5)
#> 2025-07-04 14:58:08.787573: input_eval.bru_comp_list (level 4)
#> 2025-07-04 14:58:08.788825: input_eval.bru_comp(x) (level 4)
#> 2025-07-04 14:58:08.790015: input_eval.bru_input(x) (level 5)
#> 2025-07-04 14:58:08.795421: input_eval.bru_input(x.group) (level 5)
#> 2025-07-04 14:58:08.800728: input_eval.bru_input(x.repl) (level 5)
#> 2025-07-04 14:58:08.836605: iinla: Start (level 3)
#> 2025-07-04 14:58:08.837785: iinla: Evaluate component linearisations (level 3)
#> 2025-07-04 14:58:08.838939: Linearise components for each observation model (level 3)
#> 2025-07-04 14:58:08.840205: Linearise component 'x' (level 4)
#> 2025-07-04 14:58:08.853895: Linearise component 'x' (level 4)
#> 2025-07-04 14:58:08.865899: iinla: Evaluate component simplifications (level 3)
#> 2025-07-04 14:58:08.867098: Simplify component mappers for each observation model (level 3)
#> 2025-07-04 14:58:08.868355: Simplify component 'x' (level 4)
#> 2025-07-04 14:58:08.880469: Simplify component 'x' (level 4)
#> 2025-07-04 14:58:08.892706: iinla: Evaluate predictor linearisation (level 3)
#> 2025-07-04 14:58:08.899852: iinla: Construct inla stack (level 3)
#> 2025-07-04 14:58:08.915005: iinla: Model initialisation completed (level 3)
#> 2025-07-04 14:58:08.916302: iinla: Iteration 1 [max:1] (level 1)