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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin487
RA = 229.244, Dec = 19.5805
tmin = 365558401, tmax = 365817601
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='451996', job_status='RUN', time_executed='2021-09-11 23:16:16.324001', time_epoch_executed='1631427376.32' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451996/ft1_4FGL_J1516.9+1934_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451996/ft2_4FGL_J1516.9+1934_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451996/ft1_4FGL_J1516.9+1934_daily_bin487.fits outfile=/scratch/kocevski/451996/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin487.fits ra=229.244 dec=19.5805 rad=12.0 tmin=365558401.0 tmax=365817601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.57
user 3.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451996/ft1_filtered_4FGL_J1516.9+1934_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/451996/ft2_4FGL_J1516.9+1934_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/451996/ltcube_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.fits outfile=/scratch/kocevski/451996/expmap_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.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/451996/ltcube_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.fits
.....................!
real 192.50
user 186.96
sys 5.01

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/451996/ft1_filtered_4FGL_J1516.9+1934_daily_bin487.fits scfile=/scratch/kocevski/451996/ft2_4FGL_J1516.9+1934_daily_bin487.fits outfile=/scratch/kocevski/451996/cmap_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451996/ft1_filtered_4FGL_J1516.9+1934_daily_bin487.fits scfile=/scratch/kocevski/451996/ft2_4FGL_J1516.9+1934_daily_bin487.fits outfile=/scratch/kocevski/451996/cmap_HighResolution_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.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/451996/ft1_filtered_4FGL_J1516.9+1934_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/451996/ft2_4FGL_J1516.9+1934_daily_bin487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/451996/Model_4FGL_J1516.9+1934_daily_bin487.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/451996/ft1_filtered_4FGL_J1516.9+1934_daily_bin487.fits.....................!
real 56.78
user 55.30
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3063       1.0000         .10000E-03   10000.    
     2 'norm      '    .26738       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74468E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    33.151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26033E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.616       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.516       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2224       1.0000         .10000E-03   10000.    
    21 'norm      '    19.694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3630       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76225       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=   7387.837     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2746 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3052        13.054       -.34312E-05    .60295E-04
   2  norm          .25641        1.5622       -.10292E-05    .74400E-03
   3  norm          .10000E-03    1.7896       -.30330E-07** at limit **
   4  Prefactor     .10000E-03    16.535        .12815E-04** at limit **
   5  Prefactor     .10000E-03    11.369        .42858E-05** at limit **
   6  Prefactor     11.714        23.926       -.63375E-05   -.10299E-04
   7  Prefactor     .10000E-03    15.406       -.15505E-04** at limit **
   8  Prefactor     .10000E-03    5.2591        .14504E-06** at limit **
   9  norm          .74503E-01    .13084       -.15497E-06   -.57510E-02
  10  norm          .10000E-03    2.9313       -.10416E-07** at limit **
  11  norm          33.147        37.301       -.39010E-05    .56163E-05
  12  Prefactor     29.897        40.439       -.64983E-06    .29118E-04
  13  Prefactor     .10001E-03    6.4736       -.10055E-05** at limit **
  14  Prefactor     49.607        33.470       -.56925E-05    .38639E-04
  15  Prefactor     .10000E-03    6.5948        .24859E-06** at limit **
  16  Prefactor     11.899        15.796       -.59861E-06    .91384E-05
  17  Prefactor     .10000E-03    .81553       -.12079E-06** at limit **
  18  Prefactor     20.487        30.862       -.14478E-04    .63469E-05
  19  norm          5.8731        3.4030       -.18825E-06   -.16938E-03
  20  Prefactor     9.2130        25.245        .78928E-05    .44692E-05
  21  norm          19.694        11.175        .52089E-06   -.19482E-05
  22  Prefactor     .10000E-03    8.1156       -.12860E-05** at limit **
  23  Normalizat    1.3625        .21210        .31674E-05    .23371E-03
  24  Prefactor     .76260        .12312        .71218E-06    .44476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.30525
  norm       = 0.256408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0745031
  norm       = 0.0001
  norm       = 33.1465
  Prefactor  = 29.8972
  Prefactor  = 0.000100009
  Prefactor  = 49.6068
  Prefactor  = 0.0001
  Prefactor  = 11.8987
  Prefactor  = 0.0001
  Prefactor  = 20.4874
  norm       = 5.87307
  Prefactor  = 9.21298
  norm       = 19.6937
  Prefactor  = 0.0001
  Normalizat = 1.36247
  Prefactor  = 0.762602
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.837     FROM HESSE     STATUS=OK           411 CALLS     3157 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3052        13.056        .13137E-03   -1.5098    
   2  norm          .25641        6.9037        .20078E-02   -1.5607    
   3  norm          .10000E-03    1.7967        .11227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.714        23.966        .11704E-03   -1.5023    
   7  Prefactor     .10000E-03    15.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74503E-01    .11737        .39462E-03   -1.5653    
  10  norm          .10000E-03    2.9378        .14370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          33.147        37.312        .34798E-03   -1.4556    
  12  Prefactor     29.897        40.479        .73276E-04   -1.4614    
  13  Prefactor     .10001E-03    11.207        .63745E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.607        33.494        .56931E-04   -1.4298    
  15  Prefactor     .10000E-03    6.6124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.899        15.793        .11613E-03   -1.5018    
  17  Prefactor     .10000E-03    1.4351        .15086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.487        30.866        .88427E-04   -1.4802    
  19  norm          5.8731        3.4011        .11207E-03   -1.5223    
  20  Prefactor     9.2130        25.191        .13197E-03   -1.5101    
  21  norm          19.694        11.163        .90252E-04   -1.4820    
  22  Prefactor     .10000E-03    8.4522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3625        .25440        .28268E-03   -.81720    
  24  Prefactor     .76260        .14790        .21919E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58226e-09
Minuit parameter uncertainties:
  1  13.0599
  2  2.66077
  3  5.19985e-06
  4  5.92173e-05
  5  3.69832e-05
  6  23.9853
  7  2.65617e-05
  8  1.59343e-05
  9  0.117366
  10  4.34721e-07
  11  37.3378
  12  40.5157
  13  0.000651028
  14  33.507
  15  9.84963e-06
  16  15.7988
  17  1.73094e-05
  18  30.8903
  19  3.40123
  20  25.2201
  21  11.1642
  22  1.33718e-05
  23  0.254634
  24  0.147977
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.990e+01  4.052e+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:  7.626e-01  1.480e-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.362e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/451996/likelihoodResults_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.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) = 7387.83344375
delta logL = 0.00404487442847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7387.83275257
delta logL = 0.00473605990464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.468       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6733       1.0000          .0000       10.000    
     3 'Normalizat'    1.3598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76357       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=   7387.833     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      227 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.468        1392.2        .18772E-02    .17570E-03
   2  Index         2.6732        6.0445        .22970        .60006E-04
   3  Normalizat    1.3599        .75321E-01    .63958E-01    .51824E-05
   4  Prefactor     .76348        .41641E-01    .43241E-01    .14585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4683
  Index      = 2.67323
  Normalizat = 1.35994
  Prefactor  = 0.763485
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.833     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.468        43.362        .75087E-04   -1.4640    
   2  Index         2.6732        .99528        .11956E-01   -.48404    
   3  Normalizat    1.3599        .24371        .28290E-03   -.81794    
   4  Prefactor     .76348        .14564        .21907E-03   -1.0109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42586e-09
Minuit parameter uncertainties:
  1  43.4098
  2  1.00386
  3  0.243921
  4  0.145712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451996': 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) = 7387.83275237
delta logL = 0.0047362595169

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.847e+01  4.341e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.673e+00  1.004e+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:  7.635e-01  1.457e-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.360e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/451996/cmap_HighResolution_365558401_365817601_4FGL_J1516.9+1934_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-11 23:27:41.044109', job_id='451996', GAL2='0.76', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631428061.04', return_code2='0', ts='0.83', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.74e-03', ts2='0.84', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='487' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:27:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 451996: <4FGL_J1516.9+1934_daily_bin487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin487 229.244 19.5805 365558401 365817601 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 :                                   680.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

