/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin399
RA = 229.222, Dec = 36.8505
tmin = 342748801, tmax = 343008001
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='440790', job_status='RUN', time_executed='2021-09-11 22:36:17.164779', time_epoch_executed='1631424977.16' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440790/ft1_4FGL_J1516.8+3651_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440790/ft2_4FGL_J1516.8+3651_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440790/ft1_4FGL_J1516.8+3651_daily_bin399.fits outfile=/scratch/kocevski/440790/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin399.fits ra=229.222 dec=36.8505 rad=12.0 tmin=342748801.0 tmax=343008001.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.55
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440790/ft1_filtered_4FGL_J1516.8+3651_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/440790/ft2_4FGL_J1516.8+3651_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/440790/ltcube_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.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/440790/ft2_4FGL_J1516.8+3651_daily_bin399.fits
.....................!
real 12.23
user 11.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440790/ft1_filtered_4FGL_J1516.8+3651_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/440790/ft2_4FGL_J1516.8+3651_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/440790/ltcube_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.fits outfile=/scratch/kocevski/440790/expmap_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.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/440790/ltcube_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.fits
.....................!
real 191.37
user 186.02
sys 4.75

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/440790/ft1_filtered_4FGL_J1516.8+3651_daily_bin399.fits scfile=/scratch/kocevski/440790/ft2_4FGL_J1516.8+3651_daily_bin399.fits outfile=/scratch/kocevski/440790/cmap_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440790/ft1_filtered_4FGL_J1516.8+3651_daily_bin399.fits scfile=/scratch/kocevski/440790/ft2_4FGL_J1516.8+3651_daily_bin399.fits outfile=/scratch/kocevski/440790/cmap_HighResolution_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    16.233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.899       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.0521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9775       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8432       1.0000         .10000E-03   10000.    
    14 'norm      '    .13105E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.680       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.004       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20258E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.9742       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3718       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4853       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5114       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57123       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=   6853.570     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3696 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1111        .13503E-07** at limit **
   2  Prefactor     16.237        15.740       -.11352E-06   -.54603E-04
   3  Prefactor     .10000E-03    20.412       -.59918E-06** at limit **
   4  norm          .10000E-03    24.776        .64709E-05** at limit **
   5  Prefactor     .10000E-03    91.953       -.10129E-04** at limit **
   6  norm          10.453        7.8882       -.44296E-06   -.15960E-02
   7  Prefactor     46.885        46.769       -.11139E-04    .27800E-04
   8  Prefactor     .10000E-03    87.967        .35910E-05** at limit **
   9  norm          9.0511        8.8346        .97802E-07    .46773E-04
  10  Prefactor     .10000E-03    9.3480       -.15212E-05** at limit **
  11  Prefactor     .10000E-03    11.441       -.24364E-05** at limit **
  12  Prefactor     2.9786        6.0237        .14331E-05   -.36001E-03
  13  norm          1.8433        1.5267       -.13747E-07    .69518E-04
  14  norm          .10000E-03    2.6664       -.46611E-06** at limit **
  15  Prefactor     7.7652        10.616        .11946E-05    .43249E-03
  16  Prefactor     .10000E-03    43.978        .15722E-05** at limit **
  17  Prefactor     .10000E-03    7.5205        .14276E-06** at limit **
  18  Prefactor     10.674        22.647       -.76722E-06    .16320E-03
  19  Prefactor     .10000E-03    31.984       -.10209E-04** at limit **
  20  norm          15.004        2.3386       -.50217E-07   -.33072E-03
  21  Prefactor     .10000E-03    10.030        .23564E-05** at limit **
  22  Prefactor     .10000E-03    11.313        .13086E-05** at limit **
  23  Prefactor     .10000E-03    47.685        .14308E-04** at limit **
  24  norm          7.9725        8.4886       -.68766E-06   -.28336E-03
  25  Prefactor     5.3716        2.8356       -.98215E-08    .11074E-03
  26  Prefactor     .10000E-03    39.532       -.59537E-05** at limit **
  27  Prefactor     8.4856        5.3140       -.21548E-05   -.24287E-04
  28  Normalizat    1.5113        .19358        .15080E-05    .14633E-03
  29  Prefactor     .57136        .16668       -.57688E-06    .11261E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.2369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 10.453
  Prefactor  = 46.885
  Prefactor  = 0.0001
  norm       = 9.05109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97863
  norm       = 1.84329
  norm       = 0.0001
  Prefactor  = 7.76524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.674
  Prefactor  = 0.0001
  norm       = 15.0043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.97246
  Prefactor  = 5.37161
  Prefactor  = 0.0001
  Prefactor  = 8.48563
  Normalizat = 1.51126
  Prefactor  = 0.571355
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.570     FROM HESSE     STATUS=OK           547 CALLS     4243 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1199        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.237        15.709        .99408E-04   -1.4902    
   3  Prefactor     .10000E-03    20.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.453        8.0666        .61964E-03   -1.5061    
   7  Prefactor     46.885        45.958        .29275E-03   -1.4337    
   8  Prefactor     .10000E-03    88.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.0511        8.8329        .13321E-03   -1.5106    
  10  Prefactor     .10000E-03    9.3736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9786        5.9745        .23529E-03   -1.5363    
  13  norm          1.8433        1.5276        .89013E-04   -1.5436    
  14  norm          .10000E-03    5.4407        .24146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7652        9.8304        .14408E-03   -1.5151    
  16  Prefactor     .10000E-03    44.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.674        22.567        .12260E-03   -1.5054    
  19  Prefactor     .10000E-03    32.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.004        2.3406        .47340E-04   -1.4933    
  21  Prefactor     .10000E-03    10.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.9725        8.4809        .14199E-03   -1.5143    
  25  Prefactor     5.3716        2.8361        .48889E-03   -1.5244    
  26  Prefactor     .10000E-03    40.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.4856        5.3178        .13762E-03   -1.5125    
  28  Normalizat    1.5113        .22879        .23755E-03   -.77462    
  29  Prefactor     .57136        .19333        .33052E-03   -1.0881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27797e-09
Minuit parameter uncertainties:
  1  4.67949e-08
  2  15.7135
  3  5.35948e-05
  4  1.63949e-05
  5  0.000831369
  6  8.0674
  7  45.993
  8  0.000154879
  9  8.8342
  10  4.09394e-06
  11  3.71454e-05
  12  5.97564
  13  1.52761
  14  0.000101233
  15  9.8324
  16  1.08068e-05
  17  8.91304e-06
  18  22.5851
  19  8.43855e-05
  20  2.34065
  21  1.6763e-05
  22  1.92936e-06
  23  0.000263799
  24  8.4822
  25  2.83613
  26  9.1309e-05
  27  5.31809
  28  0.228948
  29  0.19355
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.081e-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:  5.714e-01  1.935e-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.511e+00  2.289e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440790/likelihoodResults_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.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) = 6853.57036464
delta logL = -0.000108062278741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6853.57025671
delta logL = -1.27344719658e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1312       1.0000          .0000       10.000    
     3 'Normalizat'    1.5113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57136       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=   6853.570     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      240 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6342.6        .90712E-02** at limit **
   2  Index         2.1432        5.3707        .50000       -.23742E-05
   3  Normalizat    1.5113        .42729E-01    .53730E-01    .12060E-06
   4  Prefactor     .57135        .38634E-01    .74647E-01    .33494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14315
  Normalizat = 1.51126
  Prefactor  = 0.571355
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.570     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8172.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1432        5.5839        .50000       -.60817    
   3  Normalizat    1.5113        .10503        .23755E-03   -.77462    
   4  Prefactor     .57135        .94757E-01    .33052E-03   -1.0881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75876e-09
Minuit parameter uncertainties:
  1  0.000716424
  2  58.1225
  3  0.105042
  4  0.094783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440790': 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) = 6853.57025661
delta logL = -2.80015228782e-08

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  7.164e-04  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.143e+00  5.812e+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:  5.714e-01  9.478e-02  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.511e+00  1.050e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/440790/cmap_HighResolution_342748801_343008001_4FGL_J1516.8+3651_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-11 22:50:51.798016', job_id='440790', GAL2='0.57', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631425851.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='-2.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='399' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 440790: <4FGL_J1516.8+3651_daily_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin399 229.222 36.8505 342748801 343008001 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 :                                   871.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

