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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin75
RA = 229.049, Dec = 43.8527
tmin = 258768001, tmax = 259027201
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='422706', job_status='RUN', time_executed='2021-09-11 21:29:42.985829', time_epoch_executed='1631420982.99' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422706

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422706/ft1_4FGL_J1516.1+4351_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422706/ft1_4FGL_J1516.1+4351_daily_bin75.fits outfile=/scratch/kocevski/422706/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin75.fits ra=229.049 dec=43.8527 rad=12.0 tmin=258768001.0 tmax=259027201.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.12
user 0.94
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.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/422706/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/422706/ltcube_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.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/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits
.....................!
real 9.30
user 8.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/422706/ltcube_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.fits outfile=/scratch/kocevski/422706/expmap_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.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/422706/ltcube_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.fits
.....................!
real 190.71
user 185.49
sys 4.75

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/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.fits scfile=/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits outfile=/scratch/kocevski/422706/cmap_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.fits scfile=/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits outfile=/scratch/kocevski/422706/cmap_HighResolution_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.fits', '/scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits', expMap='/scratch/kocevski/422706/expmap_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.fits', expCube='/scratch/kocevski/422706/ltcube_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422706/Model_4FGL_J1516.1+4351_daily_bin75.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/422706/ft1_filtered_4FGL_J1516.1+4351_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/422706/ft2_4FGL_J1516.1+4351_daily_bin75.fits
Exposure map: /scratch/kocevski/422706/expmap_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.fits
Exposure cube: /scratch/kocevski/422706/ltcube_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422706/Model_4FGL_J1516.1+4351_daily_bin75.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) = 3900.76755555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17911E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.924       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.968       1.0000         .10000E-03   10000.    
     8 'norm      '    15.625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.950       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7276       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.092       1.0000         .10000E-03   10000.    
    14 'norm      '    .37663E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22601E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.717       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.0618       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .47614       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3277       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=   3900.746     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3928 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8764        .51253E-07** at limit **
   2  Prefactor     .10000E-03    10.897       -.13715E-06** at limit **
   3  Prefactor     8.2136        35.281       -.27853E-04   -.14406E-03
   4  Prefactor     .10001E-03    39.896        .13297E-04** at limit **
   5  norm          18.935        26.832        .10472E-04   -.38536E-04
   6  Prefactor     .10000E-03    56.789       -.12890E-04** at limit **
   7  Prefactor     11.975        29.384        .47594E-05   -.24520E-04
   8  norm          15.629        9.2257        .43467E-06   -.22292E-03
   9  Prefactor     60.948        58.400       -.11040E-05   -.29447E-04
  10  Prefactor     1.7305        30.586       -.30456E-05   -.13333E-03
  11  norm          .10000E-03    17.234       -.71717E-06** at limit **
  12  Prefactor     .10000E-03    70.825        .23810E-04** at limit **
  13  Prefactor     13.101        18.422       -.40979E-06    .75049E-05
  14  norm          .10000E-03    1.1675       -.46567E-07** at limit **
  15  Prefactor     .10000E-03    4.3539       -.35540E-07** at limit **
  16  Prefactor     .10000E-03    5.0283        .14363E-06** at limit **
  17  norm          .10000E-03    .68446        .11519E-07** at limit **
  18  norm          .10000E-03    1.3232       -.27514E-07** at limit **
  19  Prefactor     .10000E-03    3.0462        .18486E-07** at limit **
  20  Prefactor     .10000E-03    131.96       -.57723E-05** at limit **
  21  Prefactor     16.708        18.728       -.11878E-06   -.19916E-04
  22  Prefactor     .10000E-03    7.5881       -.24990E-07** at limit **
  23  Prefactor     .10000E-03    8.8965        .17502E-05** at limit **
  24  norm          .10000E-03    9.1463       -.10549E-05** at limit **
  25  Prefactor     .10000E-03    8.4179       -.74524E-06** at limit **
  26  Prefactor     .10000E-03    45.820       -.97082E-05** at limit **
  27  Prefactor     3.0702        7.1216       -.59316E-06   -.23066E-03
  28  Prefactor     .10000E-03    60.237       -.51721E-05** at limit **
  29  Normalizat    .47597        .20531        .33202E-05   -.17113E-03
  30  Prefactor     1.3279        .22109       -.13238E-05   -.44400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.21356
  Prefactor  = 0.000100013
  norm       = 18.935
  Prefactor  = 0.0001
  Prefactor  = 11.9746
  norm       = 15.629
  Prefactor  = 60.9478
  Prefactor  = 1.7305
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 13.1012
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07021
  Prefactor  = 0.0001
  Normalizat = 0.475975
  Prefactor  = 1.32786
 **********
 **   18 **HESSE 
 **********

 FCN=   3900.746     FROM HESSE     STATUS=OK           578 CALLS     4506 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8772        .83554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2136        36.329        .13963E-03   -1.5135    
   4  Prefactor     .10001E-03    41.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.935        26.759        .92070E-04   -1.4837    
   6  Prefactor     .10000E-03    56.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.975        29.332        .11579E-03   -1.5016    
   8  norm          15.629        9.2093        .10133E-03   -1.4917    
   9  Prefactor     60.948        58.364        .51394E-04   -1.4145    
  10  Prefactor     1.7305        30.459        .31946E-03   -1.5445    
  11  norm          .10000E-03    17.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    71.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.101        17.746        .11070E-03   -1.4984    
  14  norm          .10000E-03    13.128        .12561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3888        .12725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.972        .27011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .69819        .50418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3293        .70148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0519        .10641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    132.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.708        18.702        .97958E-04   -1.4890    
  22  Prefactor     .10000E-03    7.6315        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.2025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4206        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    45.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.0702        7.0634        .23183E-03   -1.5358    
  28  Prefactor     .10000E-03    60.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .47597        .23967        .29947E-03   -1.1354    
  30  Prefactor     1.3279        .26110        .20976E-03   -.82482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2484e-09
Minuit parameter uncertainties:
  1  1.62603e-07
  2  2.56585e-06
  3  34.5829
  4  0.00145884
  5  26.7762
  6  6.23804e-05
  7  29.3671
  8  9.21011
  9  58.4191
  10  14.5284
  11  8.29636e-05
  12  0.000953962
  13  17.753
  14  0.000328919
  15  9.23524e-06
  16  0.000116263
  17  2.39944e-06
  18  1.27113e-06
  19  2.63016e-06
  20  9.39857e-05
  21  18.7084
  22  1.13281e-05
  23  3.43228e-06
  24  4.35789e-06
  25  3.07207e-06
  26  3.63432e-06
  27  7.06536
  28  0.000179978
  29  0.240194
  30  0.261353
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.630e-06  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.328e+00  2.614e-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:  4.760e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422706/likelihoodResults_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.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): 102
logL (Free Index) = 3900.74726374
delta logL = -0.00152241687147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3900.74574155
delta logL = -2.29244960792e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4385       1.0000          .0000       10.000    
     3 'Normalizat'    .47586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3280       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=   3900.746     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10266E-03    3.0140        .10922E-01** at limit **
   2  Index         2.3580        5.5043        .50000        .62062E-04
   3  Normalizat    .47598        .43552E-02    .29946E-03    .23215E-04
   4  Prefactor     1.3279        .49237E-02    .20976E-03    .42129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010266
  Index      = 2.35797
  Normalizat = 0.475978
  Prefactor  = 1.32786
 **********
 **   18 **HESSE 
 **********

 FCN=   3900.746     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10266E-03    46.948        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3580        5.0508        .50000       -.55672    
   3  Normalizat    .47598        .17409E-01    .11979E-04   -1.1354    
   4  Prefactor     1.3279        .19681E-01    .41951E-04   -.82482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.93577e-08
Minuit parameter uncertainties:
  1  0.0223678
  2  239.946
  3  0.0174089
  4  0.019681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422706': 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) = 3900.74574006
delta logL = 1.26072654894e-06

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.027e-04  2.237e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.358e+00  2.399e+02  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.328e+00  1.968e-02  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:  4.760e-01  1.741e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

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/422706/cmap_HighResolution_258768001_259027201_4FGL_J1516.1+4351_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-11 21:40:55.384671', job_id='422706', GAL2='1.33', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631421655.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='75' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:40:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 422706: <4FGL_J1516.1+4351_daily_bin75> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin75> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep 11 21:25:58 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:26:01 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:01 2021
Terminated at Sat Sep 11 21:40:56 2021
Results reported at Sat Sep 11 21:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin75 229.049 43.8527 258768001 259027201 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 :                                   673.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            898 sec.

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

