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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin488
RA = 229.244, Dec = 19.5805
tmin = 365817601, tmax = 366076801
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='451998', job_status='RUN', time_executed='2021-09-11 23:16:18.199406', time_epoch_executed='1631427378.2' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451998

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451998/ft1_4FGL_J1516.9+1934_daily_bin488.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451998/ft2_4FGL_J1516.9+1934_daily_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451998/ft1_4FGL_J1516.9+1934_daily_bin488.fits outfile=/scratch/kocevski/451998/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin488.fits ra=229.244 dec=19.5805 rad=12.0 tmin=365817601.0 tmax=366076801.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.60
user 3.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451998/ft1_filtered_4FGL_J1516.9+1934_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/451998/ft2_4FGL_J1516.9+1934_daily_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/451998/ltcube_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.fits outfile=/scratch/kocevski/451998/expmap_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.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/451998/ltcube_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.fits
.....................!
real 191.53
user 187.07
sys 4.09

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/451998/ft1_filtered_4FGL_J1516.9+1934_daily_bin488.fits scfile=/scratch/kocevski/451998/ft2_4FGL_J1516.9+1934_daily_bin488.fits outfile=/scratch/kocevski/451998/cmap_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451998/ft1_filtered_4FGL_J1516.9+1934_daily_bin488.fits scfile=/scratch/kocevski/451998/ft2_4FGL_J1516.9+1934_daily_bin488.fits outfile=/scratch/kocevski/451998/cmap_HighResolution_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3554       1.0000         .10000E-03   10000.    
     2 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.578       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11916E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .18998       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11726E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.781       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6295       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54912       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9693       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .54431       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98466       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=   7544.903     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2818 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3606        10.971       -.58363E-05    .15698E-03
   2  norm          .10000E-03    1.4374        .11907E-06** at limit **
   3  norm          20.582        7.0419       -.35309E-05    .10717E-02
   4  Prefactor     9.2120        24.673       -.10236E-04   -.33607E-04
   5  Prefactor     .10000E-03    7.3411        .56868E-06** at limit **
   6  Prefactor     .35050        23.026        .34327E-05   -.13546E-03
   7  Prefactor     .10000E-03    11.593        .10365E-05** at limit **
   8  Prefactor     .10000E-03    6.8902       -.30750E-06** at limit **
   9  norm          .18999        .11923       -.34524E-07   -.83313E-03
  10  norm          .10000E-03    2.1961       -.47841E-08** at limit **
  11  norm          .10000E-03    12.495        .56412E-05** at limit **
  12  Prefactor     24.750        42.839       -.13810E-06   -.25967E-04
  13  Prefactor     .10000E-03    2.8040        .11776E-06** at limit **
  14  Prefactor     5.6232        48.109        .75957E-05   -.59957E-04
  15  Prefactor     .10000E-03    3.6674       -.80905E-07** at limit **
  16  Prefactor     19.606        19.772        .35721E-05   -.10292E-03
  17  Prefactor     .54833        2.0237       -.18869E-05   -.18291E-02
  18  Prefactor     8.9669        35.502        .57378E-05   -.21293E-04
  19  norm          .10000E-03    .84716       -.10086E-06** at limit **
  20  Prefactor     .10000E-03    11.899       -.56351E-05** at limit **
  21  norm          .10001E-03    3.5900       -.99731E-06** at limit **
  22  Prefactor     .47368        6.6925       -.14993E-05    .13309E-03
  23  Normalizat    1.0977        .21339        .25539E-05    .25977E-04
  24  Prefactor     .98482        .12352        .28187E-07    .31176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36059
  norm       = 0.0001
  norm       = 20.582
  Prefactor  = 9.21197
  Prefactor  = 0.0001
  Prefactor  = 0.350504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.189992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7502
  Prefactor  = 0.0001
  Prefactor  = 5.62324
  Prefactor  = 0.0001
  Prefactor  = 19.6063
  Prefactor  = 0.548329
  Prefactor  = 8.96689
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.473678
  Normalizat = 1.09769
  Prefactor  = 0.984815
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.903     FROM HESSE     STATUS=OK           409 CALLS     3227 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3606        10.985        .14789E-03   -1.5165    
   2  norm          .10000E-03    1.4747        .20332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.582        6.9840        .88294E-04   -1.4800    
   4  Prefactor     9.2120        24.830        .13219E-03   -1.5101    
   5  Prefactor     .10000E-03    7.3572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35050        27.819        .11235       -1.5590    
   7  Prefactor     .10000E-03    11.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .18999        .11886        .22989E-04   -1.5621    
  10  norm          .10000E-03    2.1983        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.750        42.885        .80469E-04   -1.4713    
  13  Prefactor     .10000E-03    2.8114        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6232        48.092        .16931E-03   -1.5234    
  15  Prefactor     .10000E-03    3.6698        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.606        19.772        .90492E-04   -1.4822    
  17  Prefactor     .54833        2.0917        .23599E-03   -1.5560    
  18  Prefactor     8.9669        35.433        .13383E-03   -1.5109    
  19  norm          .10000E-03    1.5621        .15551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    15.005        .31760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .47368        73.535        .42635E-02   -1.5570    
  23  Normalizat    1.0977        .25858        .31028E-03   -.89826    
  24  Prefactor     .98482        .15069        .19887E-03   -.93237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5544e-09
Minuit parameter uncertainties:
  1  10.9882
  2  1.57936e-05
  3  6.98427
  4  24.8577
  5  1.76274e-06
  6  6.24731
  7  2.76562e-05
  8  1.45728e-05
  9  0.11886
  10  6.97406e-07
  11  0.0001465
  12  42.9381
  13  3.81773e-06
  14  32.9251
  15  1.75329e-07
  16  19.7788
  17  2.092
  18  35.5165
  19  1.53177e-05
  20  0.000114278
  21  0.000578811
  22  11.8173
  23  0.258882
  24  0.150758
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.475e+01  4.294e+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:  9.848e-01  1.508e-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.098e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/451998/likelihoodResults_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.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) = 7544.4498163
delta logL = 0.453421999362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7544.4347045
delta logL = 0.468533794174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.851       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5125       1.0000          .0000       10.000    
     3 'Normalizat'    1.1169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97577       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=   7544.435     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      230 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.773        35.485        .17749E-02    .17833E-03
   2  Index         1.5101        .43159        .20375       -.24214E-03
   3  Normalizat    1.1171        .19934        .69551E-01    .71317E-04
   4  Prefactor     .97562        .12249        .45964E-01    .25544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7731
  Index      = 1.51007
  Normalizat = 1.11712
  Prefactor  = 0.975625
 **********
 **   18 **HESSE 
 **********

 FCN=   7544.435     FROM HESSE     STATUS=OK            29 CALLS      259 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.773        44.280        .70997E-04   -1.4580    
   2  Index         1.5101        .64920        .10243E-01   -.77258    
   3  Normalizat    1.1171        .24191        .30774E-03   -.89204    
   4  Prefactor     .97562        .14889        .19959E-03   -.93546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09759e-10
Minuit parameter uncertainties:
  1  44.3255
  2  0.652814
  3  0.242152
  4  0.148951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451998': 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) = 7544.43469752
delta logL = 0.468540775291

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.177e+01  4.433e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  1.510e+00  6.528e-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:  9.756e-01  1.490e-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.117e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 229.244 19.581
Photon Index (Free Index): 1.51 +/- 0.65
Photon Flux (Free Index): 1.18e-08 +/- 1.74e-08
Energy Flux (Free Index): 3.60e-05 +/- 5.94e-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/451998/cmap_HighResolution_365817601_366076801_4FGL_J1516.9+1934_daily_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-03', comment='SUCCESS', energy_flux2='3.60e-05', dlogl='4.69e-01', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-09-11 23:27:57.526953', photon_index_error2='0.65', photon_index2='1.51', ts='0.43', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='5.94e-05', EG='1.10', time_epoch_completed='1631428077.53', return_code='0', job_id='451998', GAL2='0.98', EG2='1.12', return_code2='0', photon_flux_error2='1.74e-08', ts2='1.36', photon_index='2.58' WHERE bin_id='488' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 451998: <4FGL_J1516.9+1934_daily_bin488> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin488> 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) <bullet0205>, 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:58 2021
Results reported at Sat Sep 11 23:27:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin488 229.244 19.5805 365817601 366076801 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 :                                   693.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            716 sec.

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

