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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin365
RA = 229.222, Dec = 36.8505
tmin = 333936001, tmax = 334195201
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='439605', job_status='RUN', time_executed='2021-09-11 22:31:23.898900', time_epoch_executed='1631424683.9' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439605/ft1_4FGL_J1516.8+3651_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439605/ft2_4FGL_J1516.8+3651_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439605/ft1_4FGL_J1516.8+3651_daily_bin365.fits outfile=/scratch/kocevski/439605/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin365.fits ra=229.222 dec=36.8505 rad=12.0 tmin=333936001.0 tmax=334195201.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.51
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439605/ft1_filtered_4FGL_J1516.8+3651_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/439605/ft2_4FGL_J1516.8+3651_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/439605/ltcube_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.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/439605/ft2_4FGL_J1516.8+3651_daily_bin365.fits
.....................!
real 12.01
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439605/ft1_filtered_4FGL_J1516.8+3651_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/439605/ft2_4FGL_J1516.8+3651_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/439605/ltcube_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.fits outfile=/scratch/kocevski/439605/expmap_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.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/439605/ltcube_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.fits
.....................!
real 190.23
user 184.91
sys 4.96

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/439605/ft1_filtered_4FGL_J1516.8+3651_daily_bin365.fits scfile=/scratch/kocevski/439605/ft2_4FGL_J1516.8+3651_daily_bin365.fits outfile=/scratch/kocevski/439605/cmap_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=229.222 yref=36.8505 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439605/ft1_filtered_4FGL_J1516.8+3651_daily_bin365.fits scfile=/scratch/kocevski/439605/ft2_4FGL_J1516.8+3651_daily_bin365.fits outfile=/scratch/kocevski/439605/cmap_HighResolution_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20504E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.293       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8014       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6373       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.795       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0083       1.0000         .10000E-03   10000.    
    14 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46231E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0392       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3803       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.707       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95447       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=   5878.195     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     4231 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7356        .33910E-07** at limit **
   2  Prefactor     .10027E-03    17.036        .84466E-06** at limit **
   3  Prefactor     .10000E-03    35.712        .89059E-06** at limit **
   4  norm          10.257        16.985       -.15721E-05    .11315E-03
   5  Prefactor     .10000E-03    11.153       -.67467E-06** at limit **
   6  norm          .10000E-03    2.5535        .52992E-07** at limit **
   7  Prefactor     24.180        37.311        .10408E-05    .32672E-04
   8  Prefactor     2.8143        141.53        .67853E-05    .11746E-04
   9  norm          .10000E-03    3.0178       -.26323E-08** at limit **
  10  Prefactor     10.948        12.038       -.13750E-07   -.19981E-04
  11  Prefactor     7.6372        7.1248       -.13024E-07   -.14100E-04
  12  Prefactor     15.797        10.618        .64526E-06   -.22117E-03
  13  norm          2.0083        1.8944        .12522E-06   -.10389E-03
  14  norm          .10000E-03    1.8429       -.28642E-07** at limit **
  15  Prefactor     .10000E-03    8.9335       -.73984E-06** at limit **
  16  Prefactor     .10000E-03    26.369       -.16842E-05** at limit **
  17  Prefactor     11.450        11.109        .21602E-06   -.21029E-04
  18  Prefactor     .10000E-03    11.917        .99651E-06** at limit **
  19  Prefactor     1.0136        17.219        .17756E-05   -.15685E-03
  20  norm          5.3797        1.8744        .63296E-07   -.12857E-03
  21  Prefactor     .10000E-03    24.207       -.20524E-06** at limit **
  22  Prefactor     .10000E-03    20.097        .22829E-05** at limit **
  23  Prefactor     21.709        17.005        .66744E-08   -.23237E-04
  24  norm          .10000E-03    8.9865        .19951E-07** at limit **
  25  Prefactor     .10000E-03    2.6144        .66641E-08** at limit **
  26  Prefactor     .10000E-03    15.635       -.14388E-05** at limit **
  27  Prefactor     .10000E-03    3.2684       -.17269E-07** at limit **
  28  Normalizat    1.0568        .21076       -.14692E-05   -.10242E-03
  29  Prefactor     .95448        .18347        .11950E-06   -.14374E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100273
  Prefactor  = 0.0001
  norm       = 10.2569
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.18
  Prefactor  = 2.81431
  norm       = 0.0001
  Prefactor  = 10.9481
  Prefactor  = 7.63724
  Prefactor  = 15.7968
  norm       = 2.00827
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4502
  Prefactor  = 0.0001
  Prefactor  = 1.0136
  norm       = 5.3797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05676
  Prefactor  = 0.954478
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.195     FROM HESSE     STATUS=OK           563 CALLS     4794 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7388        .98641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10027E-03    24.613        .87172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.257        20.223        .12489E-03   -1.5067    
   5  Prefactor     .10000E-03    11.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5621        .11964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.180        37.392        .81475E-04   -1.4724    
   8  Prefactor     2.8143        141.66        .24306E-03   -1.5372    
   9  norm          .10000E-03    3.0195        .13007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.948        12.037        .12108E-03   -1.5046    
  11  Prefactor     7.6372        7.1127        .14511E-03   -1.5155    
  12  Prefactor     15.797        10.571        .50388E-03   -1.4913    
  13  norm          2.0083        1.8771        .93209E-04   -1.5425    
  14  norm          .10000E-03    1.8516        .10144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.815        .36282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.450        11.108        .11839E-03   -1.5031    
  18  Prefactor     .10000E-03    12.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0136        40.715        .46460E-02   -1.5507    
  20  norm          5.3797        1.8622        .57404E-04   -1.5244    
  21  Prefactor     .10000E-03    24.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.709        16.992        .85970E-04   -1.4776    
  24  norm          .10000E-03    9.0111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.7320        .24182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3953        .27063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0568        .24753        .25176E-03   -.91152    
  29  Prefactor     .95448        .21836        .24850E-03   -.94263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5069e-10
Minuit parameter uncertainties:
  1  1.16105e-06
  2  0.00518912
  3  9.96473e-05
  4  20.2364
  5  3.14238e-05
  6  2.51713e-06
  7  37.4287
  8  40.0334
  9  3.68678e-07
  10  12.0394
  11  7.11352
  12  10.5722
  13  1.87717
  14  1.23401e-06
  15  9.52952e-05
  16  0.000131466
  17  11.1099
  18  5.05166e-05
  19  12.8568
  20  1.86221
  21  1.92541e-05
  22  0.000166473
  23  16.9963
  24  9.37906e-06
  25  9.54271e-06
  26  7.60237e-05
  27  6.5769e-06
  28  0.2478
  29  0.218565
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.315e-04  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.545e-01  2.186e-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.057e+00  2.478e-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: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439605/likelihoodResults_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.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) = 5878.19513534
delta logL = -0.000179485621629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5878.19495682
delta logL = -9.64515493251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5120       1.0000          .0000       10.000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95448       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=   5878.195     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      269 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10261E-03    8.2192        .18142E-01** at limit **
   2  Index         2.4363        6.7832        .50000        .13110E-04
   3  Normalizat    1.0568        .29091E-02    .25177E-03   -.76313E-05
   4  Prefactor     .95448        .27571E-02    .24850E-03   -.21502E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102607
  Index      = 2.43628
  Normalizat = 1.05676
  Prefactor  = 0.954479
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.195     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10261E-03    74.011        .33923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4363        8.7700        .50000       -.53838    
   3  Normalizat    1.0568        .87580E-02    .10071E-04   -.91152    
   4  Prefactor     .95448        .83003E-02    .99402E-05   -.94263    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29486e-09
Minuit parameter uncertainties:
  1  0.0278141
  2  233.274
  3  0.00875805
  4  0.00830032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439605': 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) = 5878.19495646
delta logL = -6.09194103163e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.026e-04  2.781e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.436e+00  2.333e+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.545e-01  8.300e-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:  1.057e+00  8.758e-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/439605/cmap_HighResolution_333936001_334195201_4FGL_J1516.8+3651_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-11 22:45:11.773760', job_id='439605', GAL2='0.95', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631425511.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-6.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='365' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:45:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 439605: <4FGL_J1516.8+3651_daily_bin365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin365 229.222 36.8505 333936001 334195201 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 :                                   824.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

