/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 136 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin57
RA = 229.244, Dec = 19.5805
tmin = 254102401, tmax = 254361601
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='448100', job_status='RUN', time_executed='2021-09-11 23:04:14.811709', time_epoch_executed='1631426654.81' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448100/ft1_4FGL_J1516.9+1934_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448100/ft2_4FGL_J1516.9+1934_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448100/ft1_4FGL_J1516.9+1934_daily_bin57.fits outfile=/scratch/kocevski/448100/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin57.fits ra=229.244 dec=19.5805 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.03
user 1.85
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448100/ft1_filtered_4FGL_J1516.9+1934_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/448100/ft2_4FGL_J1516.9+1934_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/448100/ltcube_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.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/448100/ft2_4FGL_J1516.9+1934_daily_bin57.fits
.....................!
real 12.35
user 12.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448100/ft1_filtered_4FGL_J1516.9+1934_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/448100/ft2_4FGL_J1516.9+1934_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/448100/ltcube_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.fits outfile=/scratch/kocevski/448100/expmap_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.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/448100/ltcube_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.fits
.....................!
real 191.16
user 185.91
sys 4.77

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/448100/ft1_filtered_4FGL_J1516.9+1934_daily_bin57.fits scfile=/scratch/kocevski/448100/ft2_4FGL_J1516.9+1934_daily_bin57.fits outfile=/scratch/kocevski/448100/cmap_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448100/ft1_filtered_4FGL_J1516.9+1934_daily_bin57.fits scfile=/scratch/kocevski/448100/ft2_4FGL_J1516.9+1934_daily_bin57.fits outfile=/scratch/kocevski/448100/cmap_HighResolution_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14200E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .52482E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3532       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5064       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    91.687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3012       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4152       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4215       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.414       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.531       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71120       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1964       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=   9782.693     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2744 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    7.1051        .24016E-05** at limit **
   2  norm          .10000E-03    .76996        .10993E-06** at limit **
   3  norm          .10004E-03    4.1906       -.16573E-05** at limit **
   4  Prefactor     .10000E-03    10.211        .18675E-06** at limit **
   5  Prefactor     .10000E-03    14.683        .30495E-06** at limit **
   6  Prefactor     4.4727        14.393        .46032E-06   -.12757E-04
   7  Prefactor     .10000E-03    18.978        .15696E-06** at limit **
   8  Prefactor     4.3537        4.6493       -.92943E-07   -.11490E-03
   9  norm          5.5063        .43144        .27373E-08   -.17227E-02
  10  norm          .10000E-03    2.2011        .18830E-07** at limit **
  11  norm          .10000E-03    16.073       -.10316E-06** at limit **
  12  Prefactor     91.659        51.251       -.16825E-06   -.16665E-03
  13  Prefactor     9.3004        7.3241        .11747E-05    .60775E-03
  14  Prefactor     .10000E-03    32.870       -.82794E-06** at limit **
  15  Prefactor     .10000E-03    27.706        .13915E-05** at limit **
  16  Prefactor     22.026        23.196        .22378E-06   -.15661E-06
  17  Prefactor     .10000E-03    1.5065        .38699E-06** at limit **
  18  Prefactor     4.3877        37.837        .82874E-06   -.41672E-04
  19  norm          1.4216        1.4828       -.12007E-06   -.23406E-03
  20  Prefactor     .10000E-03    11.752       -.65675E-06** at limit **
  21  norm          13.413        8.2709        .12767E-05    .75226E-03
  22  Prefactor     23.531        11.803        .13620E-06   -.27565E-04
  23  Normalizat    .71121        .22282       -.16660E-05   -.29451E-03
  24  Prefactor     1.1965        .13819       -.28618E-06   -.53839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100107
  norm       = 0.0001
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47273
  Prefactor  = 0.0001
  Prefactor  = 4.35366
  norm       = 5.50631
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 91.6586
  Prefactor  = 9.30038
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.0257
  Prefactor  = 0.0001
  Prefactor  = 4.38774
  norm       = 1.42158
  Prefactor  = 0.0001
  norm       = 13.4133
  Prefactor  = 23.531
  Normalizat = 0.711206
  Prefactor  = 1.19645
 **********
 **   18 **HESSE 
 **********

 FCN=   9782.693     FROM HESSE     STATUS=OK           397 CALLS     3141 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    29.464        .41109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .77530        .84790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10004E-03    12.412        .31476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4727        14.372        .19030E-03   -1.5285    
   7  Prefactor     .10000E-03    18.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3537        4.6504        .19305E-03   -1.5291    
   9  norm          5.5063        .43154        .17408E-04   -1.5239    
  10  norm          .10000E-03    2.2018        .14331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     91.659        51.215        .41968E-04   -1.3790    
  13  Prefactor     9.3004        7.4227        .65704E-03   -1.5098    
  14  Prefactor     .10000E-03    33.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.026        23.190        .85337E-04   -1.4769    
  17  Prefactor     .10000E-03    1.5594        .23760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3877        37.888        .19166E-03   -1.5289    
  19  norm          1.4216        1.4858        .11898E-03   -1.5470    
  20  Prefactor     .10000E-03    11.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.413        8.4364        .54683E-03   -1.4975    
  22  Prefactor     23.531        11.808        .82575E-04   -1.4737    
  23  Normalizat    .71121        .24757        .42960E-03   -1.0345    
  24  Prefactor     1.1965        .15594        .21463E-03   -.86440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42492e-09
Minuit parameter uncertainties:
  1  0.00355198
  2  3.30951e-06
  3  0.00137057
  4  2.0305e-05
  5  2.56712e-05
  6  14.3833
  7  4.90132e-05
  8  4.65083
  9  0.431543
  10  1.11019e-06
  11  3.75876e-05
  12  51.2396
  13  7.4234
  14  0.00020067
  15  0.000353113
  16  23.1995
  17  1.91741e-05
  18  25.8088
  19  1.48587
  20  5.71211e-05
  21  8.43711
  22  11.8093
  23  0.24796
  24  0.156001
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  9.166e+01  5.124e+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.196e+00  1.560e-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.112e-01  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.87
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.38e-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) = 9782.67809421
delta logL = 0.0147433885286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9782.66780656
delta logL = 0.0250310363172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.02       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4673       1.0000          .0000       10.000    
     3 'Normalizat'    .71901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1926       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=   9782.668     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.02        70.196        .40000E-04   -.15882E-03
   2  Index         2.4671        .50606        .69697E-02   -.16512E-03
   3  Normalizat    .71954        .24601        .42728E-03    .46935E-04
   4  Prefactor     1.1922        .15564        .21495E-03    .36304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.025
  Index      = 2.46707
  Normalizat = 0.719535
  Prefactor  = 1.19223
 **********
 **   18 **HESSE 
 **********

 FCN=   9782.668     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.02        67.871        .80001E-05   -1.3694    
   2  Index         2.4671        .48898        .27879E-03   -.53122    
   3  Normalizat    .71954        .24597        .17091E-04   -1.0313    
   4  Prefactor     1.1922        .15561        .42989E-04   -.86571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56257e-10
Minuit parameter uncertainties:
  1  67.9233
  2  0.490035
  3  0.246353
  4  0.155666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448100': 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) = 9782.66780392
delta logL = 0.0250336779591

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.010e+02  6.792e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.467e+00  4.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.192e+00  1.557e-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.195e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.47 +/- 0.49
Photon Flux (Free Index): 8.80e-08 +/- 5.40e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.71e-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/448100/cmap_HighResolution_254102401_254361601_4FGL_J1516.9+1934_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='2.65e-05', photon_flux_error='5.17e-08', dlogl='2.50e-02', energy_flux='2.47e-05', photon_flux2='8.80e-08', job_status='DONE', time_completed='2021-09-11 23:16:28.603144', photon_index_error2='0.49', photon_index2='2.47', ts='4.87', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.71', time_epoch_completed='1631427388.6', return_code='0', job_id='448100', GAL2='1.19', EG2='0.72', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.40e-08', ts2='4.79', photon_index='2.58' WHERE bin_id='57' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:16:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 448100: <4FGL_J1516.9+1934_daily_bin57> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin57> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:49 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:50 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:01:50 2021
Terminated at Sat Sep 11 23:16:29 2021
Results reported at Sat Sep 11 23:16:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin57 229.244 19.5805 254102401 254361601 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 :                                   732.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

