/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).

atch/kocevski/31685528/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31685528/ft2_4FGL_J2036.4+6553_weekly_bin936.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31685528/Model_4FGL_J2036.4+6553_weekly_bin936.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/lscratch/kocevski/31685528/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits.....................!
real 263.32
user 260.35
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31685528/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits', '/lscratch/kocevski/31685528/ft2_4FGL_J2036.4+6553_weekly_bin936.fits', expMap='/lscratch/kocevski/31685528/expmap_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits', expCube='/lscratch/kocevski/31685528/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31685528/Model_4FGL_J2036.4+6553_weekly_bin936.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2036.4+6553'

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.458e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31685528/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits
Spacecraft file(s): /lscratch/kocevski/31685528/ft2_4FGL_J2036.4+6553_weekly_bin936.fits
Exposure map: /lscratch/kocevski/31685528/expmap_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits
Exposure cube: /lscratch/kocevski/31685528/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31685528/Model_4FGL_J2036.4+6553_weekly_bin936.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) = 51181.2156334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1941       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46430       1.0000          .0000       .10000E+07
     3 'norm      '    .78163       1.0000          .0000       .10000E+07
     4 'norm      '    .11066E-05   1.0000          .0000       .10000E+07
     5 'norm      '    5.1247       1.0000          .0000       .10000E+07
     6 'Prefactor '    .36653E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14171E-05   1.0000          .0000       .10000E+07
     8 'norm      '    1.7078       1.0000          .0000       .10000E+07
     9 'norm      '    28.111       1.0000          .0000       .10000E+07
    10 'norm      '    5.0527       1.0000          .0000       .10000E+07
    11 'Prefactor '    36.722       1.0000          .0000       .10000E+07
    12 'norm      '    .67144       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.5417       1.0000          .0000       .10000E+07
    14 'norm      '    10.109       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.166       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0677       1.0000          .0000       .10000E+07
    17 'norm      '    14.803       1.0000          .0000       .10000E/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).

+07
    18 'Prefactor '    .33889E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51760E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   51181.19     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1354 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3614        9.5920        .36176E-05   -.27272E-02
   2  Prefactor      .0000        302.62       -.66965E-05** at limit **
   3  norm          .77774        1.3933       -.43253E-06    .71014E-02
   4  norm          .77716E-09    2.5999       -.24282E-06** at limit **
   5  norm          5.1395        7.1969        .55247E-06    .82696E-03
   6  Prefactor      .0000        2.9298       -.18677E-06** at limit **
   7  Prefactor     .18319E-08    5.4522       -.61723E-06** at limit **
   8  norm          1.7087        .81911        .27869E-07   -.14548E-01
   9  norm          28.089        1.0063       -.15952E-07    .11391E-03
  10  norm          5.1267        1.5868        .60628E-06   -.84940E-02
  11  Prefactor     36.544        7.7102       -.80293E-06   -.29690E-01
  12  norm          .67112        1.2970        .26045E-07    .17462E-02
  13  Prefactor     3.6158        6.1613        .54948E-07   -.82903E-02
  14  norm          10.086        6.0085       -.35464E-06   -.69130E-02
  15  Prefactor     10.179        1.0906        .12839E-06    .16950E-02
  16  Prefactor     4.0676        2.1648       -.18903E-07   -.20447E-01
  17  norm          14.805        7.1779        .95687E-06    .30180E-02
  18  Prefactor      .0000        14.545        .15286E-05** at limit **
  19  Prefactor     .73497E-07    115.66       -.14096E-04** at limit **
  20  Normalizat    1.2000        .13826       -.10239E-04   -.32563E-03
  21  Prefactor     .99175        .25340E-01    .14041E-05   -.21005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36138
  Prefactor  = 0
  norm       = 0.777739
  norm       = 7.77156e-10
  norm       = 5.13952
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  norm       = 1.70868
  norm       = 28.089
  norm       = 5.12675
  Prefactor  = 36.5438
  norm       = 0.671117
  Prefactor  = 3.61584
  norm       = 10.086
  Prefactor  = 10.1793
  Prefactor  = 4.06756
  norm       = 14.8046
  Prefactor  = 0
  Prefactor  = 7.34968e-08
  Normalizat = 1.19997
  Prefactor  = 0.99175
Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.009e+01  6.018e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.917e-01  2.479e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.200e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 309.103 65.883
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.34e-05

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): 0
logL (Free Index) = 51180.6809854
delta logL = 0.504903986082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278969
delta logL = 0.557992455448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3019       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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=   51180.63     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      305 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3002        7.4942        .14838E-04    .71103E-03
   2  alpha         2.4936        .67408        .17735E-01    .90404E-04
   3  Normalizat    1.1847        .13291        .63177E-03   -.17419E-04
   4  Prefactor     .99136        .24516E-01    .12692E-03   -.57328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30024
  alpha      = 2.49364
  Normalizat = 1.18475
  Prefactor  = 0.991357
+07
    18 'Prefactor '    .33889E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51760E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   51181.19     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1354 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3614        9.5920        .36176E-05   -.27272E-02
   2  Prefactor      .0000        302.62       -.66965E-05** at limit **
   3  norm          .77774        1.3933       -.43253E-06    .71014E-02
   4  norm          .77716E-09    2.5999       -.24282E-06** at limit **
   5  norm          5.1395        7.1969        .55247E-06    .82696E-03
   6  Prefactor      .0000        2.9298       -.18677E-06** at limit **
   7  Prefactor     .18319E-08    5.4522       -.61723E-06** at limit **
   8  norm          1.7087        .81911        .27869E-07   -.14548E-01
   9  norm          28.089        1.0063       -.15952E-07    .11391E-03
  10  norm          5.1267        1.5868        .60628E-06   -.84940E-02
  11  Prefactor     36.544        7.7102       -.80293E-06   -.29690E-01
  12  norm          .67112        1.2970        .26045E-07    .17462E-02
  13  Prefactor     3.6158        6.1613        .54948E-07   -.82903E-02
  14  norm          10.086        6.0085       -.35464E-06   -.69130E-02
  15  Prefactor     10.179        1.0906        .12839E-06    .16950E-02
  16  Prefactor     4.0676        2.1648       -.18903E-07   -.20447E-01
  17  norm          14.805        7.1779        .95687E-06    .30180E-02
  18  Prefactor      .0000        14.545        .15286E-05** at limit **
  19  Prefactor     .73497E-07    115.66       -.14096E-04** at limit **
  20  Normalizat    1.2000        .13826       -.10239E-04   -.32563E-03
  21  Prefactor     .99175        .25340E-01    .14041E-05   -.21005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36138
  Prefactor  = 0
  norm       = 0.777739
  norm       = 7.77156e-10
  norm       = 5.13952
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  norm       = 1.70868
  norm       = 28.089
  norm       = 5.12675
  Prefactor  = 36.5438
  norm       = 0.671117
  Prefactor  = 3.61584
  norm       = 10.086
  Prefactor  = 10.1793
  Prefactor  = 4.06756
  norm       = 14.8046
  Prefactor  = 0
  Prefactor  = 7.34968e-08
  Normalizat = 1.19997
  Prefactor  = 0.99175
 **********
 **   18 **HESSE 
 **********

 FCN=   51180.63     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3002        5.8530        .59351E-06   -1.5654    
   2  alpha         2.4936        .52880        .70941E-03   -.25437E-02
   3  Normalizat    1.1847        .13202        .25271E-04   -.87075    
   4  Prefactor     .99136        .24508E-01    .50767E-05   -.93018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36002e-11
Minuit parameter uncertainties:
  1  5.85304
  2  0.53283
  3  0.132054
  4  0.0245083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278968
delta logL = 0.557992525835

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  7.300e+00  5.853e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  2.494e+00  5.328e-01  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.914e-01  2.451e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.185e+00  1.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 309.103 65.883
Photon Index (Free Index): 2.49 +/- 0.53
Photon Flux (Free Index): 4.81e-08 +/- 3.53e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.04e-05

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/31685330/cmap_HighResolution_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='2.02e-05', photon_flux_error='1.31e-08', dlogl='5.58e-01', energy_flux='2.24e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2026-07-14 17:51:24.050894', photon_index_error2='0.53', photon_index2='2.49', ts='4.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.20', time_epoch_completed='1784076684.05', return_code='0', job_id='31685330', GAL2='0.99', EG2='1.18', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.53e-08', ts2='5.77', photon_index='1.92' WHERE bin_id='936' AND source_name='4FGL J2036.4+6553' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 17:51:24 PDT 2026

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

 FCN=   51181.19     FROM HESSE     STATUS=OK           375 CALLS     1729 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3614        9.7102        .37374E-03   -1.5654    
   2  Prefactor      .0000        292.61        .82385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .77774        1.4226        .54314E-03   -1.5690    
   4  norm          .77716E-09    2.5632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1395        7.2206        .44388E-03   -1.5663    
   6  Prefactor      .0000        2.9300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    5.3299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7087        .87554        .80424E-03   -1.5682    
   9  norm          28.089        17.862        .18864E-03   -1.5602    
  10  norm          5.1267        10.257        .44709E-03   -1.5663    
  11  Prefactor     36.544        15.473        .16504E-03   -1.5587    
  12  norm          .67112        1.3088        .63057E-03   -1.5692    
  13  Prefactor     3.6158        6.1679        .53686E-03   -1.5670    
  14  norm          10.086        6.0176        .31491E-03   -1.5644    
  15  Prefactor     10.179        8.9342        .31402E-03   -1.5644    
  16  Prefactor     4.0676        2.1667        .49967E-03   -1.5668    
  17  norm          14.805        7.1686        .26006E-03   -1.5631    
  18  Prefactor      .0000        14.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73497E-07    3.4937        .15471E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2000        .13688        .14153       -.86604    
  21  Prefactor     .99175        .24789E-01    .28718E-01   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07206e-07
Minuit parameter uncertainties:
  1  9.71018
  2  0.000151772
  3  1.42264
  4  8.77701e-05
  5  7.22059
  6  2.87792e-06
  7  0.000197273
  8  0.875536
  9  17.8624
  10  10.2574
  11  15.4726
  12  1.30877
  13  6.16788
  14  6.01763
  15  8.93418
  16  2.16668
  17  7.16864
  18  2.53755e-05
  19  0.00101332
  20  0.13692
  21  0.0247897
 **********
 **   18 **HESSE 
 **********

 FCN=   51181.19     FROM HESSE     STATUS=OK           375 CALLS     1729 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3614        9.7102        .37374E-03   -1.5654    
   2  Prefactor      .0000        292.61        .82385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .77774        1.4226        .54314E-03   -1.5690    
   4  norm          .77716E-09    2.5632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1395        7.2206        .44388E-03   -1.5663    
   6  Prefactor      .0000        2.9300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    5.3299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7087        .87554        .80424E-03   -1.5682    
   9  norm          28.089        17.862        .18864E-03   -1.5602    
  10  norm          5.1267        10.257        .44709E-03   -1.5663    
  11  Prefactor     36.544        15.473        .16504E-03   -1.5587    
  12  norm          .67112        1.3088        .63057E-03   -1.5692    
  13  Prefactor     3.6158        6.1679        .53686E-03   -1.5670    
  14  norm          10.086        6.0176        .31491E-03   -1.5644    
  15  Prefactor     10.179        8.9342        .31402E-03   -1.5644    
  16  Prefactor     4.0676        2.1667        .49967E-03   -1.5668    
  17  norm          14.805        7.1686        .26006E-03   -1.5631    
  18  Prefactor      .0000        14.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73497E-07    3.4937        .15471E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2000        .13688        .14153       -.86604    
  21  Prefactor     .99175        .24789E-01    .28718E-01   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07206e-07
Minuit parameter uncertainties:
  1  9.71018
  2  0.000151772
  3  1.42264
  4  8.77701e-05
  5  7.22059
  6  2.87792e-06
  7  0.000197273
  8  0.875536
  9  17.8624
  10  10.2574
  11  15.4726
  12  1.30877
  13  6.16788
  14  6.01763
  15  8.93418
  16  2.16668
  17  7.16864
  18  2.53755e-05
  19  0.00101332
  20  0.13692
  21  0.0247897
Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.009e+01  6.018e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.917e-01  2.479e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.200e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 309.103 65.883
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.34e-05

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): 0
logL (Free Index) = 51180.6809854
delta logL = 0.504903986082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278969
delta logL = 0.557992455448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3019       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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=   51180.63     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      305 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3002        7.4942        .14838E-04    .71103E-03
   2  alpha         2.4936        .67408        .17735E-01    .90404E-04
   3  Normalizat    1.1847        .13291        .63177E-03   -.17419E-04
   4  Prefactor     .99136        .24516E-01    .12692E-03   -.57328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30024
  alpha      = 2.49364
  Normalizat = 1.18475
  Prefactor  = 0.991357
 **********
 **   18 **HESSE 
 **********

 FCN=   51180.63     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3002        5.8530        .59351E-06   -1.5654    
   2  alpha         2.4936        .52880        .70941E-03   -.25437E-02
   3  Normalizat    1.1847        .13202        .25271E-04   -.87075    
   4  Prefactor     .99136        .24508E-01    .50767E-05   -.93018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36002e-11
Minuit parameter uncertainties:
  1  5.85304
  2  0.53283
  3  0.132054
  4  0.0245083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278968
delta logL = 0.557992525835

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  7.300e+00  5.853e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  2.494e+00  5.328e-01  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.914e-01  2.451e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.185e+00  1.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 309.103 65.883
Photon Index (Free Index): 2.49 +/- 0.53
Photon Flux (Free Index): 4.81e-08 +/- 3.53e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.04e-05

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/31685345/cmap_HighResolution_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='2.02e-05', photon_flux_error='1.31e-08', dlogl='5.58e-01', energy_flux='2.24e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2026-07-14 17:54:42.546859', photon_index_error2='0.53', photon_index2='2.49', ts='4.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.20', time_epoch_completed='1784076882.55', return_code='0', job_id='31685345', GAL2='0.99', EG2='1.18', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.53e-08', ts2='5.77', photon_index='1.92' WHERE bin_id='936' AND source_name='4FGL J2036.4+6553' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 17:54:43 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.009e+01  6.018e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.917e-01  2.479e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.200e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 309.103 65.883
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.34e-05

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): 0
logL (Free Index) = 51180.6809854
delta logL = 0.504903986082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278969
delta logL = 0.557992455448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3019       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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=   51180.63     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      305 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3002        7.4942        .14838E-04    .71103E-03
   2  alpha         2.4936        .67408        .17735E-01    .90404E-04
   3  Normalizat    1.1847        .13291        .63177E-03   -.17419E-04
   4  Prefactor     .99136        .24516E-01    .12692E-03   -.57328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30024
  alpha      = 2.49364
  Normalizat = 1.18475
  Prefactor  = 0.991357
 **********
 **   18 **HESSE 
 **********

 FCN=   51180.63     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3002        5.8530        .59351E-06   -1.5654    
   2  alpha         2.4936        .52880        .70941E-03   -.25437E-02
   3  Normalizat    1.1847        .13202        .25271E-04   -.87075    
   4  Prefactor     .99136        .24508E-01    .50767E-05   -.93018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36002e-11
Minuit parameter uncertainties:
  1  5.85304
  2  0.53283
  3  0.132054
  4  0.0245083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278968
delta logL = 0.557992525835

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  7.300e+00  5.853e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  2.494e+00  5.328e-01  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.914e-01  2.451e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.185e+00  1.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 309.103 65.883
Photon Index (Free Index): 2.49 +/- 0.53
Photon Flux (Free Index): 4.81e-08 +/- 3.53e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.04e-05

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/31685528/cmap_HighResolution_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='2.02e-05', photon_flux_error='1.31e-08', dlogl='5.58e-01', energy_flux='2.24e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2026-07-14 17:55:06.532284', photon_index_error2='0.53', photon_index2='2.49', ts='4.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.20', time_epoch_completed='1784076906.53', return_code='0', job_id='31685528', GAL2='0.99', EG2='1.18', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.53e-08', ts2='5.77', photon_index='1.92' WHERE bin_id='936' AND source_name='4FGL J2036.4+6553' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 17:55:07 PDT 2026

number of points = 17392
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2036.4+6553_weekly_bin936
RA = 309.103, Dec = 65.8834
tmin = 805075201, tmax = 805680001
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='31688222', job_status='RUN', time_executed='2026-07-14 17:50:25.099306', time_epoch_executed='1784076625.1' WHERE source_name='4FGL J2036.4+6553' and cadence='weekly' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31688222

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31688222/ft1_4FGL_J2036.4+6553_weekly_bin936.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31688222/ft1_4FGL_J2036.4+6553_weekly_bin936.fits outfile=/lscratch/kocevski/31688222/ft1_filteredMKT_4FGL_J2036.4+6553_weekly_bin936.fits ra=309.103 dec=65.8834 rad=12.0 tmin=805075201.0 tmax=805680001.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 4.97
user 4.21
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.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/31688222/ft1_filteredMKT_4FGL_J2036.4+6553_weekly_bin936.fits evtable="EVENTS" outfile="/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.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 0.80
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 5289

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31688222/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.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/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits
.....................!
real 17.42
user 16.63
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31688222/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits outfile=/lscratch/kocevski/31688222/expmap_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.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/31688222/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits
.....................!
real 65.41
user 60.72
sys 4.02

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
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 191 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2036.4+6553 @ 309.103 65.8834

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits scfile=/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits outfile=/lscratch/kocevski/31688222/cmap_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.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=309.103 yref=65.8834 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.65
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits scfile=/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits outfile=/lscratch/kocevski/31688222/cmap_HighResolution_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.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=309.103 yref=65.8834 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.70
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits evtable="EVENTS" scfile=/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31688222/Model_4FGL_J2036.4+6553_weekly_bin936.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits.....................!
real 256.09
user 253.12
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits', '/lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits', expMap='/lscratch/kocevski/31688222/expmap_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits', expCube='/lscratch/kocevski/31688222/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31688222/Model_4FGL_J2036.4+6553_weekly_bin936.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2036.4+6553'

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.458e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31688222/ft1_filtered_4FGL_J2036.4+6553_weekly_bin936.fits
Spacecraft file(s): /lscratch/kocevski/31688222/ft2_4FGL_J2036.4+6553_weekly_bin936.fits
Exposure map: /lscratch/kocevski/31688222/expmap_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits
Exposure cube: /lscratch/kocevski/31688222/ltcube_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31688222/Model_4FGL_J2036.4+6553_weekly_bin936.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) = 51181.2156334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1941       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46430       1.0000          .0000       .10000E+07
     3 'norm      '    .78163       1.0000          .0000       .10000E+07
     4 'norm      '    .11066E-05   1.0000          .0000       .10000E+07
     5 'norm      '    5.1247       1.0000          .0000       .10000E+07
     6 'Prefactor '    .36653E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14171E-05   1.0000          .0000       .10000E+07
     8 'norm      '    1.7078       1.0000          .0000       .10000E+07
     9 'norm      '    28.111       1.0000          .0000       .10000E+07
    10 'norm      '    5.0527       1.0000          .0000       .10000E+07
    11 'Prefactor '    36.722       1.0000          .0000       .10000E+07
    12 'norm      '    .67144       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.5417       1.0000          .0000       .10000E+07
    14 'norm      '    10.109       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.166       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.0677       1.0000          .0000       .10000E+07
    17 'norm      '    14.803       1.0000          .0000       .10000E+07
    18 'Prefactor '    .33889E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .51760E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   51181.19     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1354 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3614        9.5920        .36176E-05   -.27272E-02
   2  Prefactor      .0000        302.62       -.66965E-05** at limit **
   3  norm          .77774        1.3933       -.43253E-06    .71014E-02
   4  norm          .77716E-09    2.5999       -.24282E-06** at limit **
   5  norm          5.1395        7.1969        .55247E-06    .82696E-03
   6  Prefactor      .0000        2.9298       -.18677E-06** at limit **
   7  Prefactor     .18319E-08    5.4522       -.61723E-06** at limit **
   8  norm          1.7087        .81911        .27869E-07   -.14548E-01
   9  norm          28.089        1.0063       -.15952E-07    .11391E-03
  10  norm          5.1267        1.5868        .60628E-06   -.84940E-02
  11  Prefactor     36.544        7.7102       -.80293E-06   -.29690E-01
  12  norm          .67112        1.2970        .26045E-07    .17462E-02
  13  Prefactor     3.6158        6.1613        .54948E-07   -.82903E-02
  14  norm          10.086        6.0085       -.35464E-06   -.69130E-02
  15  Prefactor     10.179        1.0906        .12839E-06    .16950E-02
  16  Prefactor     4.0676        2.1648       -.18903E-07   -.20447E-01
  17  norm          14.805        7.1779        .95687E-06    .30180E-02
  18  Prefactor      .0000        14.545        .15286E-05** at limit **
  19  Prefactor     .73497E-07    115.66       -.14096E-04** at limit **
  20  Normalizat    1.2000        .13826       -.10239E-04   -.32563E-03
  21  Prefactor     .99175        .25340E-01    .14041E-05   -.21005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36138
  Prefactor  = 0
  norm       = 0.777739
  norm       = 7.77156e-10
  norm       = 5.13952
  Prefactor  = 0
  Prefactor  = 1.83187e-09
  norm       = 1.70868
  norm       = 28.089
  norm       = 5.12675
  Prefactor  = 36.5438
  norm       = 0.671117
  Prefactor  = 3.61584
  norm       = 10.086
  Prefactor  = 10.1793
  Prefactor  = 4.06756
  norm       = 14.8046
  Prefactor  = 0
  Prefactor  = 7.34968e-08
  Normalizat = 1.19997
  Prefactor  = 0.99175
 **********
 **   18 **HESSE 
 **********

 FCN=   51181.19     FROM HESSE     STATUS=OK           375 CALLS     1729 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3614        9.7102        .37374E-03   -1.5654    
   2  Prefactor      .0000        292.61        .82385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .77774        1.4226        .54314E-03   -1.5690    
   4  norm          .77716E-09    2.5632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1395        7.2206        .44388E-03   -1.5663    
   6  Prefactor      .0000        2.9300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18319E-08    5.3299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7087        .87554        .80424E-03   -1.5682    
   9  norm          28.089        17.862        .18864E-03   -1.5602    
  10  norm          5.1267        10.257        .44709E-03   -1.5663    
  11  Prefactor     36.544        15.473        .16504E-03   -1.5587    
  12  norm          .67112        1.3088        .63057E-03   -1.5692    
  13  Prefactor     3.6158        6.1679        .53686E-03   -1.5670    
  14  norm          10.086        6.0176        .31491E-03   -1.5644    
  15  Prefactor     10.179        8.9342        .31402E-03   -1.5644    
  16  Prefactor     4.0676        2.1667        .49967E-03   -1.5668    
  17  norm          14.805        7.1686        .26006E-03   -1.5631    
  18  Prefactor      .0000        14.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73497E-07    3.4937        .15471E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2000        .13688        .14153       -.86604    
  21  Prefactor     .99175        .24789E-01    .28718E-01   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07206e-07
Minuit parameter uncertainties:
  1  9.71018
  2  0.000151772
  3  1.42264
  4  8.77701e-05
  5  7.22059
  6  2.87792e-06
  7  0.000197273
  8  0.875536
  9  17.8624
  10  10.2574
  11  15.4726
  12  1.30877
  13  6.16788
  14  6.01763
  15  8.93418
  16  2.16668
  17  7.16864
  18  2.53755e-05
  19  0.00101332
  20  0.13692
  21  0.0247897
Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.009e+01  6.018e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.917e-01  2.479e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.200e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 309.103 65.883
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.34e-05

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): 0
logL (Free Index) = 51180.6809854
delta logL = 0.504903986082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278969
delta logL = 0.557992455448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3019       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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=   51180.63     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      305 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3002        7.4942        .14838E-04    .71103E-03
   2  alpha         2.4936        .67408        .17735E-01    .90404E-04
   3  Normalizat    1.1847        .13291        .63177E-03   -.17419E-04
   4  Prefactor     .99136        .24516E-01    .12692E-03   -.57328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30024
  alpha      = 2.49364
  Normalizat = 1.18475
  Prefactor  = 0.991357
 **********
 **   18 **HESSE 
 **********

 FCN=   51180.63     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3002        5.8530        .59351E-06   -1.5654    
   2  alpha         2.4936        .52880        .70941E-03   -.25437E-02
   3  Normalizat    1.1847        .13202        .25271E-04   -.87075    
   4  Prefactor     .99136        .24508E-01    .50767E-05   -.93018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36002e-11
Minuit parameter uncertainties:
  1  5.85304
  2  0.53283
  3  0.132054
  4  0.0245083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51180.6278968
delta logL = 0.557992525835

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  7.300e+00  5.853e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  2.494e+00  5.328e-01  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.914e-01  2.451e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.185e+00  1.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.77
Ra Dec: 309.103 65.883
Photon Index (Free Index): 2.49 +/- 0.53
Photon Flux (Free Index): 4.81e-08 +/- 3.53e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.04e-05

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/31688222/cmap_HighResolution_805075201_805680001_4FGL_J2036.4+6553_weekly_bin936.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='2.02e-05', photon_flux_error='1.31e-08', dlogl='5.58e-01', energy_flux='2.24e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2026-07-14 18:13:37.815663', photon_index_error2='0.53', photon_index2='2.49', ts='4.65', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.20', time_epoch_completed='1784078017.82', return_code='0', job_id='31688222', GAL2='0.99', EG2='1.18', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.53e-08', ts2='5.77', photon_index='1.92' WHERE bin_id='936' AND source_name='4FGL J2036.4+6553' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 14 18:13:38 PDT 2026

