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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin977
RA = 229.512, Dec = -27.5313
tmin = 492566401, tmax = 492825601
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='482917', job_status='RUN', time_executed='2021-09-12 00:55:44.360228', time_epoch_executed='1631433344.36' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='977'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482917/ft1_4FGL_J1518.0-2731_daily_bin977.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482917/ft1_4FGL_J1518.0-2731_daily_bin977.fits outfile=/scratch/kocevski/482917/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin977.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=492566401.0 tmax=492825601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.52
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.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/482917/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin977.fits evtable="EVENTS" outfile="/scratch/kocevski/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.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/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.fits" evtable="EVENTS" scfile=/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits sctable="SC_DATA" outfile=/scratch/kocevski/482917/ltcube_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.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/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits
.....................!
real 11.99
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.fits evtable="EVENTS" scfile=/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits sctable="SC_DATA" expcube=/scratch/kocevski/482917/ltcube_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.fits outfile=/scratch/kocevski/482917/expmap_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.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/482917/ltcube_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.fits
.....................!
real 192.22
user 186.65
sys 5.04

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/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.fits scfile=/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits outfile=/scratch/kocevski/482917/cmap_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.fits scfile=/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits outfile=/scratch/kocevski/482917/cmap_HighResolution_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.fits evtable="EVENTS" scfile=/scratch/kocevski/482917/ft2_4FGL_J1518.0-2731_daily_bin977.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482917/Model_4FGL_J1518.0-2731_daily_bin977.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/482917/ft1_filtered_4FGL_J1518.0-2731_daily_bin977.fits.....................!
real 97.39
user 95.95
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.499       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    42.788       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3439       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2409       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    103.62       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.7703       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8405       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94178       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0121       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=   8950.848     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2270 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.993       -.23292E-05** at limit **
   2  Prefactor     17.039        34.987        .52360E-07   -.13416E-04
   3  Prefactor     .10000E-03    110.03       -.73357E-05** at limit **
   4  Prefactor     .10000E-03    18.490       -.10064E-06** at limit **
   5  Prefactor     .10000E-03    107.32       -.67774E-06** at limit **
   6  Prefactor     13.546        15.906        .23157E-07   -.28265E-04
   7  Prefactor     47.487        36.122       -.66421E-06   -.71895E-04
   8  norm          .10000E-03    .40749        .47063E-06** at limit **
   9  Prefactor     1.2369        48.586        .10296E-04    .57336E-06
  10  Prefactor     .10000E-03    5.8567        .11912E-06** at limit **
  11  norm          .10000E-03    8.4533        .81739E-06** at limit **
  12  norm          42.759        50.113       -.92412E-06   -.14100E-04
  13  norm          4.3442        1.4075        .25611E-07   -.60207E-05
  14  Prefactor     2.2417        14.090       -.19697E-06   -.40277E-04
  15  norm          3.2540        4.2921        .25751E-06    .11436E-03
  16  Prefactor     103.63        72.679        .12879E-06   -.31085E-04
  17  Prefactor     .10000E-03    12.601       -.24379E-07** at limit **
  18  norm          9.7716        10.416        .52103E-07   -.25655E-04
  19  Prefactor     2.8411        2.9009        .68561E-07   -.79551E-04
  20  Normalizat    .94170        .36103        .26620E-05   -.65858E-04
  21  Prefactor     1.0121        .87861E-01   -.99519E-06    .60159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.0385
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5456
  Prefactor  = 47.4871
  norm       = 0.0001
  Prefactor  = 1.23692
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 42.7589
  norm       = 4.34416
  Prefactor  = 2.24169
  norm       = 3.25396
  Prefactor  = 103.629
  Prefactor  = 0.0001
  norm       = 9.77157
  Prefactor  = 2.84105
  Normalizat = 0.941696
  Prefactor  = 1.01209
 **********
 **   18 **HESSE 
 **********

 FCN=   8950.848     FROM HESSE     STATUS=OK           317 CALLS     2587 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.039        34.951        .97123E-04   -1.4882    
   3  Prefactor     .10000E-03    113.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.546        15.898        .10884E-03   -1.4972    
   7  Prefactor     47.487        36.178        .58180E-04   -1.4329    
   8  norm          .10000E-03    .41056        .11620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2369        48.612        .21733E-02   -1.5486    
  10  Prefactor     .10000E-03    5.8711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.6190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          42.759        50.206        .61286E-04   -1.4399    
  13  norm          4.3442        1.4014        .58659E-04   -1.5291    
  14  Prefactor     2.2417        13.992        .13728E-02   -1.5409    
  15  norm          3.2540        4.2474        .19652E-03   -1.5347    
  16  Prefactor     103.63        72.750        .39500E-04   -1.3668    
  17  Prefactor     .10000E-03    12.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.7716        10.420        .12820E-03   -1.5083    
  19  Prefactor     2.8411        2.8936        .15575E-03   -1.5371    
  20  Normalizat    .94170        .38338        .60893E-03   -.95010    
  21  Prefactor     1.0121        .95076E-01    .14663E-03   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65635e-10
Minuit parameter uncertainties:
  1  0.000157174
  2  34.993
  3  0.000961289
  4  6.75576e-06
  5  0.000242846
  6  15.9028
  7  36.1945
  8  6.05265e-07
  9  15.5216
  10  4.72538e-06
  11  1.13025e-07
  12  50.2554
  13  1.40144
  14  11.2048
  15  4.24778
  16  72.8123
  17  2.30479e-07
  18  10.4223
  19  2.8937
  20  0.384501
  21  0.0950915
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  2.242e+00  1.120e+01  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.012e+00  9.509e-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.417e-01  3.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/482917/likelihoodResults_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.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) = 8949.6716197
delta logL = 1.17618105871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8949.44192884
delta logL = 1.40587191403

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     '    6.6623       1.0000          .0000       10.000    
     3 'Normalizat'    .75524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       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=   8950.874     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      486 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1174.8        .18142E-02** at limit **
   2  Index         1.4186        5.1226        .50000       -.61237E-04
   3  Normalizat    .94721        .18400        .60745E-03    .52291E-04
   4  Prefactor     1.0129        .46344E-01    .14661E-03   -.14268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Index      = 1.4186
  Normalizat = 0.947214
  Prefactor  = 1.01294
 **********
 **   18 **HESSE 
 **********

 FCN=   8950.874     FROM HESSE     STATUS=OK            29 CALLS      515 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6.8927        .36285E-03   -39.270    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4186        5.6111        .50000       -289.82    
   3  Normalizat    .94721        .36663        .24298E-04   -7.2314    
   4  Prefactor     1.0129        .92513E-01    .58642E-05   -21.068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75754e-09
Minuit parameter uncertainties:
  1  0.000805457
  2  3.67582
  3  0.367605
  4  0.0925278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482917': 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) = 8950.87427712
delta logL = -0.0264763705018

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  8.055e-04  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  1.419e+00  3.676e+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:  1.013e+00  9.253e-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.472e-01  3.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/482917/cmap_HighResolution_492566401_492825601_4FGL_J1518.0-2731_daily_bin977.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-12 01:11:22.842371', job_id='482917', GAL2='1.01', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1631434282.84', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-2.65e-02', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='977' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 482917: <4FGL_J1518.0-2731_daily_bin977> in cluster <slac> Done

Job <4FGL_J1518.0-2731_daily_bin977> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 00:55:28 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:55:30 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:30 2021
Terminated at Sun Sep 12 01:11:23 2021
Results reported at Sun Sep 12 01:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin977 229.512 -27.5313 492566401 492825601 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 :                                   933.39 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             359.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

