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

 FCN=   7297.737     FROM HESSE     STATUS=OK           357 CALLS     1929 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.545        59.673        .17442E-03   -1.5594    
   2  Prefactor     7.0542        5.0568        .37732E-03   -1.5655    
   3  Prefactor      .0000        1.2494        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.007        9.7774        .18256E-03   -1.5598    
   5  Prefactor     16.220        27.554        .24832E-03   -1.5627    
   6  Prefactor     .38858E-08    16.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15099E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0310        1.8687        .72568E-03   -1.5679    
   9  Prefactor     9.0532        8.0124        .33201E-03   -1.5648    
  10  Prefactor     .57165        18.748        .68464E-03   -1.5693    
  11  Prefactor     16.256        15.803        .24823E-03   -1.5627    
  12  Prefactor      .0000        4.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    4.4670        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    8.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4480        1.5643        .65388E-03   -1.5677    
  16  Prefactor     .88622E-01    1.0207        .55802E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.027        7.1916        .27805E-03   -1.5636    
  18  Prefactor     12.401        12.865        .28442E-03   -1.5638    
  19  Normalizat    1.2853        .16691        .50220E-01   -.84007    
  20  Prefactor     .77717        .16576        .66214E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1337e-06
Minuit parameter uncertainties:
  1  59.6743
  2  5.05682
  3  1.15244e-05
  4  9.77739
  5  27.554
  6  0.000503912
  7  0.000876252
  8  1.86871
  9  8.01243
  10  6.54747
  11  15.8032
  12  1.08013e-05
  13  0.000121338
  14  0.000146573
  15  1.56426
  16  0.601532
  17  7.1916
  18  12.8651
  19  0.166978
  20  0.165862
tfile=/lscratch/kocevski/31255211/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 9.70
user 8.76
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31255211/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255211/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255211/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 73.87
user 68.54
sys 4.34

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255211/cmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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 1.29
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255211/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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 1.06
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31255211/Model_4FGL_J1036.2+2202_daily_bin2175.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/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).

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

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.510e-08  8.763e-04  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.0783568718e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00554450862553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31255048/likelihoodResults_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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): 0
logL (Free Index) = 7297.73724663
delta logL = -0.000189427414625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.73706064
delta logL = -3.43429383065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86914E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      253 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.010       -.18750E-06** at limit **
   2  Index         3.1136        2.2771        .93162E-05     .0000    
   3  Normalizat    1.2853        .18443       -.17602E-05   -.73641E-07
   4  Prefactor     .77717        .19490        .42334E-07   -.16957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11362
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7297.737     FROM HESSE     STATUS=FAILED        11 CALLS      264 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0932        2.0861        .93162E-05   -.38685    
   3  Normalizat    1.2853        1.0828       -.17602E-05   -.84007    
   4  Prefactor     .77717        1.1264        .42334E-07   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.43316e-13
Minuit parameter uncertainties:
  1  2.37087e-05
  2  1.22551
  3  1.10284
  4  1.16262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7297.7370572
delta logL = 5.93900040258e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  2.371e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.114e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/31255048/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2026-07-10 14:04:46.827803', job_id='31255048', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1783717486.83', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2175' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 14:04:47 PDT 2026


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

_V02
Working on...
/lscratch/kocevski/31255195/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits.....................!
real 23.43
user 21.87
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31255195/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits', '/lscratch/kocevski/31255195/ft2_4FGL_J1036.2+2202_daily_bin2175.fits', expMap='/lscratch/kocevski/31255195/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', expCube='/lscratch/kocevski/31255195/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31255195/Model_4FGL_J1036.2+2202_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31255195/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31255195/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31255195/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31255195/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31255195/Model_4FGL_J1036.2+2202_daily_bin2175.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) = 7297.74113216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.879       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0598       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56617E-04   1.0000          .0000       .10000E+07
     4 'norm      '    30.014       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22330E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32622E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.0306       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.0996       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60857       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.245       1.0000          .0000       .10000E+07
    12 'Prefactor '    .87593E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55853E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .50233E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.4457       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47276E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.954       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.382       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1572 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.545        58.055       -.57194E-05    .18839E-01
   2  Prefactor     7.0542        5.0515       -.44810E-06   -.10817E-03
   3  Prefactor      .0000        10.441        .36400E-05** at limit **
   4  norm          30.007        9.7677        .76358E-06    .10106E-01
   5  Prefactor     16.220        7.0967       -.14401E-06   -.11355    
   6  Prefactor     .38858E-08    16.412       -.11062E-05** at limit **
   7  Prefactor     .15099E-07    12.915       -.40839E-05** at limit **
   8  Prefactor     2.0310        1.8514       -.26897E-06   -.60315E-02
   9  Prefactor     9.0532        8.0234       -.40230E-06   -.19215E-03
  10  Prefactor     .57165        17.779       -.84406E-05   -.59285E-02
  11  Prefactor     16.256        1.2206        .27272E-07    .15735E-03
  12  Prefactor      .0000        4.5364        .39590E-06** at limit **
  13  Prefactor     .83267E-09    33.580        .25648E-05** at limit **
  14  Prefactor     .66613E-09    8.0265       -.19585E-05** at limit **
  15  norm          2.4480        1.5649       -.25181E-06    .45707E-02
  16  Prefactor     .88622E-01    12.560        .18871E-05** at limit **
  17  Prefactor     13.027        6.7531       -.10783E-05   -.75885E-02
  18  Prefactor     12.401        3.0719        .43794E-06    .54414E-02
  19  Normalizat    1.2853        .19861        .12062E-04    .15529E-03
  20  Prefactor     .77717        .19656       -.27098E-05    .73853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5454
  Prefactor  = 7.05417
  Prefactor  = 0
  norm       = 30.0069
  Prefactor  = 16.2199
  Prefactor  = 3.88578e-09
  Prefactor  = 1.5099e-08
  Prefactor  = 2.03102
  Prefactor  = 9.05321
  Prefactor  = 0.571649
  Prefactor  = 16.2561
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 6.66134e-10
  norm       = 2.44796
  Prefactor  = 0.0886216
  Prefactor  = 13.027
  Prefactor  = 12.4011
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.737     FROM HESSE     STATUS=OK           357 CALLS     1929 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.545        59.673        .17442E-03   -1.5594    
   2  Prefactor     7.0542        5.0568        .37732E-03   -1.5655    
   3  Prefactor      .0000        1.2494        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.007        9.7774        .18256E-03   -1.5598    
   5  Prefactor     16.220        27.554        .24832E-03   -1.5627    
   6  Prefactor     .38858E-08    16.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15099E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0310        1.8687        .72568E-03   -1.5679    
   9  Prefactor     9.0532        8.0124        .33201E-03   -1.5648    
  10  Prefactor     .57165        18.748        .68464E-03   -1.5693    
  11  Prefactor     16.256        15.803        .24823E-03   -1.5627    
  12  Prefactor      .0000        4.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    4.4670        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    8.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4480        1.5643        .65388E-03   -1.5677    
  16  Prefactor     .88622E-01    1.0207        .55802E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.027        7.1916        .27805E-03   -1.5636    
  18  Prefactor     12.401        12.865        .28442E-03   -1.5638    
  19  Normalizat    1.2853        .16691        .50220E-01   -.84007    
  20  Prefactor     .77717        .16576        .66214E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1337e-06
Minuit parameter uncertainties:
  1  59.6743
  2  5.05682
  3  1.15244e-05
  4  9.77739
  5  27.554
  6  0.000503912
  7  0.000876252
  8  1.86871
  9  8.01243
  10  6.54747
  11  15.8032
  12  1.08013e-05
  13  0.000121338
  14  0.000146573
  15  1.56426
  16  0.601532
  17  7.1916
  18  12.8651
  19  0.166978
  20  0.165862
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.510e-08  8.763e-04  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.0783568718e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00554450862553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31255195/likelihoodResults_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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): 0
logL (Free Index) = 7297.73724663
delta logL = -0.000189427414625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.73706064
delta logL = -3.43429383065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86914E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      253 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.010       -.18750E-06** at limit **
   2  Index         3.1136        2.2771        .93162E-05     .0000    
   3  Normalizat    1.2853        .18443       -.17602E-05   -.73641E-07
   4  Prefactor     .77717        .19490        .42334E-07   -.16957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11362
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7297.737     FROM HESSE     STATUS=FAILED        11 CALLS      264 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0932        2.0861        .93162E-05   -.38685    
   3  Normalizat    1.2853        1.0828       -.17602E-05   -.84007    
   4  Prefactor     .77717        1.1264        .42334E-07   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.43316e-13
Minuit parameter uncertainties:
  1  2.37087e-05
  2  1.22551
  3  1.10284
  4  1.16262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7297.7370572
delta logL = 5.93900040258e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  2.371e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.114e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/31255195/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2026-07-10 14:05:30.677994', job_id='31255195', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1783717530.68', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2175' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 14:05:31 PDT 2026

_V02
Working on...
/lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits.....................!
real 28.92
user 27.09
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits', '/lscratch/kocevski/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits', expMap='/lscratch/kocevski/31255211/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', expCube='/lscratch/kocevski/31255211/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31255211/Model_4FGL_J1036.2+2202_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31255211/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31255211/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31255211/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31255211/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31255211/Model_4FGL_J1036.2+2202_daily_bin2175.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) = 7297.74113216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.879       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0598       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56617E-04   1.0000          .0000       .10000E+07
     4 'norm      '    30.014       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22330E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32622E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.0306       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.0996       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60857       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.245       1.0000          .0000       .10000E+07
    12 'Prefactor '    .87593E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55853E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .50233E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.4457       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47276E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.954       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.382       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1572 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.545        58.055       -.57194E-05    .18839E-01
   2  Prefactor     7.0542        5.0515       -.44810E-06   -.10817E-03
   3  Prefactor      .0000        10.441        .36400E-05** at limit **
   4  norm          30.007        9.7677        .76358E-06    .10106E-01
   5  Prefactor     16.220        7.0967       -.14401E-06   -.11355    
   6  Prefactor     .38858E-08    16.412       -.11062E-05** at limit **
   7  Prefactor     .15099E-07    12.915       -.40839E-05** at limit **
   8  Prefactor     2.0310        1.8514       -.26897E-06   -.60315E-02
   9  Prefactor     9.0532        8.0234       -.40230E-06   -.19215E-03
  10  Prefactor     .57165        17.779       -.84406E-05   -.59285E-02
  11  Prefactor     16.256        1.2206        .27272E-07    .15735E-03
  12  Prefactor      .0000        4.5364        .39590E-06** at limit **
  13  Prefactor     .83267E-09    33.580        .25648E-05** at limit **
  14  Prefactor     .66613E-09    8.0265       -.19585E-05** at limit **
  15  norm          2.4480        1.5649       -.25181E-06    .45707E-02
  16  Prefactor     .88622E-01    12.560        .18871E-05** at limit **
  17  Prefactor     13.027        6.7531       -.10783E-05   -.75885E-02
  18  Prefactor     12.401        3.0719        .43794E-06    .54414E-02
  19  Normalizat    1.2853        .19861        .12062E-04    .15529E-03
  20  Prefactor     .77717        .19656       -.27098E-05    .73853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5454
  Prefactor  = 7.05417
  Prefactor  = 0
  norm       = 30.0069
  Prefactor  = 16.2199
  Prefactor  = 3.88578e-09
  Prefactor  = 1.5099e-08
  Prefactor  = 2.03102
  Prefactor  = 9.05321
  Prefactor  = 0.571649
  Prefactor  = 16.2561
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 6.66134e-10
  norm       = 2.44796
  Prefactor  = 0.0886216
  Prefactor  = 13.027
  Prefactor  = 12.4011
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.737     FROM HESSE     STATUS=OK           357 CALLS     1929 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.545        59.673        .17442E-03   -1.5594    
   2  Prefactor     7.0542        5.0568        .37732E-03   -1.5655    
   3  Prefactor      .0000        1.2494        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.007        9.7774        .18256E-03   -1.5598    
   5  Prefactor     16.220        27.554        .24832E-03   -1.5627    
   6  Prefactor     .38858E-08    16.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15099E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0310        1.8687        .72568E-03   -1.5679    
   9  Prefactor     9.0532        8.0124        .33201E-03   -1.5648    
  10  Prefactor     .57165        18.748        .68464E-03   -1.5693    
  11  Prefactor     16.256        15.803        .24823E-03   -1.5627    
  12  Prefactor      .0000        4.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    4.4670        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    8.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4480        1.5643        .65388E-03   -1.5677    
  16  Prefactor     .88622E-01    1.0207        .55802E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.027        7.1916        .27805E-03   -1.5636    
  18  Prefactor     12.401        12.865        .28442E-03   -1.5638    
  19  Normalizat    1.2853        .16691        .50220E-01   -.84007    
  20  Prefactor     .77717        .16576        .66214E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1337e-06
Minuit parameter uncertainties:
  1  59.6743
  2  5.05682
  3  1.15244e-05
  4  9.77739
  5  27.554
  6  0.000503912
  7  0.000876252
  8  1.86871
  9  8.01243
  10  6.54747
  11  15.8032
  12  1.08013e-05
  13  0.000121338
  14  0.000146573
  15  1.56426
  16  0.601532
  17  7.1916
  18  12.8651
  19  0.166978
  20  0.165862
number of points = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin2175
RA = 159.053, Dec = 22.0401
tmin = 803088001, tmax = 803347201
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='31255398', job_status='RUN', time_executed='2026-07-10 14:02:06.049987', time_epoch_executed='1783717326.05' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='2175'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31255398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31255398/ft1_4FGL_J1036.2+2202_daily_bin2175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31255398/ft1_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255398/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2175.fits ra=159.053 dec=22.0401 rad=12.0 tmin=803088001.0 tmax=803347201.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 2.43
user 1.67
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.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/31255398/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" outfile="/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.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.09
user 0.21
sys 0.11

Number of photons that the gtmktime cut: 677

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" ouDone.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.510e-08  8.763e-04  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.0783568718e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00554450862553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31255211/likelihoodResults_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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): 0
logL (Free Index) = 7297.73724663
delta logL = -0.000189427414625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.73706064
delta logL = -3.43429383065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86914E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      253 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.010       -.18750E-06** at limit **
   2  Index         3.1136        2.2771        .93162E-05     .0000    
   3  Normalizat    1.2853        .18443       -.17602E-05   -.73641E-07
   4  Prefactor     .77717        .19490        .42334E-07   -.16957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11362
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7297.737     FROM HESSE     STATUS=FAILED        11 CALLS      264 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0932        2.0861        .93162E-05   -.38685    
   3  Normalizat    1.2853        1.0828       -.17602E-05   -.84007    
   4  Prefactor     .77717        1.1264        .42334E-07   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.43316e-13
Minuit parameter uncertainties:
  1  2.37087e-05
  2  1.22551
  3  1.10284
  4  1.16262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7297.7370572
delta logL = 5.93900040258e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  2.371e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.114e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/31255211/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2026-07-10 14:06:36.021109', job_id='31255211', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1783717596.02', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2175' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 14:06:36 PDT 2026

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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin2175
RA = 159.053, Dec = 22.0401
tmin = 803088001, tmax = 803347201
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='31255464', job_status='RUN', time_executed='2026-07-10 14:03:09.913153', time_epoch_executed='1783717389.91' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='2175'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31255464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31255464/ft1_4FGL_J1036.2+2202_daily_bin2175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31255464/ft1_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255464/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2175.fits ra=159.053 dec=22.0401 rad=12.0 tmin=803088001.0 tmax=803347201.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 2.53
user 1.67
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.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/31255464/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" outfile="/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.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.95
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 677

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31255398/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 9.59
user 8.65
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31255398/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255398/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255398/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 73.52
user 68.32
sys 4.19

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255398/cmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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.85
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255398/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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.97
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31255398/Model_4FGL_J1036.2+2202_daily_bin2175.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 GALnumber of points = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1036.2+2202_daily_bin2175
RA = 159.053, Dec = 22.0401
tmin = 803088001, tmax = 803347201
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='31255578', job_status='RUN', time_executed='2026-07-10 14:04:49.700285', time_epoch_executed='1783717489.7' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='2175'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31255578

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31255578/ft1_4FGL_J1036.2+2202_daily_bin2175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31255578/ft1_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255578/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2175.fits ra=159.053 dec=22.0401 rad=12.0 tmin=803088001.0 tmax=803347201.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 2.48
user 1.61
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.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/31255578/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" outfile="/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.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: 677

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" outtfile=/lscratch/kocevski/31255464/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 10.32
user 9.44
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31255464/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255464/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255464/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 74.10
user 69.09
sys 4.22

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255464/cmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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 1.05
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255464/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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 1.08
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31255464/Model_4FGL_J1036.2+2202_daily_bin2175.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 GA_V02
Working on...
/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits.....................!
real 28.60
user 26.80
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits', '/lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits', expMap='/lscratch/kocevski/31255398/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', expCube='/lscratch/kocevski/31255398/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31255398/Model_4FGL_J1036.2+2202_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31255398/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31255398/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31255398/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31255398/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31255398/Model_4FGL_J1036.2+2202_daily_bin2175.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) = 7297.74113216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.879       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0598       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56617E-04   1.0000          .0000       .10000E+07
     4 'norm      '    30.014       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22330E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32622E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.0306       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.0996       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60857       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.245       1.0000          .0000       .10000E+07
    12 'Prefactor '    .87593E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55853E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .50233E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.4457       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47276E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.954       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.382       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1572 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.545        58.055       -.57194E-05    .18839E-01
   2  Prefactor     7.0542        5.0515       -.44810E-06   -.10817E-03
   3  Prefactor      .0000        10.441        .36400E-05** at limit **
   4  norm          30.007        9.7677        .76358E-06    .10106E-01
   5  Prefactor     16.220        7.0967       -.14401E-06   -.11355    
   6  Prefactor     .38858E-08    16.412       -.11062E-05** at limit **
   7  Prefactor     .15099E-07    12.915       -.40839E-05** at limit **
   8  Prefactor     2.0310        1.8514       -.26897E-06   -.60315E-02
   9  Prefactor     9.0532        8.0234       -.40230E-06   -.19215E-03
  10  Prefactor     .57165        17.779       -.84406E-05   -.59285E-02
  11  Prefactor     16.256        1.2206        .27272E-07    .15735E-03
  12  Prefactor      .0000        4.5364        .39590E-06** at limit **
  13  Prefactor     .83267E-09    33.580        .25648E-05** at limit **
  14  Prefactor     .66613E-09    8.0265       -.19585E-05** at limit **
  15  norm          2.4480        1.5649       -.25181E-06    .45707E-02
  16  Prefactor     .88622E-01    12.560        .18871E-05** at limit **
  17  Prefactor     13.027        6.7531       -.10783E-05   -.75885E-02
  18  Prefactor     12.401        3.0719        .43794E-06    .54414E-02
  19  Normalizat    1.2853        .19861        .12062E-04    .15529E-03
  20  Prefactor     .77717        .19656       -.27098E-05    .73853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5454
  Prefactor  = 7.05417
  Prefactor  = 0
  norm       = 30.0069
  Prefactor  = 16.2199
  Prefactor  = 3.88578e-09
  Prefactor  = 1.5099e-08
  Prefactor  = 2.03102
  Prefactor  = 9.05321
  Prefactor  = 0.571649
  Prefactor  = 16.2561
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 6.66134e-10
  norm       = 2.44796
  Prefactor  = 0.0886216
  Prefactor  = 13.027
  Prefactor  = 12.4011
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.737     FROM HESSE     STATUS=OK           357 CALLS     1929 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.545        59.673        .17442E-03   -1.5594    
   2  Prefactor     7.0542        5.0568        .37732E-03   -1.5655    
   3  Prefactor      .0000        1.2494        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.007        9.7774        .18256E-03   -1.5598    
   5  Prefactor     16.220        27.554        .24832E-03   -1.5627    
   6  Prefactor     .38858E-08    16.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15099E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0310        1.8687        .72568E-03   -1.5679    
   9  Prefactor     9.0532        8.0124        .33201E-03   -1.5648    
  10  Prefactor     .57165        18.748        .68464E-03   -1.5693    
  11  Prefactor     16.256        15.803        .24823E-03   -1.5627    
  12  Prefactor      .0000        4.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    4.4670        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    8.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4480        1.5643        .65388E-03   -1.5677    
  16  Prefactor     .88622E-01    1.0207        .55802E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.027        7.1916        .27805E-03   -1.5636    
  18  Prefactor     12.401        12.865        .28442E-03   -1.5638    
  19  Normalizat    1.2853        .16691        .50220E-01   -.84007    
  20  Prefactor     .77717        .16576        .66214E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1337e-06
Minuit parameter uncertainties:
  1  59.6743
  2  5.05682
  3  1.15244e-05
  4  9.77739
  5  27.554
  6  0.000503912
  7  0.000876252
  8  1.86871
  9  8.01243
  10  6.54747
  11  15.8032
  12  1.08013e-05
  13  0.000121338
  14  0.000146573
  15  1.56426
  16  0.601532
  17  7.1916
  18  12.8651
  19  0.166978
  20  0.165862
file=/lscratch/kocevski/31255578/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 9.05
user 8.31
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31255578/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255578/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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/31255578/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
.....................!
real 70.02
user 64.88
sys 4.19

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255578/cmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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.80
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits scfile=/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits outfile=/lscratch/kocevski/31255578/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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=159.053 yref=22.0401 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.89
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits evtable="EVENTS" scfile=/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31255578/Model_4FGL_J1036.2+2202_daily_bin2175.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_Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.510e-08  8.763e-04  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.0783568718e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00554450862553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31255398/likelihoodResults_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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): 0
logL (Free Index) = 7297.73724663
delta logL = -0.000189427414625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.73706064
delta logL = -3.43429383065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86914E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      253 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.010       -.18750E-06** at limit **
   2  Index         3.1136        2.2771        .93162E-05     .0000    
   3  Normalizat    1.2853        .18443       -.17602E-05   -.73641E-07
   4  Prefactor     .77717        .19490        .42334E-07   -.16957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11362
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7297.737     FROM HESSE     STATUS=FAILED        11 CALLS      264 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0932        2.0861        .93162E-05   -.38685    
   3  Normalizat    1.2853        1.0828       -.17602E-05   -.84007    
   4  Prefactor     .77717        1.1264        .42334E-07   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.43316e-13
Minuit parameter uncertainties:
  1  2.37087e-05
  2  1.22551
  3  1.10284
  4  1.16262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
L_V02
Working on...
/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits.....................!
real 28.63
user 26.79
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits', '/lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits', expMap='/lscratch/kocevski/31255464/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', expCube='/lscratch/kocevski/31255464/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31255464/Model_4FGL_J1036.2+2202_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31255464/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31255464/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31255464/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31255464/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31255464/Model_4FGL_J1036.2+2202_daily_bin2175.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) = 7297.74113216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.879       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0598       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56617E-04   1.0000          .0000       .10000E+07
     4 'norm      '    30.014       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22330E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32622E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.0306       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.0996       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60857       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.245       1.0000          .0000       .10000E+07
    12 'Prefactor '    .87593E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55853E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .50233E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.4457       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47276E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.954       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.382       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1572 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.545        58.055       -.57194E-05    .18839E-01
   2  Prefactor     7.0542        5.0515       -.44810E-06   -.10817E-03
   3  Prefactor      .0000        10.441        .36400E-05** at limit **
   4  norm          30.007        9.7677        .76358E-06    .10106E-01
   5  Prefactor     16.220        7.0967       -.14401E-06   -.11355    
   6  Prefactor     .38858E-08    16.412       -.11062E-05** at limit **
   7  Prefactor     .15099E-07    12.915       -.40839E-05** at limit **
   8  Prefactor     2.0310        1.8514       -.26897E-06   -.60315E-02
   9  Prefactor     9.0532        8.0234       -.40230E-06   -.19215E-03
  10  Prefactor     .57165        17.779       -.84406E-05   -.59285E-02
  11  Prefactor     16.256        1.2206        .27272E-07    .15735E-03
  12  Prefactor      .0000        4.5364        .39590E-06** at limit **
  13  Prefactor     .83267E-09    33.580        .25648E-05** at limit **
  14  Prefactor     .66613E-09    8.0265       -.19585E-05** at limit **
  15  norm          2.4480        1.5649       -.25181E-06    .45707E-02
  16  Prefactor     .88622E-01    12.560        .18871E-05** at limit **
  17  Prefactor     13.027        6.7531       -.10783E-05   -.75885E-02
  18  Prefactor     12.401        3.0719        .43794E-06    .54414E-02
  19  Normalizat    1.2853        .19861        .12062E-04    .15529E-03
  20  Prefactor     .77717        .19656       -.27098E-05    .73853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5454
  Prefactor  = 7.05417
  Prefactor  = 0
  norm       = 30.0069
  Prefactor  = 16.2199
  Prefactor  = 3.88578e-09
  Prefactor  = 1.5099e-08
  Prefactor  = 2.03102
  Prefactor  = 9.05321
  Prefactor  = 0.571649
  Prefactor  = 16.2561
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 6.66134e-10
  norm       = 2.44796
  Prefactor  = 0.0886216
  Prefactor  = 13.027
  Prefactor  = 12.4011
  Normalizat = 1.28527
  Prefactor  = 0.77717
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7297.7370572
delta logL = 5.93900040258e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  2.371e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.114e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/31255398/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2026-07-10 14:10:25.830621', job_id='31255398', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1783717825.83', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2175' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 14:10:26 PDT 2026

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

 FCN=   7297.737     FROM HESSE     STATUS=OK           357 CALLS     1929 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.545        59.673        .17442E-03   -1.5594    
   2  Prefactor     7.0542        5.0568        .37732E-03   -1.5655    
   3  Prefactor      .0000        1.2494        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.007        9.7774        .18256E-03   -1.5598    
   5  Prefactor     16.220        27.554        .24832E-03   -1.5627    
   6  Prefactor     .38858E-08    16.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15099E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0310        1.8687        .72568E-03   -1.5679    
   9  Prefactor     9.0532        8.0124        .33201E-03   -1.5648    
  10  Prefactor     .57165        18.748        .68464E-03   -1.5693    
  11  Prefactor     16.256        15.803        .24823E-03   -1.5627    
  12  Prefactor      .0000        4.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    4.4670        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    8.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4480        1.5643        .65388E-03   -1.5677    
  16  Prefactor     .88622E-01    1.0207        .55802E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.027        7.1916        .27805E-03   -1.5636    
  18  Prefactor     12.401        12.865        .28442E-03   -1.5638    
  19  Normalizat    1.2853        .16691        .50220E-01   -.84007    
  20  Prefactor     .77717        .16576        .66214E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1337e-06
Minuit parameter uncertainties:
  1  59.6743
  2  5.05682
  3  1.15244e-05
  4  9.77739
  5  27.554
  6  0.000503912
  7  0.000876252
  8  1.86871
  9  8.01243
  10  6.54747
  11  15.8032
  12  1.08013e-05
  13  0.000121338
  14  0.000146573
  15  1.56426
  16  0.601532
  17  7.1916
  18  12.8651
  19  0.166978
  20  0.165862
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.510e-08  8.763e-04  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.0783568718e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00554450862553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31255464/likelihoodResults_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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): 0
logL (Free Index) = 7297.73724663
delta logL = -0.000189427414625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.73706064
delta logL = -3.43429383065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86914E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      253 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.010       -.18750E-06** at limit **
   2  Index         3.1136        2.2771        .93162E-05     .0000    
   3  Normalizat    1.2853        .18443       -.17602E-05   -.73641E-07
   4  Prefactor     .77717        .19490        .42334E-07   -.16957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11362
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7297.737     FROM HESSE     STATUS=FAILED        11 CALLS      264 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0932        2.0861        .93162E-05   -.38685    
   3  Normalizat    1.2853        1.0828       -.17602E-05   -.84007    
   4  Prefactor     .77717        1.1264        .42334E-07   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.43316e-13
Minuit parameter uncertainties:
  1  2.37087e-05
  2  1.22551
  3  1.10284
  4  1.16262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7297.7370572
delta logL = 5.93900040258e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  2.371e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.114e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/31255464/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2026-07-10 14:11:10.982389', job_id='31255464', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1783717870.98', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2175' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 14:11:11 PDT 2026

V02
Working on...
/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits.....................!
real 26.93
user 25.24
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits', '/lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits', expMap='/lscratch/kocevski/31255578/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', expCube='/lscratch/kocevski/31255578/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31255578/Model_4FGL_J1036.2+2202_daily_bin2175.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31255578/ft1_filtered_4FGL_J1036.2+2202_daily_bin2175.fits
Spacecraft file(s): /lscratch/kocevski/31255578/ft2_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure map: /lscratch/kocevski/31255578/expmap_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
Exposure cube: /lscratch/kocevski/31255578/ltcube_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31255578/Model_4FGL_J1036.2+2202_daily_bin2175.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) = 7297.74113216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.879       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0598       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56617E-04   1.0000          .0000       .10000E+07
     4 'norm      '    30.014       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.233       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22330E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32622E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.0306       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.0996       1.0000          .0000       .10000E+07
    10 'Prefactor '    .60857       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.245       1.0000          .0000       .10000E+07
    12 'Prefactor '    .87593E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55853E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .50233E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.4457       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47276E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.954       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.382       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1572 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.545        58.055       -.57194E-05    .18839E-01
   2  Prefactor     7.0542        5.0515       -.44810E-06   -.10817E-03
   3  Prefactor      .0000        10.441        .36400E-05** at limit **
   4  norm          30.007        9.7677        .76358E-06    .10106E-01
   5  Prefactor     16.220        7.0967       -.14401E-06   -.11355    
   6  Prefactor     .38858E-08    16.412       -.11062E-05** at limit **
   7  Prefactor     .15099E-07    12.915       -.40839E-05** at limit **
   8  Prefactor     2.0310        1.8514       -.26897E-06   -.60315E-02
   9  Prefactor     9.0532        8.0234       -.40230E-06   -.19215E-03
  10  Prefactor     .57165        17.779       -.84406E-05   -.59285E-02
  11  Prefactor     16.256        1.2206        .27272E-07    .15735E-03
  12  Prefactor      .0000        4.5364        .39590E-06** at limit **
  13  Prefactor     .83267E-09    33.580        .25648E-05** at limit **
  14  Prefactor     .66613E-09    8.0265       -.19585E-05** at limit **
  15  norm          2.4480        1.5649       -.25181E-06    .45707E-02
  16  Prefactor     .88622E-01    12.560        .18871E-05** at limit **
  17  Prefactor     13.027        6.7531       -.10783E-05   -.75885E-02
  18  Prefactor     12.401        3.0719        .43794E-06    .54414E-02
  19  Normalizat    1.2853        .19861        .12062E-04    .15529E-03
  20  Prefactor     .77717        .19656       -.27098E-05    .73853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5454
  Prefactor  = 7.05417
  Prefactor  = 0
  norm       = 30.0069
  Prefactor  = 16.2199
  Prefactor  = 3.88578e-09
  Prefactor  = 1.5099e-08
  Prefactor  = 2.03102
  Prefactor  = 9.05321
  Prefactor  = 0.571649
  Prefactor  = 16.2561
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 6.66134e-10
  norm       = 2.44796
  Prefactor  = 0.0886216
  Prefactor  = 13.027
  Prefactor  = 12.4011
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.737     FROM HESSE     STATUS=OK           357 CALLS     1929 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.545        59.673        .17442E-03   -1.5594    
   2  Prefactor     7.0542        5.0568        .37732E-03   -1.5655    
   3  Prefactor      .0000        1.2494        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.007        9.7774        .18256E-03   -1.5598    
   5  Prefactor     16.220        27.554        .24832E-03   -1.5627    
   6  Prefactor     .38858E-08    16.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15099E-07    12.701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0310        1.8687        .72568E-03   -1.5679    
   9  Prefactor     9.0532        8.0124        .33201E-03   -1.5648    
  10  Prefactor     .57165        18.748        .68464E-03   -1.5693    
  11  Prefactor     16.256        15.803        .24823E-03   -1.5627    
  12  Prefactor      .0000        4.5355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    4.4670        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66613E-09    8.0287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4480        1.5643        .65388E-03   -1.5677    
  16  Prefactor     .88622E-01    1.0207        .55802E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.027        7.1916        .27805E-03   -1.5636    
  18  Prefactor     12.401        12.865        .28442E-03   -1.5638    
  19  Normalizat    1.2853        .16691        .50220E-01   -.84007    
  20  Prefactor     .77717        .16576        .66214E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1337e-06
Minuit parameter uncertainties:
  1  59.6743
  2  5.05682
  3  1.15244e-05
  4  9.77739
  5  27.554
  6  0.000503912
  7  0.000876252
  8  1.86871
  9  8.01243
  10  6.54747
  11  15.8032
  12  1.08013e-05
  13  0.000121338
  14  0.000146573
  15  1.56426
  16  0.601532
  17  7.1916
  18  12.8651
  19  0.166978
  20  0.165862
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.510e-08  8.763e-04  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 7.0783568718e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00554450862553 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31255578/likelihoodResults_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.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): 0
logL (Free Index) = 7297.73724663
delta logL = -0.000189427414625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7297.73706064
delta logL = -3.43429383065e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86914E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7297.737     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      253 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        13.010       -.18750E-06** at limit **
   2  Index         3.1136        2.2771        .93162E-05     .0000    
   3  Normalizat    1.2853        .18443       -.17602E-05   -.73641E-07
   4  Prefactor     .77717        .19490        .42334E-07   -.16957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.11362
  Normalizat = 1.28527
  Prefactor  = 0.77717
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7297.737     FROM HESSE     STATUS=FAILED        11 CALLS      264 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0932        2.0861        .93162E-05   -.38685    
   3  Normalizat    1.2853        1.0828       -.17602E-05   -.84007    
   4  Prefactor     .77717        1.1264        .42334E-07   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.43316e-13
Minuit parameter uncertainties:
  1  2.37087e-05
  2  1.22551
  3  1.10284
  4  1.16262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 7297.7370572
delta logL = 5.93900040258e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  2.371e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.114e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.772e-01  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.285e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/31255578/cmap_HighResolution_803088001_803347201_4FGL_J1036.2+2202_daily_bin2175.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2026-07-10 14:12:19.360712', job_id='31255578', GAL2='0.78', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1783717939.36', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.94e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='2175' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 14:12:19 PDT 2026

