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


Performing analysis on: 4FGL_J1537.7-7957_daily_bin1876
RA = 234.439, Dec = -79.9575
tmin = 725587201, tmax = 725846401
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='37095679', job_status='RUN', time_executed='2024-01-02 00:40:41.273337', time_epoch_executed='1704184841.27' WHERE source_name='4FGL J1537.7-7957' and cadence='daily' and bin_id='1876'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37095679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37095679/ft1_4FGL_J1537.7-7957_daily_bin1876.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37095679/ft1_4FGL_J1537.7-7957_daily_bin1876.fits outfile=/lscratch/kocevski/37095679/ft1_filteredMKT_4FGL_J1537.7-7957_daily_bin1876.fits ra=234.439 dec=-79.9575 rad=12.0 tmin=725587201.0 tmax=725846401.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.13
user 2.84
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.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/37095679/ft1_filteredMKT_4FGL_J1537.7-7957_daily_bin1876.fits evtable="EVENTS" outfile="/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.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.37
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1292

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37095679/ltcube_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.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/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits
.....................!
real 9.19
user 8.83
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits evtable="EVENTS" scfile=/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37095679/ltcube_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.fits outfile=/lscratch/kocevski/37095679/expmap_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.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/37095679/ltcube_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.fits
.....................!
real 68.41
user 64.30
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
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Added 262 point sources and 8 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 J1537.7-7957 @ 234.439 -79.9575

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits scfile=/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits outfile=/lscratch/kocevski/37095679/cmap_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.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=234.439 yref=-79.9575 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.39
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits scfile=/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits outfile=/lscratch/kocevski/37095679/cmap_HighResolution_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.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=234.439 yref=-79.9575 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.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits evtable="EVENTS" scfile=/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37095679/Model_4FGL_J1537.7-7957_daily_bin1876.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 FGES J1409.1-6121
adding source FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source MSH 15-52
adding source RCW 86
Working on...
/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits.....................!
real 72.90
user 71.38
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits', '/lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits', expMap='/lscratch/kocevski/37095679/expmap_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.fits', expCube='/lscratch/kocevski/37095679/ltcube_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37095679/Model_4FGL_J1537.7-7957_daily_bin1876.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1537.7-7957'

4FGL J1537.7-7957
   Spectrum: PowerLaw
582    Prefactor:  3.145e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
583        Index:  2.248e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
584        Scale:  1.620e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37095679/ft1_filtered_4FGL_J1537.7-7957_daily_bin1876.fits
Spacecraft file(s): /lscratch/kocevski/37095679/ft2_4FGL_J1537.7-7957_daily_bin1876.fits
Exposure map: /lscratch/kocevski/37095679/expmap_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.fits
Exposure cube: /lscratch/kocevski/37095679/ltcube_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37095679/Model_4FGL_J1537.7-7957_daily_bin1876.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) = 13035.243382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.117       1.0000          .0000       .10000E+07
     2 'norm      '    .68401       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.5600       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.874       1.0000          .0000       .10000E+07
     5 'norm      '    .44736E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13549E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .14511E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .96183E-05   1.0000          .0000       .10000E+07
     9 'norm      '    1.4675       1.0000          .0000       .10000E+07
    10 'Prefactor '    .96465E-02   1.0000          .0000       .10000E+07
    11 'norm      '    19.011       1.0000          .0000       .10000E+07
    12 'norm      '    .71101E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .55890E-05   1.0000          .0000       .10000E+07
    14 'Normalizat'    .77617       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13035.19     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      853 TOTAL
                     EDM=   .91E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.932        7.5402       -.31563E-07   -.14758E-01
   2  norm          .68582        2.2061       -.49756E-07   -.86899E-04
   3  Prefactor     6.5456        5.9470       -.57044E-07    .17857E-03
   4  Prefactor     16.316        32.314        .14004E-06   -.27496E-02
   5  norm          .55511E-10    20.906       -.51965E-06** at limit **
   6  Prefactor      .0000        5.7031       -.39163E-06** at limit **
   7  norm           .0000        5.3757        .56066E-07** at limit **
   8  Prefactor      .0000        7.3514        .13917E-06** at limit **
   9  norm          1.4643        1.0119       -.53956E-07    .94370E-03
  10  Prefactor     .66613E-09    23.665       -.53219E-06** at limit **
  11  norm          19.128        7.3186        .71842E-08   -.20851E-03
  12  norm           .0000        50.810       -.25542E-06** at limit **
  13  norm           .0000        2.2638       -.34393E-06** at limit **
  14  Normalizat    .77495        .28032        .49322E-05   -.15450E-04
  15  Prefactor     1.0112        .73353E-01   -.62003E-06   -.40436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9323
  norm       = 0.685823
  Prefactor  = 6.54555
  Prefactor  = 16.316
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 1.46429
  Prefactor  = 6.66134e-10
  norm       = 19.1281
  norm       = 0
  norm       = 0
  Normalizat = 0.774951
  Prefactor  = 1.01124
 **********
 **   18 **HESSE 
 **********

 FCN=   13035.19     FROM HESSE     STATUS=OK           212 CALLS     1065 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.932        25.561        .19957E-03   -1.5608    
   2  norm          .68582        2.2314        .62016E-03   -1.5691    
   3  Prefactor     6.5456        5.9830        .39158E-03   -1.5657    
   4  Prefactor     16.316        32.984        .25111E-03   -1.5627    
   5  norm          .55511E-10    20.913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.5875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        5.3742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        7.3288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4643        1.0324        .88710E-03   -1.5684    
  10  Prefactor     .66613E-09    23.707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.128        7.3439        .22943E-03   -1.5620    
  12  norm           .0000        50.319        .14782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.2586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .77495        .27105        .12579       -1.0100    
  15  Prefactor     1.0112        .68760E-01    .30248E-01   -.92356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19915e-06
Minuit parameter uncertainties:
  1  25.5607
  2  2.23139
  3  5.98301
  4  32.9843
  5  7.11664e-05
  6  1.01523e-05
  7  1.60936e-06
  8  4.71596e-06
  9  1.03237
  10  0.000254188
  11  7.34386
  12  1.43964e-05
  13  8.19111e-06
  14  0.271527
  15  0.0687664
Done.

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

Extracting fit parameters...

4FGL J1537.7-7957
   Spectrum: PowerLaw
582    Prefactor:  0.000e+00  4.716e-06  0.000e+00  1.000e+06 ( 1.000e-13)
583        Index:  2.248e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
584        Scale:  1.620e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
912    Prefactor:  1.011e+00  6.877e-02  0.000e+00  1.000e+01 ( 1.000e+00)
913        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
914        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
903   Normalization:  7.750e-01  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 234.439 -79.957
Photon Flux Upper Limit: 7.56759750786e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00578607670702 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37095679/likelihoodResults_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13035.2621521
delta logL = -0.0689324867799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13034.792076
delta logL = 0.40114354159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31707E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.5370       1.0000          .0000       10.000    
     3 'Normalizat'    .70644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0227       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13035.19     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      326 TOTAL
                     EDM=   .51E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .33284        .42118E-03** at limit **
   2  Index         .27120        .34223        .21083E-06     .0000    
   3  Normalizat    .77495        1.0923        .11781E-05   -.15743E-04
   4  Prefactor     1.0112        1.2261       -.11103E-05   -.71178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.2712
  Normalizat = 0.774951
  Prefactor  = 1.01124
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13035.19     FROM HESSE     STATUS=FAILED         9 CALLS      335 TOTAL
                     EDM=   .51E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .33284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .80004E-01    .34223        .21083E-06   -114.34    
   3  Normalizat    .77495        1.0923        .11781E-05   -2.1315    
   4  Prefactor     1.0112        1.2261       -.11103E-05   -2.2180    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.14686e-13
Minuit parameter uncertainties:
  1  1.23763e-07
  2  0.344811
  3  1.12571
  4  1.26268
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) = 13035.1932196
delta logL = 0.0

Extracting fit parameters...

4FGL J1537.7-7957
   Spectrum: PowerLaw
582    Prefactor:  0.000e+00  1.238e-07  0.000e+00  1.000e+06 ( 1.000e-13)
583        Index:  2.712e-01  3.448e-01  0.000e+00  1.000e+01 (-1.000e+00)
584        Scale:  1.620e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
912    Prefactor:  1.011e+00  1.263e+00  0.000e+00  1.000e+01 ( 1.000e+00)
913        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
914        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
903   Normalization:  7.750e-01  1.126e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 234.439 -79.957

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/37095679/cmap_HighResolution_725587201_725846401_4FGL_J1537.7-7957_daily_bin1876.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2024-01-02 00:48:06.361664', job_id='37095679', GAL2='1.01', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1704185286.36', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1876' AND source_name='4FGL J1537.7-7957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan  2 00:48:06 PST 2024

