/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 = 17370
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1156.6+0640_weekly_bin884
RA = 179.164, Dec = 6.6728
tmin = 773625601, tmax = 774230401
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='14045839', job_status='RUN', time_executed='2025-10-19 21:16:22.986665', time_epoch_executed='1760933782.99' WHERE source_name='4FGL J1156.6+0640' and cadence='weekly' and bin_id='884'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/14045839

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/14045839/ft1_4FGL_J1156.6+0640_weekly_bin884.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/14045839/ft1_4FGL_J1156.6+0640_weekly_bin884.fits outfile=/lscratch/kocevski/14045839/ft1_filteredMKT_4FGL_J1156.6+0640_weekly_bin884.fits ra=179.164 dec=6.6728 rad=12.0 tmin=773625601.0 tmax=774230401.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 5.31
user 4.40
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.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/14045839/ft1_filteredMKT_4FGL_J1156.6+0640_weekly_bin884.fits evtable="EVENTS" outfile="/lscratch/kocevski/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.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.77
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1386

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits" evtable="EVENTS" scfile=/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits sctable="SC_DATA" outfile=/lscratch/kocevski/14045839/ltcube_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.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/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits
.....................!
real 21.51
user 20.64
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits evtable="EVENTS" scfile=/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits sctable="SC_DATA" expcube=/lscratch/kocevski/14045839/ltcube_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.fits outfile=/lscratch/kocevski/14045839/expmap_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.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/14045839/ltcube_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.fits
.....................!
real 71.70
user 67.10
sys 3.81

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/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits scfile=/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits outfile=/lscratch/kocevski/14045839/cmap_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.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.83
user 0.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits scfile=/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits outfile=/lscratch/kocevski/14045839/cmap_HighResolution_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.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.79
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits evtable="EVENTS" scfile=/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/14045839/Model_4FGL_J1156.6+0640_weekly_bin884.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/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits.....................!
real 53.69
user 51.77
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits', '/lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits', expMap='/lscratch/kocevski/14045839/expmap_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.fits', expCube='/lscratch/kocevski/14045839/ltcube_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/14045839/Model_4FGL_J1156.6+0640_weekly_bin884.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/14045839/ft1_filtered_4FGL_J1156.6+0640_weekly_bin884.fits
Spacecraft file(s): /lscratch/kocevski/14045839/ft2_4FGL_J1156.6+0640_weekly_bin884.fits
Exposure map: /lscratch/kocevski/14045839/expmap_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.fits
Exposure cube: /lscratch/kocevski/14045839/ltcube_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/14045839/Model_4FGL_J1156.6+0640_weekly_bin884.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) = 15531.4056519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9140       1.0000          .0000       .10000E+07
     2 'Prefactor '    .20980       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22457E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11657E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.067       1.0000          .0000       .10000E+07
     6 'Prefactor '    20.020       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11318E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17719E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .69787E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .84076E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0868       1.0000          .0000       .10000E+07
    12 'Prefactor '    .54790E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.4200       1.0000          .0000       .10000E+07
    14 'norm      '    2.4963       1.0000          .0000       .10000E+07
    15 'norm      '    1.0366       1.0000          .0000       .10000E+07
    16 'Prefactor '    21.612       1.0000          .0000       .10000E+07
    17 'norm      '    8.0881       1.0000          .0000       .10000E+07
    18 'norm      '    2.4385       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.6411       1.0000          .0000       .10000E+07
    20 'norm      '    3.0346       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1876       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87174       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=   15530.51     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1405 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9948        6.2014       -.18369E-07    .35175E-03
   2  Prefactor     .20987        .75745       -.69362E-07** at limit **
   3  Prefactor      .0000        19.138        .14717E-06** at limit **
   4  Prefactor      .0000        4.2330       -.21471E-06** at limit **
   5  Prefactor     10.070        5.5004        .79655E-08   -.21125E-03
   6  Prefactor     20.134        11.372        .10381E-06    .23199E-03
   7  Prefactor      .0000        16.340       -.18709E-06** at limit **
   8  Prefactor      .0000        10.910        .96032E-07** at limit **
   9  Prefactor      .0000        15.462       -.17342E-06** at limit **
  10  Prefactor     .55511E-10    45.125       -.21314E-05** at limit **
  11  Prefactor     2.0865        2.3196        .26891E-06   -.40377E-03
  12  Prefactor      .0000        5.1971       -.13326E-06** at limit **
  13  Prefactor     4.3682        6.8305       -.31503E-07    .54005E-03
  14  norm          2.5023        1.5333       -.57868E-08    .36068E-02
  15  norm          1.0379        2.1817        .37544E-07   -.92925E-04
  16  Prefactor     21.493        1.2493        .25617E-08    .53779E-02
  17  norm          8.0910        1.0432       -.10642E-08   -.54973E-03
  18  norm          2.4390        .45257       -.13064E-07    .25473E-02
  19  Prefactor     5.6386        5.1037        .17842E-07   -.52771E-03
  20  norm          3.0352        1.0687        .20288E-07   -.18517E-02
  21  Normalizat    1.1873        .14705       -.26909E-06    .64689E-04
  22  Prefactor     .87180        .12207       -.31918E-07    .90953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.99484
  Prefactor  = 0.209871
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 10.0702
  Prefactor  = 20.1339
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.08654
  Prefactor  = 0
  Prefactor  = 4.36821
  norm       = 2.50233
  norm       = 1.03788
  Prefactor  = 21.4935
  norm       = 8.091
  norm       = 2.43899
  Prefactor  = 5.63864
  norm       = 3.03517
  Normalizat = 1.18735
  Prefactor  = 0.871804
 **********
 **   18 **HESSE 
 **********

 FCN=   15530.51     FROM HESSE     STATUS=OK           400 CALLS     1805 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9948        6.2108        .45349E-03   -1.5663    
   2  Prefactor     .20987        .77072        .11604E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        19.089        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.2195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.070        5.5038        .31557E-03   -1.5644    
   6  Prefactor     20.134        11.358        .22357E-03   -1.5618    
   7  Prefactor      .0000        16.373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        10.911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        15.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    2.5367        .51913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0865        2.7528        .71444E-03   -1.5679    
  12  Prefactor      .0000        5.1965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3682        6.8432        .47877E-03   -1.5666    
  14  norm          2.5023        1.5331        .64661E-03   -1.5676    
  15  norm          1.0379        2.4494        .12358E-02   -1.5688    
  16  Prefactor     21.493        14.867        .21517E-03   -1.5615    
  17  norm          8.0910        17.056        .35230E-03   -1.5651    
  18  norm          2.4390        .46197        .65495E-03   -1.5677    
  19  Prefactor     5.6386        5.1070        .42271E-03   -1.5660    
  20  norm          3.0352        1.0742        .58223E-03   -1.5673    
  21  Normalizat    1.1873        .12630        .59021E-01   -.86995    
  22  Prefactor     .87180        .10430        .44644E-01   -.97133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73236e-08
Minuit parameter uncertainties:
  1  6.21079
  2  0.770718
  3  3.46549e-05
  4  2.60945e-07
  5  5.50385
  6  11.3579
  7  2.51047e-05
  8  2.0619e-05
  9  3.73708e-05
  10  1.91616e-05
  11  2.75285
  12  4.08448e-07
  13  6.84321
  14  1.53312
  15  2.4494
  16  14.8674
  17  17.0558
  18  0.461974
  19  5.10698
  20  1.07421
  21  0.126332
  22  0.104326
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  3.465e-05  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.718e-01  1.043e-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.187e+00  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 2.85274498428e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00219212126472 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/14045839/likelihoodResults_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15530.5370532
delta logL = -0.0250070930706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15530.512052
delta logL = -5.88944203628e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87488E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .81079       1.0000          .0000       10.000    
     3 'Normalizat'    1.1874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87174       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15530.51     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      207 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.508        .42118E-03** at limit **
   2  Index         2.2442        1.7716       -.70591E-03     .0000    
   3  Normalizat    1.1873        1.1108       -.16503E-05    .14462E-04
   4  Prefactor     .87180        1.2180       -.31365E-05    .48032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.24423
  Normalizat = 1.18735
  Prefactor  = 0.871804
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15530.51     FROM HESSE     STATUS=FAILED         9 CALLS      216 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .55823        1.9468       -.70591E-03   -.58375    
   3  Normalizat    1.1873        1.1108       -.16503E-05   -.86995    
   4  Prefactor     .87180        1.2180       -.31365E-05   -.97133    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.4304e-12
Minuit parameter uncertainties:
  1  1.02674e-05
  2  1.82974
  3  1.13408
  4  1.2594
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) = 15530.5120461
delta logL = 0.0

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  1.027e-05  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.244e+00  1.830e+00  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:  8.718e-01  1.259e+00  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.187e+00  1.134e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 179.164 6.673

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/14045839/cmap_HighResolution_773625601_774230401_4FGL_J1156.6+0640_weekly_bin884.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.85e-08', time_completed='2025-10-19 21:28:01.825949', job_id='14045839', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1760934481.83', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='884' AND source_name='4FGL J1156.6+0640' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Oct 19 21:28:02 PDT 2025

