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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin439
RA = 229.222, Dec = 36.8505
tmin = 353116801, tmax = 353376001
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='440832', job_status='RUN', time_executed='2021-09-11 22:36:20.879859', time_epoch_executed='1631424980.88' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440832/ft1_4FGL_J1516.8+3651_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440832/ft2_4FGL_J1516.8+3651_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440832/ft1_4FGL_J1516.8+3651_daily_bin439.fits outfile=/scratch/kocevski/440832/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin439.fits ra=229.222 dec=36.8505 rad=12.0 tmin=353116801.0 tmax=353376001.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.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440832/ft2_4FGL_J1516.8+3651_daily_bin439.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/440832/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/440832/ft1_filtered_4FGL_J1516.8+3651_daily_bin439.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/440832/ft1_filtered_4FGL_J1516.8+3651_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/440832/ft2_4FGL_J1516.8+3651_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/440832/ltcube_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.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/440832/ft2_4FGL_J1516.8+3651_daily_bin439.fits
.....................!
real 12.03
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440832/ft1_filtered_4FGL_J1516.8+3651_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/440832/ft2_4FGL_J1516.8+3651_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/440832/ltcube_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.fits outfile=/scratch/kocevski/440832/expmap_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.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/440832/ltcube_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.fits
.....................!
real 190.25
user 185.45
sys 4.43

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/440832/ft1_filtered_4FGL_J1516.8+3651_daily_bin439.fits scfile=/scratch/kocevski/440832/ft2_4FGL_J1516.8+3651_daily_bin439.fits outfile=/scratch/kocevski/440832/cmap_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440832/ft1_filtered_4FGL_J1516.8+3651_daily_bin439.fits scfile=/scratch/kocevski/440832/ft2_4FGL_J1516.8+3651_daily_bin439.fits outfile=/scratch/kocevski/440832/cmap_HighResolution_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=229.222 yref=36.8505 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.100       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16436E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8604       1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.083       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41792       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1507       1.0000         .10000E-03   10000.    
    13 'norm      '    .81425       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3108       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3177       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.4788       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .51767       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99114       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82212       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=   6979.284     FROM MIGRAD    STATUS=CONVERGED   1311 CALLS     4304 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.100        9.1853        .37135E-03    .20524E-04
   2  Prefactor     .10000E-03    15.682        .18142E-02** at limit **
   3  Prefactor     .10000E-03    10.372        .18142E-02** at limit **
   4  norm          5.3307        15.997        .17411E-03    .74437E-05
   5  Prefactor     .10000E-03    71.650        .18142E-02** at limit **
   6  norm          9.8683        8.5631        .12761E-03    .61204E-04
   7  Prefactor     68.615        46.772        .24220E-03   -.23704E-04
   8  Prefactor     45.110        36.430        .59712E-04    .19801E-04
   9  norm          .10000E-03    4.3524        .16980E-02** at limit **
  10  Prefactor     .26160        17.985        .76550E-01    .33606E-03
  11  Prefactor     .10000E-03    2.3547        .12496E-02** at limit **
  12  Prefactor     4.1495        6.1175        .98921E-03    .26031E-04
  13  norm          .81432        .98428        .10032E-02   -.31610E-03
  14  norm          5.4683        4.0242        .11516E-03    .37346E-03
  15  Prefactor     .19575        82.161        .38040E-02    .38547E-03
  16  Prefactor     .10000E-03    24.894        .18142E-02** at limit **
  17  Prefactor     8.1578        9.6682        .14037E-03    .68845E-05
  18  Prefactor     .10000E-03    6.0436        .18142E-02** at limit **
  19  Prefactor     .10000E-03    4.1559        .16596E-02** at limit **
  20  norm          11.208        2.0005        .46465E-04    .33887E-03
  21  Prefactor     .10000E-03    8.4413        .18142E-02** at limit **
  22  Prefactor     7.3095        27.785        .14834E-03    .38320E-05
  23  Prefactor     .10000E-03    38.954        .18142E-02** at limit **
  24  norm          .10000E-03    24.664        .36285E-03** at limit **
  25  Prefactor     4.3171        3.1019        .11773E-03    .19892E-04
  26  Prefactor     2.4786        9.4283        .25967E-03    .60855E-05
  27  Prefactor     .51748        4.8381        .34712E-03    .18046E-04
  28  Normalizat    .99129        .20149        .25229E-03    .97198E-04
  29  Prefactor     .82208        .18177        .25882E-03    .11109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.1005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33071
  Prefactor  = 0.0001
  norm       = 9.86831
  Prefactor  = 68.6152
  Prefactor  = 45.1095
  norm       = 0.0001
  Prefactor  = 0.261601
  Prefactor  = 0.0001
  Prefactor  = 4.14954
  norm       = 0.81432
  norm       = 5.46834
  Prefactor  = 0.195752
  Prefactor  = 0.0001
  Prefactor  = 8.15777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2081
  Prefactor  = 0.0001
  Prefactor  = 7.30951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.31711
  Prefactor  = 2.47861
  Prefactor  = 0.517479
  Normalizat = 0.991291
  Prefactor  = 0.822081
 **********
 **   18 **HESSE 
 **********

 FCN=   6979.284     FROM HESSE     STATUS=OK           539 CALLS     4843 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.100        9.1843        .74269E-04   -1.4629    
   2  Prefactor     .10000E-03    15.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3307        15.994        .69644E-05   -1.5246    
   5  Prefactor     .10000E-03    71.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8683        8.5556        .51045E-05   -1.5080    
   7  Prefactor     68.615        46.768        .96882E-05   -1.4049    
   8  Prefactor     45.110        36.407        .23885E-05   -1.4364    
   9  norm          .10000E-03    4.3530        .33960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .26160        15.071        .85488E-01   -1.5606    
  11  Prefactor     .10000E-03    2.3548        .24992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1495        6.1161        .39568E-04   -1.5301    
  13  norm          .81432        .98334        .40128E-04   -1.5527    
  14  norm          5.4683        3.7913        .46064E-05   -1.5240    
  15  Prefactor     .19575        74.375        .15216E-03   -1.5619    
  16  Prefactor     .10000E-03    24.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1578        9.6658        .56146E-05   -1.5137    
  18  Prefactor     .10000E-03    6.0439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1563        .33192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.208        1.9995        .18586E-05   -1.5038    
  21  Prefactor     .10000E-03    8.4429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3095        27.779        .59336E-05   -1.5167    
  23  Prefactor     .10000E-03    38.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    24.665        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3171        3.1010        .47093E-05   -1.5292    
  26  Prefactor     2.4786        9.4279        .10387E-04   -1.5393    
  27  Prefactor     .51748        4.8332        .13885E-04   -1.5564    
  28  Normalizat    .99129        .20077        .10092E-04   -.93323    
  29  Prefactor     .82208        .18193        .10353E-04   -.98919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49338e-09
Minuit parameter uncertainties:
  1  9.18477
  2  3.63189e-05
  3  2.13218e-05
  4  16.0071
  5  5.22056e-06
  6  8.5567
  7  46.793
  8  36.4248
  9  8.81639e-07
  10  3.97148
  11  5.87487e-06
  12  6.11698
  13  0.983361
  14  3.79151
  15  7.63889
  16  2.08678e-06
  17  9.6676
  18  5.81014e-06
  19  5.62085e-06
  20  1.99949
  21  1.06153e-05
  22  27.8278
  23  0.000223359
  24  9.03904e-05
  25  3.10109
  26  9.43353
  27  3.163
  28  0.200918
  29  0.182059
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  2.087e-06  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.221e-01  1.821e-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.913e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/440832/likelihoodResults_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.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) = 6979.28423635
delta logL = -0.000191328113033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6979.28404496
delta logL = 6.46277840133e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1098       1.0000          .0000       10.000    
     3 'Normalizat'    .99129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82208       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=   6979.284     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6212.5        .90712E-02** at limit **
   2  Index         2.0998        8.8986        .50000        .31088E-05
   3  Normalizat    .99129        .48024E-01    .46058E-01   -.12877E-04
   4  Prefactor     .82208        .45508E-01    .44004E-01    .42829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.09979
  Normalizat = 0.99129
  Prefactor  = 0.822081
 **********
 **   18 **HESSE 
 **********

 FCN=   6979.284     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7494.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0998        7.4411        .50000       -.61878    
   3  Normalizat    .99129        .14599        .25229E-03   -.93323    
   4  Prefactor     .82208        .13835        .25882E-03   -.98919    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54418e-10
Minuit parameter uncertainties:
  1  0.00369235
  2  63.1174
  3  0.146049
  4  0.138408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440832': 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) = 6979.28404495
delta logL = 7.51597326598e-08

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  3.692e-03  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.100e+00  6.312e+01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  8.221e-01  1.384e-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.913e-01  1.460e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/440832/cmap_HighResolution_353116801_353376001_4FGL_J1516.8+3651_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-11 22:52:02.117230', job_id='440832', GAL2='0.82', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631425922.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='439' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 440832: <4FGL_J1516.8+3651_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin439 229.222 36.8505 353116801 353376001 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 :                                   935.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

