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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1077
RA = 229.512, Dec = -27.5313
tmin = 518486401, tmax = 518745601
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='483205', job_status='RUN', time_executed='2021-09-12 00:57:07.016719', time_epoch_executed='1631433427.02' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483205/ft1_4FGL_J1518.0-2731_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483205/ft2_4FGL_J1518.0-2731_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483205/ft1_4FGL_J1518.0-2731_daily_bin1077.fits outfile=/scratch/kocevski/483205/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1077.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.81
user 6.53
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483205/ft1_filtered_4FGL_J1518.0-2731_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/483205/ft2_4FGL_J1518.0-2731_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/483205/ltcube_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.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/483205/ft2_4FGL_J1518.0-2731_daily_bin1077.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483205/ft1_filtered_4FGL_J1518.0-2731_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/483205/ft2_4FGL_J1518.0-2731_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/483205/ltcube_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.fits outfile=/scratch/kocevski/483205/expmap_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.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/483205/ltcube_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.fits
.....................!
real 189.85
user 185.20
sys 4.32

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/483205/ft1_filtered_4FGL_J1518.0-2731_daily_bin1077.fits scfile=/scratch/kocevski/483205/ft2_4FGL_J1518.0-2731_daily_bin1077.fits outfile=/scratch/kocevski/483205/cmap_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.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/483205/ft1_filtered_4FGL_J1518.0-2731_daily_bin1077.fits scfile=/scratch/kocevski/483205/ft2_4FGL_J1518.0-2731_daily_bin1077.fits outfile=/scratch/kocevski/483205/cmap_HighResolution_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.042       1.0000         .10000E-03   10000.    
     8 'norm      '    .77477E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.7926       1.0000         .10000E-03   10000.    
    12 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.286       1.0000         .10000E-03   10000.    
    18 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5460       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98101       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96147       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=   8105.216     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2193 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.832        .20723E-06** at limit **
   2  Prefactor     57.560        49.210        .18140E-06   -.44893E-05
   3  Prefactor     15.515        17.411        .33778E-07   -.17018E-04
   4  Prefactor     .10000E-03    77.559       -.15620E-06** at limit **
   5  Prefactor     .10000E-03    30.425        .11764E-06** at limit **
   6  Prefactor     .10000E-03    13.224       -.19055E-06** at limit **
   7  Prefactor     14.045        19.638        .72701E-06   -.43657E-04
   8  norm          .77572E-01    .48932        .95008E-06   -.13210E-03
   9  Prefactor     .10000E-03    2.6117       -.89575E-08** at limit **
  10  Prefactor     .10000E-03    8.9310        .91836E-07** at limit **
  11  norm          7.7916        6.0043        .36437E-07   -.35548E-05
  12  norm          .10000E-03    19.924       -.47911E-06** at limit **
  13  norm          2.8201        1.0219        .14768E-07   -.40669E-04
  14  Prefactor     .10000E-03    5.7799        .17506E-07** at limit **
  15  norm          3.5290        3.3813        .11304E-06   -.75480E-06
  16  Prefactor     1.5563        236.68       -.62359E-06   -.17709E-04
  17  Prefactor     37.281        36.969       -.10954E-06   -.27576E-04
  18  norm          .10000E-03    15.283        .61318E-06** at limit **
  19  Prefactor     2.5457        2.7865        .20096E-06    .16613E-04
  20  Normalizat    .98100        .31784       -.12179E-05   -.45778E-04
  21  Prefactor     .96147        .83277E-01    .47296E-08   -.13889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 57.5601
  Prefactor  = 15.5146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0453
  norm       = 0.077572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.79165
  norm       = 0.000100001
  norm       = 2.82005
  Prefactor  = 0.0001
  norm       = 3.52901
  Prefactor  = 1.55631
  Prefactor  = 37.2813
  norm       = 0.000100001
  Prefactor  = 2.54568
  Normalizat = 0.981004
  Prefactor  = 0.961469
 **********
 **   18 **HESSE 
 **********

 FCN=   8105.216     FROM HESSE     STATUS=OK           317 CALLS     2510 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     57.560        49.185        .52877E-04   -1.4189    
   3  Prefactor     15.515        17.402        .10170E-03   -1.4920    
   4  Prefactor     .10000E-03    78.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.045        19.511        .53445E-03   -1.4958    
   8  norm          .77572E-01    .48930        .12037E-03   -1.5652    
   9  Prefactor     .10000E-03    2.6142        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.7916        6.0007        .14364E-03   -1.5150    
  12  norm          .10000E-03    19.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8201        1.0219        .24221E-04   -1.5372    
  14  Prefactor     .10000E-03    5.8446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5290        3.3737        .15675E-03   -1.5332    
  16  Prefactor     1.5563        243.11        .33850E-03   -1.5458    
  17  Prefactor     37.281        36.914        .65635E-04   -1.4486    
  18  norm          .10000E-03    15.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5457        2.7750        .14874E-03   -1.5389    
  20  Normalizat    .98100        .35014        .52360E-03   -.93670    
  21  Prefactor     .96147        .92524E-01    .13908E-03   -.94025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16527e-10
Minuit parameter uncertainties:
  1  0.00011257
  2  49.2192
  3  17.4074
  4  0.000150798
  5  6.19768e-05
  6  6.12223e-05
  7  19.52
  8  0.389401
  9  1.50458e-06
  10  8.31518e-06
  11  6.00112
  12  0.000201905
  13  1.02188
  14  1.06967e-06
  15  3.37389
  16  39.0643
  17  36.9365
  18  0.000182661
  19  2.77514
  20  0.350963
  21  0.0925396
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.070e-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:  9.615e-01  9.254e-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:  9.810e-01  3.510e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483205/likelihoodResults_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.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) = 8105.21667295
delta logL = -0.000815674434307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8105.21585729
delta logL = -1.54768713401e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0507       1.0000          .0000       10.000    
     3 'Normalizat'    .98100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96146       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=   8105.216     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.517        .90712E-02** at limit **
   2  Index         2.0499        6.5839        .50000        .97134E-06
   3  Normalizat    .98100        .20212E-01    .11807        .39048E-04
   4  Prefactor     .96147        .53569E-02    .31474E-01    .20217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04986
  Normalizat = 0.981005
  Prefactor  = 0.961469
 **********
 **   18 **HESSE 
 **********

 FCN=   8105.216     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    291.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0499        6.0091        .50000       -.63109    
   3  Normalizat    .98100        .58990E-01    .52360E-03   -.93670    
   4  Prefactor     .96147        .15696E-01    .13908E-03   -.94025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42873e-10
Minuit parameter uncertainties:
  1  5.90896e-05
  2  28.7034
  3  0.058994
  4  0.015696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483205': 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) = 8105.21585728
delta logL = 5.129550118e-10

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.909e-05  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  2.050e+00  2.870e+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:  9.615e-01  1.570e-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:  9.810e-01  5.899e-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/483205/cmap_HighResolution_518486401_518745601_4FGL_J1518.0-2731_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-12 01:11:53.419742', job_id='483205', GAL2='0.96', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631434313.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.13e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1077' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 483205: <4FGL_J1518.0-2731_daily_bin1077> in cluster <slac> Done

Job <4FGL_J1518.0-2731_daily_bin1077> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 00:55:40 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:55:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 00:55:48 2021
Terminated at Sun Sep 12 01:11:54 2021
Results reported at Sun Sep 12 01:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin1077 229.512 -27.5313 518486401 518745601 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 :                                   871.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            974 sec.

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

