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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1
RA = 229.222, Dec = 36.8505
tmin = 239587201, tmax = 239846401
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='437346', job_status='RUN', time_executed='2021-09-11 22:23:29.587809', time_epoch_executed='1631424209.59' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437346

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437346/ft1_4FGL_J1516.8+3651_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437346/ft1_4FGL_J1516.8+3651_daily_bin1.fits outfile=/scratch/kocevski/437346/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1.fits ra=229.222 dec=36.8505 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.11
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.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/437346/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.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/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/437346/ltcube_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.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/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits
.....................!
real 12.97
user 12.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/437346/ltcube_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.fits outfile=/scratch/kocevski/437346/expmap_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.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/437346/ltcube_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.fits
.....................!
real 190.98
user 185.15
sys 5.34

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

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits scfile=/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits outfile=/scratch/kocevski/437346/cmap_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.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.222 yref=36.8505 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits scfile=/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits outfile=/scratch/kocevski/437346/cmap_HighResolution_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.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.222 yref=36.8505 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437346/Model_4FGL_J1516.8+3651_daily_bin1.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/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits.....................!
real 39.98
user 38.47
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits', '/scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits', expMap='/scratch/kocevski/437346/expmap_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.fits', expCube='/scratch/kocevski/437346/ltcube_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437346/Model_4FGL_J1516.8+3651_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/437346/ft1_filtered_4FGL_J1516.8+3651_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/437346/ft2_4FGL_J1516.8+3651_daily_bin1.fits
Exposure map: /scratch/kocevski/437346/expmap_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.fits
Exposure cube: /scratch/kocevski/437346/ltcube_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437346/Model_4FGL_J1516.8+3651_daily_bin1.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) = 4499.83436255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9280       1.0000         .10000E-03   10000.    
    13 'norm      '    .26294       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3277       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14204E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0400       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4499.762     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3122 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7443       -.93299E-07** at limit **
   2  Prefactor     .10000E-03    22.421        .73455E-05** at limit **
   3  Prefactor     .10000E-03    19.717       -.41308E-05** at limit **
   4  norm          .10000E-03    5.7691       -.37707E-05** at limit **
   5  Prefactor     .10000E-03    16.329       -.23051E-06** at limit **
   6  norm          .10000E-03    2.5799       -.10026E-06** at limit **
   7  Prefactor     26.166        42.536       -.13066E-04   -.78161E-06
   8  Prefactor     .10000E-03    17.097       -.23936E-05** at limit **
   9  norm          .10000E-03    2.9360       -.92742E-07** at limit **
  10  Prefactor     .10000E-03    6.2107        .17483E-05** at limit **
  11  Prefactor     .10000E-03    2.1246       -.19221E-06** at limit **
  12  Prefactor     3.9282        4.8511       -.46225E-07   -.13535E-05
  13  norm          .26303        .88709       -.15788E-06   -.12372E-02
  14  norm          .10000E-03    3.0854        .50385E-06** at limit **
  15  Prefactor     .10000E-03    3.3383       -.15499E-06** at limit **
  16  Prefactor     .10000E-03    87.561        .91807E-06** at limit **
  17  Prefactor     19.436        11.018       -.36895E-07   -.27980E-04
  18  Prefactor     .10000E-03    16.897       -.20779E-05** at limit **
  19  Prefactor     .10000E-03    7.5308        .27420E-06** at limit **
  20  norm          5.3284        1.6701       -.40724E-07   -.86833E-04
  21  Prefactor     .10000E-03    11.635       -.21716E-06** at limit **
  22  Prefactor     .10000E-03    12.772        .38337E-05** at limit **
  23  Prefactor     .10000E-03    7.0697        .40718E-05** at limit **
  24  norm          .10000E-03    4.9624        .91834E-06** at limit **
  25  Prefactor     .10000E-03    .60925       -.17644E-07** at limit **
  26  Prefactor     .10000E-03    8.1957       -.55910E-05** at limit **
  27  Prefactor     .10000E-03    3.1705        .29669E-06** at limit **
  28  Normalizat    1.0400        .18003        .33094E-06   -.59906E-04
  29  Prefactor     .68656        .17017        .34659E-06   -.52315E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.1662
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.92823
  norm       = 0.263027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.32841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.03998
  Prefactor  = 0.686564
 **********
 **   18 **HESSE 
 **********

 FCN=   4499.762     FROM HESSE     STATUS=OK           541 CALLS     3663 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7465        .86522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.7653        .15727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5999        .10519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.166        42.451        .78297E-04   -1.4684    
   8  Prefactor     .10000E-03    17.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9378        .11226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2287        .16326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1264        .95466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9282        4.8478        .15997E-03   -1.5312    
  13  norm          .26303        .90934        .11152E-02   -1.5605    
  14  norm          .10000E-03    3.1638        .22994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3471        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    87.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.436        11.024        .90847E-04   -1.4826    
  18  Prefactor     .10000E-03    17.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5732        .17973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3284        1.6686        .45697E-04   -1.5246    
  21  Prefactor     .10000E-03    11.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0649        .17410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.9687        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .61191        .51127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.083        .22900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0400        .21002        .20939E-03   -.91703    
  29  Prefactor     .68656        .19959        .24130E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00178e-10
Minuit parameter uncertainties:
  1  8.778e-08
  2  1.71868e-05
  3  2.67039e-05
  4  1.15972e-06
  5  2.41409e-05
  6  1.23398e-05
  7  42.5004
  8  1.82019e-06
  9  8.45248e-07
  10  8.78196e-07
  11  1.6249e-06
  12  4.84825
  13  0.909386
  14  4.60347e-06
  15  1.01381e-06
  16  5.48059e-06
  17  11.025
  18  4.4585e-07
  19  2.97972e-06
  20  1.66863
  21  2.67267e-06
  22  1.81192e-06
  23  2.08959e-06
  24  2.07247e-06
  25  3.47832e-07
  26  7.31326e-07
  27  0.000464194
  28  0.210191
  29  0.199799
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  5.481e-06  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  6.866e-01  1.998e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.040e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437346/likelihoodResults_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.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) = 4499.76209084
delta logL = -5.41887875443e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4499.76203675
delta logL = -1.01899786387e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4499.762     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2035.1        .90712E-02** at limit **
   2  Index         2.1872        7.7948        .50000       -.43847E-05
   3  Normalizat    1.0400        .22726E-01    .41283E-01   -.91192E-05
   4  Prefactor     .68656        .21796E-01    .42222E-01   -.75967E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.18716
  Normalizat = 1.03998
  Prefactor  = 0.686564
 **********
 **   18 **HESSE 
 **********

 FCN=   4499.762     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7870.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1872        7.6595        .50000       -.59749    
   3  Normalizat    1.0400        .45415E-01    .20939E-03   -.91703    
   4  Prefactor     .68656        .43543E-01    .24130E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.41886e-09
Minuit parameter uncertainties:
  1  0.00445889
  2  38.6603
  3  0.045417
  4  0.0435453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437346': 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) = 4499.76203665
delta logL = -3.48063622368e-09

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  4.459e-03  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.187e+00  3.866e+01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  6.866e-01  4.355e-02  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.040e+00  4.542e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.222 36.850

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/437346/cmap_HighResolution_239587201_239846401_4FGL_J1516.8+3651_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-11 22:34:04.684289', job_id='437346', GAL2='0.69', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631424844.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-3.48e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:34:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 437346: <4FGL_J1516.8+3651_daily_bin1> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:21:20 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:21:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:21:21 2021
Terminated at Sat Sep 11 22:34:05 2021
Results reported at Sat Sep 11 22:34:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1 229.222 36.8505 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

