/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 178 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_J1514.7-3617_daily_bin1171
RA = 228.681, Dec = -36.2949
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='355336', job_status='RUN', time_executed='2021-09-11 17:24:15.866232', time_epoch_executed='1631406255.87' WHERE source_name='4FGL J1514.7-3617' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355336

Creating custom pfile directory:
/scratch/kocevski/355336/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/355336/ft1_4FGL_J1514.7-3617_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/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355336/ft1_4FGL_J1514.7-3617_daily_bin1171.fits outfile=/scratch/kocevski/355336/ft1_filteredMKT_4FGL_J1514.7-3617_daily_bin1171.fits ra=228.681 dec=-36.2949 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.77
user 0.59
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_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/355336/ft1_filteredMKT_4FGL_J1514.7-3617_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/355336/ltcube_542851201_543110401_4FGL_J1514.7-3617_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/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits
.....................!
real 1.88
user 1.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/355336/ltcube_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.fits outfile=/scratch/kocevski/355336/expmap_542851201_543110401_4FGL_J1514.7-3617_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/355336/ltcube_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.fits
.....................!
real 190.77
user 185.54
sys 4.70

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 HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 312 point sources and 12 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 J1514.7-3617 @ 228.681 -36.2949

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits scfile=/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits outfile=/scratch/kocevski/355336/cmap_542851201_543110401_4FGL_J1514.7-3617_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=228.681 yref=-36.2949 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.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits scfile=/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits outfile=/scratch/kocevski/355336/cmap_HighResolution_542851201_543110401_4FGL_J1514.7-3617_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=228.681 yref=-36.2949 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.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355336/Model_4FGL_J1514.7-3617_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 FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1626.9-2431
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits.................................!
real 26.93
user 25.62
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits', '/scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits', expMap='/scratch/kocevski/355336/expmap_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.fits', expCube='/scratch/kocevski/355336/ltcube_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/355336/Model_4FGL_J1514.7-3617_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1514.7-3617'

4FGL J1514.7-3617
   Spectrum: LogParabola
403         norm:  7.174e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
404        alpha:  2.300e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
405         beta:  2.424e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/355336/ft1_filtered_4FGL_J1514.7-3617_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/355336/ft2_4FGL_J1514.7-3617_daily_bin1171.fits
Exposure map: /scratch/kocevski/355336/expmap_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.fits
Exposure cube: /scratch/kocevski/355336/ltcube_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/355336/Model_4FGL_J1514.7-3617_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) = 343.817663759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.011       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1935.3       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15997E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    266.15       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    76.367       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    323.51       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    38.828       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10062E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1138E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   343.7738     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     3931 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.007        1.4740       -.27707E-07    .57929E-03
   2  norm          .10002E-03    24.833        .10522E-05** at limit **
   3  Prefactor     .12018E-03    74.881       -.33342E-05** at limit **
   4  norm          1.5506        1.7125       -.87639E-08   -.14661E-04
   5  Prefactor     1935.3        1.0204        .56633E-09   -.10364E-02
   6  Prefactor     .12139E-03    68.924       -.33025E-05** at limit **
   7  Prefactor     .10250E-03    17.095       -.28037E-05** at limit **
   8  norm          .10016E-03    16.867       -.21637E-05** at limit **
   9  Prefactor     .42353E-03    174.17       -.33411E-05** at limit **
  10  Prefactor     .10200E-03    16.311       -.27566E-05** at limit **
  11  Prefactor     266.15        1.3598       -.63303E-08    .18728E-02
  12  norm          .10000E-03    3.2102        .59766E-06** at limit **
  13  Prefactor     .10253E-03    29.249        .14963E-05** at limit **
  14  Prefactor     .10033E-03    31.540        .20897E-05** at limit **
  15  norm          .10000E-03    19.340       -.88324E-06** at limit **
  16  norm          .10096E-03    33.345       -.29761E-05** at limit **
  17  norm          76.369        1.0957        .60590E-08   -.34322E-03
  18  norm          .10000E-03    4.2925       -.96902E-07** at limit **
  19  Prefactor     .10202E-03    18.627       -.15050E-05** at limit **
  20  norm          .10000E-03    16.481       -.31270E-06** at limit **
  21  Prefactor     .10219E-03    25.385       -.29331E-05** at limit **
  22  Prefactor     323.51        1.0001        .96076E-10   -.51544E-04
  23  norm          .10013E-03    16.794       -.21820E-05** at limit **
  24  norm          38.835        1.6361        .24559E-07   -.57944E-03
  25  Prefactor     .10007E-03    30.770       -.29542E-05** at limit **
  26  Prefactor     .10102E-03    21.508        .88068E-07** at limit **
  27  Normalizat    .10000E-01    9.6926        .15466E-03** at limit **
  28  Prefactor     .63592        .16893       -.34155E-07   -.26280E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0066
  norm       = 0.000100018
  Prefactor  = 0.000120181
  norm       = 1.55065
  Prefactor  = 1935.28
  Prefactor  = 0.000121385
  Prefactor  = 0.000102503
  norm       = 0.000100159
  Prefactor  = 0.000423533
  Prefactor  = 0.000101998
  Prefactor  = 266.148
  norm       = 0.0001
  Prefactor  = 0.00010253
  Prefactor  = 0.000100334
  norm       = 0.000100001
  norm       = 0.000100961
  norm       = 76.3692
  norm       = 0.0001
  Prefactor  = 0.000102019
  norm       = 0.0001
  Prefactor  = 0.000102186
  Prefactor  = 323.506
  norm       = 0.000100127
  norm       = 38.8352
  Prefactor  = 0.000100074
  Prefactor  = 0.000101021
  Normalizat = 0.01
  Prefactor  = 0.63592
 **********
 **   18 **HESSE 
 **********

 FCN=   343.7738     FROM HESSE     STATUS=OK           559 CALLS     4490 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.007        537.27        .22965E-02   -1.4836    
   2  norm          .10002E-03    24.841        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12018E-03    217.16        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5506        1.7484        .55789E-02   -1.5459    
   5  Prefactor     1935.3        1517.6        .25312E-03   -.65978    
   6  Prefactor     .12139E-03    209.65        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10250E-03    87.852        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10016E-03    70.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .42353E-03    491.28        .90712E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10200E-03    85.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     266.15        258.66        .62129E-03   -1.2431    
  12  norm          .10000E-03    3.2104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10253E-03    41.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10033E-03    32.498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.340        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10096E-03    133.45        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          76.369        61.008        .11487E-02   -1.3958    
  18  norm          .10000E-03    4.2867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10202E-03    62.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    16.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10219E-03    105.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     323.51        519.44        .56520E-03   -1.2091    
  23  norm          .10013E-03    70.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          38.835        55.746        .16081E-02   -1.4461    
  25  Prefactor     .10007E-03    120.88        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10102E-03    50.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    7.2582        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .63592        .24886        .28092E-01   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3939e-06
Minuit parameter uncertainties:
  1  204.161
  2  0.00135207
  3  0.132886
  4  1.7485
  5  1557.65
  6  0.134388
  7  0.0297034
  8  0.00670107
  9  0.80404
  10  0.0261387
  11  259.788
  12  2.93132e-05
  13  0.0204561
  14  0.00659152
  15  0.000299505
  16  0.0226993
  17  61.0585
  18  5.42412e-06
  19  0.022491
  20  2.65117e-06
  21  0.0304623
  22  527.212
  23  0.00600911
  24  55.8207
  25  0.00600484
  26  0.0144102
  27  0.000289142
  28  0.249289
Done.

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

Extracting fit parameters...

4FGL J1514.7-3617
   Spectrum: LogParabola
403         norm:  1.010e-04  2.270e-02  1.000e-04  1.000e+04 ( 1.000e-13)
404        alpha:  2.300e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
405         beta:  2.424e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1117    Prefactor:  6.359e-01  2.493e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1118        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1119        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1091   Normalization:  1.000e-02  2.891e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 228.681 -36.295
Photon Flux Upper Limit: 8.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355336/likelihoodResults_542851201_543110401_4FGL_J1514.7-3617_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) = 343.773824162
delta logL = -3.57938656066e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 343.773789541
delta logL = -1.17283889267e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2736       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1138E+06   .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=   343.7738     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      286 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8804.8        .11844E-01** at limit **
   2  alpha         1.3674        4.2472        .17588       -.16903E-07
   3  Normalizat    .10000E-01    1.9523        .18229E-01** at limit **
   4  Prefactor     .63591        .58333E-01    .12415E-03   -.10767E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.36743
  Normalizat = 0.01
  Prefactor  = 0.635908
 **********
 **   18 **HESSE 
 **********

 FCN=   343.7738     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    211.34        .23687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3674        2.6769        .70350E-02   -.47016    
   3  Normalizat    .10000E-01    9.6958        .36459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .63591        .16710        .24829E-04   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65225e-09
Minuit parameter uncertainties:
  1  3.28876e-05
  2  1895.02
  3  1.31872e-05
  4  0.167235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355336': 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) = 343.773788236
delta logL = 1.32099614802e-07

Extracting fit parameters...

4FGL J1514.7-3617
   Spectrum: LogParabola
403         norm:  1.000e-04  3.289e-05  1.000e-04  1.000e+04 ( 1.000e-13)
404        alpha:  1.367e+00  1.895e+03  0.000e+00  5.000e+00 ( 1.000e+00)
405         beta:  2.424e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1117    Prefactor:  6.359e-01  1.672e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1118        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1119        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1091   Normalization:  1.000e-02  1.319e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 228.681 -36.295

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/355336/cmap_HighResolution_542851201_543110401_4FGL_J1514.7-3617_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-04', job_status='DONE', photon_flux_upper_limit='8.05e-07', time_completed='2021-09-11 17:30:49.019241', job_id='355336', GAL2='0.64', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631406649.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1171' AND source_name='4FGL J1514.7-3617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 17:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 355336: <4FGL_J1514.7-3617_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1514.7-3617_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 17:21:07 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 17:21:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 17:21:09 2021
Terminated at Sat Sep 11 17:30:49 2021
Results reported at Sat Sep 11 17:30:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1514.7-3617_daily_bin1171 228.681 -36.2949 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1514.7-3617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   396.78 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             245.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            582 sec.

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

