/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin55
RA = 229.244, Dec = 19.5805
tmin = 253584001, tmax = 253843201
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='448097', job_status='RUN', time_executed='2021-09-11 23:02:37.710102', time_epoch_executed='1631426557.71' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448097/ft1_4FGL_J1516.9+1934_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448097/ft2_4FGL_J1516.9+1934_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448097/ft1_4FGL_J1516.9+1934_daily_bin55.fits outfile=/scratch/kocevski/448097/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin55.fits ra=229.244 dec=19.5805 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.43
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448097/ft1_filtered_4FGL_J1516.9+1934_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/448097/ft2_4FGL_J1516.9+1934_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/448097/ltcube_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.fits outfile=/scratch/kocevski/448097/expmap_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.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/448097/ltcube_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.fits
.....................!
real 190.86
user 184.96
sys 5.38

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/448097/ft1_filtered_4FGL_J1516.9+1934_daily_bin55.fits scfile=/scratch/kocevski/448097/ft2_4FGL_J1516.9+1934_daily_bin55.fits outfile=/scratch/kocevski/448097/cmap_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.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/448097/ft1_filtered_4FGL_J1516.9+1934_daily_bin55.fits scfile=/scratch/kocevski/448097/ft2_4FGL_J1516.9+1934_daily_bin55.fits outfile=/scratch/kocevski/448097/cmap_HighResolution_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60667       1.0000         .10000E-03   10000.    
     2 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.308       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7738       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9874       1.0000         .10000E-03   10000.    
    11 'norm      '    32.798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6867       1.0000         .10000E-03   10000.    
    21 'norm      '    8.0915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80121       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1142       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=   7560.244     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2703 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61147        5.8508       -.48575E-05    .41573E-03
   2  norm          .10000E-03    1.3733       -.19695E-05** at limit **
   3  norm          .10000E-03    2.5787        .19323E-05** at limit **
   4  Prefactor     .10000E-03    7.6516       -.52504E-06** at limit **
   5  Prefactor     23.767        17.747        .52257E-05   -.40508E-04
   6  Prefactor     2.9543        29.952        .61498E-04   -.27652E-04
   7  Prefactor     .10000E-03    16.612       -.26322E-05** at limit **
   8  Prefactor     17.307        10.594       -.27782E-06    .38204E-04
   9  norm          2.7738        .34492       -.11173E-06    .10464E-02
  10  norm          5.9877        6.2985        .62047E-06    .10624E-02
  11  norm          32.779        41.481       -.16473E-04   -.22741E-05
  12  Prefactor     25.012        46.260       -.22444E-04    .12342E-04
  13  Prefactor     10.665        9.1829       -.91215E-07    .29271E-05
  14  Prefactor     9.5861        22.310       -.27223E-05    .10957E-04
  15  Prefactor     9.8680        20.919       -.26427E-05   -.23890E-04
  16  Prefactor     14.713        26.155       -.38160E-06    .16850E-05
  17  Prefactor     .10000E-03    .89093       -.41652E-07** at limit **
  18  Prefactor     .10000E-03    13.965        .22663E-05** at limit **
  19  norm          .10000E-03    .95965        .44718E-06** at limit **
  20  Prefactor     8.6111        39.605       -.10023E-03    .41096E-05
  21  norm          8.0923        6.3309        .49482E-06    .57018E-04
  22  Prefactor     .10000E-03    2.6562        .73745E-06** at limit **
  23  Normalizat    .80131        .22495        .21220E-05    .37112E-03
  24  Prefactor     1.1142        .13754        .37868E-05    .23554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.611471
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.7668
  Prefactor  = 2.95431
  Prefactor  = 0.000100001
  Prefactor  = 17.3067
  norm       = 2.77375
  norm       = 5.98771
  norm       = 32.7792
  Prefactor  = 25.0117
  Prefactor  = 10.6648
  Prefactor  = 9.58611
  Prefactor  = 9.86799
  Prefactor  = 14.7129
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 8.61107
  norm       = 8.09231
  Prefactor  = 0.0001
  Normalizat = 0.801308
  Prefactor  = 1.11423
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.244     FROM HESSE     STATUS=OK           407 CALLS     3110 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61147        20.757        .40281E-02   -1.5552    
   2  norm          .10000E-03    2.6452        .19721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6458        .27257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.767        17.715        .82156E-04   -1.4733    
   6  Prefactor     2.9543        29.527        .23533E-03   -1.5364    
   7  Prefactor     .10000E-03    16.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.307        10.599        .96271E-04   -1.4876    
   9  norm          2.7738        .34540        .17245E-04   -1.5375    
  10  norm          5.9877        6.3055        .82049E-03   -1.5219    
  11  norm          32.779        41.492        .69969E-04   -1.4562    
  12  Prefactor     25.012        46.397        .80071E-04   -1.4707    
  13  Prefactor     10.665        9.1837        .12268E-03   -1.5055    
  14  Prefactor     9.5861        22.304        .12943E-03   -1.5089    
  15  Prefactor     9.8680        20.952        .12753E-03   -1.5080    
  16  Prefactor     14.713        26.127        .10442E-03   -1.4941    
  17  Prefactor     .10000E-03    .89724        .80110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .97192        .83157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6111        39.904        .13600E-03   -1.5121    
  21  norm          8.0923        6.3287        .14095E-03   -1.5139    
  22  Prefactor     .10000E-03    2.6594        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80131        .25947        .36569E-03   -1.0002    
  24  Prefactor     1.1142        .15939        .20152E-03   -.89013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98169e-09
Minuit parameter uncertainties:
  1  7.12741
  2  0.000152225
  3  2.97778e-05
  4  0.000128142
  5  17.7188
  6  18.6913
  7  0.000255281
  8  10.5997
  9  0.345403
  10  6.30618
  11  41.5282
  12  46.4643
  13  9.18492
  14  22.323
  15  20.9681
  16  26.147
  17  4.31735e-06
  18  0.000428706
  19  4.37111e-05
  20  37.1141
  21  6.32923
  22  8.0817e-07
  23  0.259867
  24  0.159455
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.501e+01  4.646e+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.114e+00  1.595e-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:  8.013e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448097/likelihoodResults_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.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) = 7559.28373595
delta logL = 0.960406794802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7559.23665371
delta logL = 1.0074890345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38730       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8823       1.0000          .0000       10.000    
     3 'Normalizat'    .71130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1536       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=   7559.237     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      292 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38481        3.8524        .87813E-02    .20820E-02
   2  Index         5.8867        2.5701        .15688        .18375E-03
   3  Normalizat    .71148        .46955E-01    .87157E-01    .41232E-04
   4  Prefactor     1.1536        .30181E-01    .35832E-01   -.53099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.384808
  Index      = 5.88665
  Normalizat = 0.711481
  Prefactor  = 1.15359
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.237     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38481        10.654        .40204E-03   -1.5584    
   2  Index         5.8867        7.5330        .56276E-02    .17827    
   3  Normalizat    .71148        .18609        .38605E-03   -1.0344    
   4  Prefactor     1.1536        .11730        .19842E-03   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39999e-10
Minuit parameter uncertainties:
  1  4.04977
  2  5.74727
  3  0.186259
  4  0.117325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448097': 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): 102
logL (Free Index) = 7559.2366497
delta logL = 1.00749304344

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.848e-01  4.050e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  5.887e+00  5.747e+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:  1.154e+00  1.173e-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.115e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 229.244 19.581
Photon Index (Free Index): 5.89 +/- 5.75
Photon Flux (Free Index): 8.42e-08 +/- 6.83e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.04e-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/448097/cmap_HighResolution_253584001_253843201_4FGL_J1516.9+1934_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.01e+00', photon_flux2='8.42e-08', job_status='DONE', time_completed='2021-09-11 23:14:17.738736', photon_index_error2='5.75', photon_index2='5.89', ts='0.36', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.04e-05', EG='0.80', time_epoch_completed='1631427257.74', return_code='0', job_id='448097', GAL2='1.15', EG2='0.71', return_code2='102', photon_flux_error2='6.83e-08', ts2='2.54', photon_index='2.58' WHERE bin_id='55' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 448097: <4FGL_J1516.9+1934_daily_bin55> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin55> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:48 2021
Job was executed on host(s) <bullet0221>, 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:14:18 2021
Results reported at Sat Sep 11 23:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin55 229.244 19.5805 253584001 253843201 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 :                                   697.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

