/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 7 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.1+4351_daily_bin90
RA = 229.049, Dec = 43.8527
tmin = 262656001, tmax = 262915201
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='422724', job_status='RUN', time_executed='2021-09-11 21:26:19.203138', time_epoch_executed='1631420779.2' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422724/ft1_4FGL_J1516.1+4351_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422724/ft1_4FGL_J1516.1+4351_daily_bin90.fits outfile=/scratch/kocevski/422724/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin90.fits ra=229.049 dec=43.8527 rad=12.0 tmin=262656001.0 tmax=262915201.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.39
user 1.22
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.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/422724/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.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/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/422724/ltcube_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.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/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits
.....................!
real 12.37
user 12.04
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/422724/ltcube_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.fits outfile=/scratch/kocevski/422724/expmap_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.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/422724/ltcube_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.fits
.....................!
real 189.44
user 184.83
sys 4.27

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits scfile=/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits outfile=/scratch/kocevski/422724/cmap_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.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.049 yref=43.8527 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits scfile=/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits outfile=/scratch/kocevski/422724/cmap_HighResolution_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.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.049 yref=43.8527 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422724/Model_4FGL_J1516.1+4351_daily_bin90.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/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits.....................!
real 37.60
user 36.27
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits', '/scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits', expMap='/scratch/kocevski/422724/expmap_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.fits', expCube='/scratch/kocevski/422724/ltcube_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422724/Model_4FGL_J1516.1+4351_daily_bin90.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/422724/ft1_filtered_4FGL_J1516.1+4351_daily_bin90.fits
Spacecraft file(s): /scratch/kocevski/422724/ft2_4FGL_J1516.1+4351_daily_bin90.fits
Exposure map: /scratch/kocevski/422724/expmap_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.fits
Exposure cube: /scratch/kocevski/422724/ltcube_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422724/Model_4FGL_J1516.1+4351_daily_bin90.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) = 4395.40086093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6321       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.359       1.0000         .10000E-03   10000.    
    11 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6604       1.0000         .10000E-03   10000.    
    18 'norm      '    .58559E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11827E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9018       1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.418       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15303E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12857E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77553       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4395.380     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     3924 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4562       -.17587E-07** at limit **
   2  Prefactor     .10000E-03    8.0689       -.93843E-07** at limit **
   3  Prefactor     .10000E-03    6.7724        .58888E-07** at limit **
   4  Prefactor     .10000E-03    6.1905        .20096E-07** at limit **
   5  norm          .10000E-03    5.8700        .21013E-08** at limit **
   6  Prefactor     .10000E-03    50.080        .13480E-04** at limit **
   7  Prefactor     .10000E-03    39.125       -.14267E-04** at limit **
   8  norm          3.6311        5.0342       -.14183E-06   -.19436E-03
   9  Prefactor     .10000E-03    20.101       -.12086E-05** at limit **
  10  Prefactor     21.361        17.930        .27661E-05    .74768E-04
  11  norm          .10000E-03    2.6956        .10347E-09** at limit **
  12  Prefactor     .10000E-03    4.6923       -.20418E-08** at limit **
  13  Prefactor     .10000E-03    27.155       -.11186E-04** at limit **
  14  norm          .10000E-03    .71613       -.13526E-07** at limit **
  15  Prefactor     .10000E-03    3.7028        .74188E-08** at limit **
  16  Prefactor     .10000E-03    2.2899       -.61956E-08** at limit **
  17  norm          1.6604        1.5716       -.29500E-07   -.18657E-03
  18  norm          .10008E-03    2.4044       -.17462E-06** at limit **
  19  Prefactor     5.7656        7.5660        .61513E-06   -.46110E-04
  20  Prefactor     .10000E-03    54.088       -.10716E-04** at limit **
  21  Prefactor     .10000E-03    45.414        .56430E-05** at limit **
  22  Prefactor     .10000E-03    9.3173       -.42007E-06** at limit **
  23  Prefactor     .10000E-03    21.618        .28134E-05** at limit **
  24  norm          .10000E-03    9.1625        .45943E-06** at limit **
  25  Prefactor     1.9036        38.214       -.15245E-05   -.99230E-04
  26  Prefactor     43.058        98.038       -.43069E-05   -.16580E-04
  27  Prefactor     .10000E-03    6.3565       -.71031E-07** at limit **
  28  Prefactor     .10000E-03    30.577        .15328E-04** at limit **
  29  Normalizat    .77571        .18894        .32593E-08    .47838E-04
  30  Prefactor     1.0914        .20214       -.66082E-07    .33722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63109
  Prefactor  = 0.0001
  Prefactor  = 21.3612
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66038
  norm       = 0.000100084
  Prefactor  = 5.76561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.90364
  Prefactor  = 43.0581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.775708
  Prefactor  = 1.09137
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.380     FROM HESSE     STATUS=OK           578 CALLS     4502 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5400        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7784        .16851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1983        .16111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8704        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6311        5.0282        .16987E-03   -1.5327    
   9  Prefactor     .10000E-03    20.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.361        17.956        .86667E-04   -1.4783    
  11  norm          .10000E-03    2.6961        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7005        .14025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .74020        .54764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7213        .12449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2967        .97968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6604        1.5586        .77227E-04   -1.5450    
  18  norm          .10008E-03    5.1747        .34175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7656        7.7301        .16740E-03   -1.5228    
  20  Prefactor     .10000E-03    54.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.1938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.9036        38.659        .30157E-03   -1.5432    
  26  Prefactor     43.058        98.203        .60842E-04   -1.4395    
  27  Prefactor     .10000E-03    6.5141        .32620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    30.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77571        .22006        .24447E-03   -1.0098    
  30  Prefactor     1.0914        .23608        .22642E-03   -.89743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28941e-10
Minuit parameter uncertainties:
  1  4.08822e-06
  2  1.32183e-06
  3  1.09495e-06
  4  1.26037e-06
  5  3.91693e-07
  6  0.000111603
  7  9.25594e-05
  8  5.02881
  9  4.84148e-06
  10  17.9604
  11  2.01576e-07
  12  5.49042e-07
  13  3.66904e-05
  14  1.16202e-06
  15  1.11986e-06
  16  6.11228e-07
  17  1.55866
  18  0.00131539
  19  7.73142
  20  1.05328e-05
  21  0.000152047
  22  1.30982e-05
  23  1.08242e-05
  24  2.69946e-06
  25  17.1695
  26  98.5748
  27  5.74847e-07
  28  4.53822e-05
  29  0.220316
  30  0.236307
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  5.766e+00  7.731e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.091e+00  2.363e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  7.757e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 229.049 43.853
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.34e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 7.07e-06 +/- 9.48e-06

TS (Fixed Index): 1.20
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422724/likelihoodResults_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.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) = 4395.29557283
delta logL = 0.084354285781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4395.2945544
delta logL = 0.0853727113799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9122       1.0000          .0000       10.000    
     3 'Normalizat'    .78609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4395.295     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      283 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.076        15.100        .12622E-03    .18005E-03
   2  Index         1.9117        1.2418        .10044E-01    .26687E-04
   3  Normalizat    .78613        .21686        .24293E-03   -.52307E-03
   4  Prefactor     1.0838        .23521        .22706E-03   -.60025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0763
  Index      = 1.91165
  Normalizat = 0.786129
  Prefactor  = 1.08384
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.295     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.076        14.551        .50487E-05   -1.5073    
   2  Index         1.9117        1.1979        .40177E-03   -.66578    
   3  Normalizat    .78613        .21693        .48586E-04   -1.0059    
   4  Prefactor     1.0838        .23537        .45412E-04   -.89985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48446e-10
Minuit parameter uncertainties:
  1  14.5565
  2  1.21725
  3  0.21717
  4  0.235599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422724': 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) = 4395.2945536
delta logL = 0.0853735164783

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.008e+01  1.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.912e+00  1.217e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.084e+00  2.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  7.861e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 229.049 43.853
Photon Index (Free Index): 1.91 +/- 1.22
Photon Flux (Free Index): 1.57e-08 +/- 2.46e-08
Energy Flux (Free Index): 1.36e-05 +/- 3.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/422724/cmap_HighResolution_262656001_262915201_4FGL_J1516.1+4351_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', comment='SUCCESS', photon_flux='2.34e-08', energy_flux2='1.36e-05', photon_flux_error='3.13e-08', dlogl='8.54e-02', energy_flux='7.07e-06', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-09-11 21:38:15.142090', photon_index_error2='1.22', photon_index2='1.91', ts='1.20', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='3.51e-05', EG='0.78', time_epoch_completed='1631421495.14', return_code='0', job_id='422724', GAL2='1.08', EG2='0.79', return_code2='0', energy_flux_error='9.48e-06', photon_flux_error2='2.46e-08', ts2='1.37', photon_index='2.46' WHERE bin_id='90' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:38:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 422724: <4FGL_J1516.1+4351_daily_bin90> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin90> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep 11 21:26:01 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:26:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 21:26:02 2021
Terminated at Sat Sep 11 21:38:15 2021
Results reported at Sat Sep 11 21:38:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin90 229.049 43.8527 262656001 262915201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

