=== Test: test_G_se_linear ===
Timestamp: 2026-04-11 13:56:08.785238

--- Gradient Check ---
Pass: TRUE
Max error: 1.89e-05

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1.5 TRUE 2.20351714929362 2.20351155598958 5.5933040399303e-06 2.53835929506545e-06 TRUE
2 0.5 FALSE 40.2901965140466 40.2898864746094 0.000310039437231069 7.6952174443692e-06 TRUE
3 0.8 FALSE 23.1037941047816 23.1036682128906 0.000125891890981222 5.44900012505293e-06 TRUE
4 0.5 FALSE 19.1274556739262 19.1275329589844 7.72850581576279e-05 4.04051365763437e-06 TRUE
5 2 FALSE -8.74059182392253 -8.74066162109375 6.9797171221353e-05 7.98534187079296e-06 TRUE
6 1 FALSE -8.63236533108709 -8.6322021484375 0.000163182649593807 1.89039420981753e-05 TRUE
7 1.5 FALSE -16.0305360825252 -16.030517578125 1.85044001739243e-05 1.15432331387572e-06 TRUE
8 0.8 FALSE 25.5432148624417 25.5431518554688 6.30069729012916e-05 2.46668748077e-06 TRUE
9 0.9 FALSE 20.7725029743683 20.7725524902344 4.95158660314132e-05 2.38371601442296e-06 TRUE
10 1 FALSE -4.80969083723465 -4.80960083007812 9.00071565244076e-05 1.87140595871333e-05 TRUE
11 1.2 FALSE -11.625229557789 -11.6254425048828 0.00021294709380193 1.8317332326274e-05 TRUE
12 1.1 FALSE -30.1888027451377 -30.1888760653409 7.33202031604208e-05 2.42871589527634e-06 TRUE
13 1.8 FALSE 21.4272272580365 21.4272901746962 6.29166596937125e-05 2.93628635169238e-06 TRUE
14 1 FALSE -21.5400024954928 -21.5400390625 3.65670072319801e-05 1.69762956909587e-06 TRUE
15 1.2 FALSE 19.1410588679379 19.1410319010417 2.69668962395997e-05 1.4088527922119e-06 TRUE
16 0.7 FALSE 35.89853750369 35.8987426757812 0.000205172091213512 5.71530020052568e-06 TRUE
17 0.8 FALSE 7.23342469720359 7.2333984375 2.62597035920464e-05 3.63034109332463e-06 TRUE
18 0.5 FALSE 4.96748004404872 4.96749877929688 1.873524815732e-05 3.77156572949815e-06 TRUE
19 1.1 FALSE 24.3050145809964 24.305253462358 0.000238881361532606 9.82838388838719e-06 TRUE
20 0.95 FALSE -13.8610764811284 -13.8609313964844 0.00014508464401608 1.04671641368111e-05 TRUE

--- Hessian Check ---
Pass: TRUE
Max error: 5.38e-06

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
7.247e-10 1.272e-08 4.322e-08 1.690e-07 1.354e-07 5.382e-06 

--- 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
f1_var 1.5 1 1.44232204034322 0.14563239315095 1.44232300916556 0.145640494630492 -0.396051719049854 -0.396023035906118
se_intercept 0.5 0 -9.74663317807867 0 14.6760003989453 0.340835273718583 -Inf 41.5919404241298
se_linear_1 0.8 0.5 0.836949036653821 0.0511828243636571 0.836931602492942 0.0581229191489941 0.721903042928924 0.635405155723008
se_residual_var 0.5 1 0.53576757967845 0.0673216107554313 0.535745337038706 0.0759390524514095 0.531294175482335 0.470710864631583
Y1_1_int 2 2.0216257793339 2.028083089025 0.0711010875677566 2.02808316922857 0.0711011693011515 0.394974113416167 0.394974787399321
Y1_1_sigma 1 1.58251557986437 1.0155519187825 0.0418470454425131 1.01555157512283 0.0418505610008269 0.371637199664776 0.371597769562185
Y1_2_int 1.5 1.5053161019317 1.51090473815209 0.0623783424062708 1.51090480668286 0.0623784095273003 0.174816093718392 0.174817004240588
Y1_2_lambda 0.8 0.5 0.865474398740974 0.0526473959325293 0.865474261334324 0.0526478186141309 1.24363983405529 1.24362723960515
Y1_2_sigma 0.9 1.38861320563147 0.90817941402022 0.0366521690411218 0.908179318392809 0.0366524759003997 0.223163164260294 0.223158686879327
Y1_3_int 1 1.03528890375198 1.04350981246024 0.0824369993078649 1.04350991107696 0.0824371031377376 0.527794713848713 0.527795245355226
Y1_3_lambda 1.2 0.5 1.27311668653062 0.0707672886253072 1.27311614288819 0.0707724463425434 1.03319892496876 1.03311594648441
Y1_3_sigma 1.1 1.83246221877927 0.985813051825866 0.0518355589887521 0.985813508656149 0.0518405499482646 -2.2028690420588 -2.2026481481737
Y2_1_int 1.8 2.41427863158447 12.1663114304712 0 -12.2563221903328 0.339850806075109 Inf -41.360273211258
Y2_1_sigma 1 1.58225651187752 0.966681005107662 0.0397303730155546 0.96668917940138 0.0417763304769386 -0.838627789356357 -0.79736109462769
Y2_2_int 1.2 1.62449747929884 8.64145532840459 0 -8.93181135010088 0.480924602208818 Inf -21.0673592150764
Y2_2_lambda 0.7 0.5 0.719536889025259 0.0302322753547632 0.71955605397323 0.0427897520023361 0.64622622002485 0.457026578984673
Y2_2_sigma 0.8 1.20962924225868 0.806533008230871 0.0318512108657683 0.806532368638368 0.0318672939238724 0.205110199998454 0.204986612731305
Y2_3_int 0.5 1.13753289625474 12.2794645741274 0 -15.6244679678774 0.530506593749327 Inf -30.3944722984847
Y2_3_lambda 1.1 0.5 1.14252195475543 0.0164384614685994 1.14255862805956 0.0602265737644223 2.58673567697654 0.706642025263259
Y2_3_sigma 0.95 1.69350152069518 0.905821681341821 0.0457179318806732 0.90581349276496 0.0475133157187496 -0.966323646780153 -0.929981554993922

Likelihood comparison:
source loglik convergence
True parameters -4806.09417281394 NA
Est (default init) -4798.76997166915 1
Est (true init) -4798.76997167546 1

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