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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin268
RA = 229.222, Dec = 36.8505
tmin = 308793601, tmax = 309052801
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='439470', job_status='RUN', time_executed='2021-09-11 22:31:14.017809', time_epoch_executed='1631424674.02' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439470/ft1_4FGL_J1516.8+3651_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439470/ft2_4FGL_J1516.8+3651_daily_bin268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439470/ft1_4FGL_J1516.8+3651_daily_bin268.fits outfile=/scratch/kocevski/439470/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin268.fits ra=229.222 dec=36.8505 rad=12.0 tmin=308793601.0 tmax=309052801.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.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439470/ft2_4FGL_J1516.8+3651_daily_bin268.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/439470/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin268.fits evtable="EVENTS" outfile="/scratch/kocevski/439470/ft1_filtered_4FGL_J1516.8+3651_daily_bin268.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/439470/ft1_filtered_4FGL_J1516.8+3651_daily_bin268.fits" evtable="EVENTS" scfile=/scratch/kocevski/439470/ft2_4FGL_J1516.8+3651_daily_bin268.fits sctable="SC_DATA" outfile=/scratch/kocevski/439470/ltcube_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.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/439470/ft2_4FGL_J1516.8+3651_daily_bin268.fits
.....................!
real 12.20
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439470/ft1_filtered_4FGL_J1516.8+3651_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/439470/ft2_4FGL_J1516.8+3651_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/439470/ltcube_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.fits outfile=/scratch/kocevski/439470/expmap_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.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/439470/ltcube_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.fits
.....................!
real 190.88
user 186.15
sys 4.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/439470/ft1_filtered_4FGL_J1516.8+3651_daily_bin268.fits scfile=/scratch/kocevski/439470/ft2_4FGL_J1516.8+3651_daily_bin268.fits outfile=/scratch/kocevski/439470/cmap_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439470/ft1_filtered_4FGL_J1516.8+3651_daily_bin268.fits scfile=/scratch/kocevski/439470/ft2_4FGL_J1516.8+3651_daily_bin268.fits outfile=/scratch/kocevski/439470/cmap_HighResolution_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6264       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.570       1.0000         .10000E-03   10000.    
     4 'norm      '    .30868E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.661       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.327       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9721       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49269E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8748       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3225       1.0000         .10000E-03   10000.    
    14 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.813       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.536       1.0000         .10000E-03   10000.    
    20 'norm      '    9.8010       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 '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .62109       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.3680       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99931       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92673       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=   5893.604     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3734 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6270        3.3042       -.87509E-06   -.68087E-05
   2  Prefactor     .10000E-03    10.139       -.55448E-05** at limit **
   3  Prefactor     12.588        18.185        .42022E-05   -.22311E-03
   4  norm          .10001E-03    48.014        .26770E-04** at limit **
   5  Prefactor     18.657        21.594        .20530E-05   -.25907E-04
   6  norm          3.9412        5.8438        .39688E-06   -.45691E-03
   7  Prefactor     56.323        48.357       -.28089E-05   -.31195E-04
   8  Prefactor     6.9717        36.836        .91649E-05   -.59212E-05
   9  norm          .10000E-03    2.8313       -.31905E-07** at limit **
  10  Prefactor     .10000E-03    13.295       -.91071E-05** at limit **
  11  Prefactor     .10000E-03    6.2461        .87863E-06** at limit **
  12  Prefactor     5.8752        6.1713       -.30214E-06   -.14862E-03
  13  norm          1.3232        1.2750        .26181E-07   -.36132E-03
  14  norm          .10000E-03    2.0144       -.16154E-06** at limit **
  15  Prefactor     .10000E-03    3.4946       -.21839E-06** at limit **
  16  Prefactor     .10000E-03    71.814       -.15224E-04** at limit **
  17  Prefactor     .22910        6.9521       -.14933E-05    .35460E-03
  18  Prefactor     37.807        30.598       -.12375E-05   -.98612E-05
  19  Prefactor     21.534        18.706        .56708E-05   -.12660E-04
  20  norm          9.8007        1.8661        .75237E-07    .59656E-04
  21  Prefactor     .10000E-03    2.9825        .43225E-07** at limit **
  22  Prefactor     .10000E-03    11.732        .61723E-05** at limit **
  23  Prefactor     .10000E-03    11.627        .63874E-05** at limit **
  24  norm          .10000E-03    10.486        .51820E-06** at limit **
  25  Prefactor     .10000E-03    1.1710        .20645E-06** at limit **
  26  Prefactor     .64035        13.970       -.58930E-06   -.20082E-03
  27  Prefactor     3.3687        4.2187        .40984E-06   -.36933E-03
  28  Normalizat    .99936        .19473       -.31049E-05    .39268E-04
  29  Prefactor     .92657        .17710        .69113E-06   -.18295E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62696
  Prefactor  = 0.0001
  Prefactor  = 12.5876
  norm       = 0.000100007
  Prefactor  = 18.6567
  norm       = 3.9412
  Prefactor  = 56.3232
  Prefactor  = 6.97171
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 5.87524
  norm       = 1.32322
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.229103
  Prefactor  = 37.8065
  Prefactor  = 21.5336
  norm       = 9.80074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.640349
  Prefactor  = 3.36875
  Normalizat = 0.999357
  Prefactor  = 0.926571
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.604     FROM HESSE     STATUS=OK           561 CALLS     4295 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6270        3.3089        .12976E-03   -1.5327    
   2  Prefactor     .10000E-03    10.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.588        18.010        .11298E-03   -1.4998    
   4  norm          .10001E-03    48.358        .42755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.657        21.607        .92717E-04   -1.4844    
   6  norm          3.9412        5.8264        .20328E-03   -1.5311    
   7  Prefactor     56.323        48.343        .53450E-04   -1.4206    
   8  Prefactor     6.9717        36.904        .15193E-03   -1.5180    
   9  norm          .10000E-03    2.8323        .12616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.169        .35767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8752        6.1692        .16569E-03   -1.5223    
  13  norm          1.3232        1.2400        .79320E-04   -1.5478    
  14  norm          .10000E-03    2.0740        .21261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4999        .14007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    72.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22910        66.999        .38328E-02   -1.5612    
  18  Prefactor     37.807        30.583        .65178E-04   -1.4477    
  19  Prefactor     21.534        18.761        .86310E-04   -1.4780    
  20  norm          9.8007        1.8669        .43467E-04   -1.5082    
  21  Prefactor     .10000E-03    2.9866        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.2773        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .64035        101.34        .55224E-02   -1.5548    
  27  Prefactor     3.3687        4.2031        .16945E-03   -1.5341    
  28  Normalizat    .99936        .22830        .24934E-03   -.93052    
  29  Prefactor     .92657        .20914        .25015E-03   -.95219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1638e-09
Minuit parameter uncertainties:
  1  3.30907
  2  0.000123377
  3  18.0177
  4  0.00115214
  5  21.6156
  6  5.82724
  7  48.3764
  8  32.1108
  9  1.54554e-06
  10  6.07446e-05
  11  0.00063646
  12  6.16983
  13  1.24003
  14  2.54214e-05
  15  3.75194e-05
  16  7.80562e-05
  17  7.84292
  18  30.5953
  19  18.7661
  20  1.86694
  21  2.9885e-06
  22  4.46963e-06
  23  4.61401e-06
  24  7.88942e-06
  25  2.21926e-05
  26  16.1381
  27  4.20346
  28  0.228527
  29  0.209318
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  7.806e-05  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:  9.266e-01  2.093e-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:  9.994e-01  2.285e-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: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439470/likelihoodResults_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.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) = 5893.6038853
delta logL = -6.60221057842e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5893.60381953
delta logL = -2.52929567068e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3319       1.0000          .0000       10.000    
     3 'Normalizat'    .99936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92657       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=   5893.604     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    40.740        .90712E-02** at limit **
   2  Index         2.2788        5.3747        .50000        .71065E-05
   3  Normalizat    .99935        .36340E-02    .46159E-01   -.24499E-03
   4  Prefactor     .92658        .35424E-02    .45343E-01    .13347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.2788
  Normalizat = 0.999349
  Prefactor  = 0.926579
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.604     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      268 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    218.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2788        8.3593        .50000       -.57548    
   3  Normalizat    .99935        .84525E-02    .24934E-03   -.93052    
   4  Prefactor     .92658        .82400E-02    .25015E-03   -.95218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.8213e-08
Minuit parameter uncertainties:
  1  0.00405101
  2  204.546
  3  0.00845255
  4  0.00824006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439470': 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) = 5893.60381941
delta logL = -1.27305611386e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  4.051e-03  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.279e+00  2.045e+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:  9.266e-01  8.240e-03  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:  9.993e-01  8.453e-03  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/439470/cmap_HighResolution_308793601_309052801_4FGL_J1516.8+3651_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-11 22:44:44.723079', job_id='439470', GAL2='0.93', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631425484.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='268' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:44:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 439470: <4FGL_J1516.8+3651_daily_bin268> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin268> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 22:30:59 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:31: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 22:31:01 2021
Terminated at Sat Sep 11 22:44:45 2021
Results reported at Sat Sep 11 22:44:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin268 229.222 36.8505 308793601 309052801 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 :                                   807.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

