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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1517
RA = 229.049, Dec = 43.8527
tmin = 632534401, tmax = 632793601
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='437230', job_status='RUN', time_executed='2021-09-11 22:21:28.230078', time_epoch_executed='1631424088.23' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437230/ft1_4FGL_J1516.1+4351_daily_bin1517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437230/ft1_4FGL_J1516.1+4351_daily_bin1517.fits outfile=/scratch/kocevski/437230/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1517.fits ra=229.049 dec=43.8527 rad=12.0 tmin=632534401.0 tmax=632793601.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.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.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/437230/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1517.fits evtable="EVENTS" outfile="/scratch/kocevski/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits" evtable="EVENTS" scfile=/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits sctable="SC_DATA" outfile=/scratch/kocevski/437230/ltcube_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.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/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits
.....................!
real 12.06
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits sctable="SC_DATA" expcube=/scratch/kocevski/437230/ltcube_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.fits outfile=/scratch/kocevski/437230/expmap_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.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/437230/ltcube_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.fits
.....................!
real 190.55
user 185.27
sys 4.93

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/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits scfile=/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits outfile=/scratch/kocevski/437230/cmap_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits scfile=/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits outfile=/scratch/kocevski/437230/cmap_HighResolution_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.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/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437230/Model_4FGL_J1516.1+4351_daily_bin1517.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/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits.....................!
real 53.88
user 52.54
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits', '/scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits', expMap='/scratch/kocevski/437230/expmap_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.fits', expCube='/scratch/kocevski/437230/ltcube_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437230/Model_4FGL_J1516.1+4351_daily_bin1517.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/437230/ft1_filtered_4FGL_J1516.1+4351_daily_bin1517.fits
Spacecraft file(s): /scratch/kocevski/437230/ft2_4FGL_J1516.1+4351_daily_bin1517.fits
Exposure map: /scratch/kocevski/437230/expmap_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.fits
Exposure cube: /scratch/kocevski/437230/ltcube_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437230/Model_4FGL_J1516.1+4351_daily_bin1517.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) = 7017.39710805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.765       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2741       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31822E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.239       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9320       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.546       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.3672       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.807       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68280       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3026       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=   7017.363     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3851 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3007       -.17549E-06** at limit **
   2  Prefactor     6.0601        14.233       -.86502E-06   -.83983E-04
   3  Prefactor     .10000E-03    10.664       -.98146E-06** at limit **
   4  Prefactor     .10000E-03    13.174        .33718E-05** at limit **
   5  norm          17.765        15.327       -.23789E-06   -.46615E-04
   6  Prefactor     .10000E-03    16.485       -.23795E-05** at limit **
   7  Prefactor     5.2807        30.360        .80348E-06   -.24227E-05
   8  norm          2.9052        3.7785        .39196E-07   -.68761E-04
   9  Prefactor     .10000E-03    16.034       -.14486E-05** at limit **
  10  Prefactor     .10000E-03    9.1402        .55217E-06** at limit **
  11  norm          .10000E-03    2.3232       -.67755E-07** at limit **
  12  Prefactor     .10000E-03    3.1464        .76212E-07** at limit **
  13  Prefactor     44.270        20.275       -.16243E-05   -.42884E-03
  14  norm          2.7596        1.6567        .23654E-06   -.13775E-02
  15  Prefactor     .10000E-03    3.4138       -.60944E-06** at limit **
  16  Prefactor     .10000E-03    2.5857        .22925E-07** at limit **
  17  norm          3.9324        1.8046        .18221E-07    .11046E-03
  18  norm          .10000E-03    1.8292       -.65442E-07** at limit **
  19  Prefactor     .10000E-03    3.5381        .45654E-06** at limit **
  20  Prefactor     .10000E-03    20.740        .11856E-05** at limit **
  21  Prefactor     11.541        18.710        .12864E-05    .10571E-03
  22  Prefactor     .10000E-03    5.6662       -.15116E-05** at limit **
  23  Prefactor     .10000E-03    8.5492       -.11434E-06** at limit **
  24  norm          4.3603        7.1859        .15734E-05   -.90618E-03
  25  Prefactor     .10000E-03    5.8442        .15439E-05** at limit **
  26  Prefactor     .10000E-03    15.714       -.68927E-06** at limit **
  27  Prefactor     .10000E-03    2.3950       -.20743E-07** at limit **
  28  Prefactor     36.793        23.930        .34934E-06    .52322E-04
  29  Normalizat    .68249        .16613        .37933E-07   -.26578E-04
  30  Prefactor     1.3030        .17197        .25098E-07    .35449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.06005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 17.7652
  Prefactor  = 0.000100001
  Prefactor  = 5.28074
  norm       = 2.90523
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.2703
  norm       = 2.75955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.93242
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.36034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.793
  Normalizat = 0.682485
  Prefactor  = 1.303
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.363     FROM HESSE     STATUS=OK           586 CALLS     4437 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3019        .93292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0601        14.280        .16313E-03   -1.5216    
   3  Prefactor     .10000E-03    10.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.765        15.330        .95025E-04   -1.4865    
   6  Prefactor     .10000E-03    16.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2807        30.527        .17502E-03   -1.5248    
   8  norm          2.9052        3.7707        .18024E-03   -1.5367    
   9  Prefactor     .10000E-03    16.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.513        .81540E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3263        .12470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1499        .14512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.270        20.586        .60277E-04   -1.4376    
  14  norm          2.7596        1.6857        .39946E-03   -1.5376    
  15  Prefactor     .10000E-03    3.4373        .15117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5966        .13147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9324        1.8036        .72190E-04   -1.5311    
  18  norm          .10000E-03    1.8638        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5498        .15368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.541        18.780        .11790E-03   -1.5028    
  22  Prefactor     .10000E-03    5.7530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.3603        10.270        .96367E-03   -1.5290    
  25  Prefactor     .10000E-03    5.8751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.3983        .12638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     36.793        23.931        .66059E-04   -1.4494    
  29  Normalizat    .68249        .20013        .27951E-03   -1.0459    
  30  Prefactor     1.3030        .20837        .22977E-03   -.83218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64476e-09
Minuit parameter uncertainties:
  1  3.36469e-06
  2  14.2884
  3  6.87156e-05
  4  0.000243052
  5  15.3337
  6  0.000192416
  7  25.4129
  8  3.77097
  9  0.000121144
  10  0.000273698
  11  2.2926e-06
  12  2.23369e-06
  13  20.5896
  14  1.68571
  15  2.45966e-05
  16  1.24748e-05
  17  1.80358
  18  3.44442e-06
  19  1.17424e-05
  20  0.000106625
  21  18.7894
  22  8.54389e-05
  23  8.57818e-06
  24  10.2737
  25  7.44672e-05
  26  5.75067e-05
  27  3.89202e-06
  28  23.9369
  29  0.200344
  30  0.208503
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.174e-05  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.303e+00  2.085e-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:  6.825e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 5.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437230/likelihoodResults_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.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) = 7017.36445441
delta logL = -0.00134045078448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7017.36311472
delta logL = -7.57854650146e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4618       1.0000          .0000       10.000    
     3 'Normalizat'    .68240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3031       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.

 FCN=   7017.363     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.683        .90712E-02** at limit **
   2  Index         2.4607        8.6031        .50000        .24959E-05
   3  Normalizat    .68249        .17752E-01    .63178E-01    .71634E-04
   4  Prefactor     1.3030        .19627E-01    .51972E-01    .27393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46069
  Normalizat = 0.682486
  Prefactor  = 1.303
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.363     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    403.69        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4607        8.6715        .50000       -.53270    
   3  Normalizat    .68249        .48449E-01    .27951E-03   -1.0459    
   4  Prefactor     1.3030        .53627E-01    .22977E-03   -.83218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06658e-10
Minuit parameter uncertainties:
  1  2.3563e-05
  2  46.2763
  3  0.0484516
  4  0.0536292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437230': 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) = 7017.36311396
delta logL = 1.45701051224e-09

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.356e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.461e+00  4.628e+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:  1.303e+00  5.363e-02  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:  6.825e-01  4.845e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437230/cmap_HighResolution_632534401_632793601_4FGL_J1516.1+4351_daily_bin1517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-11 22:37:23.235743', job_id='437230', GAL2='1.30', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631425043.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1517' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:37:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 437230: <4FGL_J1516.1+4351_daily_bin1517> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1517> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:21:10 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:21:12 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:21:12 2021
Terminated at Sat Sep 11 22:37:23 2021
Results reported at Sat Sep 11 22:37:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1517 229.049 43.8527 632534401 632793601 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 :                                   949.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

