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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1303
RA = 229.512, Dec = -27.5313
tmin = 577065601, tmax = 577324801
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='485917', job_status='RUN', time_executed='2021-09-12 01:04:49.934656', time_epoch_executed='1631433889.93' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485917/ft1_4FGL_J1518.0-2731_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485917/ft1_4FGL_J1518.0-2731_daily_bin1303.fits outfile=/scratch/kocevski/485917/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1303.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=577065601.0 tmax=577324801.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.09
user 2.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.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/485917/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/485917/ltcube_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.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/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits
.....................!
real 12.59
user 12.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/485917/ltcube_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.fits outfile=/scratch/kocevski/485917/expmap_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.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/485917/ltcube_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.fits
.....................!
real 189.77
user 185.38
sys 4.03

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/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits scfile=/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits outfile=/scratch/kocevski/485917/cmap_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits scfile=/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits outfile=/scratch/kocevski/485917/cmap_HighResolution_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485917/Model_4FGL_J1518.0-2731_daily_bin1303.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/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits......................!
real 40.28
user 39.03
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits', '/scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits', expMap='/scratch/kocevski/485917/expmap_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.fits', expCube='/scratch/kocevski/485917/ltcube_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485917/Model_4FGL_J1518.0-2731_daily_bin1303.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/485917/ft1_filtered_4FGL_J1518.0-2731_daily_bin1303.fits
Spacecraft file(s): /scratch/kocevski/485917/ft2_4FGL_J1518.0-2731_daily_bin1303.fits
Exposure map: /scratch/kocevski/485917/expmap_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.fits
Exposure cube: /scratch/kocevski/485917/ltcube_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485917/Model_4FGL_J1518.0-2731_daily_bin1303.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) = 2412.64232002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    192.37       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.314       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.168       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.044       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.760       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79615       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=   2412.641     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2559 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6204.2        .79642E-04** at limit **
   2  Prefactor     .10000E-03    1017.1        .35704E-04** at limit **
   3  Prefactor     .10000E-03    151.48        .44266E-05** at limit **
   4  Prefactor     .10000E-03    367.82       -.16836E-04** at limit **
   5  Prefactor     .10000E-03    521.89       -.41548E-05** at limit **
   6  Prefactor     .10000E-03    647.48        .72242E-05** at limit **
   7  Prefactor     192.57        327.81       -.12978E-04   -.59391E-06
   8  norm          1.2139        7.7899        .55468E-05   -.16069E-06
   9  Prefactor     47.341        67.796       -.23572E-05   -.97627E-06
  10  Prefactor     .10000E-03    19.096       -.64572E-08** at limit **
  11  norm          18.164        27.894        .76338E-06   -.19262E-05
  12  norm          .10000E-03    44.558        .86648E-07** at limit **
  13  norm          1.1472        2.2657       -.68580E-08   -.20390E-04
  14  Prefactor     11.044        12.931       -.33702E-06   -.73855E-06
  15  norm          .10000E-03    3.4833       -.13439E-08** at limit **
  16  Prefactor     .10000E-03    50.721        .78463E-07** at limit **
  17  Prefactor     .10000E-03    109.73       -.15830E-05** at limit **
  18  norm          27.762        26.372       -.19160E-07   -.56573E-06
  19  Prefactor     .10000E-03    3.2899       -.62214E-07** at limit **
  20  Normalizat    1.2341        .73992        .86564E-06   -.22942E-05
  21  Prefactor     .79612        .14609       -.91203E-07    .20091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 192.566
  norm       = 1.21387
  Prefactor  = 47.341
  Prefactor  = 0.0001
  norm       = 18.164
  norm       = 0.0001
  norm       = 1.14718
  Prefactor  = 11.0439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.7623
  Prefactor  = 0.0001
  Normalizat = 1.23413
  Prefactor  = 0.79612
 **********
 **   18 **HESSE 
 **********

 FCN=   2412.641     FROM HESSE     STATUS=OK           313 CALLS     2872 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6204.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1017.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    151.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    367.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    521.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    654.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     192.57        329.54        .14561E-03   -1.2924    
   8  norm          1.2139        7.9010        .11039E-02   -1.5488    
   9  Prefactor     47.341        67.967        .58294E-04   -1.4331    
  10  Prefactor     .10000E-03    19.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.164        27.883        .46982E-03   -1.4855    
  12  norm          .10000E-03    44.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1472        2.2101        .98411E-04   -1.5494    
  14  Prefactor     11.044        12.926        .12055E-03   -1.5043    
  15  norm          .10000E-03    3.4857        .89522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    111.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.762        26.484        .76037E-04   -1.4654    
  19  Prefactor     .10000E-03    3.3714        .17372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2341        .85624        .57314E-03   -.85554    
  21  Prefactor     .79612        .17200        .13647E-03   -.99872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91788e-10
Minuit parameter uncertainties:
  1  0.000150314
  2  3.62507e-05
  3  9.62435e-07
  4  2.01546e-05
  5  1.45475e-05
  6  0.000716089
  7  332.787
  8  6.19475
  9  68.0785
  10  4.67699e-06
  11  27.9034
  12  7.81784e-06
  13  2.21024
  14  12.9295
  15  7.11096e-07
  16  5.55476e-06
  17  1.79325e-05
  18  26.4951
  19  2.88249e-06
  20  0.866306
  21  0.172118
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.104e+01  1.293e+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:  7.961e-01  1.721e-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:  1.234e+00  8.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 229.512 -27.531
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 7.53e-08
Energy Flux (Fixed Index): 3.93e-05 +/- 4.61e-05

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

Saving results to:
/scratch/kocevski/485917/likelihoodResults_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.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) = 2412.36878069
delta logL = 0.272523539651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2412.34633356
delta logL = 0.294970661248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.858       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4548       1.0000          .0000       10.000    
     3 'Normalizat'    1.2643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79252       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=   2412.346     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      274 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.866        18.959        .97548E-04   -.54310E-04
   2  Index         1.4547        .70565        .84367E-02   -.26499E-04
   3  Normalizat    1.2644        .84590        .56712E-03   -.24261E-03
   4  Prefactor     .79249        .16883        .13672E-03   -.94647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8659
  Index      = 1.45474
  Normalizat = 1.26436
  Prefactor  = 0.792492
 **********
 **   18 **HESSE 
 **********

 FCN=   2412.346     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.866        18.943        .39019E-05   -1.4886    
   2  Index         1.4547        .70515        .33747E-03   -.78815    
   3  Normalizat    1.2644        .84648        .11342E-03   -.84637    
   4  Prefactor     .79249        .16895        .27344E-04   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49642e-10
Minuit parameter uncertainties:
  1  18.9493
  2  0.709942
  3  0.855985
  4  0.169063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485917': 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) = 2412.34633345
delta logL = 0.294970772771

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.687e+01  1.895e+01  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  1.455e+00  7.099e-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:  7.925e-01  1.691e-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:  1.264e+00  8.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 229.512 -27.531
Photon Index (Free Index): 1.45 +/- 0.71
Photon Flux (Free Index): 3.36e-08 +/- 4.75e-08
Energy Flux (Free Index): 1.24e-04 +/- 2.34e-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/485917/cmap_HighResolution_577065601_577324801_4FGL_J1518.0-2731_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-02', comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='1.24e-04', photon_flux_error='7.53e-08', dlogl='2.95e-01', energy_flux='3.93e-05', photon_flux2='3.36e-08', job_status='DONE', time_completed='2021-09-12 01:13:05.664992', photon_index_error2='0.71', photon_index2='1.45', ts='2.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.24e-07', energy_flux_error2='2.34e-04', EG='1.23', time_epoch_completed='1631434385.67', return_code='0', job_id='485917', GAL2='0.79', EG2='1.26', return_code2='0', energy_flux_error='4.61e-05', photon_flux_error2='4.75e-08', ts2='2.59', photon_index='2.05' WHERE bin_id='1303' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:13:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 485917: <4FGL_J1518.0-2731_daily_bin1303> in cluster <slac> Done

Job <4FGL_J1518.0-2731_daily_bin1303> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 01:00:55 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:00:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:00:56 2021
Terminated at Sun Sep 12 01:13:06 2021
Results reported at Sun Sep 12 01:13:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin1303 229.512 -27.5313 577065601 577324801 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 :                                   490.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             221.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

