=== Test: test_E_roy_model ===
Timestamp: 2026-01-03 10:45:03.773372

--- 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.000172350193096804 1.41063590525743e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780848903 9.76519606190612e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546875 0.00113131045287673 4.27640830335544e-06 TRUE
4 1.5 FALSE 56.0302242626978 56.0306396484375 0.000415385739700014 7.41354627229563e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577535816 5.42702818808279e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257446289062 0.000469077711443333 3.06071726236776e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874499689 3.93970452188934e-06 TRUE
8 0.8 FALSE 55.0348916753442 55.0347290039062 0.000162671437919926 2.95579611027756e-06 TRUE
9 0.4 FALSE 262.739593366027 262.739807128906 0.000213762879127444 8.13591520308024e-07 TRUE
10 2 FALSE 8.12052641974633 8.12054443359375 1.80138474163982e-05 2.21830538133343e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1251220703125 0.000693824090280515 3.62781522507259e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.8582153320312 0.000887542758242432 4.25512319301577e-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.17574983014413e-05 1.64664438279358e-06 TRUE
15 0.6 FALSE 0.69555738518026 0.69512939453125 0.000427990649010002 0.000615699253084543 TRUE
16 1 FALSE -15.9213930445081 -15.9210815429688 0.00031150153935755 1.95653504139685e-05 TRUE
17 0.7 FALSE 59.6875798281494 59.6878051757812 0.000225347631818806 3.77543840245348e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166086231 5.20185627025525e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883137399 2.20560958122599e-05 TRUE
20 0.8 FALSE -1.18401289565012 -1.18463134765625 0.000618452006129644 0.000522062840353861 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.0862987 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.865592414948295 0.0205710370149495 0.865592554697206 0.0205705920997587 -6.53382641594722 -6.53396094050065
T1_int 2 2.02038972109081 2.01741725078953 0.0234041783937901 2.01741439085466 0.0234041704298 0.744194070668806 0.744072126243118
T1_sigma 0.5 1.10793992274121 0.522819574664742 0.0116628840513691 0.522819711998762 0.0116628796972541 1.9565979190253 1.95661042479365
T2_int 1.5 1.52614336474081 1.52253315492897 0.0282034514297603 1.5225296485268 0.0282034484575483 0.798950262704093 0.798826021601878
T2_lambda 1.2 0.5 1.21456517659742 0.0200151643450685 1.21456542619879 0.0200151395740191 0.727707069815147 0.727720441065461
T2_sigma 0.6 1.33607075774289 0.614414540536617 0.0139551248080238 0.61441455373829 0.0139551212990885 1.03292093298432 1.03292213871556
T3_int 1 1.00174049662065 0.999282782730303 0.019078344373886 0.999280440025282 0.0190783421697506 -0.0375932657279459 -0.0377160640225485
T3_lambda 0.8 0.5 0.826813907089293 0.013471040587904 0.826814060986841 0.0134710232766707 1.99048521265462 1.99049919491105
T3_sigma 0.4 0.904431294644681 0.407064200129601 0.00945972806190079 0.407064243995268 0.00945972206920211 0.746765666346399 0.746770776518545
w0_int 2 2.00496948319753 2.00496939832104 0 2.00496959280933 0 Inf Inf
w0_beta1 0.5 0.49350336141093 0.49350333509115 0.0195000759958751 0.493503392662887 0.0194999168722225 -0.33316100461474 -0.333160770873202
w0_beta2 0.3 0.308455847951859 0.30845593923236 0.00172864148122085 0.30845575570501 0.00173042798323671 4.89166743030341 4.88651119082917
w0_sigma 0.6 0.609742586599282 0.608839032846738 0.00941348274383094 0.608839045622196 0.00941348447246588 0.938975837877948 0.938977022594576
w1_int 2.5 2.9831246092485 2.49001792161743 0.017004513712808 2.49001300439415 0.0170045147291799 -0.587025218783696 -0.587314355329047
w1_beta1 0.6 0.561683678793291 0.601685318145923 0.0152072874135481 0.60168549599692 0.0152072867086709 0.110823061345027 0.110834761598756
w1_lambda 1 0.5 1.03011204306072 0.0158995627165615 1.03011414438061 0.0158995552939621 1.8938912722019 1.89402431853241
w1_sigma 0.7 1.13196449740323 0.713164441519157 0.0109434531141181 0.713164115008459 0.0109434531513999 1.20295133372239 1.20292149345703
s_int 0 -0.00886275628876305 -0.0171444331094486 0.0359728222419077 -0.0171472633509149 0.0359728271812774 -0.476594051869405 -0.476672663633161
s_beta1 0.4 0.335219551982137 0.42826583064689 0.0342678602261539 0.428265925857757 0.0342678655102158 0.824849595520313 0.824852246759595
s_loading 0.8 0.5 0.834824508595779 0.0436367255216404 0.834825300379461 0.0436367454333861 0.798055036886503 0.79807281761249

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

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