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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1909
RA = 229.512, Dec = -27.5313
tmin = 734140801, tmax = 734400001
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='44472755', job_status='RUN', time_executed='2024-04-20 09:10:37.110186', time_epoch_executed='1713629437.11' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1909'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44472755

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44472755/ft1_4FGL_J1518.0-2731_daily_bin1909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44472755/ft1_4FGL_J1518.0-2731_daily_bin1909.fits outfile=/lscratch/kocevski/44472755/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1909.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=734140801.0 tmax=734400001.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.00
user 1.79
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.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/44472755/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1909.fits evtable="EVENTS" outfile="/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.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.38
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 868

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44472755/ltcube_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.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/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits
.....................!
real 8.97
user 8.68
sys 0.18

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits evtable="EVENTS" scfile=/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44472755/ltcube_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.fits outfile=/lscratch/kocevski/44472755/expmap_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.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/44472755/ltcube_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.fits
.....................!
real 58.81
user 55.38
sys 3.09

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 FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 222 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 J1518.0-2731 @ 229.512 -27.5313

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits scfile=/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits outfile=/lscratch/kocevski/44472755/cmap_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.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=229.512 yref=-27.5313 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.43
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits scfile=/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits outfile=/lscratch/kocevski/44472755/cmap_HighResolution_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.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=229.512 yref=-27.5313 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.37
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits evtable="EVENTS" scfile=/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44472755/Model_4FGL_J1518.0-2731_daily_bin1909.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits.....................!
real 36.36
user 35.18
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits', '/lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits', expMap='/lscratch/kocevski/44472755/expmap_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.fits', expCube='/lscratch/kocevski/44472755/ltcube_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44472755/Model_4FGL_J1518.0-2731_daily_bin1909.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1518.0-2731'

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  2.846e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
352        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44472755/ft1_filtered_4FGL_J1518.0-2731_daily_bin1909.fits
Spacecraft file(s): /lscratch/kocevski/44472755/ft2_4FGL_J1518.0-2731_daily_bin1909.fits
Exposure map: /lscratch/kocevski/44472755/expmap_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.fits
Exposure cube: /lscratch/kocevski/44472755/ltcube_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44472755/Model_4FGL_J1518.0-2731_daily_bin1909.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) = 9421.88695564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12597       1.0000          .0000       .10000E+07
     2 'Prefactor '    .28715E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20100E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    92.803       1.0000          .0000       .10000E+07
     5 'Prefactor '    .61626E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .73615E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .22038E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.172       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12341E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .59752E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .33747E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .54834       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13388E-05   1.0000          .0000       .10000E+07
    14 'norm      '    2.9400       1.0000          .0000       .10000E+07
    15 'Prefactor '    .83009E-01   1.0000          .0000       .10000E+07
    16 'norm      '    1.7873       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29570       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1891       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9421.882     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     2055 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21316E-05    .99531       -.38335E-07** at limit **
   2  Prefactor     .30531E-08    19.816       -.10405E-06** at limit **
   3  Prefactor     .16159E-06    13.659       -.12914E-06** at limit **
   4  Prefactor     92.815        1.1384       -.18680E-10   -.51821E-01
   5  Prefactor     .26645E-08    3.5059       -.72469E-08** at limit **
   6  Prefactor     .41739E-06    5.7090        .11459E-06** at limit **
   7  norm           .0000        .54892        .71697E-08** at limit **
   8  Prefactor     12.155        10.729       -.14144E-06   -.14893E-02
   9  Prefactor     .11957E-06    11.984        .29670E-06** at limit **
  10  norm           .0000        4.0765       -.23694E-07** at limit **
  11  norm          .33307E-09    124.23        .62017E-06** at limit **
  12  norm          .54799        .74502        .31330E-07    .88582E-03
  13  Prefactor      .0000        1.7893        .42357E-07** at limit **
  14  norm          2.9399        2.2262        .51580E-07   -.32077E-03
  15  Prefactor     .55511E-10    31.485       -.34723E-07** at limit **
  16  norm          1.8262        7.1986        .18324E-06   -.54440E-04
  17  Prefactor     .28806        3.7412        .50456E-06   -.88614E-03
  18  Normalizat    1.1893        .34699       -.36909E-05   -.11394E-04
  19  Prefactor     .93447        .86067E-01   -.18254E-05   -.39388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13163e-06
  Prefactor  = 3.05311e-09
  Prefactor  = 1.61593e-07
  Prefactor  = 92.815
  Prefactor  = 2.66454e-09
  Prefactor  = 4.17388e-07
  norm       = 0
  Prefactor  = 12.1545
  Prefactor  = 1.19571e-07
  norm       = 0
  norm       = 3.33067e-10
  norm       = 0.547991
  Prefactor  = 0
  norm       = 2.93987
  Prefactor  = 5.55112e-11
  norm       = 1.82617
  Prefactor  = 0.288057
  Normalizat = 1.18935
  Prefactor  = 0.934471
 **********
 **   18 **HESSE 
 **********

 FCN=   9421.882     FROM HESSE     STATUS=OK           306 CALLS     2361 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21316E-05    35.539        .13278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30531E-08    19.915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16159E-06    16.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     92.815        146.13        .10381E-03   -1.5515    
   5  Prefactor     .26645E-08    3.5446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .41739E-06    15.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .52965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.155        10.743        .28687E-03   -1.5638    
   9  Prefactor     .11957E-06    14.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        4.0761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .33307E-09    123.83        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54799        .75970        .73989E-03   -1.5693    
  13  Prefactor      .0000        1.7880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9399        2.2238        .59210E-03   -1.5674    
  15  Prefactor     .55511E-10    31.136        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8262        7.2507        .78223E-03   -1.5681    
  17  Prefactor     .28806        1.6080        .38186E-02   -1.5719    
  18  Normalizat    1.1893        .30861        .11531       -.86933    
  19  Prefactor     .93447        .75201E-01    .31721E-01   -.94947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05632e-06
Minuit parameter uncertainties:
  1  0.0174076
  2  0.000495075
  3  0.00327188
  4  146.131
  5  0.000194597
  6  0.00502218
  7  8.47605e-07
  8  10.7428
  9  0.00267272
  10  2.41157e-06
  11  0.00039597
  12  0.759702
  13  1.41095e-06
  14  2.22379
  15  8.74327e-05
  16  7.25072
  17  1.36117
  18  0.309084
  19  0.0752096
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  0.000e+00  1.411e-06  0.000e+00  1.000e+06 ( 1.000e-13)
352        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.345e-01  7.521e-02  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.189e+00  3.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 229.512 -27.531
Photon Flux Upper Limit: 5.88601065045e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00443325579242 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44472755/likelihoodResults_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.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) = 9421.88193059
delta logL = -0.000358437784598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9421.88157396
delta logL = -1.80141068995e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26856E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .60421       1.0000          .0000       10.000    
     3 'Normalizat'    1.1894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9421.882     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      248 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .67883        .42118E-03** at limit **
   2  Index         2.8448        1.8030       -.74369E-05     .0000    
   3  Normalizat    1.1893        1.1101       -.92307E-06   -.12022E-04
   4  Prefactor     .93447        1.2776        .12003E-05   -.51017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.84484
  Normalizat = 1.18935
  Prefactor  = 0.934471
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9421.882     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .67883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .91660        2.1078       -.74369E-05   -.44564    
   3  Normalizat    1.1893        1.1101       -.92307E-06   -.86933    
   4  Prefactor     .93447        1.2776        .12003E-05   -.94947    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.6693e-13
Minuit parameter uncertainties:
  1  2.44284e-07
  2  1.85482
  3  1.13326
  4  1.32267
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) = 9421.88157216
delta logL = 0.0

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  0.000e+00  2.443e-07  0.000e+00  1.000e+06 ( 1.000e-13)
352        Index:  2.845e+00  1.855e+00  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  9.345e-01  1.323e+00  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  1.189e+00  1.133e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 229.512 -27.531

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/44472755/cmap_HighResolution_734140801_734400001_4FGL_J1518.0-2731_daily_bin1909.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2024-04-20 09:16:02.249642', job_id='44472755', GAL2='0.93', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1713629762.25', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1909' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 20 09:16:02 PDT 2024

