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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1341
RA = 229.244, Dec = 19.5805
tmin = 586915201, tmax = 587174401
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='456017', job_status='RUN', time_executed='2021-09-11 23:30:18.896577', time_epoch_executed='1631428218.9' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456017/ft1_4FGL_J1516.9+1934_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456017/ft1_4FGL_J1516.9+1934_daily_bin1341.fits outfile=/scratch/kocevski/456017/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1341.fits ra=229.244 dec=19.5805 rad=12.0 tmin=586915201.0 tmax=587174401.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.63
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.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/456017/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1341.fits evtable="EVENTS" outfile="/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/456017/ltcube_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.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/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits
.....................!
real 13.75
user 13.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/456017/ltcube_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.fits outfile=/scratch/kocevski/456017/expmap_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.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/456017/ltcube_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.fits
.....................!
real 189.67
user 184.98
sys 4.39

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
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits scfile=/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits outfile=/scratch/kocevski/456017/cmap_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.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.244 yref=19.5805 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits scfile=/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits outfile=/scratch/kocevski/456017/cmap_HighResolution_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.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.244 yref=19.5805 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456017/Model_4FGL_J1516.9+1934_daily_bin1341.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 GAL_V02
Working on...
/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits.....................!
real 57.37
user 56.10
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits', '/scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits', expMap='/scratch/kocevski/456017/expmap_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.fits', expCube='/scratch/kocevski/456017/ltcube_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456017/Model_4FGL_J1516.9+1934_daily_bin1341.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456017/ft1_filtered_4FGL_J1516.9+1934_daily_bin1341.fits
Spacecraft file(s): /scratch/kocevski/456017/ft2_4FGL_J1516.9+1934_daily_bin1341.fits
Exposure map: /scratch/kocevski/456017/expmap_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.fits
Exposure cube: /scratch/kocevski/456017/ltcube_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456017/Model_4FGL_J1516.9+1934_daily_bin1341.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) = 7577.53617236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3503       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18339E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
     9 'norm      '    .14681       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    105.49       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.759       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4308       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.197       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76907       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7577.492     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2316 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1230        .38603E-06** at limit **
   2  norm          2.3499        2.7011       -.96483E-06   -.12506E-03
   3  norm          3.5944        3.3389        .10690E-06    .73183E-05
   4  Prefactor     .10128E-03    21.245       -.40157E-05** at limit **
   5  Prefactor     .10156E-03    67.725        .67877E-04** at limit **
   6  Prefactor     77.304        35.184        .39530E-04   -.54614E-02
   7  Prefactor     .10009E-03    36.360       -.57038E-04** at limit **
   8  Prefactor     11.574        2.7402        .87330E-05    .76699E-02
   9  norm          .14698        .17945       -.29598E-06   -.11602E-02
  10  norm          .10000E-03    3.1215       -.15544E-05** at limit **
  11  norm          .10005E-03    33.915        .21017E-05** at limit **
  12  Prefactor     76.704        7.7714       -.91050E-05    .43305E-02
  13  Prefactor     .10000E-03    4.0711       -.18962E-06** at limit **
  14  Prefactor     105.47        4.2789       -.38970E-05   -.95620E-03
  15  Prefactor     .10000E-03    3.8112       -.76564E-07** at limit **
  16  Prefactor     .10000E-03    10.798       -.12624E-05** at limit **
  17  Prefactor     .10000E-03    1.0239       -.24990E-06** at limit **
  18  Prefactor     18.720        10.074       -.20860E-04   -.21686E-02
  19  norm          .10000E-03    .62530        .86774E-06** at limit **
  20  Prefactor     .10000E-03    9.4390        .20776E-05** at limit **
  21  norm          2.4277        6.1019       -.84914E-05   -.39597E-03
  22  Prefactor     15.199        4.4076        .12909E-04    .16340E-01
  23  Normalizat    .76909        .25502       -.12375E-04   -.41702E-04
  24  Prefactor     1.2095        .16072        .11730E-05   -.53886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.34993
  norm       = 3.59444
  Prefactor  = 0.000101284
  Prefactor  = 0.000101563
  Prefactor  = 77.3045
  Prefactor  = 0.000100089
  Prefactor  = 11.5738
  norm       = 0.146976
  norm       = 0.0001
  norm       = 0.000100046
  Prefactor  = 76.7036
  Prefactor  = 0.0001
  Prefactor  = 105.473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7205
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42773
  Prefactor  = 15.199
  Normalizat = 0.769087
  Prefactor  = 1.20951
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.492     FROM HESSE     STATUS=OK           451 CALLS     2767 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3499        2.7211        .66844E-02   -1.5401    
   3  norm          3.5944        3.3499        .53280E-02   -1.5329    
   4  Prefactor     .10128E-03    59.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10156E-03    13.266        .11363       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     77.304        42.875        .11426E-02   -1.3947    
   7  Prefactor     .10009E-03    55.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.574        10.316        .29439E-02   -1.5027    
   9  norm          .14698        .19141        .87774E-02   -1.5631    
  10  norm          .10000E-03    3.1149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    34.040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     76.704        61.343        .11461E-02   -1.3954    
  13  Prefactor     .10000E-03    4.0382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     105.47        48.029        .97883E-03   -1.3650    
  15  Prefactor     .10000E-03    3.8008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.0092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.720        34.944        .23118E-02   -1.4842    
  19  norm          .10000E-03    .62395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4277        6.1299        .65618E-02   -1.5396    
  22  Prefactor     15.199        9.9086        .25686E-02   -1.4928    
  23  Normalizat    .76909        .23632        .85846E-01   -1.0123    
  24  Prefactor     1.2095        .14143        .34413E-01   -.86039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30686e-07
Minuit parameter uncertainties:
  1  5.39918e-06
  2  2.72127
  3  3.35004
  4  0.0175146
  5  0.00910931
  6  42.8924
  7  0.00443641
  8  10.3172
  9  0.191412
  10  2.02971e-05
  11  0.00249339
  12  61.3936
  13  3.85516e-06
  14  48.0463
  15  2.11507e-06
  16  5.3251e-05
  17  1.90551e-06
  18  34.982
  19  4.7079e-06
  20  6.41198e-05
  21  6.13143
  22  9.90968
  23  0.236631
  24  0.141475
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.670e+01  6.139e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.210e+00  1.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  7.691e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.31
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 6.19e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.66e-05

TS (Fixed Index): 2.31
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456017/likelihoodResults_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.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): 0
logL (Free Index) = 7577.13505672
delta logL = 0.356785946052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7577.11980707
delta logL = 0.372035596744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.007       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1910       1.0000          .0000       10.000    
     3 'Normalizat'    .72631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   7577.120     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      295 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.976        66.736        .58482E-04    .10249E-03
   2  Index         3.1928        .93700        .65300E-02    .11974E-03
   3  Normalizat    .72569        .26112        .39031E-03    .42381E-04
   4  Prefactor     1.2275        .16228        .19385E-03   -.15143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.9763
  Index      = 3.19279
  Normalizat = 0.725693
  Prefactor  = 1.22746
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.120     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.976        56.008        .11696E-04   -1.4336    
   2  Index         3.1928        .78626        .26120E-03   -.36982    
   3  Normalizat    .72569        .26070        .15612E-04   -1.0289    
   4  Prefactor     1.2275        .16183        .38769E-04   -.85490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97632e-10
Minuit parameter uncertainties:
  1  56.071
  2  0.790036
  3  0.261146
  4  0.161899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456017': 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) = 7577.11980034
delta logL = 0.372042320733

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.698e+01  5.607e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.193e+00  7.900e-01  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.227e+00  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  7.257e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 229.244 19.581
Photon Index (Free Index): 3.19 +/- 0.79
Photon Flux (Free Index): 1.14e-07 +/- 8.08e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.43e-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/456017/cmap_HighResolution_586915201_587174401_4FGL_J1516.9+1934_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='2.09e-05', photon_flux_error='6.19e-08', dlogl='3.72e-01', energy_flux='2.07e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-11 23:41:23.681234', photon_index_error2='0.79', photon_index2='3.19', ts='2.31', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.43e-05', EG='0.77', time_epoch_completed='1631428883.68', return_code='0', job_id='456017', GAL2='1.23', EG2='0.73', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='8.08e-08', ts2='3.12', photon_index='2.58' WHERE bin_id='1341' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 456017: <4FGL_J1516.9+1934_daily_bin1341> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1341> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:26:22 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:26:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:26:23 2021
Terminated at Sat Sep 11 23:41:24 2021
Results reported at Sat Sep 11 23:41:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1341 229.244 19.5805 586915201 587174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

