/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 237 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7428
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1518.0-2731_daily_bin559
RA = 229.512, Dec = -27.5313
tmin = 384220801, tmax = 384480001
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='479673', job_status='RUN', time_executed='2021-09-12 00:50:08.642143', time_epoch_executed='1631433008.64' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479673

Creating custom pfile directory:
/scratch/kocevski/479673/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=384220801.0 && nMetStart<384480001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=384220801.0 && nMetStart<384480001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479673/ft1_4FGL_J1518.0-2731_daily_bin559.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=384220801.0 && nMetStart<384480001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479673/ft1_4FGL_J1518.0-2731_daily_bin559.fits outfile=/scratch/kocevski/479673/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin559.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.85
user 13.38
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/479673/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/479673/ltcube_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.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 /scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits
.....................!
real 11.58
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/479673/ltcube_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.fits outfile=/scratch/kocevski/479673/expmap_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.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 /scratch/kocevski/479673/ltcube_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.fits
.....................!
real 191.37
user 185.55
sys 5.37

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=/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits scfile=/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits outfile=/scratch/kocevski/479673/cmap_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits scfile=/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits outfile=/scratch/kocevski/479673/cmap_HighResolution_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479673/Model_4FGL_J1518.0-2731_daily_bin559.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...
/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits......................!
real 25.11
user 23.86
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits', '/scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits', expMap='/scratch/kocevski/479673/expmap_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.fits', expCube='/scratch/kocevski/479673/ltcube_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479673/Model_4FGL_J1518.0-2731_daily_bin559.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/479673/ft1_filtered_4FGL_J1518.0-2731_daily_bin559.fits
Spacecraft file(s): /scratch/kocevski/479673/ft2_4FGL_J1518.0-2731_daily_bin559.fits
Exposure map: /scratch/kocevski/479673/expmap_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.fits
Exposure cube: /scratch/kocevski/479673/ltcube_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479673/Model_4FGL_J1518.0-2731_daily_bin559.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) = 1326.49351047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    139.29       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11176E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.145       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3338       1.0000         .10000E-03   10000.    
    12 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.771       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    179.51       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78169       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80942       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1326.403     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2204 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    99.494        .17827E-05** at limit **
   2  Prefactor     .10000E-03    60.204       -.41946E-06** at limit **
   3  Prefactor     .10000E-03    38.501        .59519E-06** at limit **
   4  Prefactor     139.45        178.35        .39446E-05    .12582E-03
   5  Prefactor     .10001E-03    170.29       -.19166E-05** at limit **
   6  Prefactor     .10000E-03    65.264        .17272E-05** at limit **
   7  Prefactor     26.151        95.785        .14777E-05    .26866E-05
   8  norm          .10000E-03    1.4375        .45051E-07** at limit **
   9  Prefactor     71.574        49.226       -.25143E-05   -.26965E-04
  10  Prefactor     .10000E-03    17.568       -.21846E-06** at limit **
  11  norm          3.3338        17.455        .12934E-04   -.11777E-03
  12  norm          .10000E-03    49.398       -.51995E-06** at limit **
  13  norm          4.3783        2.9401        .77450E-07    .47150E-05
  14  Prefactor     23.768        22.887       -.16841E-06    .19111E-05
  15  norm          .10000E-03    7.3473       -.74769E-08** at limit **
  16  Prefactor     179.52        177.78       -.24152E-06    .11810E-04
  17  Prefactor     .10000E-03    31.166       -.20988E-06** at limit **
  18  norm          .10000E-03    44.901       -.21449E-06** at limit **
  19  Prefactor     11.197        7.4032        .44670E-08   -.31843E-05
  20  Normalizat    .78108        .73526       -.78371E-05   -.78609E-05
  21  Prefactor     .80954        .18838        .10642E-05   -.54566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 139.451
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 26.1506
  norm       = 0.0001
  Prefactor  = 71.5736
  Prefactor  = 0.0001
  norm       = 3.33383
  norm       = 0.000100001
  norm       = 4.37834
  Prefactor  = 23.7677
  norm       = 0.0001
  Prefactor  = 179.523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1972
  Normalizat = 0.781076
  Prefactor  = 0.809544
 **********
 **   18 **HESSE 
 **********

 FCN=   1326.403     FROM HESSE     STATUS=OK           307 CALLS     2511 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    99.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     139.45        178.87        .17065E-03   -1.3341    
   5  Prefactor     .10001E-03    170.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.151        95.633        .78346E-04   -1.4685    
   8  norm          .10000E-03    1.4421        .42570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.574        49.145        .47452E-04   -1.4014    
  10  Prefactor     .10000E-03    17.596        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3338        17.518        .11084E-02   -1.5343    
  12  norm          .10000E-03    49.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3783        2.9350        .47876E-04   -1.5289    
  14  Prefactor     23.768        22.866        .82159E-04   -1.4733    
  15  norm          .10000E-03    7.3885        .96309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     179.52        177.97        .15063E-03   -1.3020    
  17  Prefactor     .10000E-03    31.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    44.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.197        7.4051        .77814E-04   -1.5039    
  20  Normalizat    .78108        .77644        .54141E-03   -1.0077    
  21  Prefactor     .80954        .20203        .13993E-03   -.99377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51582e-10
Minuit parameter uncertainties:
  1  0.00184897
  2  0.00030546
  3  0.000422981
  4  179.569
  5  0.0024864
  6  2.53676e-05
  7  96.201
  8  3.28142e-06
  9  49.1727
  10  2.28891e-05
  11  15.2909
  12  0.000348407
  13  2.93508
  14  22.8742
  15  7.22498e-07
  16  178.505
  17  9.47704e-05
  18  7.20254e-05
  19  7.40567
  20  0.787852
  21  0.202215
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  2.377e+01  2.287e+01  1.000e-04  1.000e+04 ( 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:  8.095e-01  2.022e-01  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:  7.811e-01  7.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 229.512 -27.531
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 1.33e-07
Energy Flux (Fixed Index): 8.47e-05 +/- 8.15e-05

TS (Fixed Index): 2.71
Ra Dec: 229.512 -27.531
Photon Flux Upper Limit: 5.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479673/likelihoodResults_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.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) = 1326.16559253
delta logL = 0.237168745005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1326.16550368
delta logL = 0.237257593376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.673       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6503       1.0000          .0000       10.000    
     3 'Normalizat'    .81039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80572       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1326.165     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      301 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.616        39.115        .32226E-03    .52300E-05
   2  Index         1.6493        .55282        .45643E-02    .67594E-05
   3  Normalizat    .81054        .74023        .53267E-03    .16188E-04
   4  Prefactor     .80575        .19881        .14021E-03   -.23356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.6165
  Index      = 1.64929
  Normalizat = 0.810543
  Prefactor  = 0.805745
 **********
 **   18 **HESSE 
 **********

 FCN=   1326.165     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.616        38.792        .12890E-04   -1.4464    
   2  Index         1.6493        .54826        .18257E-03   -.73440    
   3  Normalizat    .81054        .74037        .21307E-04   -.99679    
   4  Prefactor     .80575        .19886        .28042E-04   -.99517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59551e-11
Minuit parameter uncertainties:
  1  38.8172
  2  0.55027
  3  0.749882
  4  0.199039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479673': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1326.16549967
delta logL = 0.237261611415

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  3.862e+01  3.882e+01  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  1.649e+00  5.503e-01  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:  8.057e-01  1.990e-01  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:  8.105e-01  7.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 229.512 -27.531
Photon Index (Free Index): 1.65 +/- 0.55
Photon Flux (Free Index): 1.02e-07 +/- 1.12e-07
Energy Flux (Free Index): 1.97e-04 +/- 3.06e-04

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 /scratch/kocevski/479673/cmap_HighResolution_384220801_384480001_4FGL_J1518.0-2731_daily_bin559.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/479673

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-02', comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='1.97e-04', photon_flux_error='1.33e-07', dlogl='2.37e-01', energy_flux='8.47e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-12 00:57:58.275988', photon_index_error2='0.55', photon_index2='1.65', ts='2.71', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='5.05e-07', energy_flux_error2='3.06e-04', EG='0.78', time_epoch_completed='1631433478.28', return_code='0', job_id='479673', GAL2='0.81', EG2='0.81', return_code2='0', energy_flux_error='8.15e-05', photon_flux_error2='1.12e-07', ts2='3.19', photon_index='2.05' WHERE bin_id='559' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:57:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 479673: <4FGL_J1518.0-2731_daily_bin559> in cluster <slac> Done

Job <4FGL_J1518.0-2731_daily_bin559> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 00:46:01 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:46:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 00:46:03 2021
Terminated at Sun Sep 12 00:57:59 2021
Results reported at Sun Sep 12 00:57:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin559 229.512 -27.5313 384220801 384480001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1518.0-2731 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   464.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             215.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

The output (if any) is above this job summary.

