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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1088
RA = 229.244, Dec = 19.5805
tmin = 521337601, tmax = 521596801
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='455759', job_status='RUN', time_executed='2021-09-11 23:26:09.315382', time_epoch_executed='1631427969.32' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455759

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455759/ft1_4FGL_J1516.9+1934_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455759/ft1_4FGL_J1516.9+1934_daily_bin1088.fits outfile=/scratch/kocevski/455759/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1088.fits ra=229.244 dec=19.5805 rad=12.0 tmin=521337601.0 tmax=521596801.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 5.11
user 4.86
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.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/455759/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1088.fits evtable="EVENTS" outfile="/scratch/kocevski/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/455759/ltcube_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.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/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits
.....................!
real 11.61
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/455759/ltcube_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.fits outfile=/scratch/kocevski/455759/expmap_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.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/455759/ltcube_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.fits
.....................!
real 191.61
user 186.32
sys 4.97

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/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits scfile=/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits outfile=/scratch/kocevski/455759/cmap_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits scfile=/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits outfile=/scratch/kocevski/455759/cmap_HighResolution_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455759/Model_4FGL_J1516.9+1934_daily_bin1088.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/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits.....................!
real 51.52
user 50.21
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits', '/scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits', expMap='/scratch/kocevski/455759/expmap_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.fits', expCube='/scratch/kocevski/455759/ltcube_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455759/Model_4FGL_J1516.9+1934_daily_bin1088.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/455759/ft1_filtered_4FGL_J1516.9+1934_daily_bin1088.fits
Spacecraft file(s): /scratch/kocevski/455759/ft2_4FGL_J1516.9+1934_daily_bin1088.fits
Exposure map: /scratch/kocevski/455759/expmap_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.fits
Exposure cube: /scratch/kocevski/455759/ltcube_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455759/Model_4FGL_J1516.9+1934_daily_bin1088.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) = 6447.61187606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.573       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.289       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12303E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1556       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5960       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2273       1.0000         .10000E-03   10000.    
    11 'norm      '    .10560E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.518       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.860       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4025       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6984       1.0000         .10000E-03   10000.    
    21 'norm      '    .13224E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67886       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0116       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.

 FCN=   6447.569     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     3212 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.573        15.978        .37649E-07    .11942E-04
   2  norm          .10000E-03    1.2821       -.54838E-08** at limit **
   3  norm          12.795        6.9821       -.11690E-06    .17622E-04
   4  Prefactor     28.178        32.426       -.65369E-06    .33297E-05
   5  Prefactor     .10000E-03    13.037        .52221E-07** at limit **
   6  Prefactor     16.275        29.495       -.94960E-06   -.51631E-05
   7  Prefactor     .10000E-03    64.222        .12167E-05** at limit **
   8  Prefactor     3.1579        9.8413        .55067E-05    .31542E-03
   9  norm          2.5959        .39085        .65454E-08    .26824E-03
  10  norm          6.2273        6.2694        .14001E-06   -.87548E-05
  11  norm          .10000E-03    19.111       -.84503E-08** at limit **
  12  Prefactor     33.597        49.192        .19904E-05    .13857E-04
  13  Prefactor     27.520        13.218        .11081E-06    .55441E-04
  14  Prefactor     78.146        45.262       -.13044E-05    .34478E-04
  15  Prefactor     .10000E-03    5.5404       -.60051E-07** at limit **
  16  Prefactor     .10000E-03    56.131       -.82552E-06** at limit **
  17  Prefactor     .10000E-03    1.3762       -.29504E-06** at limit **
  18  Prefactor     50.868        41.175       -.89088E-06    .82545E-04
  19  norm          2.4029        2.8042        .30511E-06    .56281E-03
  20  Prefactor     2.6274        102.82       -.53512E-05    .16612E-04
  21  norm          .13664E-03    9.0887       -.29299E-05** at limit **
  22  Prefactor     .10000E-03    8.6875       -.89522E-07** at limit **
  23  Normalizat    .67887        .25736        .59573E-06    .18454E-03
  24  Prefactor     1.0117        .14767       -.33502E-06    .34656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5733
  norm       = 0.0001
  norm       = 12.795
  Prefactor  = 28.1785
  Prefactor  = 0.0001
  Prefactor  = 16.2752
  Prefactor  = 0.0001
  Prefactor  = 3.15792
  norm       = 2.59594
  norm       = 6.22733
  norm       = 0.0001
  Prefactor  = 33.5973
  Prefactor  = 27.5196
  Prefactor  = 78.1461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8683
  norm       = 2.40288
  Prefactor  = 2.62739
  norm       = 0.00013664
  Prefactor  = 0.0001
  Normalizat = 0.678874
  Prefactor  = 1.01166
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.569     FROM HESSE     STATUS=OK           409 CALLS     3621 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.573        15.978        .10872E-03   -1.4971    
   2  norm          .10000E-03    1.2904        .88728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.795        6.9825        .11198E-03   -1.4992    
   4  Prefactor     28.178        32.393        .75457E-04   -1.4646    
   5  Prefactor     .10000E-03    13.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.275        29.470        .99237E-04   -1.4901    
   7  Prefactor     .10000E-03    64.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1579        9.8721        .11409E-02   -1.5353    
   9  norm          2.5959        .39123        .18550E-04   -1.5386    
  10  norm          6.2273        6.2738        .16086E-03   -1.5209    
  11  norm          .10000E-03    19.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.597        49.163        .69113E-04   -1.4548    
  13  Prefactor     27.520        13.239        .76369E-04   -1.4658    
  14  Prefactor     78.146        45.316        .45439E-04   -1.3938    
  15  Prefactor     .10000E-03    5.5516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3985        .18161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.868        40.903        .56234E-04   -1.4280    
  19  norm          2.4029        2.7886        .13602E-03   -1.5398    
  20  Prefactor     2.6274        101.51        .24800E-03   -1.5384    
  21  norm          .13664E-03    13.255        .62680E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .67887        .29008        .40201E-03   -1.0473    
  24  Prefactor     1.0117        .16980        .20445E-03   -.92342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1043e-09
Minuit parameter uncertainties:
  1  15.9831
  2  6.09313e-07
  3  6.98289
  4  32.4132
  5  1.01721e-05
  6  29.4964
  7  0.000100981
  8  9.8772
  9  0.391227
  10  6.27451
  11  3.02993e-06
  12  49.222
  13  13.2403
  14  45.3361
  15  6.99901e-06
  16  6.18241e-05
  17  5.52384e-06
  18  40.9254
  19  2.78878
  20  32.7208
  21  0.0440852
  22  1.04293e-05
  23  0.290734
  24  0.169887
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.360e+01  4.922e+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.012e+00  1.699e-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:  6.789e-01  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455759/likelihoodResults_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.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) = 6447.34512131
delta logL = 0.223424954168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.3405562
delta logL = 0.227990064207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.466       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8329       1.0000          .0000       10.000    
     3 'Normalizat'    .70306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       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.

 FCN=   6447.341     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.466        47.265        .17065E-02   -.16597E-02
   2  Index         1.8330        .63724        .26849       -.59761E-04
   3  Normalizat    .70329        .23585        .89250E-01    .31084E-04
   4  Prefactor     1.0024        .14468        .44827E-01    .68383E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4663
  Index      = 1.83299
  Normalizat = 0.703287
  Prefactor  = 1.00242
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.341     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.466        51.236        .68259E-04   -1.4533    
   2  Index         1.8330        .88709        .12420E-01   -.68594    
   3  Normalizat    .70329        .27040        .39538E-03   -1.0376    
   4  Prefactor     1.0024        .16667        .20522E-03   -.92649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15104e-08
Minuit parameter uncertainties:
  1  51.3014
  2  0.895049
  3  0.270914
  4  0.166759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455759': 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) = 6447.3405552
delta logL = 0.227991056823

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.447e+01  5.130e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  1.833e+00  8.950e-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.002e+00  1.668e-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.033e-01  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 229.244 19.581
Photon Index (Free Index): 1.83 +/- 0.90
Photon Flux (Free Index): 1.51e-08 +/- 2.90e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.98e-05

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/455759/cmap_HighResolution_521337601_521596801_4FGL_J1516.9+1934_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', energy_flux2='1.64e-05', dlogl='2.28e-01', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-11 23:37:18.970870', photon_index_error2='0.90', photon_index2='1.83', ts='0.67', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='2.98e-05', EG='0.68', time_epoch_completed='1631428638.97', return_code='0', job_id='455759', GAL2='1.00', EG2='0.70', return_code2='0', photon_flux_error2='2.90e-08', ts2='1.11', photon_index='2.58' WHERE bin_id='1088' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:37:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 455759: <4FGL_J1516.9+1934_daily_bin1088> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1088> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:25:56 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:25:57 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:25:57 2021
Terminated at Sat Sep 11 23:37:19 2021
Results reported at Sat Sep 11 23:37:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1088 229.244 19.5805 521337601 521596801 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 :                                   662.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            683 sec.

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

