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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1352
RA = 229.222, Dec = 36.8505
tmin = 589766401, tmax = 590025601
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='449712', job_status='RUN', time_executed='2021-09-11 23:09:20.475503', time_epoch_executed='1631426960.48' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449712/ft1_4FGL_J1516.8+3651_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449712/ft1_4FGL_J1516.8+3651_daily_bin1352.fits outfile=/scratch/kocevski/449712/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1352.fits ra=229.222 dec=36.8505 rad=12.0 tmin=589766401.0 tmax=590025601.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.20
user 4.94
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.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/449712/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1352.fits evtable="EVENTS" outfile="/scratch/kocevski/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.fits" evtable="EVENTS" scfile=/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits sctable="SC_DATA" outfile=/scratch/kocevski/449712/ltcube_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.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/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits
.....................!
real 11.74
user 11.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/449712/ltcube_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.fits outfile=/scratch/kocevski/449712/expmap_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.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/449712/ltcube_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.fits
.....................!
real 190.04
user 184.79
sys 4.92

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/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.fits scfile=/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits outfile=/scratch/kocevski/449712/cmap_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.fits scfile=/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits outfile=/scratch/kocevski/449712/cmap_HighResolution_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.fits', '/scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits', expMap='/scratch/kocevski/449712/expmap_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.fits', expCube='/scratch/kocevski/449712/ltcube_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449712/Model_4FGL_J1516.8+3651_daily_bin1352.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/449712/ft1_filtered_4FGL_J1516.8+3651_daily_bin1352.fits
Spacecraft file(s): /scratch/kocevski/449712/ft2_4FGL_J1516.8+3651_daily_bin1352.fits
Exposure map: /scratch/kocevski/449712/expmap_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.fits
Exposure cube: /scratch/kocevski/449712/ltcube_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449712/Model_4FGL_J1516.8+3651_daily_bin1352.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) = 5899.63442737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.926       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32287E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .13635E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    90.225       1.0000         .10000E-03   10000.    
     9 'norm      '    13.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6862       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-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 '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4611       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80237       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=   5899.626     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3670 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0240        8.3010        .20143E-05    .37463E-04
   2  Prefactor     .10000E-03    6.7474       -.82856E-07** at limit **
   3  Prefactor     .10000E-03    17.431        .43319E-06** at limit **
   4  norm          18.929        18.642       -.40689E-06   -.40581E-04
   5  Prefactor     .10000E-03    93.687        .47961E-05** at limit **
   6  norm          .10002E-03    5.4469       -.47590E-06** at limit **
   7  Prefactor     .10000E-03    31.365       -.96257E-06** at limit **
   8  Prefactor     90.254        56.162       -.26921E-05   -.14360E-04
   9  norm          13.289        10.116       -.67288E-08    .21790E-04
  10  Prefactor     .10000E-03    22.445       -.43280E-06** at limit **
  11  Prefactor     4.1275        5.5368        .14367E-05    .10854E-03
  12  Prefactor     .10000E-03    3.0511       -.21194E-07** at limit **
  13  norm          .10000E-03    .45068        .25555E-07** at limit **
  14  norm          .10000E-03    1.5580        .10864E-06** at limit **
  15  Prefactor     4.4720        8.2909        .20633E-05   -.84655E-04
  16  Prefactor     .10000E-03    18.748        .38209E-06** at limit **
  17  Prefactor     .10000E-03    12.943       -.16062E-06** at limit **
  18  Prefactor     .10000E-03    7.1566        .37432E-06** at limit **
  19  Prefactor     .10000E-03    15.071        .12345E-05** at limit **
  20  norm          2.6867        1.4153        .92195E-07    .25708E-03
  21  Prefactor     .10000E-03    12.226       -.56749E-06** at limit **
  22  Prefactor     .10000E-03    13.255       -.19239E-06** at limit **
  23  Prefactor     .10000E-03    5.9446       -.37484E-06** at limit **
  24  norm          .10000E-03    5.6751       -.29515E-07** at limit **
  25  Prefactor     .10000E-03    1.7625       -.72827E-07** at limit **
  26  Prefactor     .10000E-03    5.5841        .21952E-06** at limit **
  27  Prefactor     .10000E-03    3.5204       -.16466E-06** at limit **
  28  Normalizat    1.4608        .20491       -.21794E-05   -.66756E-04
  29  Prefactor     .80256        .18206        .18475E-05   -.71998E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9287
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 90.2542
  norm       = 13.2885
  Prefactor  = 0.0001
  Prefactor  = 4.12748
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.47204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46078
  Prefactor  = 0.802559
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.626     FROM HESSE     STATUS=OK           539 CALLS     4209 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0240        8.3225        .41597E-03   -1.5506    
   2  Prefactor     .10000E-03    6.7562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.929        18.489        .92065E-04   -1.4838    
   5  Prefactor     .10000E-03    95.149        .42717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    33.792        .33015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     90.254        56.345        .42303E-04   -1.3805    
   9  norm          13.289        10.062        .10989E-03   -1.4979    
  10  Prefactor     .10000E-03    22.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1275        5.5252        .99220E-03   -1.5302    
  12  Prefactor     .10000E-03    3.0675        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .45521        .50311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5698        .93599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4720        8.3004        .95312E-03   -1.5285    
  16  Prefactor     .10000E-03    18.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6867        1.4080        .63260E-04   -1.5380    
  21  Prefactor     .10000E-03    12.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.6873        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8003        .99533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.5852        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.7736        .27934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4608        .23325        .23066E-03   -.78887    
  29  Prefactor     .80256        .21222        .28359E-03   -.99634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37172e-10
Minuit parameter uncertainties:
  1  5.83934
  2  1.36748e-06
  3  5.774e-06
  4  18.4948
  5  0.000357817
  6  0.0014783
  7  1.61779e-05
  8  56.3784
  9  10.0631
  10  9.53843e-05
  11  5.52592
  12  1.77799e-06
  13  5.05336e-08
  14  2.26505e-07
  15  8.30253
  16  2.84031e-06
  17  1.19796e-05
  18  6.16894e-07
  19  2.85688e-06
  20  1.40797
  21  7.53442e-06
  22  2.74694e-06
  23  2.65144e-06
  24  2.30075e-06
  25  2.70369e-06
  26  1.43334e-07
  27  6.86838e-05
  28  0.233426
  29  0.212438
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  2.840e-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:  8.026e-01  2.124e-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.461e+00  2.334e-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: 4.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449712/likelihoodResults_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.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) = 5899.62607031
delta logL = -0.000251811748058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5899.62582005
delta logL = -1.54231202032e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5757       1.0000          .0000       10.000    
     3 'Normalizat'    1.4607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80258       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5899.626     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      280 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10424E-03    4.9704        .18142E-01** at limit **
   2  Index         2.4821        8.3636        .50000        .21404E-04
   3  Normalizat    1.4608        .29395E-02    .23066E-03   -.40120E-04
   4  Prefactor     .80256        .27867E-02    .28359E-03    .25616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104245
  Index      = 2.48208
  Normalizat = 1.46077
  Prefactor  = 0.802561
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10424E-03    67.325        .27512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4821        7.2386        .50000       -.52774    
   3  Normalizat    1.4608        .10872E-01    .46132E-04   -.78887    
   4  Prefactor     .80256        .10306E-01    .11344E-04   -.99634    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59105e-09
Minuit parameter uncertainties:
  1  0.0338472
  2  257.305
  3  0.0108718
  4  0.0103064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449712': 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) = 5899.62581971
delta logL = -1.20329514175e-06

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.042e-04  3.385e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.482e+00  2.573e+02  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:  8.026e-01  1.031e-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.461e+00  1.087e-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/449712/cmap_HighResolution_589766401_590025601_4FGL_J1516.8+3651_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2021-09-11 23:22:32.126259', job_id='449712', GAL2='0.80', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631427752.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1352' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:22:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 447638: <4FGL_J1516.8+3651_daily_bin1352> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1352> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:09 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:11 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:01:11 2021
Terminated at Sat Sep 11 23:18:37 2021
Results reported at Sat Sep 11 23:18:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1352 229.222 36.8505 589766401 590025601 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1046 sec.
    Turnaround time :                            1048 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 449712: <4FGL_J1516.8+3651_daily_bin1352> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1352> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:07:01 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:07:03 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:07:03 2021
Terminated at Sat Sep 11 23:22:32 2021
Results reported at Sat Sep 11 23:22:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1352 229.222 36.8505 589766401 590025601 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 :                                   793.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

