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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin616
RA = 229.222, Dec = 36.8505
tmin = 398995201, tmax = 399254401
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='442182', job_status='RUN', time_executed='2021-09-11 22:41:23.212316', time_epoch_executed='1631425283.21' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442182/ft1_4FGL_J1516.8+3651_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442182/ft2_4FGL_J1516.8+3651_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442182/ft1_4FGL_J1516.8+3651_daily_bin616.fits outfile=/scratch/kocevski/442182/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin616.fits ra=229.222 dec=36.8505 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.40
user 5.14
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442182/ft1_filtered_4FGL_J1516.8+3651_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/442182/ft2_4FGL_J1516.8+3651_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/442182/ltcube_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.fits outfile=/scratch/kocevski/442182/expmap_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.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/442182/ltcube_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.fits
.....................!
real 191.20
user 185.47
sys 5.33

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/442182/ft1_filtered_4FGL_J1516.8+3651_daily_bin616.fits scfile=/scratch/kocevski/442182/ft2_4FGL_J1516.8+3651_daily_bin616.fits outfile=/scratch/kocevski/442182/cmap_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442182/ft1_filtered_4FGL_J1516.8+3651_daily_bin616.fits scfile=/scratch/kocevski/442182/ft2_4FGL_J1516.8+3651_daily_bin616.fits outfile=/scratch/kocevski/442182/cmap_HighResolution_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/442182/ft1_filtered_4FGL_J1516.8+3651_daily_bin616.fits', '/scratch/kocevski/442182/ft2_4FGL_J1516.8+3651_daily_bin616.fits', expMap='/scratch/kocevski/442182/expmap_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.fits', expCube='/scratch/kocevski/442182/ltcube_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/442182/Model_4FGL_J1516.8+3651_daily_bin616.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/442182/ft1_filtered_4FGL_J1516.8+3651_daily_bin616.fits
Spacecraft file(s): /scratch/kocevski/442182/ft2_4FGL_J1516.8+3651_daily_bin616.fits
Exposure map: /scratch/kocevski/442182/expmap_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.fits
Exposure cube: /scratch/kocevski/442182/ltcube_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/442182/Model_4FGL_J1516.8+3651_daily_bin616.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4817.7789171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51113E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.558       1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.788       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9103       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8102       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1936       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6782       1.0000         .10000E-03   10000.    
    24 'norm      '    .10831E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .28933E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2592       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90544       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=   4817.725     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3242 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8672       -.26875E-07** at limit **
   2  Prefactor     .10004E-03    21.079       -.17474E-06** at limit **
   3  Prefactor     21.607        20.893        .45812E-07   -.24743E-03
   4  norm          .10000E-03    13.759       -.13928E-06** at limit **
   5  Prefactor     .10000E-03    27.154       -.31447E-06** at limit **
   6  norm          .10000E-03    6.6654       -.87833E-08** at limit **
   7  Prefactor     41.573        39.387       -.42778E-07   -.58347E-05
   8  Prefactor     14.696        54.861       -.13508E-04   -.17108E-03
   9  norm          .10000E-03    3.7196       -.60020E-08** at limit **
  10  Prefactor     38.808        23.274        .11194E-06   -.16183E-04
  11  Prefactor     6.7580        9.6563        .22546E-05   -.25717E-03
  12  Prefactor     .10000E-03    7.6658        .24316E-06** at limit **
  13  norm          2.9106        2.5950       -.18726E-06   -.87300E-04
  14  norm          .10000E-03    1.9763        .10181E-06** at limit **
  15  Prefactor     .10000E-03    3.8702        .10348E-06** at limit **
  16  Prefactor     .10000E-03    65.161       -.15120E-05** at limit **
  17  Prefactor     4.8072        12.423        .60637E-05   -.31653E-03
  18  Prefactor     .10000E-03    35.315        .15192E-05** at limit **
  19  Prefactor     .10000E-03    9.0918        .65142E-06** at limit **
  20  norm          4.1917        3.3553       -.91446E-06   -.73736E-03
  21  Prefactor     1.5316        75.455        .99022E-05    .66000E-05
  22  Prefactor     .10000E-03    16.888        .10008E-06** at limit **
  23  Prefactor     4.6414        28.546        .36125E-05    .71285E-04
  24  norm          .10000E-03    9.8024        .28479E-06** at limit **
  25  Prefactor     1.4716        2.0869        .20902E-07   -.12359E-03
  26  Prefactor     .10000E-03    8.8846       -.28562E-06** at limit **
  27  Prefactor     .10002E-03    3.5750       -.34994E-06** at limit **
  28  Normalizat    1.2586        .22954        .23972E-05   -.19671E-03
  29  Prefactor     .90604        .20772       -.35209E-05    .83391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 21.607
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.5727
  Prefactor  = 14.6964
  norm       = 0.0001
  Prefactor  = 38.8081
  Prefactor  = 6.75802
  Prefactor  = 0.0001
  norm       = 2.91064
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.80718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19174
  Prefactor  = 1.53157
  Prefactor  = 0.0001
  Prefactor  = 4.64144
  norm       = 0.0001
  Prefactor  = 1.47162
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Normalizat = 1.2586
  Prefactor  = 0.906045
 **********
 **   18 **HESSE 
 **********

 FCN=   4817.725     FROM HESSE     STATUS=OK           553 CALLS     3795 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9014        .14950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    21.967        .90336E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.607        21.200        .86266E-04   -1.4778    
   4  norm          .10000E-03    13.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9326        .34988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.573        39.402        .62177E-04   -1.4418    
   8  Prefactor     14.696        57.174        .10415E-03   -1.4941    
   9  norm          .10000E-03    3.7205        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.808        23.289        .64348E-04   -1.4461    
  11  Prefactor     6.7580        9.6871        .77178E-03   -1.5188    
  12  Prefactor     .10000E-03    7.7507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9106        2.5780        .96227E-04   -1.5367    
  14  norm          .10000E-03    2.0014        .95276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8771        .13334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8072        12.565        .91715E-03   -1.5269    
  18  Prefactor     .10000E-03    35.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1917        3.0412        .61567E-04   -1.5298    
  21  Prefactor     1.5316        62.635        .34643E-03   -1.5460    
  22  Prefactor     .10000E-03    16.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6414        28.567        .18606E-03   -1.5277    
  24  norm          .10000E-03    9.8107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4716        2.0620        .11540E-03   -1.5465    
  26  Prefactor     .10000E-03    8.8925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    28.054        .24841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2586        .26872        .24897E-03   -.84811    
  29  Prefactor     .90604        .24351        .26597E-03   -.95930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56146e-09
Minuit parameter uncertainties:
  1  5.08771e-06
  2  0.00186194
  3  21.2072
  4  2.25563e-06
  5  7.08854e-05
  6  1.67069e-06
  7  39.4265
  8  57.3886
  9  4.46687e-07
  10  23.2949
  11  9.68939
  12  2.98793e-06
  13  2.57807
  14  1.60876e-06
  15  3.83239e-06
  16  0.000389331
  17  12.5715
  18  8.0804e-05
  19  2.10707e-05
  20  3.04135
  21  19.6101
  22  2.26786e-06
  23  23.046
  24  3.98387e-05
  25  2.06208
  26  3.14493e-05
  27  0.00160437
  28  0.269022
  29  0.243803
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  3.893e-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.060e-01  2.438e-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.259e+00  2.690e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442182/likelihoodResults_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.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) = 4817.72495678
delta logL = -7.28838858777e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4817.72488399
delta logL = -9.19826561585e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10961E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1417       1.0000          .0000       10.000    
     3 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90604       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=   4817.725     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7207.3        .90712E-02** at limit **
   2  Index         2.1517        7.3072        .50000       -.13413E-05
   3  Normalizat    1.2586        .55329E-01    .56302E-01    .53335E-05
   4  Prefactor     .90604        .51344E-01    .45082E-01    .11898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15166
  Normalizat = 1.25861
  Prefactor  = 0.90604
 **********
 **   18 **HESSE 
 **********

 FCN=   4817.725     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9304.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1517        6.1910        .50000       -.60610    
   3  Normalizat    1.2586        .15749        .24897E-03   -.84811    
   4  Prefactor     .90604        .14617        .26597E-03   -.95930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11142e-10
Minuit parameter uncertainties:
  1  1.87026e-05
  2  61.6754
  3  0.157548
  4  0.146233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442182': 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) = 4817.72488391
delta logL = -1.27784005599e-08

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.870e-05  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.152e+00  6.168e+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:  9.060e-01  1.462e-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.259e+00  1.575e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/442182/cmap_HighResolution_398995201_399254401_4FGL_J1516.8+3651_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-11 22:52:52.532967', job_id='442182', GAL2='0.91', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631425972.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='616' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:52:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 442182: <4FGL_J1516.8+3651_daily_bin616> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin616 229.222 36.8505 398995201 399254401 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 :                                   684.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            714 sec.

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

