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


Performing analysis on: 4FGL_J1518.0-2731_daily_bin1015
RA = 229.512, Dec = -27.5313
tmin = 502416001, tmax = 502675201
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='482973', job_status='RUN', time_executed='2021-09-12 00:55:46.242352', time_epoch_executed='1631433346.24' WHERE source_name='4FGL J1518.0-2731' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482973/ft1_4FGL_J1518.0-2731_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482973/ft2_4FGL_J1518.0-2731_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482973/ft1_4FGL_J1518.0-2731_daily_bin1015.fits outfile=/scratch/kocevski/482973/ft1_filteredMKT_4FGL_J1518.0-2731_daily_bin1015.fits ra=229.512 dec=-27.5313 rad=12.0 tmin=502416001.0 tmax=502675201.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.53
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482973/ft1_filtered_4FGL_J1518.0-2731_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/482973/ft2_4FGL_J1518.0-2731_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/482973/ltcube_502416001_502675201_4FGL_J1518.0-2731_daily_bin1015.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/482973/ft2_4FGL_J1518.0-2731_daily_bin1015.fits
.....................!
real 11.98
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482973/ft1_filtered_4FGL_J1518.0-2731_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/482973/ft2_4FGL_J1518.0-2731_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/482973/ltcube_502416001_502675201_4FGL_J1518.0-2731_daily_bin1015.fits outfile=/scratch/kocevski/482973/expmap_502416001_502675201_4FGL_J1518.0-2731_daily_bin1015.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/482973/ltcube_502416001_502675201_4FGL_J1518.0-2731_daily_bin1015.fits
.....................!
real 192.53
user 187.76
sys 4.42

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/482973/ft1_filtered_4FGL_J1518.0-2731_daily_bin1015.fits scfile=/scratch/kocevski/482973/ft2_4FGL_J1518.0-2731_daily_bin1015.fits outfile=/scratch/kocevski/482973/cmap_502416001_502675201_4FGL_J1518.0-2731_daily_bin1015.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=229.512 yref=-27.5313 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482973/ft1_filtered_4FGL_J1518.0-2731_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/482973/ft2_4FGL_J1518.0-2731_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482973/Model_4FGL_J1518.0-2731_daily_bin1015.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/482973/ft1_filtered_4FGL_J1518.0-2731_daily_bin1015.fits.....................!
real 112.47
user 111.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.391       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.128       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4277       1.0000         .10000E-03   10000.    
    12 'norm      '    10.222       1.0000         .10000E-03   10000.    
    13 'norm      '    .86637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.695       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9028       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7294       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75164       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0240       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=   10612.49     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2234 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.356        96.151        .15871E-05    .37129E-04
   2  Prefactor     64.382        72.549        .10395E-06    .59614E-04
   3  Prefactor     3.4553        38.971        .44624E-05    .94479E-04
   4  Prefactor     36.485        44.768       -.32655E-05   -.17048E-03
   5  Prefactor     .10008E-03    764.34       -.15197E-04** at limit **
   6  Prefactor     .10000E-03    4.6078       -.10087E-06** at limit **
   7  Prefactor     30.125        22.813        .26001E-05    .37682E-03
   8  norm          .10000E-03    .37893        .23867E-06** at limit **
   9  Prefactor     .10000E-03    11.110        .11744E-06** at limit **
  10  Prefactor     .10000E-03    6.7602        .48591E-08** at limit **
  11  norm          6.4266        5.9478        .77171E-08   -.10422E-03
  12  norm          10.224        19.317       -.27321E-05   -.21040E-03
  13  norm          .86634        .76229        .90444E-07   -.90021E-04
  14  Prefactor     13.695        8.5062       -.14008E-07   -.40499E-04
  15  norm          .10000E-03    1.0791       -.19340E-07** at limit **
  16  Prefactor     .10000E-03    17.913        .10082E-06** at limit **
  17  Prefactor     .10000E-03    23.516       -.48579E-07** at limit **
  18  norm          3.9027        8.8951        .58261E-05   -.44531E-03
  19  Prefactor     2.7297        2.3967        .15248E-06   -.69916E-04
  20  Normalizat    .75142        .30868       -.86343E-06   -.54896E-04
  21  Prefactor     1.0240        .77526E-01   -.16404E-06   -.86692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.3565
  Prefactor  = 64.3819
  Prefactor  = 3.45529
  Prefactor  = 36.4852
  Prefactor  = 0.000100079
  Prefactor  = 0.0001
  Prefactor  = 30.1246
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.42664
  norm       = 10.2235
  norm       = 0.866345
  Prefactor  = 13.695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.9027
  Prefactor  = 2.72968
  Normalizat = 0.751419
  Prefactor  = 1.02398
 **********
 **   18 **HESSE 
 **********

 FCN=   10612.49     FROM HESSE     STATUS=OK           317 CALLS     2551 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.356        95.961        .64719E-04   -1.4469    
   2  Prefactor     64.382        72.122        .50011E-04   -1.4101    
   3  Prefactor     3.4553        38.949        .21758E-03   -1.5336    
   4  Prefactor     36.485        45.300        .66365E-04   -1.4499    
   5  Prefactor     .10008E-03    781.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.125        23.288        .72995E-04   -1.4610    
   8  norm          .10000E-03    .67659        .12166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4266        5.9451        .15831E-03   -1.5201    
  12  norm          10.224        19.587        .12532E-03   -1.5068    
  13  norm          .86634        .72931        .79643E-03   -1.5522    
  14  Prefactor     13.695        8.4742        .10823E-03   -1.4968    
  15  norm          .10000E-03    1.0826        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9027        9.3361        .10211E-02   -1.5313    
  19  Prefactor     2.7297        2.3896        .14322E-03   -1.5378    
  20  Normalizat    .75142        .31879        .61752E-03   -1.0190    
  21  Prefactor     1.0240        .81976E-01    .13762E-03   -.91934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90787e-09
Minuit parameter uncertainties:
  1  96.3508
  2  72.2202
  3  23.2206
  4  45.3422
  5  0.015946
  6  3.61761e-06
  7  23.2954
  8  2.90447e-05
  9  2.45987e-06
  10  4.5645e-06
  11  5.94566
  12  19.5992
  13  0.729317
  14  8.47498
  15  2.40805e-07
  16  1.32091e-05
  17  4.36849e-06
  18  9.33961
  19  2.38966
  20  0.319584
  21  0.0819855
Done.

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

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.369e+01  8.475e+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:  1.024e+00  8.199e-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:  7.514e-01  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 229.512 -27.531
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 7.98e-08 +/- 4.94e-08
Energy Flux (Fixed Index): 4.88e-05 +/- 3.02e-05

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) = 10612.4433444
delta logL = 0.0451124606461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10612.4401864
delta logL = 0.0482705437917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1795       1.0000          .0000       10.000    
     3 'Normalizat'    .74067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0252       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=   10612.44     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      312 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.748        10.583        .11689E-03    .88116E-04
   2  Index         2.1798        .45368        .59325E-02    .86447E-03
   3  Normalizat    .74067        .31354        .62156E-03   -.92916E-04
   4  Prefactor     1.0252        .80921E-01    .13754E-03   -.11060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7485
  Index      = 2.17977
  Normalizat = 0.740669
  Prefactor  = 1.0252
 **********
 **   18 **HESSE 
 **********

 FCN=   10612.44     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.748        9.8937        .46757E-05   -1.5022    
   2  Index         2.1798        .42403        .11865E-02   -.59928    
   3  Normalizat    .74067        .31324        .24862E-04   -1.0231    
   4  Prefactor     1.0252        .80891E-01    .55015E-05   -.91894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14617e-10
Minuit parameter uncertainties:
  1  9.8951
  2  0.42478
  3  0.314
  4  0.080901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482973': 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) = 10612.440185
delta logL = 0.0482718849125

Extracting fit parameters...

4FGL J1518.0-2731
   Spectrum: PowerLaw
351    Prefactor:  1.175e+01  9.895e+00  1.000e-04  1.000e+04 ( 1.000e-13)
352        Index:  2.180e+00  4.248e-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:  1.025e+00  8.090e-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:  7.407e-01  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 229.512 -27.531
Photon Index (Free Index): 2.18 +/- 0.42
Photon Flux (Free Index): 9.12e-08 +/- 6.43e-08
Energy Flux (Free Index): 4.26e-05 +/- 3.15e-05

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/482973/cmap_HighResolution_502416001_502675201_4FGL_J1518.0-2731_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.98e-08', energy_flux2='4.26e-05', photon_flux_error='4.94e-08', dlogl='4.83e-02', energy_flux='4.88e-05', photon_flux2='9.12e-08', job_status='DONE', time_completed='2021-09-12 01:11:03.308757', photon_index_error2='0.42', photon_index2='2.18', ts='5.59', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='0.75', time_epoch_completed='1631434263.31', return_code='0', job_id='482973', GAL2='1.03', EG2='0.74', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='6.43e-08', ts2='5.69', photon_index='2.05' WHERE bin_id='1015' AND source_name='4FGL J1518.0-2731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 482973: <4FGL_J1518.0-2731_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1518.0-2731_daily_bin1015 229.512 -27.5313 502416001 502675201 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 :                                   911.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

