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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin507
RA = 229.244, Dec = 19.5805
tmin = 370742401, tmax = 371001601
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='452025', job_status='RUN', time_executed='2021-09-11 23:16:17.035333', time_epoch_executed='1631427377.04' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452025

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452025/ft1_4FGL_J1516.9+1934_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452025/ft1_4FGL_J1516.9+1934_daily_bin507.fits outfile=/scratch/kocevski/452025/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin507.fits ra=229.244 dec=19.5805 rad=12.0 tmin=370742401.0 tmax=371001601.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.33
user 5.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452025/ft1_filtered_4FGL_J1516.9+1934_daily_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/452025/ltcube_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.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/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits
.....................!
real 11.57
user 11.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452025/ft1_filtered_4FGL_J1516.9+1934_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/452025/ltcube_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.fits outfile=/scratch/kocevski/452025/expmap_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.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/452025/ltcube_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.fits
.....................!
real 190.71
user 184.65
sys 5.74

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/452025/ft1_filtered_4FGL_J1516.9+1934_daily_bin507.fits scfile=/scratch/kocevski/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits outfile=/scratch/kocevski/452025/cmap_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.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/452025/ft1_filtered_4FGL_J1516.9+1934_daily_bin507.fits scfile=/scratch/kocevski/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits outfile=/scratch/kocevski/452025/cmap_HighResolution_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.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/452025/ft1_filtered_4FGL_J1516.9+1934_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/452025/ft2_4FGL_J1516.9+1934_daily_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452025/Model_4FGL_J1516.9+1934_daily_bin507.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/452025/ft1_filtered_4FGL_J1516.9+1934_daily_bin507.fits.....................!
real 53.16
user 51.83
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6270       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16670E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .52551       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5486       1.0000         .10000E-03   10000.    
    11 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.597       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14038E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33347E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.966       1.0000         .10000E-03   10000.    
    21 'norm      '    15.950       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87233       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=   6915.485     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2838 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6409        .70871E-08** at limit **
   2  norm          4.6268        3.2943        .12924E-06   -.14348E-03
   3  norm          2.8106        4.2020        .32243E-06   -.16084E-03
   4  Prefactor     53.199        29.890        .40868E-06    .51697E-04
   5  Prefactor     .10000E-03    4.4776        .18331E-07** at limit **
   6  Prefactor     .10000E-03    8.0001        .61280E-07** at limit **
   7  Prefactor     .10000E-03    43.991       -.14134E-07** at limit **
   8  Prefactor     .10000E-03    13.592       -.20448E-06** at limit **
   9  norm          .52547        .19103        .18397E-07   -.45739E-03
  10  norm          1.5483        4.4705        .66594E-06   -.24770E-03
  11  norm          .10000E-03    26.198        .37441E-07** at limit **
  12  Prefactor     72.510        58.151        .15249E-06    .21938E-05
  13  Prefactor     .53549        4.5300        .63774E-06   -.29347E-03
  14  Prefactor     17.583        32.581        .28282E-06    .12203E-03
  15  Prefactor     .10000E-03    18.985        .49523E-06** at limit **
  16  Prefactor     21.983        31.632        .61047E-06    .10619E-03
  17  Prefactor     .10146E-03    1.3055        .35626E-07** at limit **
  18  Prefactor     .11659E-03    46.937       -.21057E-05** at limit **
  19  norm          1.0004        1.6191        .16853E-05    .86038E-03
  20  Prefactor     16.978        23.257       -.50826E-06    .29257E-03
  21  norm          15.965        10.732       -.31739E-06    .33245E-03
  22  Prefactor     .10000E-03    3.4166       -.14169E-07** at limit **
  23  Normalizat    1.0330        .21807       -.14574E-05    .30263E-03
  24  Prefactor     .87248        .12346       -.95797E-07    .32455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.62682
  norm       = 2.81059
  Prefactor  = 53.1986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.525469
  norm       = 1.54833
  norm       = 0.0001
  Prefactor  = 72.5097
  Prefactor  = 0.535487
  Prefactor  = 17.583
  Prefactor  = 0.0001
  Prefactor  = 21.9825
  Prefactor  = 0.000101464
  Prefactor  = 0.00011659
  norm       = 1.00036
  Prefactor  = 16.9783
  norm       = 15.9646
  Prefactor  = 0.0001
  Normalizat = 1.03296
  Prefactor  = 0.872475
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.485     FROM HESSE     STATUS=OK           415 CALLS     3253 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6432        .13197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6268        3.2889        .12168E-03   -1.5278    
   3  norm          2.8106        4.1836        .20032E-03   -1.5373    
   4  Prefactor     53.199        29.952        .54974E-04   -1.4248    
   5  Prefactor     .10000E-03    4.4819        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52547        .19034        .20907E-04   -1.5563    
  10  norm          1.5483        4.4029        .28948E-03   -1.5459    
  11  norm          .10000E-03    26.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.510        58.359        .47155E-04   -1.4003    
  13  Prefactor     .53549        10.880        .33909E-02   -1.5562    
  14  Prefactor     17.583        32.635        .95477E-04   -1.4869    
  15  Prefactor     .10000E-03    19.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.983        31.525        .85362E-04   -1.4770    
  17  Prefactor     .10146E-03    2.8601        .33016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11659E-03    41.609        .13148       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0004        1.6133        .16141E-02   -1.5508    
  20  Prefactor     16.978        23.296        .97237E-04   -1.4884    
  21  norm          15.965        10.694        .10029E-03   -1.4909    
  22  Prefactor     .10000E-03    3.4206        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0330        .25866        .30939E-03   -.91934    
  24  Prefactor     .87248        .14774        .20138E-03   -.97110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30193e-09
Minuit parameter uncertainties:
  1  3.25624e-07
  2  3.28899
  3  4.18406
  4  29.961
  5  8.44449e-07
  6  6.35606e-06
  7  3.84282e-05
  8  8.20618e-05
  9  0.190345
  10  4.40386
  11  3.79039e-05
  12  58.4049
  13  4.82796
  14  32.6676
  15  7.18385e-05
  16  31.5488
  17  0.00409246
  18  0.0525833
  19  1.6134
  20  23.3082
  21  10.6948
  22  5.19217e-06
  23  0.258971
  24  0.147806
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.251e+01  5.840e+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:  8.725e-01  1.478e-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:  1.033e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/452025/likelihoodResults_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.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) = 6915.10926405
delta logL = 0.37615639258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6915.08936082
delta logL = 0.396059626484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.122       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3613       1.0000          .0000       10.000    
     3 'Normalizat'    .98306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89344       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=   6915.089     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      283 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.124        63.955        .66681E-04    .98715E-04
   2  Index         3.3612        1.1827        .57084E-02    .79799E-04
   3  Normalizat    .98310        .25172        .31626E-03    .68839E-04
   4  Prefactor     .89339        .14900        .19923E-03    .11620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1239
  Index      = 3.36119
  Normalizat = 0.983105
  Prefactor  = 0.893388
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.089     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.124        49.945        .26673E-05   -1.4505    
   2  Index         3.3612        .92524        .22834E-03   -.33393    
   3  Normalizat    .98310        .25102        .12650E-04   -.93599    
   4  Prefactor     .89339        .14837        .39846E-04   -.96373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00818e-11
Minuit parameter uncertainties:
  1  50.0027
  2  0.931261
  3  0.251319
  4  0.148434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452025': 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) = 6915.08936068
delta logL = 0.39605976224

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.612e+01  5.000e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.361e+00  9.313e-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:  8.934e-01  1.484e-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:  9.831e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 229.244 19.581
Photon Index (Free Index): 3.36 +/- 0.93
Photon Flux (Free Index): 1.13e-07 +/- 8.09e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/452025/cmap_HighResolution_370742401_371001601_4FGL_J1516.9+1934_daily_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='1.97e-05', photon_flux_error='5.89e-08', dlogl='3.96e-01', energy_flux='1.96e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-11 23:27:47.668077', photon_index_error2='0.93', photon_index2='3.36', ts='1.99', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.33e-05', EG='1.03', time_epoch_completed='1631428067.67', return_code='0', job_id='452025', GAL2='0.89', EG2='0.98', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='8.09e-08', ts2='2.85', photon_index='2.58' WHERE bin_id='507' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:27:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 452025: <4FGL_J1516.9+1934_daily_bin507> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin507> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:16:04 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:16:05 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:16:05 2021
Terminated at Sat Sep 11 23:27:48 2021
Results reported at Sat Sep 11 23:27:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin507 229.244 19.5805 370742401 371001601 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 :                                   684.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

