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

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


Waiting 4 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7551
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.1+4351_daily_bin799
RA = 229.049, Dec = 43.8527
tmin = 446428801, tmax = 446688001
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='431840', job_status='RUN', time_executed='2021-09-11 22:01:36.699644', time_epoch_executed='1631422896.7' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431840/ft1_4FGL_J1516.1+4351_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431840/ft1_4FGL_J1516.1+4351_daily_bin799.fits outfile=/scratch/kocevski/431840/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin799.fits ra=229.049 dec=43.8527 rad=12.0 tmin=446428801.0 tmax=446688001.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.23
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.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/431840/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits" evtable="EVENTS" scfile=/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits sctable="SC_DATA" outfile=/scratch/kocevski/431840/ltcube_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.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/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits
.....................!
real 12.01
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/431840/ltcube_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.fits outfile=/scratch/kocevski/431840/expmap_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.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/431840/ltcube_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.fits
.....................!
real 191.33
user 185.24
sys 5.66

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits scfile=/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits outfile=/scratch/kocevski/431840/cmap_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.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.049 yref=43.8527 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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits scfile=/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits outfile=/scratch/kocevski/431840/cmap_HighResolution_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.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.049 yref=43.8527 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/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431840/Model_4FGL_J1516.1+4351_daily_bin799.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/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits.....................!
real 46.38
user 44.98
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits', '/scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits', expMap='/scratch/kocevski/431840/expmap_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.fits', expCube='/scratch/kocevski/431840/ltcube_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/431840/Model_4FGL_J1516.1+4351_daily_bin799.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/431840/ft1_filtered_4FGL_J1516.1+4351_daily_bin799.fits
Spacecraft file(s): /scratch/kocevski/431840/ft2_4FGL_J1516.1+4351_daily_bin799.fits
Exposure map: /scratch/kocevski/431840/expmap_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.fits
Exposure cube: /scratch/kocevski/431840/ltcube_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/431840/Model_4FGL_J1516.1+4351_daily_bin799.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) = 5716.30436297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.421       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.395       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.591       1.0000         .10000E-03   10000.    
    11 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42973E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0505       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6277       1.0000         .10000E-03   10000.    
    18 'norm      '    5.1680       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.324       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14423E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11325E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8376       1.0000         .10000E-03   10000.    
    26 'Prefactor '    91.174       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4976       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83533       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5716.300     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3915 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6278        4.8371        .18477E-07   -.11967E-03
   2  Prefactor     17.773        21.094        .47529E-06   -.14179E-03
   3  Prefactor     .10000E-03    27.418        .21213E-05** at limit **
   4  Prefactor     32.411        19.246       -.73159E-06   -.23397E-03
   5  norm          4.4432        13.085        .65633E-07   -.34899E-04
   6  Prefactor     .10000E-03    18.269       -.86503E-06** at limit **
   7  Prefactor     16.401        16.865       -.29198E-06    .97849E-04
   8  norm          .10000E-03    1.5812        .59585E-07** at limit **
   9  Prefactor     .10000E-03    9.6105        .11139E-06** at limit **
  10  Prefactor     23.578        15.622        .45016E-06   -.18544E-03
  11  norm          .10000E-03    3.4138        .30067E-07** at limit **
  12  Prefactor     18.102        14.912        .62505E-07    .11923E-04
  13  Prefactor     .10000E-03    6.8732       -.42370E-06** at limit **
  14  norm          .10003E-03    .71805       -.49608E-06** at limit **
  15  Prefactor     .10000E-03    3.7440        .30539E-07** at limit **
  16  Prefactor     2.0481        5.4897        .78735E-05    .31704E-04
  17  norm          4.6286        1.8892       -.17513E-07   -.54924E-03
  18  norm          5.1681        5.6438       -.20797E-06    .28967E-03
  19  Prefactor     11.322        13.122        .62166E-06    .35872E-03
  20  Prefactor     .10005E-03    686.73       -.85332E-06** at limit **
  21  Prefactor     .10000E-03    5.7927        .58246E-07** at limit **
  22  Prefactor     .10000E-03    14.709       -.21785E-06** at limit **
  23  Prefactor     .10000E-03    8.7027        .10486E-06** at limit **
  24  norm          .10001E-03    25.937        .76500E-06** at limit **
  25  Prefactor     6.8210        21.462       -.52459E-06    .16376E-03
  26  Prefactor     91.149        76.664        .65637E-06   -.77053E-04
  27  Prefactor     3.4977        3.9469       -.15278E-06   -.23765E-03
  28  Prefactor     .10000E-03    16.597        .79245E-06** at limit **
  29  Normalizat    .83544        .18376        .21323E-06    .16049E-03
  30  Prefactor     1.0045        .19242       -.13515E-05    .16975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.62778
  Prefactor  = 17.7727
  Prefactor  = 0.0001
  Prefactor  = 32.4111
  norm       = 4.44323
  Prefactor  = 0.0001
  Prefactor  = 16.4009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5776
  norm       = 0.0001
  Prefactor  = 18.1022
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 2.04808
  norm       = 4.62863
  norm       = 5.16811
  Prefactor  = 11.3218
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 6.82101
  Prefactor  = 91.1488
  Prefactor  = 3.49768
  Prefactor  = 0.000100002
  Normalizat = 0.835442
  Prefactor  = 1.00454
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.300     FROM HESSE     STATUS=OK           586 CALLS     4501 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6278        4.8366        .13684E-03   -1.5193    
   2  Prefactor     17.773        21.203        .95038E-04   -1.4865    
   3  Prefactor     .10000E-03    27.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.411        19.335        .70373E-04   -1.4569    
   5  norm          4.4432        13.072        .19105E-03   -1.5286    
   6  Prefactor     .10000E-03    18.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.401        16.886        .98916E-04   -1.4898    
   8  norm          .10000E-03    1.5848        .92841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.578        15.660        .82471E-04   -1.4736    
  11  norm          .10000E-03    3.4249        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.102        14.928        .94137E-04   -1.4857    
  13  Prefactor     .10000E-03    6.9146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    1.4046        .22742E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7614        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0481        5.4962        .13888E-02   -1.5422    
  17  norm          4.6286        1.8870        .62805E-04   -1.5278    
  18  norm          5.1681        5.6397        .14200E-03   -1.5253    
  19  Prefactor     11.322        13.125        .11905E-03   -1.5035    
  20  Prefactor     .10005E-03    711.38        .36380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7957        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    27.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.8210        21.478        .15344E-03   -1.5186    
  26  Prefactor     91.149        76.676        .42084E-04   -1.3796    
  27  Prefactor     3.4977        3.9477        .15527E-03   -1.5334    
  28  Prefactor     .10000E-03    16.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83544        .21734        .25060E-03   -.98767    
  30  Prefactor     1.0045        .22669        .25000E-03   -.92578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11355e-09
Minuit parameter uncertainties:
  1  4.83688
  2  21.2121
  3  0.000181124
  4  19.339
  5  13.0809
  6  0.000104362
  7  16.8905
  8  3.73067e-06
  9  9.85754e-06
  10  15.6623
  11  6.95046e-06
  12  14.9306
  13  7.72647e-05
  14  0.000419226
  15  4.2142e-06
  16  5.4976
  17  1.88706
  18  5.64031
  19  13.128
  20  0.0116041
  21  4.60403e-06
  22  0.000162742
  23  3.75244e-05
  24  0.00075589
  25  21.5019
  26  76.7594
  27  3.94802
  28  0.000350228
  29  0.217564
  30  0.226904
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.132e+01  1.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.005e+00  2.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  8.354e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 229.049 43.853
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.61e-05

TS (Fixed Index): 1.58
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431840/likelihoodResults_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.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): 0
logL (Free Index) = 5716.25262912
delta logL = 0.0470238141752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5716.24942385
delta logL = 0.0502290870463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.410       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1932       1.0000          .0000       10.000    
     3 'Normalizat'    .84656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   5716.249     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      277 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.412        21.243        .98869E-04    .93255E-04
   2  Index         2.1931        .82228        .65602E-02    .30029E-04
   3  Normalizat    .84656        .20683        .24908E-03    .31236E-03
   4  Prefactor     .99440        .22317        .25107E-03    .48276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4123
  Index      = 2.19309
  Normalizat = 0.846564
  Prefactor  = 0.994398
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.249     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.412        19.740        .39548E-05   -1.4898    
   2  Index         2.1931        .76393        .26241E-03   -.59605    
   3  Normalizat    .84656        .20652        .49817E-04   -.98364    
   4  Prefactor     .99440        .22296        .50214E-04   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4791e-10
Minuit parameter uncertainties:
  1  19.7482
  2  0.768337
  3  0.206714
  4  0.223165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431840': 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): 0
logL (Free Index) = 5716.24942384
delta logL = 0.050229094235

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.641e+01  1.975e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.193e+00  7.683e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.944e-01  2.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  8.466e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 229.049 43.853
Photon Index (Free Index): 2.19 +/- 0.77
Photon Flux (Free Index): 4.05e-08 +/- 4.25e-08
Energy Flux (Free Index): 1.84e-05 +/- 2.33e-05

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/431840/cmap_HighResolution_446428801_446688001_4FGL_J1516.1+4351_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='1.84e-05', photon_flux_error='5.31e-08', dlogl='5.02e-02', energy_flux='1.39e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-09-11 22:15:53.084302', photon_index_error2='0.77', photon_index2='2.19', ts='1.58', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.33e-05', EG='0.84', time_epoch_completed='1631423753.08', return_code='0', job_id='431840', GAL2='0.99', EG2='0.85', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.25e-08', ts2='1.71', photon_index='2.46' WHERE bin_id='799' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:15:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 431840: <4FGL_J1516.1+4351_daily_bin799> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin799> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 22:01:23 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:01:24 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:01:24 2021
Terminated at Sat Sep 11 22:15:53 2021
Results reported at Sat Sep 11 22:15:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin799 229.049 43.8527 446428801 446688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

