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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1296
RA = 229.512, Dec = -27.5313
tmin = 575251201, tmax = 575510401
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='485907', job_status='RUN', time_executed='2021-09-12 01:01:08.558419', time_epoch_executed='1631433668.56' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485907/ft1_4FGL_J1518.0-2731_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485907/ft1_4FGL_J1518.0-2731_daily_bin1296.fits outfile=/scratch/kocevski/485907/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1296.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.31
user 5.03
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.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/485907/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1296.fits evtable="EVENTS" outfile="/scratch/kocevski/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/485907/ltcube_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.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/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits
.....................!
real 11.77
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/485907/ltcube_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.fits outfile=/scratch/kocevski/485907/expmap_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.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/485907/ltcube_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.fits
.....................!
real 191.20
user 186.35
sys 4.28

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/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.fits scfile=/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits outfile=/scratch/kocevski/485907/cmap_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.fits scfile=/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits outfile=/scratch/kocevski/485907/cmap_HighResolution_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/485907/ft2_4FGL_J1518.0-2731_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485907/Model_4FGL_J1518.0-2731_daily_bin1296.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/485907/ft1_filtered_4FGL_J1518.0-2731_daily_bin1296.fits.....................!
real 99.92
user 98.51
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1163       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.530       1.0000         .10000E-03   10000.    
     8 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6795       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2220       1.0000         .10000E-03   10000.    
    12 'norm      '    18.744       1.0000         .10000E-03   10000.    
    13 'norm      '    .65853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0436       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.617       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85809       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=   9296.976     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2236 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.743        .21768E-06** at limit **
   2  Prefactor     .10000E-03    20.319        .53700E-06** at limit **
   3  Prefactor     55.208        47.542       -.28231E-05   -.20604E-04
   4  Prefactor     3.2328        340.36       -.17145E-04   -.81107E-05
   5  Prefactor     31.283        297.61        .23276E-04   -.83216E-05
   6  Prefactor     22.277        18.595        .49352E-06    .19742E-04
   7  Prefactor     40.547        33.791       -.42377E-06   -.59915E-05
   8  norm          .10000E-03    .33779        .29578E-07** at limit **
   9  Prefactor     .10000E-03    4.7378       -.47509E-07** at limit **
  10  Prefactor     1.6604        16.525        .46200E-06   -.79446E-05
  11  norm          6.2244        7.9238       -.12428E-06   -.16122E-04
  12  norm          18.724        30.550        .69358E-06   -.12745E-05
  13  norm          .65870        .57175        .64503E-08   -.11374E-03
  14  Prefactor     2.0424        8.1077        .23968E-05   -.60569E-05
  15  norm          5.2052        4.7656       -.16050E-07    .25032E-04
  16  Prefactor     .10000E-03    24.026       -.37073E-06** at limit **
  17  Prefactor     .10000E-03    10.501       -.24357E-07** at limit **
  18  norm          18.622        12.691       -.17072E-07    .37106E-06
  19  Prefactor     .10000E-03    1.0923       -.28582E-07** at limit **
  20  Normalizat    1.2366        .33275       -.80579E-07   -.89153E-06
  21  Prefactor     .85792        .74986E-01    .73039E-07    .10450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.2084
  Prefactor  = 3.23284
  Prefactor  = 31.2826
  Prefactor  = 22.2774
  Prefactor  = 40.5474
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.66039
  norm       = 6.22441
  norm       = 18.7239
  norm       = 0.658697
  Prefactor  = 2.04236
  norm       = 5.20515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.6217
  Prefactor  = 0.0001
  Normalizat = 1.2366
  Prefactor  = 0.857925
 **********
 **   18 **HESSE 
 **********

 FCN=   9296.976     FROM HESSE     STATUS=OK           327 CALLS     2563 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.208        47.625        .54034E-04   -1.4221    
   4  Prefactor     3.2328        333.08        .22968E-03   -1.5348    
   5  Prefactor     31.283        296.46        .35442E-03   -1.4589    
   6  Prefactor     22.277        18.694        .84854E-04   -1.4764    
   7  Prefactor     40.547        33.479        .62964E-04   -1.4434    
   8  norm          .10000E-03    .58820        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6604        16.393        .32508E-03   -1.5450    
  11  norm          6.2244        7.9014        .16093E-03   -1.5209    
  12  norm          18.724        30.560        .92510E-04   -1.4842    
  13  norm          .65870        .58608        .65227E-03   -1.5546    
  14  Prefactor     2.0424        8.1460        .14462E-02   -1.5422    
  15  norm          5.2052        4.7730        .17541E-03   -1.5252    
  16  Prefactor     .10000E-03    24.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.622        12.698        .92825E-04   -1.4845    
  19  Prefactor     .10000E-03    1.1172        .98337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2366        .38004        .50507E-03   -.85479    
  21  Prefactor     .85792        .86574E-01    .14283E-03   -.97627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47647e-10
Minuit parameter uncertainties:
  1  2.07683e-05
  2  2.17979e-05
  3  47.658
  4  66.0094
  5  193.88
  6  18.6991
  7  33.4946
  8  1.39638e-06
  9  2.18937e-06
  10  10.4379
  11  7.9027
  12  30.5857
  13  0.586084
  14  8.15044
  15  4.77338
  16  2.92282e-06
  17  1.03452e-06
  18  12.7002
  19  6.00156e-07
  20  0.380896
  21  0.0865881
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  2.042e+00  8.150e+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

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  8.579e-01  8.659e-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.237e+00  3.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 229.512 -27.531
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485907/likelihoodResults_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.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) = 9296.9634547
delta logL = 0.0124977723608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9296.96309162
delta logL = 0.0128608496816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8813       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2506       1.0000          .0000       10.000    
     3 'Normalizat'    1.2328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85813       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9296.963     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      254 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8813        7.4555        .15175E-02   -.69061E-03
   2  Index         2.2503        1.3481        .11131E-01    .19970E-04
   3  Normalizat    1.2329        .34655        .50571E-03    .10381E-03
   4  Prefactor     .85811        .83957E-01    .14281E-03    .43031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88126
  Index      = 2.2503
  Normalizat = 1.23285
  Prefactor  = 0.858112
 **********
 **   18 **HESSE 
 **********

 FCN=   9296.963     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8813        6.5778        .60701E-04   -1.5434    
   2  Index         2.2503        1.1957        .44524E-03   -.58229    
   3  Normalizat    1.2329        .34668        .20229E-04   -.85594    
   4  Prefactor     .85811        .83956E-01    .28561E-04   -.97621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40022e-09
Minuit parameter uncertainties:
  1  6.5803
  2  1.21268
  3  0.347327
  4  0.0839687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485907': 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) = 9296.96309156
delta logL = 0.012860914534

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.881e+00  6.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  2.250e+00  1.213e+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:  8.581e-01  8.397e-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.233e+00  3.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/485907/cmap_HighResolution_575251201_575510401_4FGL_J1518.0-2731_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-12 01:16:45.818229', job_id='485907', GAL2='0.86', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1631434605.82', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.29e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1296' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 485907: <4FGL_J1518.0-2731_daily_bin1296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin1296 229.512 -27.5313 575251201 575510401 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 :                                   929.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             368.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            952 sec.

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

