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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1265
RA = 229.512, Dec = -27.5313
tmin = 567216001, tmax = 567475201
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='485853', job_status='RUN', time_executed='2021-09-12 01:01:23.513856', time_epoch_executed='1631433683.51' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485853/ft1_4FGL_J1518.0-2731_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485853/ft1_4FGL_J1518.0-2731_daily_bin1265.fits outfile=/scratch/kocevski/485853/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1265.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=567216001.0 tmax=567475201.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.86
user 2.66
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.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/485853/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/485853/ltcube_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.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/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits
.....................!
real 12.70
user 12.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/485853/ltcube_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.fits outfile=/scratch/kocevski/485853/expmap_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.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/485853/ltcube_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.fits
.....................!
real 189.92
user 184.86
sys 4.65

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/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.fits scfile=/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits outfile=/scratch/kocevski/485853/cmap_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.fits scfile=/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits outfile=/scratch/kocevski/485853/cmap_HighResolution_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/485853/ft2_4FGL_J1518.0-2731_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485853/Model_4FGL_J1518.0-2731_daily_bin1265.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/485853/ft1_filtered_4FGL_J1518.0-2731_daily_bin1265.fits.....................!
real 89.60
user 88.13
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1922       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5816       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.546       1.0000         .10000E-03   10000.    
    12 'norm      '    22.251       1.0000         .10000E-03   10000.    
    13 'norm      '    .74425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11705E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.579       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.2500       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71328       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=   8661.541     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2228 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.175       -.24517E-07** at limit **
   2  Prefactor     7.1905        16.934       -.91626E-06   -.60985E-05
   3  Prefactor     .10000E-03    6.7964       -.37489E-07** at limit **
   4  Prefactor     .10000E-03    23.642       -.30857E-06** at limit **
   5  Prefactor     .10000E-03    46.551       -.20368E-06** at limit **
   6  Prefactor     3.5811        7.0584       -.74409E-05    .20952E-03
   7  Prefactor     .10000E-03    32.876        .30903E-06** at limit **
   8  norm          .10000E-03    .26381       -.21811E-07** at limit **
   9  Prefactor     .10000E-03    5.3853       -.52690E-07** at limit **
  10  Prefactor     .10000E-03    11.791        .50473E-07** at limit **
  11  norm          14.545        8.7281        .47594E-06   -.13741E-03
  12  norm          22.199        34.696        .49309E-06   -.14099E-04
  13  norm          .74461        .82715       -.14724E-06   -.14883E-02
  14  Prefactor     .10000E-03    4.6060        .54300E-08** at limit **
  15  norm          .10000E-03    2.5734       -.44690E-07** at limit **
  16  Prefactor     53.962        100.96       -.14991E-05    .48018E-05
  17  Prefactor     .10000E-03    20.670        .28176E-06** at limit **
  18  norm          .10000E-03    9.9378       -.35141E-07** at limit **
  19  Prefactor     .10000E-03    1.4371        .48512E-08** at limit **
  20  Normalizat    2.2497        .29955        .10891E-05    .17588E-04
  21  Prefactor     .71343        .77598E-01   -.63533E-08    .12622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.19049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5453
  norm       = 22.1989
  norm       = 0.744609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.9623
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.24969
  Prefactor  = 0.713427
 **********
 **   18 **HESSE 
 **********

 FCN=   8661.541     FROM HESSE     STATUS=OK           313 CALLS     2541 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1905        16.933        .14957E-03   -1.5172    
   3  Prefactor     .10000E-03    6.8041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5811        7.1557        .21353E-03   -1.5329    
   7  Prefactor     .10000E-03    33.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .27141        .93302E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.545        8.7196        .10502E-03   -1.4945    
  12  norm          22.199        34.712        .84914E-04   -1.4765    
  13  norm          .74461        .76141        .84782E-03   -1.5535    
  14  Prefactor     .10000E-03    4.6341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.8334        .28809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.962        101.16        .54294E-04   -1.4237    
  17  Prefactor     .10000E-03    20.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.9814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4504        .10893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    2.2497        .35400        .39424E-03   -.58430    
  21  Prefactor     .71343        .92316E-01    .16448E-03   -1.0300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20388e-10
Minuit parameter uncertainties:
  1  2.59094e-07
  2  16.9441
  3  9.98878e-07
  4  3.35691e-05
  5  3.42631e-06
  6  7.15739
  7  4.78546e-05
  8  5.71172e-07
  9  7.43875e-06
  10  2.1302e-05
  11  8.72032
  12  34.7436
  13  0.761422
  14  1.12151e-06
  15  2.97806e-06
  16  101.483
  17  1.52366e-05
  18  9.45103e-07
  19  1.4064e-06
  20  0.354428
  21  0.0923355
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.122e-06  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.134e-01  9.234e-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:  2.250e+00  3.544e-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: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485853/likelihoodResults_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.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) = 8661.54231247
delta logL = -0.00102831467848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8661.54128387
delta logL = 2.92246113531e-07

Fit tolerance = 1e-08

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

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

 FCN=   8661.541     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.100        .90712E-02** at limit **
   2  Index         2.1052        7.3011        .50000       -.52608E-04
   3  Normalizat    2.2497        .23373E-01    .89077E-01   -.26389E-03
   4  Prefactor     .71343        .60291E-02    .42580E-01   -.81030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.10518
  Normalizat = 2.2497
  Prefactor  = 0.713426
 **********
 **   18 **HESSE 
 **********

 FCN=   8661.541     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      237 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    216.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1052        5.6588        .50000       -.61746    
   3  Normalizat    2.2497        .56467E-01    .39424E-03   -.58430    
   4  Prefactor     .71343        .14578E-01    .16448E-03   -1.0300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89917e-07
Minuit parameter uncertainties:
  1  0.000839158
  2  27.1823
  3  0.0564687
  4  0.0145778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485853': 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): 102
logL (Free Index) = 8661.54128352
delta logL = 6.37051925878e-07

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  8.392e-04  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  2.105e+00  2.718e+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.134e-01  1.458e-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:  2.250e+00  5.647e-02  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 /scratch/kocevski/485853/cmap_HighResolution_567216001_567475201_4FGL_J1518.0-2731_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-12 01:16:07.957707', job_id='485853', GAL2='0.71', fit_tolerance='1e-08', EG2='2.25', EG='2.25', time_epoch_completed='1631434567.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='6.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1265' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 485853: <4FGL_J1518.0-2731_daily_bin1265> in cluster <slac> Done

Job <4FGL_J1518.0-2731_daily_bin1265> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 01:00:50 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:00:51 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:51 2021
Terminated at Sun Sep 12 01:16:08 2021
Results reported at Sun Sep 12 01:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin1265 229.512 -27.5313 567216001 567475201 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 :                                   879.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             319.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

