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


Performing analysis on: 4FGL_J2357.8-5311_daily_bin2104
RA = 359.463, Dec = -53.1919
tmin = 784684801, tmax = 784944001
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='15607974', job_status='RUN', time_executed='2025-11-16 01:12:58.960917', time_epoch_executed='1763284378.96' WHERE source_name='4FGL J2357.8-5311' and cadence='daily' and bin_id='2104'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/15607974

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/15607974/ft1_4FGL_J2357.8-5311_daily_bin2104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/15607974/ft1_4FGL_J2357.8-5311_daily_bin2104.fits outfile=/lscratch/kocevski/15607974/ft1_filteredMKT_4FGL_J2357.8-5311_daily_bin2104.fits ra=359.463 dec=-53.1919 rad=12.0 tmin=784684801.0 tmax=784944001.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.59
user 1.87
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.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/15607974/ft1_filteredMKT_4FGL_J2357.8-5311_daily_bin2104.fits evtable="EVENTS" outfile="/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.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.78
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 606

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits" evtable="EVENTS" scfile=/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits sctable="SC_DATA" outfile=/lscratch/kocevski/15607974/ltcube_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.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/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits
.....................!
real 9.36
user 8.58
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits evtable="EVENTS" scfile=/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits sctable="SC_DATA" expcube=/lscratch/kocevski/15607974/ltcube_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.fits outfile=/lscratch/kocevski/15607974/expmap_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.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/15607974/ltcube_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.fits
.....................!
real 69.71
user 64.71
sys 4.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2357.8-5311 @ 359.463 -53.1919

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits scfile=/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits outfile=/lscratch/kocevski/15607974/cmap_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.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=359.463 yref=-53.1919 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.78
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits scfile=/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits outfile=/lscratch/kocevski/15607974/cmap_HighResolution_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.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=359.463 yref=-53.1919 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.68
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits evtable="EVENTS" scfile=/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/15607974/Model_4FGL_J2357.8-5311_daily_bin2104.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits.....................!
real 583.37
user 579.05
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits', '/lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits', expMap='/lscratch/kocevski/15607974/expmap_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.fits', expCube='/lscratch/kocevski/15607974/ltcube_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/15607974/Model_4FGL_J2357.8-5311_daily_bin2104.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2357.8-5311'

4FGL J2357.8-5311
   Spectrum: PowerLaw
605    Prefactor:  2.420e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
606        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
607        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/15607974/ft1_filtered_4FGL_J2357.8-5311_daily_bin2104.fits
Spacecraft file(s): /lscratch/kocevski/15607974/ft2_4FGL_J2357.8-5311_daily_bin2104.fits
Exposure map: /lscratch/kocevski/15607974/expmap_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.fits
Exposure cube: /lscratch/kocevski/15607974/ltcube_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/15607974/Model_4FGL_J2357.8-5311_daily_bin2104.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) = 6713.74507682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.571       1.0000          .0000       .10000E+07
     2 'Prefactor '    .61615E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3936       1.0000          .0000       .10000E+07
     4 'Prefactor '    .91062E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .35710E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .19867E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.6373       1.0000          .0000       .10000E+07
     8 'norm      '    9.8413       1.0000          .0000       .10000E+07
     9 'Prefactor '    99.127       1.0000          .0000       .10000E+07
    10 'norm      '    2.2589       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.801       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11323E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .74976E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .62901E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .69549E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .42141E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .26452       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14092E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.2260       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.2927       1.0000          .0000       .10000E+07
    21 'norm      '    28.729       1.0000          .0000       .10000E+07
    22 'Prefactor '    .43179E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.7200       1.0000          .0000       .10000E+07
    24 'Normalizat'    .42129       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6713.705     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     2138 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.648        1.2217        .20983E-07   -.16852E-01
   2  Prefactor     .21649E-08    20.966        .23579E-06** at limit **
   3  Prefactor     1.3343        5.1887        .35321E-06    .11355E-04
   4  Prefactor     .11102E-09    1.8708        .24639E-06** at limit **
   5  Prefactor     .36637E-08    26.500        .11520E-05** at limit **
   6  norm          .16653E-09    8.4509       -.37158E-06** at limit **
   7  Prefactor     5.6319        4.5274       -.66532E-07   -.13375E-03
   8  norm          9.8406        6.9305       -.15646E-06   -.54490E-02
   9  Prefactor     100.24        55.914       -.19569E-06   -.53427E-03
  10  norm          2.2582        5.0299       -.35561E-06   -.27487E-03
  11  Prefactor     15.787        1.2357        .27923E-07   -.27045E-01
  12  Prefactor     .16653E-09    9.1382        .35554E-06** at limit **
  13  norm          .55511E-10    4.7329        .10649E-06** at limit **
  14  norm          .11102E-09    1.8983       -.10635E-06** at limit **
  15  Prefactor      .0000        1.7412       -.14382E-06** at limit **
  16  Prefactor     .22204E-09    13.862        .28743E-07** at limit **
  17  norm          .26479        .58858        .67481E-07    .15326E-02
  18  Prefactor      .0000        3.6877       -.37141E-06** at limit **
  19  Prefactor     3.2254        2.7793       -.10239E-08    .11631E-02
  20  Prefactor     6.2721        1.9847        .22323E-07   -.31899E-01
  21  norm          28.783        1.8164        .23615E-07   -.43215E-01
  22  Prefactor      .0000        3.3119       -.26964E-06** at limit **
  23  Prefactor     5.7193        3.7865        .32080E-06    .14726E-02
  24  Normalizat    .42126        .17080       -.15552E-05   -.11718E-04
  25  Prefactor     1.3126        .19171        .34571E-05   -.14432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6479
  Prefactor  = 2.16493e-09
  Prefactor  = 1.33425
  Prefactor  = 1.11022e-10
  Prefactor  = 3.66374e-09
  norm       = 1.66533e-10
  Prefactor  = 5.63191
  norm       = 9.84061
  Prefactor  = 100.24
  norm       = 2.25824
  Prefactor  = 15.7867
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  norm       = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 0.264793
  Prefactor  = 0
  Prefactor  = 3.22542
  Prefactor  = 6.27214
  norm       = 28.7833
  Prefactor  = 0
  Prefactor  = 5.71931
  Normalizat = 0.421257
  Prefactor  = 1.31263
 **********
 **   18 **HESSE 
 **********

 FCN=   6713.705     FROM HESSE     STATUS=OK           487 CALLS     2625 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.648        18.832        .21054E-03   -1.5613    
   2  Prefactor     .21649E-08    21.047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3343        5.1962        .91974E-03   -1.5685    
   4  Prefactor     .11102E-09    1.8747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .36637E-08    2.9001        .86398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .16653E-09    8.4961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6319        4.6197        .42286E-03   -1.5660    
   8  norm          9.8406        6.9403        .31918E-03   -1.5645    
   9  Prefactor     100.24        55.940        .10045E-03   -1.5508    
  10  norm          2.2582        5.1415        .68324E-03   -1.5678    
  11  Prefactor     15.787        26.747        .25170E-03   -1.5628    
  12  Prefactor     .16653E-09    9.2127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    4.7364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11102E-09    1.9007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.7407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22204E-09    13.793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .26479        .59308        .21340E-02   -1.5718    
  18  Prefactor      .0000        3.6935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2254        2.8931        .56375E-03   -1.5672    
  20  Prefactor     6.2721        11.711        .39992E-03   -1.5658    
  21  norm          28.783        20.031        .18660E-03   -1.5601    
  22  Prefactor      .0000        3.2947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.7193        3.9946        .41974E-03   -1.5660    
  24  Normalizat    .42126        .15350        .66804E-01   -1.1622    
  25  Prefactor     1.3126        .17025        .32395E-01   -.82932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02291e-08
Minuit parameter uncertainties:
  1  18.8318
  2  0.000425898
  3  5.19626
  4  2.55379e-05
  5  0.000205658
  6  7.09336e-05
  7  4.6197
  8  6.94033
  9  55.9407
  10  5.1415
  11  26.7473
  12  7.94305e-05
  13  2.32178e-05
  14  2.76522e-05
  15  8.11148e-06
  16  0.00011469
  17  0.593079
  18  2.11828e-06
  19  2.89308
  20  11.711
  21  20.0309
  22  4.88312e-06
  23  3.99457
  24  0.153649
  25  0.170318
Done.

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

Extracting fit parameters...

4FGL J2357.8-5311
   Spectrum: PowerLaw
605    Prefactor:  0.000e+00  4.883e-06  0.000e+00  1.000e+06 ( 1.000e-12)
606        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
607        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.313e+00  1.703e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  4.213e-01  1.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 359.463 -53.192
Photon Flux Upper Limit: 5.52225504401e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00433143376812 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/15607974/likelihoodResults_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.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) = 6713.70829457
delta logL = -0.00309443376591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6713.70520324
delta logL = -3.09976621793e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6713.705     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      230 TOTAL
                     EDM=   .35E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9616        .19939E-06** at limit **
   2  Index         2.7348        1.8202       -.12495E-04     .0000    
   3  Normalizat    .42126        .16363       -.29584E-05    .18982E-04
   4  Prefactor     1.3126        .18993        .27638E-05    .19949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.73478
  Normalizat = 0.421258
  Prefactor  = 1.31263
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6713.705     FROM HESSE     STATUS=FAILED        11 CALLS      241 TOTAL
                     EDM=   .35E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .84702        1.9801       -.12495E-04   -.47018    
   3  Normalizat    .42126        .74429       -.29584E-05   -1.1622    
   4  Prefactor     1.3126        1.0751        .27638E-05   -.82932    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.53175e-13
Minuit parameter uncertainties:
  1  1.26805e-06
  2  1.27694
  3  0.762939
  4  1.09413
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) = 6713.70520014
delta logL = 0.0

Extracting fit parameters...

4FGL J2357.8-5311
   Spectrum: PowerLaw
605    Prefactor:  0.000e+00  1.268e-06  0.000e+00  1.000e+06 ( 1.000e-12)
606        Index:  2.735e+00  1.277e+00  0.000e+00  1.000e+01 (-1.000e+00)
607        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.313e+00  1.094e+00  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  4.213e-01  7.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 359.463 -53.192

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/15607974/cmap_HighResolution_784684801_784944001_4FGL_J2357.8-5311_daily_bin2104.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2025-11-16 01:28:51.824430', job_id='15607974', GAL2='1.31', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1763285331.82', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='2104' AND source_name='4FGL J2357.8-5311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 16 01:28:51 PST 2025

