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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1880
RA = 344.953, Dec = -15.8809
tmin = 726624001, tmax = 726883201
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='38424128', job_status='RUN', time_executed='2024-01-18 17:50:34.653101', time_epoch_executed='1705629034.65' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1880'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38424128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38424128/ft1_4FGL_J2259.8-1552_daily_bin1880.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38424128/ft1_4FGL_J2259.8-1552_daily_bin1880.fits outfile=/lscratch/kocevski/38424128/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1880.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=726624001.0 tmax=726883201.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 1.86
user 1.59
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.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/38424128/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1880.fits evtable="EVENTS" outfile="/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.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.47
user 0.20
sys 0.11

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38424128/ltcube_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.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/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits
.....................!
real 10.89
user 10.37
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits evtable="EVENTS" scfile=/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38424128/ltcube_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.fits outfile=/lscratch/kocevski/38424128/expmap_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.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/38424128/ltcube_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.fits
.....................!
real 76.01
user 70.69
sys 4.67

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

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits scfile=/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits outfile=/lscratch/kocevski/38424128/cmap_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.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=344.953 yref=-15.8809 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.41
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits scfile=/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits outfile=/lscratch/kocevski/38424128/cmap_HighResolution_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.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=344.953 yref=-15.8809 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.49
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits evtable="EVENTS" scfile=/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38424128/Model_4FGL_J2259.8-1552_daily_bin1880.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/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits.....................!
real 23.98
user 23.04
sys 0.66

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits', '/lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits', expMap='/lscratch/kocevski/38424128/expmap_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.fits', expCube='/lscratch/kocevski/38424128/ltcube_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38424128/Model_4FGL_J2259.8-1552_daily_bin1880.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2259.8-1552'

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.289e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38424128/ft1_filtered_4FGL_J2259.8-1552_daily_bin1880.fits
Spacecraft file(s): /lscratch/kocevski/38424128/ft2_4FGL_J2259.8-1552_daily_bin1880.fits
Exposure map: /lscratch/kocevski/38424128/expmap_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.fits
Exposure cube: /lscratch/kocevski/38424128/ltcube_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38424128/Model_4FGL_J2259.8-1552_daily_bin1880.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) = 6027.07471183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3194       1.0000          .0000       .10000E+07
     2 'Prefactor '    41.815       1.0000          .0000       .10000E+07
     3 'norm      '    8.5387       1.0000          .0000       .10000E+07
     4 'Prefactor '    63.655       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.819       1.0000          .0000       .10000E+07
     6 'norm      '    1.5369       1.0000          .0000       .10000E+07
     7 'norm      '    2.1980       1.0000          .0000       .10000E+07
     8 'Prefactor '    .60977E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.5203       1.0000          .0000       .10000E+07
    10 'norm      '    .74163E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    18.035       1.0000          .0000       .10000E+07
    12 'Prefactor '    .79176E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    19.820       1.0000          .0000       .10000E+07
    14 'Prefactor '    .50014E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.7200       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.8574       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17698E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.8978       1.0000          .0000       .10000E+07
    19 'norm      '    2.0652       1.0000          .0000       .10000E+07
    20 'norm      '    .64948E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10244E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .30204       1.0000          .0000       .10000E+07
    23 'norm      '    6.4286       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.4013       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .40575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6027.074     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3351 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3312        14.539        .75998E-07   -.16033E-04
   2  Prefactor     41.715        42.301       -.59439E-06    .13917E-03
   3  norm          8.5435        4.8883        .50658E-07    .14331E-03
   4  Prefactor     63.905        104.84       -.13640E-05    .63280E-04
   5  Prefactor     15.840        13.430        .22624E-07   -.40255E-05
   6  norm          1.5370        .88976        .60419E-08    .11356E-02
   7  norm          2.1993        1.8725       -.11545E-08    .76070E-04
   8  Prefactor      .0000        27.165       -.15243E-07** at limit **
   9  Prefactor     9.4796        15.138        .78002E-08   -.45873E-04
  10  norm           .0000        .47792        .19821E-08** at limit **
  11  Prefactor     18.021        25.166       -.45137E-07   -.28750E-04
  12  Prefactor      .0000        5.5287        .26627E-08** at limit **
  13  Prefactor     19.709        19.473        .54572E-07    .19572E-03
  14  Prefactor      .0000        3.1338        .68133E-09** at limit **
  15  Prefactor     6.8053        18.520       -.14116E-06   -.71685E-04
  16  Prefactor     3.6602        272.05        .98732E-09   -.15995E-03
  17  Prefactor      .0000        5.9567       -.74666E-08** at limit **
  18  Prefactor     7.0775        14.513       -.85435E-07    .26910E-03
  19  norm          2.0348        5.1250        .38170E-06    .32935E-03
  20  norm           .0000        .67094       -.19200E-08** at limit **
  21  Prefactor      .0000        10.975       -.11425E-07** at limit **
  22  norm          .30155        .30020       -.18769E-08   -.67183E-03
  23  norm          6.4532        4.0546        .69748E-08    .11976E-03
  24  Normalizat    1.4020        .18453        .13775E-06    .16617E-04
  25  Prefactor     .40543        .14566        .50787E-06    .23830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.33123
  Prefactor  = 41.7154
  norm       = 8.5435
  Prefactor  = 63.9045
  Prefactor  = 15.8405
  norm       = 1.53699
  norm       = 2.1993
  Prefactor  = 0
  Prefactor  = 9.47958
  norm       = 0
  Prefactor  = 18.0206
  Prefactor  = 0
  Prefactor  = 19.7094
  Prefactor  = 0
  Prefactor  = 6.80528
  Prefactor  = 3.66022
  Prefactor  = 0
  Prefactor  = 7.07754
  norm       = 2.03483
  norm       = 0
  Prefactor  = 0
  norm       = 0.301546
  norm       = 6.45323
  Normalizat = 1.40203
  Prefactor  = 0.405434
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.074     FROM HESSE     STATUS=OK           437 CALLS     3788 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3312        14.531        .13893E-04   -1.5650    
   2  Prefactor     41.715        42.238        .30932E-04   -1.5579    
   3  norm          8.5435        4.8823        .11830E-04   -1.5650    
   4  Prefactor     63.905        104.68        .25069E-04   -1.5548    
   5  Prefactor     15.840        13.461        .10062E-04   -1.5628    
   6  norm          1.5370        .88959        .52463E-05   -1.5683    
   7  norm          2.1993        1.8633        .94998E-05   -1.5678    
   8  Prefactor      .0000        27.268        .30255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4796        14.962        .12982E-04   -1.5646    
  10  norm           .0000        .47843        .52104E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.021        25.023        .94227E-05   -1.5623    
  12  Prefactor      .0000        5.5288        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.709        19.143        .89878E-05   -1.5619    
  14  Prefactor      .0000        3.1350        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8053        18.137        .15474E-04   -1.5656    
  16  Prefactor     3.6602        243.00        .18247E-04   -1.5670    
  17  Prefactor      .0000        5.9571        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0775        13.856        .15271E-04   -1.5655    
  19  norm          2.0348        5.1449        .11936E-03   -1.5679    
  20  norm           .0000        .67189        .62100E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        10.995        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .30155        .30173        .39829E-05   -1.5697    
  23  norm          6.4532        4.0347        .57896E-04   -1.5657    
  24  Normalizat    1.4020        .21528        .21243E-03   -.80570    
  25  Prefactor     .40543        .16647        .30076E-03   -1.1653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97291e-11
Minuit parameter uncertainties:
  1  14.5306
  2  42.2379
  3  4.88231
  4  104.687
  5  13.4607
  6  0.889592
  7  1.86325
  8  2.62697e-05
  9  14.962
  10  2.44024e-07
  11  25.0235
  12  7.14535e-07
  13  19.1433
  14  7.84695e-07
  15  18.1367
  16  59.6491
  17  7.22029e-07
  18  13.8557
  19  5.14496
  20  3.38698e-07
  21  7.78674e-06
  22  0.301732
  23  4.03472
  24  0.215419
  25  0.166669
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  7.847e-07  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  4.054e-01  1.667e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.402e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 4.39165158934e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00332876865761 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38424128/likelihoodResults_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.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) = 6027.07763774
delta logL = -0.00372430129573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6027.07391384
delta logL = -4.02199475502e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6027.074     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      227 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3599        .42118E-03** at limit **
   2  Index         .82311        .65542       -.17157E-04     .0000    
   3  Normalizat    1.4020        1.0616       -.18533E-05    .77091E-05
   4  Prefactor     .40543        .73761        .11194E-05   -.12079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.823106
  Normalizat = 1.40203
  Prefactor  = 0.405433
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6027.074     FROM HESSE     STATUS=FAILED         9 CALLS      236 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .12945E-01    .93067       -.17157E-04   -.98882    
   3  Normalizat    1.4020        1.0616       -.18533E-05   -.80570    
   4  Prefactor     .40543        .73761        .11194E-05   -1.1653    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.19382e-12
Minuit parameter uncertainties:
  1  1.04378e-06
  2  0.661801
  3  1.07904
  4  0.755988
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) = 6027.07391344
delta logL = 0.0

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  1.044e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  8.231e-01  6.618e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  4.054e-01  7.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.402e+00  1.079e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 344.953 -15.881

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38424128/cmap_HighResolution_726624001_726883201_4FGL_J2259.8-1552_daily_bin1880.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2024-01-18 17:55:57.215271', job_id='38424128', GAL2='0.41', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1705629357.22', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1880' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 18 17:55:57 PST 2024

