=== Test: test_G_se_linear ===
Timestamp: 2026-04-12 15:16:55.887943

--- 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.44232279644853 0.145632438779563 1.44232300916556 0.145640494630492 -0.396046403087264 -0.396023035906118
se_intercept 0.5 0 -4.42770833130572 0 14.6760003989453 0.340835273718583 -Inf 41.5919404241298
se_linear_1 0.8 0.5 0.836935433378047 0.0511832505372871 0.836931602492942 0.0581229191489941 0.721631256130153 0.635405155723008
se_residual_var 0.5 1 0.535750225395652 0.067322855916518 0.535745337038706 0.0759390524514095 0.531026572015643 0.470710864631583
Y1_1_int 2 2.0216257793339 2.02808315146523 0.0711010895460296 2.02808316922857 0.0711011693011515 0.394974980616113 0.394974787399321
Y1_1_sigma 1 1.58251557986437 1.01555165055954 0.0418470312210809 1.01555157512283 0.0418505610008269 0.371630916357782 0.371597769562185
Y1_2_int 1.5 1.5053161019317 1.51090479150103 0.0623783468865387 1.51090480668286 0.0623784095273003 0.174816936410004 0.174817004240588
Y1_2_lambda 0.8 0.5 0.865474291500005 0.0526473814226839 0.865474261334324 0.0526478186141309 1.24363813984097 1.24362723960515
Y1_2_sigma 0.9 1.38861320563147 0.908179339381547 0.0366521687734915 0.908179318392809 0.0366524759003997 0.223161129484437 0.223158686879327
Y1_3_int 1 1.03528890375198 1.04350988921878 0.0824369709234811 1.04350991107696 0.0824371031377376 0.527795826694855 0.527795245355226
Y1_3_lambda 1.2 0.5 1.27311626221143 0.0707672433694023 1.27311614288819 0.0707724463425434 1.03319358972014 1.03311594648441
Y1_3_sigma 1.1 1.83246221877927 0.98581340840451 0.0518355087388473 0.985813508656149 0.0518405499482646 -2.2028642985019 -2.2026481481737
Y2_1_int 1.8 2.41427863158447 6.8473865485973 0 -12.2563221903328 0.339850806075109 Inf -41.360273211258
Y2_1_sigma 1 1.58225651187752 0.966687383448425 0.0397301262023234 0.96668917940138 0.0417763304769386 -0.838472457447849 -0.79736109462769
Y2_2_int 1.2 1.62449747929884 4.81434276223651 0 -8.93181135010088 0.480924602208818 Inf -21.0673592150764
Y2_2_lambda 0.7 0.5 0.719551837338111 0.0302650595834765 0.71955605397323 0.0427897520023361 0.6460201171646 0.457026578984673
Y2_2_sigma 0.8 1.20962924225868 0.806532510886181 0.0318515307362511 0.806532368638368 0.0318672939238724 0.205092525702249 0.204986612731305
Y2_3_int 0.5 1.13753289625474 6.20257203058324 0 -15.6244679678774 0.530506593749327 Inf -30.3944722984847
Y2_3_lambda 1.1 0.5 1.1425505738705 0.0163763546999476 1.14255862805956 0.0602265737644223 2.59829337176218 0.706642025263259
Y2_3_sigma 0.95 1.69350152069518 0.905815289520907 0.0457142978909647 0.90581349276496 0.0475133157187496 -0.966540284277802 -0.929981554993922

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

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