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

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

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


Performing analysis on: 4FGL_J1156.6+0640_weekly_bin875
RA = 179.164, Dec = 6.6728
tmin = 768182401, tmax = 768787201
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='4947763', job_status='RUN', time_executed='2025-05-13 00:52:04.197313', time_epoch_executed='1747122724.2' WHERE source_name='4FGL J1156.6+0640' and cadence='weekly' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/4947763

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/4947763/ft1_4FGL_J1156.6+0640_weekly_bin875.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/4947763/ft1_4FGL_J1156.6+0640_weekly_bin875.fits outfile=/lscratch/kocevski/4947763/ft1_filteredMKT_4FGL_J1156.6+0640_weekly_bin875.fits ra=179.164 dec=6.6728 rad=12.0 tmin=768182401.0 tmax=768787201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.87
user 3.17
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.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/4947763/ft1_filteredMKT_4FGL_J1156.6+0640_weekly_bin875.fits evtable="EVENTS" outfile="/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.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.86
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1144

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits" evtable="EVENTS" scfile=/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits sctable="SC_DATA" outfile=/lscratch/kocevski/4947763/ltcube_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.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/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits
.....................!
real 19.14
user 18.30
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits evtable="EVENTS" scfile=/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits sctable="SC_DATA" expcube=/lscratch/kocevski/4947763/ltcube_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.fits outfile=/lscratch/kocevski/4947763/expmap_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.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/4947763/ltcube_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.fits
.....................!
real 65.29
user 60.86
sys 3.77

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

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits scfile=/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits outfile=/lscratch/kocevski/4947763/cmap_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.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=179.164 yref=6.6728 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.61
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits scfile=/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits outfile=/lscratch/kocevski/4947763/cmap_HighResolution_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.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=179.164 yref=6.6728 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.57
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits evtable="EVENTS" scfile=/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/4947763/Model_4FGL_J1156.6+0640_weekly_bin875.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits.....................!
real 42.46
user 41.20
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits', '/lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits', expMap='/lscratch/kocevski/4947763/expmap_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.fits', expCube='/lscratch/kocevski/4947763/ltcube_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/4947763/Model_4FGL_J1156.6+0640_weekly_bin875.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1156.6+0640'

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.059e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/4947763/ft1_filtered_4FGL_J1156.6+0640_weekly_bin875.fits
Spacecraft file(s): /lscratch/kocevski/4947763/ft2_4FGL_J1156.6+0640_weekly_bin875.fits
Exposure map: /lscratch/kocevski/4947763/expmap_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.fits
Exposure cube: /lscratch/kocevski/4947763/ltcube_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/4947763/Model_4FGL_J1156.6+0640_weekly_bin875.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) = 12912.1214149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34462E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .18511E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    220.08       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6847       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13938E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7060       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9809       1.0000          .0000       .10000E+07
     8 'Prefactor '    23.406       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16223       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.6545       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37192E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16934E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0833       1.0000          .0000       .10000E+07
    14 'norm      '    .36383E-01   1.0000          .0000       .10000E+07
    15 'norm      '    3.8050       1.0000          .0000       .10000E+07
    16 'Prefactor '    .97774E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .23777E-01   1.0000          .0000       .10000E+07
    18 'norm      '    5.3611       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.0436       1.0000          .0000       .10000E+07
    20 'norm      '    5.8472       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3091       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12912.12     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1906 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.7690        .59657E-07** at limit **
   2  Prefactor      .0000        1.0112       -.15833E-07** at limit **
   3  Prefactor     219.85        12.098       -.38372E-06    .44135    
   4  Prefactor     2.7345        5.3634        .14116E-06   -.13438E-03
   5  Prefactor     .94369E-09    6.9991        .63243E-06** at limit **
   6  Prefactor     3.7299        11.038       -.54287E-05   -.24919E-01
   7  Prefactor     5.1558        6.1789        .95053E-06   -.40139E-01
   8  Prefactor     23.712        33.392       -.98409E-06   -.55106E-01
   9  Prefactor     .65004E-07    45.446       -.36433E-05** at limit **
  10  Prefactor     1.6552        2.1398        .13393E-06    .21469E-02
  11  Prefactor      .0000        .59126        .61895E-07** at limit **
  12  Prefactor     .17208E-08    13.272        .40815E-06** at limit **
  13  Prefactor     5.2289        16.362       -.75146E-06   -.27936E-02
  14  norm          .75168E-01    26.607        .19817E-06** at limit **
  15  norm          3.8121        3.7123        .35795E-07   -.22467E-02
  16  Prefactor     .91528E-05    217.95       -.12694E-06** at limit **
  17  norm          .77716E-09    24.930        .28497E-06** at limit **
  18  norm          5.3573        .91085       -.26647E-07   -.36952E-01
  19  Prefactor     5.9650        6.6941       -.16038E-06   -.15087E-02
  20  norm          5.8495        2.0967       -.25247E-07   -.30882E-02
  21  Normalizat    1.3088        .16584        .81029E-05   -.44258E-03
  22  Prefactor     .80558        .13679       -.54637E-05   -.68151E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 219.846
  Prefactor  = 2.73445
  Prefactor  = 9.4369e-10
  Prefactor  = 3.72995
  Prefactor  = 5.15583
  Prefactor  = 23.712
  Prefactor  = 6.50036e-08
  Prefactor  = 1.65518
  Prefactor  = 0
  Prefactor  = 1.72085e-09
  Prefactor  = 5.22892
  norm       = 0.0751684
  norm       = 3.81212
  Prefactor  = 9.15285e-06
  norm       = 7.77156e-10
  norm       = 5.35732
  Prefactor  = 5.96499
  norm       = 5.84953
  Normalizat = 1.30875
  Prefactor  = 0.805582
 **********
 **   18 **HESSE 
 **********

 FCN=   12912.12     FROM HESSE     STATUS=OK           400 CALLS     2306 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.7789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .99043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     219.85        79.639        .67415E-04   -1.5411    
   4  Prefactor     2.7345        5.4781        .62160E-03   -1.5675    
   5  Prefactor     .94369E-09    6.9814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7299        13.322        .52434E-03   -1.5669    
   7  Prefactor     5.1558        271.61        .45037E-03   -1.5663    
   8  Prefactor     23.712        34.504        .20675E-03   -1.5611    
   9  Prefactor     .65004E-07    44.655        .12491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6552        2.1595        .82026E-03   -1.5682    
  11  Prefactor      .0000        .59528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17208E-08    13.014        .17247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2289        14.308        .44572E-03   -1.5662    
  14  norm          .75168E-01    1.2542        .67732E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8121        3.7244        .51722E-03   -1.5669    
  16  Prefactor     .91528E-05    213.40        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77716E-09    24.874        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3573        .91148        .43380E-03   -1.5662    
  19  Prefactor     5.9650        6.7188        .40818E-03   -1.5659    
  20  norm          5.8495        2.1024        .41508E-03   -1.5660    
  21  Normalizat    1.3088        .14106        .58334E-01   -.83305    
  22  Prefactor     .80558        .11611        .43790E-01   -.99523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28014e-06
Minuit parameter uncertainties:
  1  4.67421e-09
  2  6.642e-07
  3  79.6398
  4  5.47815
  5  0.000159994
  6  13.322
  7  74.8469
  8  34.5047
  9  0.00340789
  10  2.15949
  11  3.24242e-06
  12  0.000297911
  13  14.308
  14  0.614077
  15  3.72442
  16  0.0883946
  17  0.000275439
  18  0.91148
  19  6.71884
  20  2.10244
  21  0.141097
  22  0.116143
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.198e+02  7.964e+01  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.056e-01  1.161e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.309e+00  1.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.58
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.79e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.04e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12907.770779
delta logL = 4.34901716383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12907.572392
delta logL = 4.54740416722

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12907.57     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      228 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     287.55        115.60       -.50829E-06   -.49961E-03
   2  Index         1.4621        .24991       -.10884E-04    .43533E-04
   3  Normalizat    1.3643        .13396        .64794E-06    .38692E-03
   4  Prefactor     .77855        .11359       -.98806E-07    .31154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 287.548
  Index      = 1.46214
  Normalizat = 1.36431
  Prefactor  = 0.778546
 **********
 **   18 **HESSE 
 **********

 FCN=   12907.57     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     287.55        114.70        .11795E-04   -1.5369    
   2  Index         1.4621        .24775        .67832E-02   -.78605    
   3  Normalizat    1.3643        .15906        .25346E-03   -.81666    
   4  Prefactor     .77855        .13479        .27478E-03   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20206e-11
Minuit parameter uncertainties:
  1  114.697
  2  0.247955
  3  0.159118
  4  0.134842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12907.5723918
delta logL = 4.54740436732

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.875e+02  1.147e+02  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  1.462e+00  2.480e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.785e-01  1.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.364e+00  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.63
Ra Dec: 179.164 6.673
Photon Index (Free Index): 1.46 +/- 0.25
Photon Flux (Free Index): 2.88e-08 +/- 1.45e-08
Energy Flux (Free Index): 1.03e-04 +/- 6.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/4947763/cmap_HighResolution_768182401_768787201_4FGL_J1156.6+0640_weekly_bin875.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.79e-08', energy_flux2='1.03e-04', photon_flux_error='2.82e-08', dlogl='4.55e+00', energy_flux='2.87e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2025-05-13 01:00:46.839414', photon_index_error2='0.25', photon_index2='1.46', ts='23.58', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='6.38e-05', EG='1.31', time_epoch_completed='1747123246.84', return_code='0', job_id='4947763', GAL2='0.78', EG2='1.36', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.45e-08', ts2='32.63', photon_index='2.32' WHERE bin_id='875' AND source_name='4FGL J1156.6+0640' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 13 01:00:46 PDT 2025

