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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin256
RA = 229.222, Dec = 36.8505
tmin = 305683201, tmax = 305942401
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='439454', job_status='RUN', time_executed='2021-09-11 22:31:18.261857', time_epoch_executed='1631424678.26' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439454/ft1_4FGL_J1516.8+3651_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439454/ft2_4FGL_J1516.8+3651_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439454/ft1_4FGL_J1516.8+3651_daily_bin256.fits outfile=/scratch/kocevski/439454/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin256.fits ra=229.222 dec=36.8505 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.79
user 4.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439454/ft2_4FGL_J1516.8+3651_daily_bin256.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/439454/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin256.fits evtable="EVENTS" outfile="/scratch/kocevski/439454/ft1_filtered_4FGL_J1516.8+3651_daily_bin256.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.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439454/ft1_filtered_4FGL_J1516.8+3651_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/439454/ft2_4FGL_J1516.8+3651_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/439454/ltcube_305683201_305942401_4FGL_J1516.8+3651_daily_bin256.fits outfile=/scratch/kocevski/439454/expmap_305683201_305942401_4FGL_J1516.8+3651_daily_bin256.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/439454/ltcube_305683201_305942401_4FGL_J1516.8+3651_daily_bin256.fits
.....................!
real 191.75
user 186.71
sys 4.64

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/439454/ft1_filtered_4FGL_J1516.8+3651_daily_bin256.fits scfile=/scratch/kocevski/439454/ft2_4FGL_J1516.8+3651_daily_bin256.fits outfile=/scratch/kocevski/439454/cmap_305683201_305942401_4FGL_J1516.8+3651_daily_bin256.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.3056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.978       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7494       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3314       1.0000         .10000E-03   10000.    
    13 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3626       1.0000         .10000E-03   10000.    
    20 'norm      '    13.129       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.4204       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.925       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14400       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66275       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2432       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=   6754.505     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3669 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4877       -.68327E-07** at limit **
   2  Prefactor     8.3116        12.955        .25166E-05    .17726E-04
   3  Prefactor     48.971        24.328       -.45029E-05    .80829E-05
   4  norm          .10000E-03    5.4872       -.13464E-05** at limit **
   5  Prefactor     .10000E-03    9.7556       -.28346E-06** at limit **
   6  norm          5.8028        6.2955       -.13615E-06   -.16558E-03
   7  Prefactor     .10000E-03    35.049       -.21859E-05** at limit **
   8  Prefactor     7.7599        28.245        .22212E-04   -.63963E-05
   9  norm          .10000E-03    5.1174        .24983E-05** at limit **
  10  Prefactor     .10000E-03    6.4078       -.31712E-05** at limit **
  11  Prefactor     .10000E-03    2.9442        .69556E-07** at limit **
  12  Prefactor     6.3325        7.1766       -.38680E-06   -.16686E-03
  13  norm          .10000E-03    .55732        .15234E-06** at limit **
  14  norm          .10000E-03    1.2182       -.13912E-07** at limit **
  15  Prefactor     .10000E-03    3.4367        .60034E-06** at limit **
  16  Prefactor     35.110        48.400       -.46451E-04    .20826E-05
  17  Prefactor     .10000E-03    15.128        .14263E-05** at limit **
  18  Prefactor     .10000E-03    11.089       -.68417E-05** at limit **
  19  Prefactor     9.3642        10.406       -.15775E-06    .46561E-04
  20  norm          13.129        2.0299        .14624E-07    .16991E-03
  21  Prefactor     .10000E-03    3.6923       -.86349E-06** at limit **
  22  Prefactor     .10000E-03    8.7498        .37309E-05** at limit **
  23  Prefactor     .10000E-03    8.8476        .35116E-05** at limit **
  24  norm          5.4158        11.102        .10356E-05   -.10558E-03
  25  Prefactor     .10000E-03    1.0834        .43875E-07** at limit **
  26  Prefactor     18.928        16.790        .12429E-05    .22958E-04
  27  Prefactor     .16413        2.4731       -.16026E-05    .10438E-02
  28  Normalizat    .66215        .18125        .24378E-05    .10601E-03
  29  Prefactor     1.2437        .16940       -.25829E-06    .27200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.31163
  Prefactor  = 48.9712
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.80277
  Prefactor  = 0.0001
  Prefactor  = 7.75985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.33249
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.3642
  norm       = 13.1286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.41581
  Prefactor  = 0.0001
  Prefactor  = 18.9279
  Prefactor  = 0.164126
  Normalizat = 0.662153
  Prefactor  = 1.24368
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.505     FROM HESSE     STATUS=OK           545 CALLS     4214 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4897        .97889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.3116        12.914        .13911E-03   -1.5131    
   3  Prefactor     48.971        24.326        .57299E-04   -1.4307    
   4  norm          .10000E-03    5.4884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.8028        6.2953        .16677E-03   -1.5226    
   7  Prefactor     .10000E-03    35.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7599        28.269        .14405E-03   -1.5151    
   9  norm          .10000E-03    5.1572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9621        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3325        7.1759        .15952E-03   -1.5205    
  13  norm          .10000E-03    .57214        .11970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2252        .88529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4450        .14862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.110        48.447        .67600E-04   -1.4522    
  17  Prefactor     .10000E-03    15.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3642        10.415        .13098E-03   -1.5096    
  20  norm          13.129        2.0304        .43743E-04   -1.4983    
  21  Prefactor     .10000E-03    3.7006        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.4158        11.081        .17260E-03   -1.5242    
  25  Prefactor     .10000E-03    1.1018        .83495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.928        16.798        .92067E-04   -1.4838    
  27  Prefactor     .16413        28.335        .24689E-02   -1.5627    
  28  Normalizat    .66215        .21835        .30413E-03   -1.0541    
  29  Prefactor     1.2437        .20475        .22470E-03   -.84997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37357e-08
Minuit parameter uncertainties:
  1  6.55415e-07
  2  12.9184
  3  24.3314
  4  5.15466e-06
  5  1.21104e-05
  6  6.29603
  7  4.39113e-05
  8  28.318
  9  6.86201e-06
  10  1.203e-05
  11  1.01493e-05
  12  7.17683
  13  1.61964e-05
  14  3.47425e-07
  15  2.99484e-06
  16  48.5013
  17  9.31971e-05
  18  2.92339e-05
  19  10.4174
  20  2.0304
  21  2.44075e-07
  22  1.59389e-06
  23  7.08603e-06
  24  11.0857
  25  2.62201e-06
  26  16.802
  27  4.31375
  28  0.21864
  29  0.204884
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.511e+01  4.850e+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.244e+00  2.049e-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:  6.622e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/439454/likelihoodResults_305683201_305942401_4FGL_J1516.8+3651_daily_bin256.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): 0
logL (Free Index) = 6754.37961179
delta logL = 0.125231858412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6754.37125093
delta logL = 0.13359272131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.403       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7486       1.0000          .0000       10.000    
     3 'Normalizat'    .64731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2523       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=   6754.371     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      325 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.399        55.057        .90928E-04   -.22303E-03
   2  Index         2.7488        1.4716        .78526E-02   -.10881E-03
   3  Normalizat    .64685        .21022        .30746E-03   -.19479E-03
   4  Prefactor     1.2528        .20515        .22398E-03   -.27241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3989
  Index      = 2.74878
  Normalizat = 0.64685
  Prefactor  = 1.25278
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.371     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.399        41.379        .18186E-04   -1.4827    
   2  Index         2.7488        1.1128        .31410E-03   -.46704    
   3  Normalizat    .64685        .20917        .12298E-04   -1.0603    
   4  Prefactor     1.2528        .20459        .44795E-04   -.84722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68177e-10
Minuit parameter uncertainties:
  1  41.4398
  2  1.12462
  3  0.209429
  4  0.204716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439454': 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): 0
logL (Free Index) = 6754.37124827
delta logL = 0.133595378007

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.940e+01  4.144e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.749e+00  1.125e+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.253e+00  2.047e-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:  6.469e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 229.222 36.850
Photon Index (Free Index): 2.75 +/- 1.12
Photon Flux (Free Index): 2.58e-08 +/- 3.59e-08
Energy Flux (Free Index): 5.99e-06 +/- 7.06e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/439454/cmap_HighResolution_305683201_305942401_4FGL_J1516.8+3651_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', comment='SUCCESS', energy_flux2='5.99e-06', dlogl='1.34e-01', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-11 22:45:45.572526', photon_index_error2='1.12', photon_index2='2.75', ts='0.90', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.00e-08', energy_flux_error2='7.06e-06', EG='0.66', time_epoch_completed='1631425545.57', return_code='0', job_id='439454', GAL2='1.25', EG2='0.65', return_code2='0', photon_flux_error2='3.59e-08', ts2='1.17', photon_index='2.19' WHERE bin_id='256' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 439454: <4FGL_J1516.8+3651_daily_bin256> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin256 229.222 36.8505 305683201 305942401 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 :                                   862.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            888 sec.

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

