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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1171
RA = 229.512, Dec = -27.5313
tmin = 542851201, tmax = 543110401
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='485700', job_status='RUN', time_executed='2021-09-12 01:04:22.830923', time_epoch_executed='1631433862.83' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485700

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485700/ft1_4FGL_J1518.0-2731_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485700/ft1_4FGL_J1518.0-2731_daily_bin1171.fits outfile=/scratch/kocevski/485700/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1171.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.60
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485700/ft1_filtered_4FGL_J1518.0-2731_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/485700/ltcube_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.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/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits
.....................!
real 1.91
user 1.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485700/ft1_filtered_4FGL_J1518.0-2731_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/485700/ltcube_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.fits outfile=/scratch/kocevski/485700/expmap_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.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/485700/ltcube_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.fits
.....................!
real 191.49
user 186.21
sys 4.76

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/485700/ft1_filtered_4FGL_J1518.0-2731_daily_bin1171.fits scfile=/scratch/kocevski/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits outfile=/scratch/kocevski/485700/cmap_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485700/ft1_filtered_4FGL_J1518.0-2731_daily_bin1171.fits scfile=/scratch/kocevski/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits outfile=/scratch/kocevski/485700/cmap_HighResolution_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.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.52
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485700/ft1_filtered_4FGL_J1518.0-2731_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/485700/ft2_4FGL_J1518.0-2731_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485700/Model_4FGL_J1518.0-2731_daily_bin1171.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/485700/ft1_filtered_4FGL_J1518.0-2731_daily_bin1171.fits.......................!
real 15.41
user 14.22
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12776E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    126.10       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37847E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    229.95       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7111       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10014E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75147       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=   279.3202     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1906 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    8607.7       -.16481E-03** at limit **
   2  Prefactor     .10000E-03    980.37       -.15027E-04** at limit **
   3  Prefactor     .10000E-03    330.71       -.92407E-05** at limit **
   4  Prefactor     124.94        398.40       -.16311E-04    .20863E-04
   5  Prefactor     .10000E-03    764.22       -.25698E-05** at limit **
   6  Prefactor     .10000E-03    43.016       -.61879E-06** at limit **
   7  Prefactor     .10000E-03    125.00       -.25770E-06** at limit **
   8  norm          .10000E-03    3.4726       -.99738E-07** at limit **
   9  Prefactor     .10000E-03    42.456       -.43879E-07** at limit **
  10  Prefactor     .10000E-03    31.120       -.76604E-07** at limit **
  11  norm          .10000E-03    19.276        .55044E-07** at limit **
  12  norm          .10000E-03    121.09       -.12317E-07** at limit **
  13  norm          .10000E-03    1.8039        .58497E-07** at limit **
  14  Prefactor     .10000E-03    41.631        .56720E-06** at limit **
  15  norm          .10000E-03    13.895        .28841E-06** at limit **
  16  Prefactor     230.20        470.17        .32393E-05    .44637E-04
  17  Prefactor     .10000E-03    255.99        .10936E-05** at limit **
  18  norm          .10000E-03    64.692        .58012E-06** at limit **
  19  Prefactor     3.7011        13.960        .34248E-05    .34817E-03
  20  Normalizat    .10000E-01    .98853       -.70249E-04** at limit **
  21  Prefactor     .75141        .19254        .18785E-05    .71759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 124.944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 230.203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.70109
  Normalizat = 0.01
  Prefactor  = 0.751411
 **********
 **   18 **HESSE 
 **********

 FCN=   279.3202     FROM HESSE     STATUS=OK           299 CALLS     2205 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    8537.0        .19363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    979.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    330.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     124.94        398.37        .17924E-03   -1.3468    
   5  Prefactor     .10000E-03    764.28        .21289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.020        .10722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    125.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4730        .30442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.457        .10652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.121        .91177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    19.276        .71744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    121.10        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8046        .21939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.660        .10546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.895        .60900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     230.20        471.54        .13343E-03   -1.2662    
  17  Prefactor     .10000E-03    256.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    64.683        .13153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7011        14.174        .11544E-03   -1.5323    
  20  Normalizat    .10000E-01    1.1102        .96388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .75141        .19610        .11068E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69668e-09
Minuit parameter uncertainties:
  1  0.0645328
  2  0.000272622
  3  0.000747004
  4  407.444
  5  0.000153227
  6  1.49053e-05
  7  4.4643e-06
  8  1.8563e-06
  9  1.0963e-05
  10  7.23246e-06
  11  3.61867e-06
  12  2.97806e-05
  13  4.46413e-07
  14  4.25939e-06
  15  1.70365e-06
  16  479.676
  17  0.000183026
  18  1.70007e-05
  19  14.1866
  20  3.40911e-05
  21  0.196285
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  4.259e-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.514e-01  1.963e-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.000e-02  3.409e-05  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.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485700/likelihoodResults_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.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) = 279.320320528
delta logL = -0.000118033011006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 279.320205393
delta logL = -2.89785708674e-06

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 'Index     '    2.2351       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75105       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=   279.3202     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      283 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10822E-03    29.016        .88586E-02** at limit **
   2  Index         2.1147        8.2492        .50000        .18864E-04
   3  Normalizat    .10000E-01    .19444E-02    .96392E-02** at limit **
   4  Prefactor     .75140        .73333E-02    .11068E-03    .10426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108217
  Index      = 2.1147
  Normalizat = 0.01
  Prefactor  = 0.751402
 **********
 **   18 **HESSE 
 **********

 FCN=   279.3202     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10822E-03    296.09        .95908E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1147        5.9420        .50000       -.61512    
   3  Normalizat    .10000E-01    .20319E-01    .19278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75140        .23707E-01    .44270E-05   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.1963e-09
Minuit parameter uncertainties:
  1  0.0991426
  2  310.546
  3  1.47151e-07
  4  0.0237076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485700': 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) = 279.320202864
delta logL = -3.6860342334e-07

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.082e-04  9.914e-02  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  2.115e+00  3.105e+02  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.514e-01  2.371e-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.000e-02  1.472e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/485700/cmap_HighResolution_542851201_543110401_4FGL_J1518.0-2731_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-02', job_status='DONE', photon_flux_upper_limit='9.24e-07', time_completed='2021-09-12 01:09:37.342572', job_id='485700', GAL2='0.75', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631434177.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-3.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1171' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 485700: <4FGL_J1518.0-2731_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1518.0-2731_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 01:00:36 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:00:37 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:37 2021
Terminated at Sun Sep 12 01:09:38 2021
Results reported at Sun Sep 12 01:09:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin1171 229.512 -27.5313 542851201 543110401 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 :                                   318.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             216.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            542 sec.

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

