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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin743
RA = 229.244, Dec = 19.5805
tmin = 431913601, tmax = 432172801
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='453825', job_status='RUN', time_executed='2021-09-11 23:21:41.060807', time_epoch_executed='1631427701.06' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453825/ft1_4FGL_J1516.9+1934_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453825/ft2_4FGL_J1516.9+1934_daily_bin743.fits


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

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

Done.
real 5.26
user 4.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453825/ft2_4FGL_J1516.9+1934_daily_bin743.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/453825/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/453825/ft1_filtered_4FGL_J1516.9+1934_daily_bin743.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/453825/ft1_filtered_4FGL_J1516.9+1934_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/453825/ft2_4FGL_J1516.9+1934_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/453825/ltcube_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.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/453825/ft2_4FGL_J1516.9+1934_daily_bin743.fits
.....................!
real 12.06
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453825/ft1_filtered_4FGL_J1516.9+1934_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/453825/ft2_4FGL_J1516.9+1934_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/453825/ltcube_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.fits outfile=/scratch/kocevski/453825/expmap_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.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/453825/ltcube_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.fits
.....................!
real 192.07
user 185.27
sys 6.26

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/453825/ft1_filtered_4FGL_J1516.9+1934_daily_bin743.fits scfile=/scratch/kocevski/453825/ft2_4FGL_J1516.9+1934_daily_bin743.fits outfile=/scratch/kocevski/453825/cmap_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453825/ft1_filtered_4FGL_J1516.9+1934_daily_bin743.fits scfile=/scratch/kocevski/453825/ft2_4FGL_J1516.9+1934_daily_bin743.fits outfile=/scratch/kocevski/453825/cmap_HighResolution_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1849       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7549       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9778       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.242       1.0000         .10000E-03   10000.    
     9 'norm      '    .52688E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    6.4369       1.0000         .10000E-03   10000.    
    11 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7937       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48853       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13216E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11766E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.4034       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3609       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1336       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0021       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=   9406.885     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3192 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1973        9.2375       -.28545E-05   -.13280E-03
   2  norm          3.7530        2.7640       -.20898E-06   -.12264E-03
   3  norm          3.1378        4.6660       -.10744E-05   -.62295E-03
   4  Prefactor     .10000E-03    21.411       -.23993E-05** at limit **
   5  Prefactor     8.9441        16.194        .22369E-05    .93774E-04
   6  Prefactor     .10000E-03    11.480       -.25740E-05** at limit **
   7  Prefactor     17.960        31.801       -.16809E-04    .40023E-04
   8  Prefactor     24.255        10.497       -.26667E-06    .10615E-03
   9  norm          .52794E-01    .11207       -.29024E-06   -.58636E-02
  10  norm          6.4344        6.8388       -.17345E-05   -.38659E-05
  11  norm          .10000E-03    11.026       -.55614E-05** at limit **
  12  Prefactor     7.8248        54.116       -.65190E-04    .80010E-05
  13  Prefactor     .10000E-03    20.137        .17223E-05** at limit **
  14  Prefactor     .56227        18.729        .23586E-05   -.32723E-03
  15  Prefactor     3.7037        11.574       -.11317E-04   -.13824E-03
  16  Prefactor     .10000E-03    11.169        .86700E-05** at limit **
  17  Prefactor     .10000E-03    1.0278       -.15449E-06** at limit **
  18  Prefactor     .14513E-03    19.829       -.37879E-05** at limit **
  19  norm          .10000E-03    .74163       -.54426E-07** at limit **
  20  Prefactor     .10000E-03    9.3591       -.29426E-08** at limit **
  21  norm          6.3989        6.3990       -.12688E-05   -.15937E-03
  22  Prefactor     3.3587        5.0788       -.64118E-06   -.25099E-03
  23  Normalizat    1.1337        .19558        .54769E-05    .31280E-03
  24  Prefactor     1.0020        .11451        .11955E-05    .77452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19729
  norm       = 3.75301
  norm       = 3.13781
  Prefactor  = 0.0001
  Prefactor  = 8.94408
  Prefactor  = 0.0001
  Prefactor  = 17.9603
  Prefactor  = 24.2555
  norm       = 0.0527943
  norm       = 6.43444
  norm       = 0.0001
  Prefactor  = 7.82479
  Prefactor  = 0.0001
  Prefactor  = 0.562271
  Prefactor  = 3.70366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000145128
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.39894
  Prefactor  = 3.3587
  Normalizat = 1.1337
  Prefactor  = 1.00198
 **********
 **   18 **HESSE 
 **********

 FCN=   9406.885     FROM HESSE     STATUS=OK           423 CALLS     3615 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1973        9.2439        .19701E-03   -1.5298    
   2  norm          3.7530        2.7621        .13329E-03   -1.5320    
   3  norm          3.1378        4.6688        .22868E-03   -1.5354    
   4  Prefactor     .10000E-03    21.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9441        16.184        .13377E-03   -1.5110    
   6  Prefactor     .10000E-03    11.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.960        31.700        .94600E-04   -1.4860    
   8  Prefactor     24.255        10.503        .81358E-04   -1.4723    
   9  norm          .52794E-01    .11872        .44183E-03   -1.5662    
  10  norm          6.4344        6.8058        .15819E-03   -1.5201    
  11  norm          .10000E-03    11.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8248        53.960        .14363E-03   -1.5148    
  13  Prefactor     .10000E-03    20.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .56227        24.678        .11115       -1.5558    
  15  Prefactor     3.7037        11.627        .20994E-03   -1.5323    
  16  Prefactor     .10000E-03    11.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8520        .18985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14513E-03    21.368        .11379       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .75708        .81505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.3989        6.4036        .15861E-03   -1.5202    
  22  Prefactor     3.3587        5.0731        .22074E-03   -1.5341    
  23  Normalizat    1.1337        .23740        .30797E-03   -.88677    
  24  Prefactor     1.0020        .14029        .19978E-03   -.92664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38362e-09
Minuit parameter uncertainties:
  1  9.24702
  2  2.76216
  3  4.66937
  4  4.53232e-06
  5  16.1923
  6  0.000100168
  7  31.7299
  8  10.5035
  9  0.118724
  10  6.80659
  11  6.06947e-06
  12  41.1494
  13  0.000139988
  14  7.45259
  15  11.6342
  16  2.32921e-05
  17  2.19096e-05
  18  0.0621277
  19  4.07902e-06
  20  1.42436e-05
  21  6.40425
  22  5.07374
  23  0.23762
  24  0.140344
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.825e+00  4.115e+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.002e+00  1.403e-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.134e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/453825/likelihoodResults_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.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) = 9406.84499
delta logL = 0.0399946457383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9406.84418533
delta logL = 0.0407993137796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9355       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0940       1.0000          .0000       10.000    
     3 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0047       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9406.844     FROM MIGRAD    STATUS=FAILED        96 CALLS      283 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9609        33.553        .14234E-03    .10878E-02
   2  Index         3.0923        1.9384        .70972E-02    .12027E-02
   3  Normalizat    1.1242        .22816        .30911E-03   -.64730E-04
   4  Prefactor     1.0047        .13873        .19954E-03   -.21549E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9406.844     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      358 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9609        33.553        .65067E-03   -1.5144    
   2  Index         3.0923        1.9384        .23108E-02   -.39146    
   3  Normalizat    1.1242        .22816        .30463E-03   -.88977    
   4  Prefactor     1.0047        .13873        .19766E-03   -.92574    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9406.844     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      385 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9675        30.229        .28467E-04    .57476E-03
   2  Index         3.0915        1.8002        .28389E-03    .78987E-04
   3  Normalizat    1.1242        .22849        .12365E-04    .75763E-04
   4  Prefactor     1.0047        .13885        .39908E-04   -.16978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.96754
  Index      = 3.09155
  Normalizat = 1.12423
  Prefactor  = 1.00469
 **********
 **   18 **HESSE 
 **********

 FCN=   9406.844     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9675        30.133        .56935E-05   -1.5143    
   2  Index         3.0915        1.7954        .56778E-04   -.39162    
   3  Normalizat    1.1242        .22820        .24729E-05   -.88978    
   4  Prefactor     1.0047        .13872        .79816E-05   -.92573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4367e-09
Minuit parameter uncertainties:
  1  30.1907
  2  1.84389
  3  0.228397
  4  0.138771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453825': 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) = 9406.84418369
delta logL = 0.0408009574658

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.968e+00  3.019e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.092e+00  1.844e+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.005e+00  1.388e-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.124e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/453825/cmap_HighResolution_431913601_432172801_4FGL_J1516.9+1934_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-11 23:35:50.018283', job_id='453825', GAL2='1.00', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631428550.02', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.08e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='743' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 453825: <4FGL_J1516.9+1934_daily_bin743> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin743> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:21:12 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:21:14 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:21:14 2021
Terminated at Sat Sep 11 23:35:50 2021
Results reported at Sat Sep 11 23:35:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin743 229.244 19.5805 431913601 432172801 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 :                                   845.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

