=== Test: test_E_roy_model ===
Timestamp: 2025-11-30 22:16:00.474991

--- 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: TRUE
True init converged: TRUE
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.865589042735783 0.00837669090952015 0.86560657405245 0.00837712729490599 -16.0458298767426 -16.0429012496053
T1_int 2 2.02038972109081 2.01741352574663 0.000526179716628482 2.0174116552639 0.000526170738047499 33.0942550545362 33.0912648782217
T1_sigma 0.5 1.10793992274121 0.52281969732635 0 0.522819467198158 0 Inf Inf
T2_int 1.5 1.52614336474081 1.52252857935237 0 1.52252632137184 0 Inf Inf
T2_lambda 1.2 0.5 1.21456589287581 0 1.21456124779598 0 Inf Inf
T2_sigma 0.6 1.33607075774289 0.61441418275684 0 0.614415233080263 0 Inf Inf
T3_int 1 1.00174049662065 0.999279735569644 0.0390519007573088 0.999278198472515 0.0390519942289653 -0.0184437739620388 -0.0184830900888991
T3_lambda 0.8 0.5 0.826814353772063 0 0.82681118517873 0 Inf Inf
T3_sigma 0.4 0.904431294644681 0.407064021995501 0 0.407064769187983 0 Inf Inf
w0_int 2 2.00496948319753 2.00496948319753 0 2.00496948319753 0 Inf Inf
w0_beta1 0.5 0.49350336141093 0.493503361410929 0.0739930443664711 0.493503361410929 0.073998083161347 -0.0878006661936289 -0.0877946875313722
w0_beta2 0.3 0.308455847951859 0.308455847951858 0.00486076987827313 0.308455847951858 0.00486105657096211 1.7396108360642 1.73950823826451
w0_sigma 0.6 0.609742586599282 0.608839040654738 0 0.608839040654737 0 Inf Inf
w1_int 2.5 2.9831246092485 2.49001219595026 0 2.4900091610186 0 -Inf -Inf
w1_beta1 0.6 0.561683678793291 0.601685647928338 0.0110067846036646 0.601685434532314 0.0110064678992686 0.153146262876548 0.153131281328294
w1_lambda 1 0.5 1.03011481383709 0 1.03011181901728 0 Inf Inf
w1_sigma 0.7 1.13196449740323 0.713163985675504 0 0.713164048349022 0 Inf Inf
s_int 0 -0.00886275628876305 -0.0171480171658689 0.014431256544951 -0.0171497370478195 0.0144319077699795 -1.18825530628297 -1.18832085966441
s_beta1 0.4 0.335219551982137 0.428262913606913 0.0291089303661897 0.428265878612221 0.0291056643154537 0.970936178394963 0.97114700100533
s_loading 0.8 0.5 0.834808012930335 0 0.834822375318402 0 Inf Inf

Likelihood comparison:
source loglik convergence
True parameters -10040.7274749044 NA
Est (default init) -10024.5996223354 0
Est (true init) -10024.5996223297 0

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