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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1410
RA = 229.222, Dec = 36.8505
tmin = 604800001, tmax = 605059201
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='449802', job_status='RUN', time_executed='2021-09-11 23:08:27.993825', time_epoch_executed='1631426907.99' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449802/ft1_4FGL_J1516.8+3651_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449802/ft2_4FGL_J1516.8+3651_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449802/ft1_4FGL_J1516.8+3651_daily_bin1410.fits outfile=/scratch/kocevski/449802/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1410.fits ra=229.222 dec=36.8505 rad=12.0 tmin=604800001.0 tmax=605059201.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.06
user 4.81
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449802/ft1_filtered_4FGL_J1516.8+3651_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/449802/ft2_4FGL_J1516.8+3651_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/449802/ltcube_604800001_605059201_4FGL_J1516.8+3651_daily_bin1410.fits outfile=/scratch/kocevski/449802/expmap_604800001_605059201_4FGL_J1516.8+3651_daily_bin1410.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/449802/ltcube_604800001_605059201_4FGL_J1516.8+3651_daily_bin1410.fits
.....................!
real 190.50
user 184.88
sys 5.23

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5406       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .80144       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.197       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7080       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8389       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .92347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8771       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90913       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=   6636.378     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3727 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9030        .23036E-07** at limit **
   2  Prefactor     .10000E-03    5.4482        .11792E-06** at limit **
   3  Prefactor     .10000E-03    7.4573        .20445E-06** at limit **
   4  norm          5.5411        9.8658       -.78569E-07   -.36621E-05
   5  Prefactor     .76076        38.544        .69726E-05   -.28547E-03
   6  norm          7.2387        7.3027        .10081E-05    .37749E-03
   7  Prefactor     .10000E-03    25.142       -.82686E-06** at limit **
   8  Prefactor     70.221        44.716       -.14127E-05    .12398E-03
   9  norm          .10000E-03    3.6822        .23618E-07** at limit **
  10  Prefactor     .10000E-03    4.6121        .35715E-07** at limit **
  11  Prefactor     4.3467        8.0187        .32034E-05    .57742E-03
  12  Prefactor     .10000E-03    6.8841       -.66228E-07** at limit **
  13  norm          2.7080        1.8937       -.26455E-06    .34238E-04
  14  norm          .10000E-03    1.6001       -.23899E-07** at limit **
  15  Prefactor     7.8407        7.0550        .42005E-06    .16062E-03
  16  Prefactor     .10000E-03    24.595        .75229E-06** at limit **
  17  Prefactor     13.541        10.279        .17077E-06    .71888E-04
  18  Prefactor     .10000E-03    11.462        .28180E-06** at limit **
  19  Prefactor     .10000E-03    6.6896       -.21798E-06** at limit **
  20  norm          .10000E-03    .48420       -.13258E-06** at limit **
  21  Prefactor     .93480        6.7129        .17858E-05   -.21976E-03
  22  Prefactor     16.316        27.066        .13015E-05   -.35466E-05
  23  Prefactor     .10000E-03    8.3610       -.11592E-07** at limit **
  24  norm          .10000E-03    6.6486       -.24777E-06** at limit **
  25  Prefactor     .10000E-03    1.7312       -.44797E-06** at limit **
  26  Prefactor     .10000E-03    10.763       -.53327E-06** at limit **
  27  Prefactor     1.8772        4.4337        .43752E-06    .88231E-04
  28  Normalizat    1.2887        .19611       -.15477E-05    .25632E-04
  29  Prefactor     .90908        .17271        .12963E-05    .12990E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.54106
  Prefactor  = 0.760755
  norm       = 7.23873
  Prefactor  = 0.0001
  Prefactor  = 70.2208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34672
  Prefactor  = 0.0001
  norm       = 2.70801
  norm       = 0.0001
  Prefactor  = 7.84075
  Prefactor  = 0.0001
  Prefactor  = 13.5407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.934801
  Prefactor  = 16.3162
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87715
  Normalizat = 1.28873
  Prefactor  = 0.909083
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.378     FROM HESSE     STATUS=OK           555 CALLS     4282 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9453        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5411        9.8544        .17069E-03   -1.5237    
   5  Prefactor     .76076        197.14        .73634E-02   -1.5534    
   6  norm          7.2387        7.3066        .74543E-03   -1.5170    
   7  Prefactor     .10000E-03    25.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.221        45.191        .47912E-04   -1.4030    
   9  norm          .10000E-03    3.6922        .15267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6163        .17085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3467        8.2479        .96602E-03   -1.5291    
  12  Prefactor     .10000E-03    7.2017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7080        1.9033        .84832E-04   -1.5379    
  14  norm          .10000E-03    1.6126        .10050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8407        7.0420        .71608E-03   -1.5148    
  16  Prefactor     .10000E-03    24.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.541        10.275        .10884E-03   -1.4972    
  18  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .69922        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .93480        23.639        .33145E-02   -1.5515    
  22  Prefactor     16.316        27.750        .99061E-04   -1.4900    
  23  Prefactor     .10000E-03    8.3692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.6698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.1479        .20534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.8772        4.4108        .25271E-03   -1.5434    
  28  Normalizat    1.2887        .22999        .24038E-03   -.83903    
  29  Prefactor     .90908        .20515        .26362E-03   -.95824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25535e-09
Minuit parameter uncertainties:
  1  2.6762e-06
  2  8.73599e-06
  3  1.91458e-05
  4  9.85732
  5  24.5736
  6  7.30751
  7  6.31074e-05
  8  45.2128
  9  9.83368e-07
  10  7.84733e-06
  11  8.25005
  12  3.16829e-05
  13  1.90335
  14  2.73395e-06
  15  7.04274
  16  8.91267e-05
  17  10.2759
  18  4.21102e-05
  19  1.59134e-06
  20  1.47383e-05
  21  9.4052
  22  27.7719
  23  9.27035e-06
  24  2.9862e-06
  25  3.41871e-05
  26  2.34791e-05
  27  4.41151
  28  0.230176
  29  0.205327
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.091e-01  2.053e-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.289e+00  2.302e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449802/likelihoodResults_604800001_605059201_4FGL_J1516.8+3651_daily_bin1410.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) = 6636.37854969
delta logL = -0.000193509834389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6636.37835818
delta logL = -2.00209433387e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13495E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5286       1.0000          .0000       10.000    
     3 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90908       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=   6636.378     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10331E-03    7.3940        .18142E-01** at limit **
   2  Index         2.4423        5.0756        .50000        .14878E-04
   3  Normalizat    1.2887        .28349E-02    .24038E-03   -.11824E-05
   4  Prefactor     .90908        .26781E-02    .26362E-03   -.74607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103308
  Index      = 2.44226
  Normalizat = 1.28873
  Prefactor  = 0.909081
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.378     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10331E-03    72.457        .34378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4423        5.6627        .50000       -.53699    
   3  Normalizat    1.2887        .89068E-02    .96152E-05   -.83903    
   4  Prefactor     .90908        .84139E-02    .10545E-04   -.95825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.76122e-09
Minuit parameter uncertainties:
  1  0.0309997
  2  253.068
  3  0.00890684
  4  0.00841395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449802': 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) = 6636.37835691
delta logL = -7.3016872193e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.033e-04  3.100e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.442e+00  2.531e+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.091e-01  8.414e-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.289e+00  8.907e-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/449802/cmap_HighResolution_604800001_605059201_4FGL_J1516.8+3651_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-11 23:22:36.145302', job_id='449802', GAL2='0.91', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631427756.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-7.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1410' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:22:36 PDT 2021

UCCESS', return_code='0', GAL='0.91', dlogl='-7.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1410' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:17:21 PDT 2021


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

Job <4FGL_J1516.8+3651_daily_bin1410> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:17 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:01:19 2021
Terminated at Sat Sep 11 23:17:22 2021
Results reported at Sat Sep 11 23:17:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1410 229.222 36.8505 604800001 605059201 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 :                                   858.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 449802: <4FGL_J1516.8+3651_daily_bin1410> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1410> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:07:07 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:07:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:07:08 2021
Terminated at Sat Sep 11 23:22:36 2021
Results reported at Sat Sep 11 23:22:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1410 229.222 36.8505 604800001 605059201 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

