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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin559
RA = 229.244, Dec = 19.5805
tmin = 384220801, tmax = 384480001
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='452099', job_status='RUN', time_executed='2021-09-11 23:20:18.735009', time_epoch_executed='1631427618.74' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452099/ft1_4FGL_J1516.9+1934_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452099/ft2_4FGL_J1516.9+1934_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452099/ft1_4FGL_J1516.9+1934_daily_bin559.fits outfile=/scratch/kocevski/452099/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin559.fits ra=229.244 dec=19.5805 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.61
user 13.13
sys 0.43

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452099/ft1_filtered_4FGL_J1516.9+1934_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/452099/ft2_4FGL_J1516.9+1934_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/452099/ltcube_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.fits outfile=/scratch/kocevski/452099/expmap_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.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/452099/ltcube_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.fits
.....................!
real 190.47
user 186.19
sys 3.96

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/452099/ft1_filtered_4FGL_J1516.9+1934_daily_bin559.fits scfile=/scratch/kocevski/452099/ft2_4FGL_J1516.9+1934_daily_bin559.fits outfile=/scratch/kocevski/452099/cmap_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.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.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452099/ft1_filtered_4FGL_J1516.9+1934_daily_bin559.fits scfile=/scratch/kocevski/452099/ft2_4FGL_J1516.9+1934_daily_bin559.fits outfile=/scratch/kocevski/452099/cmap_HighResolution_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.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/452099/ft1_filtered_4FGL_J1516.9+1934_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/452099/ft2_4FGL_J1516.9+1934_daily_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452099/Model_4FGL_J1516.9+1934_daily_bin559.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/452099/ft1_filtered_4FGL_J1516.9+1934_daily_bin559.fits.....................!
real 24.93
user 23.71
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.331       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.3084       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.236       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .16628       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    66.204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    93.632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .30190E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .35442       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0041       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84981       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=   1949.831     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2708 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.337        20.098       -.50653E-06   -.27303E-04
   2  norm          .10000E-03    2.5879        .13304E-06** at limit **
   3  norm          8.3105        7.8209        .17152E-05   -.99753E-04
   4  Prefactor     46.254        49.483        .17004E-04   -.21013E-04
   5  Prefactor     27.842        43.108        .20428E-05   -.23038E-04
   6  Prefactor     .10000E-03    25.978        .28190E-05** at limit **
   7  Prefactor     .10000E-03    39.774        .15586E-05** at limit **
   8  Prefactor     .10000E-03    7.7253        .41346E-07** at limit **
   9  norm          .16602        .47512       -.46608E-06   -.38110E-02
  10  norm          .10000E-03    17.026        .11452E-05** at limit **
  11  norm          66.243        106.94        .42312E-04   -.41810E-05
  12  Prefactor     93.616        129.35       -.13751E-04   -.37477E-04
  13  Prefactor     21.222        27.950        .14570E-04   -.10591E-03
  14  Prefactor     60.599        109.58        .16833E-03   -.15719E-04
  15  Prefactor     .10000E-03    10.817        .17940E-07** at limit **
  16  Prefactor     .10000E-03    21.810       -.55702E-05** at limit **
  17  Prefactor     4.7635        5.9336        .20257E-05   -.22685E-03
  18  Prefactor     .10000E-03    24.840        .44152E-05** at limit **
  19  norm          .10000E-03    6.0091       -.15754E-06** at limit **
  20  Prefactor     .10000E-03    25.609        .37554E-05** at limit **
  21  norm          .53694        28.434       -.89157E-06   -.11553E-04
  22  Prefactor     .10000E-03    28.904       -.74195E-05** at limit **
  23  Normalizat    1.0025        .43307       -.26581E-04    .70079E-04
  24  Prefactor     .85060        .25041       -.72774E-05   -.95891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3371
  norm       = 0.0001
  norm       = 8.3105
  Prefactor  = 46.2537
  Prefactor  = 27.842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.166022
  norm       = 0.0001
  norm       = 66.2428
  Prefactor  = 93.6155
  Prefactor  = 21.2216
  Prefactor  = 60.5988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76353
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.536936
  Prefactor  = 0.000100002
  Normalizat = 1.00245
  Prefactor  = 0.8506
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.831     FROM HESSE     STATUS=OK           397 CALLS     3105 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.337        20.116        .82927E-04   -1.4741    
   2  norm          .10000E-03    2.5977        .69363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.3105        7.8229        .11494E-03   -1.5131    
   4  Prefactor     46.254        49.474        .58966E-04   -1.4347    
   5  Prefactor     27.842        43.053        .75915E-04   -1.4652    
   6  Prefactor     .10000E-03    25.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7333        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16602        .43578        .48998E-03   -1.5626    
  10  norm          .10000E-03    17.029        .17800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          66.243        107.00        .24663E-03   -1.4078    
  12  Prefactor     93.616        129.67        .41533E-04   -1.3770    
  13  Prefactor     21.222        28.244        .86982E-04   -1.4786    
  14  Prefactor     60.599        109.47        .25803E-03   -1.4149    
  15  Prefactor     .10000E-03    10.823        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7635        5.9260        .11187E-03   -1.5271    
  18  Prefactor     .10000E-03    24.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    39.391        .20584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .53694        236.97        .44601E-02   -1.5561    
  22  Prefactor     .10000E-03    29.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0025        .50819        .32565E-03   -.92948    
  24  Prefactor     .85060        .29654        .21653E-03   -.97889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51642e-09
Minuit parameter uncertainties:
  1  20.1215
  2  2.36181e-05
  3  7.82387
  4  49.518
  5  43.1014
  6  0.000111158
  7  0.000112936
  8  3.83628e-05
  9  0.43579
  10  3.00994e-05
  11  107.316
  12  130.065
  13  28.2613
  14  109.838
  15  2.25885e-05
  16  5.53686e-06
  17  5.92673
  18  8.18903e-05
  19  0.000656894
  20  1.4647e-05
  21  22.6485
  22  0.000462827
  23  0.510674
  24  0.297106
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  9.362e+01  1.301e+02  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.506e-01  2.971e-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.002e+00  5.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/452099/likelihoodResults_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.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) = 1949.81223093
delta logL = 0.0182794226075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1949.79278856
delta logL = 0.0377217946802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.644       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9654       1.0000          .0000       10.000    
     3 'Normalizat'    .98117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86391       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=   1949.793     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      262 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.776        183.64        .51106E-04    .14352E-03
   2  Index         2.9621        1.8547        .62227E-02    .43302E-04
   3  Normalizat    .98068        .47299        .32882E-03   -.27579E-03
   4  Prefactor     .86430        .29524        .21493E-03    .14778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.7764
  Index      = 2.96212
  Normalizat = 0.980679
  Prefactor  = 0.864303
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.793     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.776        154.49        .10221E-04   -1.4134    
   2  Index         2.9621        1.5685        .24891E-03   -.41980    
   3  Normalizat    .98068        .47189        .65764E-04   -.93681    
   4  Prefactor     .86430        .29315        .42986E-04   -.97400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69294e-09
Minuit parameter uncertainties:
  1  155.508
  2  1.6011
  3  0.473919
  4  0.293688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452099': 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) = 1949.79278353
delta logL = 0.0377268240343

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  6.178e+01  1.555e+02  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.962e+00  1.601e+00  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.643e-01  2.937e-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.807e-01  4.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 229.244 19.581

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/452099/cmap_HighResolution_384220801_384480001_4FGL_J1516.9+1934_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-02', job_status='DONE', photon_flux_upper_limit='3.89e-07', time_completed='2021-09-11 23:27:55.201315', job_id='452099', GAL2='0.86', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1631428075.2', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.77e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='559' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:27:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 452099: <4FGL_J1516.9+1934_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin559 229.244 19.5805 384220801 384480001 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 :                                   451.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             203.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

