=== Test: test_E_roy_model ===
Timestamp: 2026-01-03 10:34:45.897281

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

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -122.178904798244 -122.179077148438 0.000172350193111015 1.41063590537375e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780877325 9.76519606241307e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546875 0.00113131045281989 4.27640830314056e-06 TRUE
4 1.5 FALSE 56.0302242626978 56.0306396484375 0.000415385739685803 7.41354627204201e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577521605 5.42702818791453e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257446289062 0.000469077711272803 3.06071726125505e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874485478 3.93970452176252e-06 TRUE
8 0.8 FALSE 55.0348916753442 55.0347290039062 0.000162671437962558 2.95579611105221e-06 TRUE
9 0.4 FALSE 262.739593366027 262.739807128906 0.000213762879013757 8.13591519875326e-07 TRUE
10 2 FALSE 8.12052641974634 8.12054443359375 1.80138474092928e-05 2.21830538045843e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1251220703125 0.000693824090259199 3.62781522496113e-05 TRUE
12 0.3 FALSE 20.8591028747894 20.8582153320312 0.0008875427581998 4.25512319281137e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913385443e-05 5.40988351389411e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.1757498304994e-05 1.6466443829066e-06 TRUE
15 0.6 FALSE 0.695557385180273 0.69512939453125 0.000427990649023324 0.000615699253103709 TRUE
16 1 FALSE -15.9213930445081 -15.9210815429688 0.000311501539371761 1.95653504148611e-05 TRUE
17 0.7 FALSE 59.6875798281494 59.6878051757812 0.000225347631811701 3.77543840233444e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166087297 5.20185627029779e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883140951 2.20560958124066e-05 TRUE
20 0.8 FALSE -1.18401289565012 -1.18463134765625 0.000618452006130088 0.000522062840354236 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.0000000 0.0000000 0.0000002 0.0862986 0.0000012 1.4061625 

--- 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.865592575133049 0.0205710680055408 0.865592412285399 0.0205706048955026 -6.5338087857543 -6.53396379918738
T1_int 2 2.02038972109081 2.01741733477557 0.0234041828688903 2.01741449600719 0.0234041685714818 0.74419751687728 0.74407667822099
T1_sigma 0.5 1.10793992274121 0.522819562581917 0.0116628845603869 0.522819718884398 0.0116628795212924 1.95659679762445 1.95661104470273
T2_int 1.5 1.52614336474081 1.52253325614645 0.0282034558874857 1.52252977660706 0.0282034472088102 0.798953725257639 0.798830598268826
T2_lambda 1.2 0.5 1.21456511517561 0.0200151652094181 1.21456550664965 0.0200151422493304 0.727703969625772 0.727724363294933
T2_sigma 0.6 1.33607075774289 0.614414544627985 0.0139551249046311 0.614414539902062 0.0139551213567596 1.03292121901408 1.03292114296659
T3_int 1 1.00174049662065 0.999282852849716 0.019078347453116 0.99928052620388 0.0190783412313552 -0.0375895843204419 -0.0377115487869399
T3_lambda 0.8 0.5 0.826813866917236 0.0134710411883062 0.82681410986829 0.0134710251226706 1.99048214183414 1.99050255077945
T3_sigma 0.4 0.904431294644681 0.407064201347792 0.00945972834278487 0.407064235438099 0.00945972222061801 0.746765772949544 0.74676985997557
w0_int 2 2.00496948319753 2.0049692157183 0 2.00496943287916 0 Inf Inf
w0_beta1 0.5 0.49350336141093 0.493503338664622 0.0195000878750473 0.493503366986487 0.0194999217483743 -0.333160618403746 -0.333162004306742
w0_beta2 0.3 0.308455847951859 0.308456096518825 0.00172860895391 0.308455923548548 0.00173032439660281 4.89185046721963 4.88690072517587
w0_sigma 0.6 0.609742586599282 0.60883904083792 0.00941348537868061 0.608839038378832 0.00941348613095635 0.938976423964938 0.938976087696694
w1_int 2.5 2.9831246092485 2.4900182098425 0.0170045140288323 2.49001318031931 0.017004514392355 -0.587008257958862 -0.587304021171016
w1_beta1 0.6 0.561683678793291 0.601685300747639 0.0152072875945703 0.601685493880964 0.015207286611456 0.110821915950417 0.110834623166386
w1_lambda 1 0.5 1.03011179307485 0.0158995626717474 1.03011414393542 0.0158995555877565 1.89387555472546 1.89402425553361
w1_sigma 0.7 1.13196449740323 0.7131644703169 0.0109434531508938 0.713164124588241 0.0109434527755273 1.2029539611841 1.20292241016289
s_int 0 -0.00886275628876305 -0.0171443703582847 0.0359728233400162 -0.0171471705909743 0.0359728266799629 -0.476592292916116 -0.476670091664647
s_beta1 0.4 0.335219551982137 0.428265831342582 0.0342678599554876 0.428265922307545 0.0342678654298432 0.824849622337021 0.824852145092441
s_loading 0.8 0.5 0.834824427368726 0.043636722465602 0.834825336877009 0.0436367477230821 0.798053231339207 0.798073612130987

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

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