  Normalizat = 1.25901
  Prefactor  = 0.858517
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.976     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      365 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50585E-01    8.9867        .12681E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7968        5.4879        .16124E-03   -.40653E-01
   3  Normalizat    1.2590        .22454        .50752E-04   -.84798    
   4  Prefactor     .85852        .19062        .10431E-04   -.97606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1213e-10
Minuit parameter uncertainties:
  1  1.34847
  2  14.3026
  3  0.224714
  4  0.19077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618275
delta logL = 0.139472528223

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  5.059e-02  1.348e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  4.797e+00  1.430e+01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.585e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.892 49.834

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35162015/cmap_HighResolution_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2026-08-16 13:02:31.255367', job_id='35162015', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.30', time_epoch_completed='1786910551.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='2195' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 16 13:02:31 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7107.11565528

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.498e-09  2.548e-04  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.385e-01  1.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.297e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.892 49.834
Photon Flux Upper Limit: 8.30766273811e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00641343577366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35162031/likelihoodResults_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7107.11799884
delta logL = -0.00234356299825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618846
delta logL = 0.139466817957

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50940E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.7897       1.0000          .0000       10.000    
     3 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7106.976     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      340 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50585E-01    8.4988        .31702E-04** at limit **
   2  Index         4.7968        5.6813        .40309E-02   -.11742E-03
   3  Normalizat    1.2590        .13778        .25376E-03   -.37535E-03
   4  Prefactor     .85852        .11776        .26078E-03   -.28620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0505852
  Index      = 4.79679
  Normalizat = 1.25901
  Prefactor  = 0.858517
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.976     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      365 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50585E-01    8.9867        .12681E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7968        5.4879        .16124E-03   -.40653E-01
   3  Normalizat    1.2590        .22454        .50752E-04   -.84798    
   4  Prefactor     .85852        .19062        .10431E-04   -.97606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1213e-10
Minuit parameter uncertainties:
  1  1.34847
  2  14.3026
  3  0.224714
  4  0.19077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618275
delta logL = 0.139472528223

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  5.059e-02  1.348e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  4.797e+00  1.430e+01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.585e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.892 49.834

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35162031/cmap_HighResolution_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2026-08-16 13:02:36.267572', job_id='35162031', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.30', time_epoch_completed='1786910556.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='2195' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 16 13:02:36 PDT 2026

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7107.11565528

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.498e-09  2.548e-04  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.385e-01  1.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.297e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.892 49.834
Photon Flux Upper Limit: 8.30766273811e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00641343577366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35162138/likelihoodResults_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7107.11799884
delta logL = -0.00234356299825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618846
delta logL = 0.139466817957

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50940E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.7897       1.0000          .0000       10.000    
     3 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7106.976     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      340 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50585E-01    8.4988        .31702E-04** at limit **
   2  Index         4.7968        5.6813        .40309E-02   -.11742E-03
   3  Normalizat    1.2590        .13778        .25376E-03   -.37535E-03
   4  Prefactor     .85852        .11776        .26078E-03   -.28620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0505852
  Index      = 4.79679
  Normalizat = 1.25901
  Prefactor  = 0.858517
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.976     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      365 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50585E-01    8.9867        .12681E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7968        5.4879        .16124E-03   -.40653E-01
   3  Normalizat    1.2590        .22454        .50752E-04   -.84798    
   4  Prefactor     .85852        .19062        .10431E-04   -.97606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1213e-10
Minuit parameter uncertainties:
  1  1.34847
  2  14.3026
  3  0.224714
  4  0.19077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618275
delta logL = 0.139472528223

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  5.059e-02  1.348e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  4.797e+00  1.430e+01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.585e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.892 49.834

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35162138/cmap_HighResolution_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2026-08-16 13:02:40.134655', job_id='35162138', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.30', time_epoch_completed='1786910560.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='2195' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 16 13:02:40 PDT 2026

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

 **********
 **   18 **HESSE 
 **********

 FCN=   7107.116     FROM HESSE     STATUS=OK           860 CALLS     4560 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.7097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.8404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15586E-05    19.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11274E-06    41.869        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4898        5.6487        .42901E-03   -1.5661    
   6  Prefactor     .14305E-06    23.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20932E-03    10.780        .54653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27234E-05    3.0509        .49909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.740        18.162        .22537E-03   -1.5619    
  10  norm           .0000        .83362E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27756E-09    5.5162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8865        5.6321        .45376E-03   -1.5664    
  13  Prefactor     4.3913        5.1695        .48024E-03   -1.5666    
  14  norm          57.855        49.309        .13227E-03   -1.5556    
  15  Prefactor      .0000        1.0261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98112        1.1042        .43209E-03   -1.5688    
  17  Prefactor     .24980E-08    6.4949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .92597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    3.2160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0657        2.4338        .44646E-03   -1.5663    
  21  Prefactor     4.0142        11.979        .50431E-03   -1.5668    
  22  norm          .53086        .83325        .75644E-03   -1.5693    
  23  Prefactor     7.0376        7.7579        .37823E-03   -1.5655    
  24  norm          .38071        .79679        .91689E-03   -1.5696    
  25  norm          18.120        11.715        .23515E-03   -1.5623    
  26  Prefactor     13.768        9.3944        .26950E-03   -1.5634    
  27  norm          .31672        1.4048        .99769E-03   -1.5697    
  28  Prefactor     .11102E-09    1.1153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        3.0989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .83655E-07    38.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.311        5.4842        .31185E-03   -1.5644    
  32  Prefactor     .26873E-06    23.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     38.144        84.331        .16202E-03   -1.5584    
  34  Normalizat    1.2972        .19801        .56674E-01   -.83650    
  35  Prefactor     .83847        .16250        .44217E-01   -.98325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28024e-06
Minuit parameter uncertainties:
  1  3.89584e-05
  2  9.49727e-06
  3  0.0110674
  4  0.0043455
  5  5.64871
  6  0.00365918
  7  0.0950069
  8  0.00576498
  9  18.1623
  10  4.19988e-07
  11  7.70899e-05
  12  5.63214
  13  5.16951
  14  49.3095
  15  2.982e-06
  16  1.10416
  17  0.000254833
  18  7.61401e-06
  19  5.16985e-05
  20  2.43381
  21  11.9795
  22  0.833248
  23  7.75789
  24  0.796791
  25  11.7149
  26  9.39443
  27  1.33405
  28  2.36964e-05
  29  5.25828e-06
  30  0.00357035
  31  5.48425
  32  0.00499061
  33  84.3339
  34  0.198127
  35  0.162597
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7107.11565528

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.498e-09  2.548e-04  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.385e-01  1.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.297e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.892 49.834
Photon Flux Upper Limit: 8.30766273811e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00641343577366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35162159/likelihoodResults_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7107.11799884
delta logL = -0.00234356299825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618846
delta logL = 0.139466817957

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50940E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.7897       1.0000          .0000       10.000    
     3 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7106.976     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      340 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50585E-01    8.4988        .31702E-04** at limit **
   2  Index         4.7968        5.6813        .40309E-02   -.11742E-03
   3  Normalizat    1.2590        .13778        .25376E-03   -.37535E-03
   4  Prefactor     .85852        .11776        .26078E-03   -.28620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0505852
  Index      = 4.79679
  Normalizat = 1.25901
  Prefactor  = 0.858517
number of points = 7459
number of fields = 31
RA_SUN column already exists. File will not be modified.
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.976     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      365 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50585E-01    8.9867        .12681E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7968        5.4879        .16124E-03   -.40653E-01
   3  Normalizat    1.2590        .22454        .50752E-04   -.84798    
   4  Prefactor     .85852        .19062        .10431E-04   -.97606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1213e-10
Minuit parameter uncertainties:
  1  1.34847
  2  14.3026
  3  0.224714
  4  0.19077
Done.


Performing analysis on: 4FGL_J1647.5+4950_daily_bin2195
RA = 251.892, Dec = 49.8336
tmin = 808272001, tmax = 808531201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='35162748', job_status='RUN', time_executed='2026-08-16 13:02:55.140482', time_epoch_executed='1786910575.14' WHERE source_name='4FGL J1647.5+4950' and cadence='daily' and bin_id='2195'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35162748

Creating custom pfile directory:
/lscratch/kocevski/35162748/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=808272001.0 && nMetStart<808531201.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=808272001.0 && nMetStart<808531201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35162748/ft1_4FGL_J1647.5+4950_daily_bin2195.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=808272001.0 && nMetStart<808531201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35162748/ft1_4FGL_J1647.5+4950_daily_bin2195.fits outfile=/lscratch/kocevski/35162748/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin2195.fits ra=251.892 dec=49.8336 rad=12.0 tmin=808272001.0 tmax=808531201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.82
user 2.84
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/35162748/ft1_filteredMKT_4FGL_J1647.5+4950_daily_bin2195.fits evtable="EVENTS" outfile="/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.19
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 651

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits sctable="SC_DATA" oushell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618275
delta logL = 0.139472528223

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  5.059e-02  1.348e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  4.797e+00  1.430e+01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.585e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.892 49.834

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35162159/cmap_HighResolution_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2026-08-16 13:03:51.632538', job_id='35162159', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.30', time_epoch_completed='1786910631.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='2195' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 16 13:03:51 PDT 2026

tfile=/lscratch/kocevski/35162748/ltcube_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits
.....................!
real 8.85
user 7.86
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits evtable="EVENTS" scfile=/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35162748/ltcube_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits outfile=/lscratch/kocevski/35162748/expmap_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/35162748/ltcube_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits
.....................!
real 71.89
user 66.38
sys 4.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1647.5+4950 @ 251.892 49.8336

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits scfile=/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits outfile=/lscratch/kocevski/35162748/cmap_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=251.892 yref=49.8336 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.74
user 0.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits scfile=/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits outfile=/lscratch/kocevski/35162748/cmap_HighResolution_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=251.892 yref=49.8336 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.67
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits evtable="EVENTS" scfile=/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35162748/Model_4FGL_J1647.5+4950_daily_bin2195.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits.....................!
real 26.17
user 24.36
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits', '/lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits', expMap='/lscratch/kocevski/35162748/expmap_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits', expCube='/lscratch/kocevski/35162748/ltcube_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35162748/Model_4FGL_J1647.5+4950_daily_bin2195.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1647.5+4950'

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.441e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35162748/ft1_filtered_4FGL_J1647.5+4950_daily_bin2195.fits
Spacecraft file(s): /lscratch/kocevski/35162748/ft2_4FGL_J1647.5+4950_daily_bin2195.fits
Exposure map: /lscratch/kocevski/35162748/expmap_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits
Exposure cube: /lscratch/kocevski/35162748/ltcube_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35162748/Model_4FGL_J1647.5+4950_daily_bin2195.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7107.13648834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7107.11720844

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10717E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .29737E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .64203E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .86177E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.4793       1.0000          .0000       .10000E+07
     6 'Prefactor '    .54428E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20944E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .21593E-03   1.0000          .0000       .10000E+07
     9 'norm      '    19.702       1.0000          .0000       .10000E+07
    10 'norm      '    .74940E-08   1.0000          .0000       .10000E+07
    11 'norm      '    .23337E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9082       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3937       1.0000          .0000       .10000E+07
    14 'norm      '    57.164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17916E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .98431       1.0000          .0000       .10000E+07
    17 'Prefactor '    .40474E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .30573E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .28392E-05   1.0000          .0000       .10000E+07
    20 'norm      '    5.0668       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.9955       1.0000          .0000       .10000E+07
    22 'norm      '    .53107       1.0000          .0000       .10000E+07
    23 'Prefactor '    7.0258       1.0000          .0000       .10000E+07
    24 'norm      '    .38128       1.0000          .0000       .10000E+07
    25 'norm      '    18.099       1.0000          .0000       .10000E+07
    26 'Prefactor '    13.787       1.0000          .0000       .10000E+07
    27 'norm      '    .31732       1.0000          .0000       .10000E+07
    28 'Prefactor '    .12814E-04   1.0000          .0000       .10000E+07
    29 'norm      '    .34315E-03   1.0000          .0000       .10000E+07
    30 'Prefactor '    .33010E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    10.307       1.0000          .0000       .10000E+07
    32 'Prefactor '    .24212E-05   1.0000          .0000       .10000E+07
    33 'Prefactor '    38.102       1.0000          .0000       .10000E+07
    34 'Normalizat'    1.2972       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .83858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7107.116     FROM MIGRAD    STATUS=CONVERGED    241 CALLS     3700 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    3.6752       -.24883E-07** at limit **
   2  norm           .0000        1.8375       -.32554E-07** at limit **
   3  Prefactor     .15586E-05    14.681        .64574E-07** at limit **
   4  Prefactor     .11274E-06    2.6668        .35828E-07** at limit **
   5  Prefactor     5.4898        5.6331       -.20764E-07   -.16437E-02
   6  Prefactor     .14305E-06    11.282        .37318E-07** at limit **
   7  Prefactor     .20932E-03    196.67       -.22497E-05** at limit **
   8  Prefactor     .27234E-05    7.2836        .84877E-07** at limit **
   9  norm          19.740        17.640       -.47536E-07   -.41658E-01
  10  norm           .0000        .86085E-01   -.49033E-08** at limit **
  11  norm          .27756E-09    5.4250        .66160E-07** at limit **
  12  Prefactor     4.8865        5.5910       -.16106E-07   -.16795E-02
  13  Prefactor     4.3913        5.1608        .91129E-08    .11825E-03
  14  norm          57.855        21.423        .21622E-06    .30143    
  15  Prefactor      .0000        1.0381        .64974E-08** at limit **
  16  Prefactor     .98112        1.0623       -.80969E-08   -.16230E-02
  17  Prefactor     .24980E-08    6.3564        .28428E-07** at limit **
  18  Prefactor      .0000        .92551        .25230E-07** at limit **
  19  Prefactor     .22204E-09    3.2096       -.40773E-07** at limit **
  20  norm          5.0657        2.4228       -.15396E-07   -.37581E-02
  21  Prefactor     4.0142        2.9779       -.20679E-07   -.63161E-02
  22  norm          .53086        .80702       -.24800E-07   -.65716E-02
  23  Prefactor     7.0376        7.5732        .26670E-07    .27644E-03
  24  norm          .38071        .76715        .44296E-08    .94956E-03
  25  norm          18.120        1.7797       -.46995E-09    .15545E-01
  26  Prefactor     13.768        8.9486       -.38093E-07    .10962E-01
  27  norm          .31672        1.3789        .27984E-08   -.21387E-03
  28  Prefactor     .11102E-09    1.1116        .76184E-07** at limit **
  29  norm           .0000        3.1047       -.36750E-07** at limit **
  30  Prefactor     .83655E-07    37.208       -.15394E-06** at limit **
  31  Prefactor     10.311        5.4656       -.81537E-08   -.11663E-02
  32  Prefactor     .26873E-06    11.826        .35631E-07** at limit **
  33  Prefactor     38.144        1.4129       -.11386E-07    .18746E-01
  34  Normalizat    1.2972        .22506       -.19671E-05   -.29552E-03
  35  Prefactor     .83847        .18988        .15262E-05   -.16329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 1.55859e-06
  Prefactor  = 1.12743e-07
  Prefactor  = 5.48985
  Prefactor  = 1.43052e-07
  Prefactor  = 0.000209323
  Prefactor  = 2.72338e-06
  norm       = 19.7398
  norm       = 0
  norm       = 2.77556e-10
  Prefactor  = 4.88647
  Prefactor  = 4.39126
  norm       = 57.8549
  Prefactor  = 0
  Prefactor  = 0.981116
  Prefactor  = 2.498e-09
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 5.06565
  Prefactor  = 4.01415
  norm       = 0.530855
  Prefactor  = 7.03763
  norm       = 0.380711
  norm       = 18.1196
  Prefactor  = 13.7678
  norm       = 0.316723
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 8.36553e-08
  Prefactor  = 10.3107
  Prefactor  = 2.68729e-07
  Prefactor  = 38.1441
  Normalizat = 1.29721
  Prefactor  = 0.838471
 **********
 **   18 **HESSE 
 **********

 FCN=   7107.116     FROM HESSE     STATUS=OK           860 CALLS     4560 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    3.7097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.8404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15586E-05    19.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11274E-06    41.869        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4898        5.6487        .42901E-03   -1.5661    
   6  Prefactor     .14305E-06    23.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20932E-03    10.780        .54653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27234E-05    3.0509        .49909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.740        18.162        .22537E-03   -1.5619    
  10  norm           .0000        .83362E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27756E-09    5.5162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8865        5.6321        .45376E-03   -1.5664    
  13  Prefactor     4.3913        5.1695        .48024E-03   -1.5666    
  14  norm          57.855        49.309        .13227E-03   -1.5556    
  15  Prefactor      .0000        1.0261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98112        1.1042        .43209E-03   -1.5688    
  17  Prefactor     .24980E-08    6.4949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .92597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    3.2160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0657        2.4338        .44646E-03   -1.5663    
  21  Prefactor     4.0142        11.979        .50431E-03   -1.5668    
  22  norm          .53086        .83325        .75644E-03   -1.5693    
  23  Prefactor     7.0376        7.7579        .37823E-03   -1.5655    
  24  norm          .38071        .79679        .91689E-03   -1.5696    
  25  norm          18.120        11.715        .23515E-03   -1.5623    
  26  Prefactor     13.768        9.3944        .26950E-03   -1.5634    
  27  norm          .31672        1.4048        .99769E-03   -1.5697    
  28  Prefactor     .11102E-09    1.1153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        3.0989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .83655E-07    38.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.311        5.4842        .31185E-03   -1.5644    
  32  Prefactor     .26873E-06    23.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     38.144        84.331        .16202E-03   -1.5584    
  34  Normalizat    1.2972        .19801        .56674E-01   -.83650    
  35  Prefactor     .83847        .16250        .44217E-01   -.98325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28024e-06
Minuit parameter uncertainties:
  1  3.89584e-05
  2  9.49727e-06
  3  0.0110674
  4  0.0043455
  5  5.64871
  6  0.00365918
  7  0.0950069
  8  0.00576498
  9  18.1623
  10  4.19988e-07
  11  7.70899e-05
  12  5.63214
  13  5.16951
  14  49.3095
  15  2.982e-06
  16  1.10416
  17  0.000254833
  18  7.61401e-06
  19  5.16985e-05
  20  2.43381
  21  11.9795
  22  0.833248
  23  7.75789
  24  0.796791
  25  11.7149
  26  9.39443
  27  1.33405
  28  2.36964e-05
  29  5.25828e-06
  30  0.00357035
  31  5.48425
  32  0.00499061
  33  84.3339
  34  0.198127
  35  0.162597
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7107.11565528

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  2.498e-09  2.548e-04  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  2.386e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.385e-01  1.626e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.297e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 251.892 49.834
Photon Flux Upper Limit: 8.30766273811e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00641343577366 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35162748/likelihoodResults_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7107.11799884
delta logL = -0.00234356299825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618846
delta logL = 0.139466817957

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50940E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.7897       1.0000          .0000       10.000    
     3 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7106.976     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      340 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50585E-01    8.4988        .31702E-04** at limit **
   2  Index         4.7968        5.6813        .40309E-02   -.11742E-03
   3  Normalizat    1.2590        .13778        .25376E-03   -.37535E-03
   4  Prefactor     .85852        .11776        .26078E-03   -.28620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0505852
  Index      = 4.79679
  Normalizat = 1.25901
  Prefactor  = 0.858517
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.976     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      365 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50585E-01    8.9867        .12681E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7968        5.4879        .16124E-03   -.40653E-01
   3  Normalizat    1.2590        .22454        .50752E-04   -.84798    
   4  Prefactor     .85852        .19062        .10431E-04   -.97606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1213e-10
Minuit parameter uncertainties:
  1  1.34847
  2  14.3026
  3  0.224714
  4  0.19077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.97618275
delta logL = 0.139472528223

Extracting fit parameters...

4FGL J1647.5+4950
   Spectrum: PowerLaw
362    Prefactor:  5.059e-02  1.348e+00  0.000e+00  1.000e+06 ( 1.000e-12)
363        Index:  4.797e+00  1.430e+01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.183e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  8.585e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.259e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 251.892 49.834

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35162748/cmap_HighResolution_808272001_808531201_4FGL_J1647.5+4950_daily_bin2195.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2026-08-16 13:11:04.994764', job_id='35162748', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.30', time_epoch_completed='1786911064.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='2195' AND source_name='4FGL J1647.5+4950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 16 13:11:05 PDT 2026

