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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1048
RA = 229.222, Dec = 36.8505
tmin = 510969601, tmax = 511228801
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='443911', job_status='RUN', time_executed='2021-09-11 22:49:05.428979', time_epoch_executed='1631425745.43' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443911

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443911/ft1_4FGL_J1516.8+3651_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443911/ft2_4FGL_J1516.8+3651_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443911/ft1_4FGL_J1516.8+3651_daily_bin1048.fits outfile=/scratch/kocevski/443911/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1048.fits ra=229.222 dec=36.8505 rad=12.0 tmin=510969601.0 tmax=511228801.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 3.47
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443911/ft1_filtered_4FGL_J1516.8+3651_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/443911/ft2_4FGL_J1516.8+3651_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/443911/ltcube_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.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/443911/ft2_4FGL_J1516.8+3651_daily_bin1048.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443911/ft1_filtered_4FGL_J1516.8+3651_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/443911/ft2_4FGL_J1516.8+3651_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/443911/ltcube_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.fits outfile=/scratch/kocevski/443911/expmap_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.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/443911/ltcube_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.fits
.....................!
real 190.63
user 184.95
sys 5.37

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/443911/ft1_filtered_4FGL_J1516.8+3651_daily_bin1048.fits scfile=/scratch/kocevski/443911/ft2_4FGL_J1516.8+3651_daily_bin1048.fits outfile=/scratch/kocevski/443911/cmap_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1765       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9033       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4672       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1890       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48613E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1475       1.0000         .10000E-03   10000.    
    14 'norm      '    .10890E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.380       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2601       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.8244       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75725       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.861       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.276       1.0000         .10000E-03   10000.    
    24 'norm      '    .13649E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87448       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0704       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=   6046.492     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3746 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1765        3.8862       -.51547E-06   -.12229E-03
   2  Prefactor     .10000E-03    5.8369       -.10507E-06** at limit **
   3  Prefactor     .10000E-03    25.746       -.35224E-06** at limit **
   4  norm          .10000E-03    4.4320       -.44168E-07** at limit **
   5  Prefactor     7.9147        23.233       -.10867E-05    .10738E-04
   6  norm          5.6237        5.2365       -.65702E-07   -.14057E-04
   7  Prefactor     23.345        42.750        .53407E-06   -.38769E-04
   8  Prefactor     7.5446        31.398       -.89384E-08   -.11327E-04
   9  norm          3.1870        4.7581        .63646E-08   -.12820E-04
  10  Prefactor     .10000E-03    96.173        .69089E-05** at limit **
  11  Prefactor     3.3555        7.4113       -.16579E-06    .22598E-04
  12  Prefactor     .10000E-03    4.3874        .24111E-07** at limit **
  13  norm          1.1436        1.6737       -.17882E-06   -.51500E-03
  14  norm          .10000E-03    2.4606       -.65748E-06** at limit **
  15  Prefactor     .10000E-03    7.7093       -.46365E-07** at limit **
  16  Prefactor     35.453        72.244        .20013E-05   -.54902E-04
  17  Prefactor     .10000E-03    2.6308       -.18329E-08** at limit **
  18  Prefactor     8.2677        15.009       -.41637E-06    .59853E-06
  19  Prefactor     .10000E-03    6.5191       -.25088E-07** at limit **
  20  norm          5.8220        1.7226        .25774E-06    .92318E-03
  21  Prefactor     .76184        9.4316       -.94051E-06    .81539E-04
  22  Prefactor     38.845        42.058        .17348E-05    .86180E-04
  23  Prefactor     25.310        20.611        .79452E-06   -.21018E-03
  24  norm          .10000E-03    38.430        .34990E-05** at limit **
  25  Prefactor     .10000E-03    .99822        .23404E-07** at limit **
  26  Prefactor     .10000E-03    6.5738       -.17118E-07** at limit **
  27  Prefactor     10.677        5.4145       -.76043E-07    .24290E-05
  28  Normalizat    .87397        .18290        .18135E-05   -.60966E-04
  29  Prefactor     1.0707        .17024       -.55767E-06    .79626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.91472
  norm       = 5.62371
  Prefactor  = 23.3449
  Prefactor  = 7.54459
  norm       = 3.187
  Prefactor  = 0.000100001
  Prefactor  = 3.35545
  Prefactor  = 0.0001
  norm       = 1.14359
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4534
  Prefactor  = 0.0001
  Prefactor  = 8.26772
  Prefactor  = 0.0001
  norm       = 5.82199
  Prefactor  = 0.761843
  Prefactor  = 38.8447
  Prefactor  = 25.3097
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6767
  Normalizat = 0.873971
  Prefactor  = 1.07069
 **********
 **   18 **HESSE 
 **********

 FCN=   6046.492     FROM HESSE     STATUS=OK           559 CALLS     4305 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1765        3.8963        .72233E-03   -1.5299    
   2  Prefactor     .10000E-03    5.8475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4338        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9147        23.232        .14263E-03   -1.5145    
   6  norm          5.6237        5.2233        .16449E-03   -1.5234    
   7  Prefactor     23.345        42.664        .82985E-04   -1.4741    
   8  Prefactor     7.5446        31.243        .14677E-03   -1.5159    
   9  norm          3.1870        4.7413        .20198E-03   -1.5351    
  10  Prefactor     .10000E-03    98.444        .44998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3555        7.1254        .22144E-03   -1.5342    
  12  Prefactor     .10000E-03    4.4124        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1436        1.6165        .10410E-03   -1.5494    
  14  norm          .10000E-03    19.895        .20971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.9264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.453        71.931        .67374E-04   -1.4516    
  17  Prefactor     .10000E-03    2.6448        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2677        14.944        .13949E-03   -1.5133    
  19  Prefactor     .10000E-03    6.5515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.8220        1.9646        .46876E-04   -1.5225    
  21  Prefactor     .76184        59.042        .32833E-02   -1.5533    
  22  Prefactor     38.845        44.214        .64296E-04   -1.4461    
  23  Prefactor     25.310        20.215        .79678E-04   -1.4701    
  24  norm          .10000E-03    37.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.0236        .15166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.677        5.4123        .12263E-03   -1.5054    
  28  Normalizat    .87397        .20504        .25453E-03   -.97381    
  29  Prefactor     1.0707        .19384        .23213E-03   -.90409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82299e-10
Minuit parameter uncertainties:
  1  3.89656
  2  3.76837e-06
  3  3.26163e-05
  4  1.41056e-06
  5  23.2588
  6  5.2237
  7  42.7196
  8  30.7336
  9  4.74189
  10  0.000765222
  11  7.12719
  12  5.07572e-06
  13  1.61657
  14  0.000162388
  15  2.81822e-06
  16  72.1076
  17  4.66386e-07
  18  14.9508
  19  7.6608e-06
  20  1.9646
  21  13.4265
  22  44.2514
  23  20.2206
  24  0.000285688
  25  8.15837e-07
  26  1.34903e-06
  27  5.41252
  28  0.205224
  29  0.193968
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.545e+01  7.211e+01  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:  1.071e+00  1.940e-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:  8.740e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/443911/likelihoodResults_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.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) = 6046.2646492
delta logL = 0.227307209454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6046.25935651
delta logL = 0.23259989914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86548       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2553       1.0000          .0000       10.000    
     3 'Normalizat'    .82842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1035       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=   6046.259     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      321 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86360        18.985        .12682E-01    .11548E-02
   2  Index         4.2568        2.7239        .90388E-01    .20172E-03
   3  Normalizat    .82842        .36683E-01    .43980E-01    .12781E-04
   4  Prefactor     1.1035        .36848E-01    .37455E-01   -.30511E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.863599
  Index      = 4.25675
  Normalizat = 0.828423
  Prefactor  = 1.10354
 **********
 **   18 **HESSE 
 **********

 FCN=   6046.259     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      354 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86360        57.894        .82313E-04   -1.5522    
   2  Index         4.2568        7.1106        .55087E-02   -.14920    
   3  Normalizat    .82842        .15351        .26058E-03   -.99023    
   4  Prefactor     1.1035        .15148        .22908E-03   -.89354    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27724e-09
Minuit parameter uncertainties:
  1  14.1552
  2  6.4393
  3  0.153589
  4  0.15154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443911': 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) = 6046.25935541
delta logL = 0.232600994329

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  8.636e-01  1.416e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  4.257e+00  6.439e+00  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:  1.104e+00  1.515e-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:  8.284e-01  1.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/443911/cmap_HighResolution_510969601_511228801_4FGL_J1516.8+3651_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-11 23:02:48.964083', job_id='443911', GAL2='1.10', fit_tolerance='1e-08', EG2='0.83', EG='0.87', time_epoch_completed='1631426568.96', return_code2='102', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.33e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1048' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:02:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 443911: <4FGL_J1516.8+3651_daily_bin1048> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1048> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:46:27 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:46:29 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:46:29 2021
Terminated at Sat Sep 11 23:02:49 2021
Results reported at Sat Sep 11 23:02:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1048 229.222 36.8505 510969601 511228801 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 :                                   819.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

