=== Test: test_E_roy_model ===
Timestamp: 2025-11-30 18:13:24.68541

--- Gradient Check ---
Pass: TRUE
Max error: 7.04e-04

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -122.178904798244 -122.179077148438 0.000172350193125226 1.41063590549006e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780856008 9.76519606203286e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546936035156 0.00107027529662673 4.0456915232785e-06 TRUE
4 1.5 FALSE 56.0302242626977 56.0306396484375 0.000415385739771068 7.41354627356377e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577507395 5.42702818774627e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257446289062 0.000469077711500177 3.06071726273866e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874499689 3.93970452188934e-06 TRUE
8 0.8 FALSE 55.0348916753441 55.0347290039062 0.000162671437891504 2.95579610976113e-06 TRUE
9 0.4 FALSE 262.739593366027 262.73974609375 0.000152727722934287 5.8128899492729e-07 TRUE
10 2 FALSE 8.12052641974637 8.12051391601562 1.25037307405762e-05 1.53977086547636e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1250610351562 0.000632788934041173 3.30868974942334e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.8582153320312 0.000887542758224669 4.2551231929306e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913314389e-05 5.40988351249206e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.17574982943358e-05 1.64664438256752e-06 TRUE
15 0.6 FALSE 0.695557385180291 0.695068359375 0.000489025805290644 0.000703565050393564 TRUE
16 1 FALSE -15.9213930445081 -15.921142578125 0.000250466383121761 1.57316839474757e-05 TRUE
17 0.7 FALSE 59.6875798281495 59.6878051757812 0.00022534763179749 3.77543840209635e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166087652 5.20185627031198e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883148057 2.20560958126999e-05 TRUE
20 0.8 FALSE -1.18401289565011 -1.18463134765625 0.000618452006142078 0.000522062840364357 TRUE

--- Hessian Check ---
Pass: FALSE
Max error: 1.97e+00

Summary of relative errors:
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
 0.0000  0.9244  1.0000  0.8775  1.0000  1.9722 

--- Estimation Comparison ---
Default init converged: FALSE
True init converged: FALSE
Default estimates reasonable: FALSE
True init estimates reasonable: FALSE

Parameter estimates:
parameter true_value default_init est_default se_default est_true_init se_true_init z_default z_true_init
f_var 1 1 0.865592267317489 0.00837693048921761 0.865592681745354 0.00837689289988679 -16.0449860310425 -16.04500855639
T1_int 2 2.02038972109081 2.01741433827994 0.000526183842435262 2.01741174534422 0.00052617523849364 33.0955397629505 33.0911530425995
T1_sigma 0.5 1.10793992274121 0.522819755286748 0 0.522819833391778 0 Inf Inf
T2_int 1.5 1.52614336474081 1.52252958204378 0 1.52252640412369 0 Inf Inf
T2_lambda 1.2 0.5 1.21456562530795 0 1.21456567353756 0 Inf Inf
T2_sigma 0.6 1.33607075774289 0.614414531052834 0 0.614414557856976 0 Inf Inf
T3_int 1 1.00174049662065 0.999280388597499 0.0390521188533109 0.999278277640194 0.0390520613986419 -0.018426949001257 -0.0184810310636036
T3_lambda 0.8 0.5 0.826814183132568 0 0.826814209752263 0 Inf Inf
T3_sigma 0.4 0.904431294644681 0.407064255774241 0 0.407064266983582 0 Inf Inf
w0_int 2 2.00496948319753 2.00496952693726 0 2.00496946306959 0 Inf Inf
w0_beta1 0.5 0.49350336141093 0.493503363844801 0.073996578419003 0.493503360742691 0.0739947511830219 -0.0877964399706669 -0.0877986499507244
w0_beta2 0.3 0.308455847951859 0.308455878538934 0.00486092303396244 0.308455831860917 0.00486087151674063 1.73956231766149 1.73957115134514
w0_sigma 0.6 0.609742586599282 0.608839041237996 0 0.608839040002647 0 Inf Inf
w1_int 2.5 2.9831246092485 2.49001223257064 0 2.4900088758248 0 -Inf -Inf
w1_beta1 0.6 0.561683678793291 0.601685535457221 0.0110067419880027 0.601685648413646 0.0110067298961423 0.153136637440807 0.153147068162115
w1_lambda 1 0.5 1.03011502982056 0 1.03011568130588 0 Inf Inf
w1_sigma 0.7 1.13196449740323 0.713164054259164 0 0.713163848650573 0 Inf Inf
s_int 0 -0.00886275628876305 -0.0171471725193547 0.0144316925333531 -0.0171499970999853 0.0144316172620184 -1.18816088131907 -1.18836280013615
s_beta1 0.4 0.335219551982137 0.428265968090837 0.0291079647701367 0.428265971392096 0.029109260245009 0.971073323540533 0.971030220424197
s_loading 0.8 0.5 0.834825683333415 0 0.834825872585659 0 Inf Inf

Likelihood comparison:
source loglik convergence
True parameters -10040.7274749044 NA
Est (default init) -10024.5996222426 1
Est (true init) -10024.5996222418 1

--- Overall Result ---
Test passed: FALSE
