/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 5 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 = 7458
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.1+4351_daily_bin190
RA = 229.049, Dec = 43.8527
tmin = 288576001, tmax = 288835201
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='425310', job_status='RUN', time_executed='2021-09-11 21:36:19.965467', time_epoch_executed='1631421379.97' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425310/ft1_4FGL_J1516.1+4351_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425310/ft1_4FGL_J1516.1+4351_daily_bin190.fits outfile=/scratch/kocevski/425310/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin190.fits ra=229.049 dec=43.8527 rad=12.0 tmin=288576001.0 tmax=288835201.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.57
user 3.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.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/425310/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin190.fits evtable="EVENTS" outfile="/scratch/kocevski/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.fits" evtable="EVENTS" scfile=/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits sctable="SC_DATA" outfile=/scratch/kocevski/425310/ltcube_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.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/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits
.....................!
real 11.91
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/425310/ltcube_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.fits outfile=/scratch/kocevski/425310/expmap_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.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/425310/ltcube_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.fits
.....................!
real 191.99
user 186.93
sys 4.46

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/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.fits scfile=/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits outfile=/scratch/kocevski/425310/cmap_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.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/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.fits scfile=/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits outfile=/scratch/kocevski/425310/cmap_HighResolution_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/425310/ft2_4FGL_J1516.1+4351_daily_bin190.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425310/Model_4FGL_J1516.1+4351_daily_bin190.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/425310/ft1_filtered_4FGL_J1516.1+4351_daily_bin190.fits.....................!
real 53.18
user 51.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98229E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3180       1.0000         .10000E-03   10000.    
     5 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10912E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .28796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7257       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0460       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.935       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.0841       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.104       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.2014       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4013       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0672       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=   6683.445     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3947 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13886        4.3598       -.14184E-05    .15332E-03
   2  Prefactor     7.2776        19.022        .10837E-05   -.21230E-04
   3  Prefactor     9.9512        15.574        .20353E-06   -.18874E-05
   4  Prefactor     9.3168        12.249       -.98563E-07   -.64902E-04
   5  norm          .10000E-03    12.955       -.49802E-06** at limit **
   6  Prefactor     .10000E-03    43.535       -.41457E-05** at limit **
   7  Prefactor     .10001E-03    69.826        .20215E-05** at limit **
   8  norm          3.7312        5.3394        .14737E-06   -.65978E-04
   9  Prefactor     38.519        36.103        .10341E-06   -.10252E-03
  10  Prefactor     .10000E-03    7.0596        .16686E-06** at limit **
  11  norm          .10000E-03    2.6992        .13099E-08** at limit **
  12  Prefactor     .10000E-03    4.6589       -.15693E-07** at limit **
  13  Prefactor     .10000E-03    12.207       -.39727E-06** at limit **
  14  norm          .28800        1.1062        .25693E-06   -.20058E-03
  15  Prefactor     .10000E-03    3.7929        .17499E-07** at limit **
  16  Prefactor     4.7268        7.2269        .27210E-05    .57678E-04
  17  norm          2.0461        1.3513        .81179E-08   -.33336E-03
  18  norm          4.8972        3.5891       -.38258E-07   -.10783E-04
  19  Prefactor     .34929        7.5786       -.69705E-07   -.99645E-04
  20  Prefactor     .10000E-03    27.883        .21094E-05** at limit **
  21  Prefactor     .10000E-03    8.0009       -.53811E-06** at limit **
  22  Prefactor     12.935        12.898        .15867E-06    .56373E-04
  23  Prefactor     .10000E-03    9.8003        .68048E-06** at limit **
  24  norm          .10000E-03    11.126        .93669E-07** at limit **
  25  Prefactor     8.0856        13.055        .20273E-06   -.98995E-05
  26  Prefactor     16.109        46.228       -.27999E-06    .10379E-04
  27  Prefactor     6.2105        6.4168       -.19714E-05    .12801E-04
  28  Prefactor     1.3719        54.067        .27928E-04    .18527E-04
  29  Normalizat    1.1033        .17718       -.44346E-06   -.14374E-03
  30  Prefactor     1.0671        .18707       -.12415E-05   -.18976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.138858
  Prefactor  = 7.27762
  Prefactor  = 9.95116
  Prefactor  = 9.31675
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100009
  norm       = 3.73121
  Prefactor  = 38.5186
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.288
  Prefactor  = 0.0001
  Prefactor  = 4.72684
  norm       = 2.04612
  norm       = 4.89716
  Prefactor  = 0.349293
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.9346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.08564
  Prefactor  = 16.1086
  Prefactor  = 6.21054
  Prefactor  = 1.37193
  Normalizat = 1.10327
  Prefactor  = 1.0671
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.445     FROM HESSE     STATUS=OK           594 CALLS     4541 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13886        34.805        .32019E-02   -1.5633    
   2  Prefactor     7.2776        19.018        .14846E-03   -1.5168    
   3  Prefactor     9.9512        15.566        .12704E-03   -1.5077    
   4  Prefactor     9.3168        12.252        .13129E-03   -1.5097    
   5  norm          .10000E-03    12.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    70.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7312        5.3271        .20906E-03   -1.5322    
   9  Prefactor     38.519        36.092        .64575E-04   -1.4466    
  10  Prefactor     .10000E-03    7.0809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7005        .13117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6653        .17233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .28800        1.8205        .15865E-02   -1.5601    
  15  Prefactor     .10000E-03    3.8409        .15543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7268        7.1946        .92550E-03   -1.5273    
  17  norm          2.0461        1.3550        .74504E-04   -1.5422    
  18  norm          4.8972        3.6056        .12342E-03   -1.5265    
  19  Prefactor     .34929        29.476        .35923E-02   -1.5590    
  20  Prefactor     .10000E-03    27.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.935        12.567        .11138E-03   -1.4989    
  23  Prefactor     .10000E-03    9.8260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.0856        13.053        .14101E-03   -1.5139    
  26  Prefactor     16.109        46.220        .99805E-04   -1.4905    
  27  Prefactor     6.2105        6.4406        .16121E-03   -1.5209    
  28  Prefactor     1.3719        55.044        .18325E-02   -1.5474    
  29  Normalizat    1.1033        .21748        .24520E-03   -.89647    
  30  Prefactor     1.0671        .22998        .26688E-03   -.90525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90037e-08
Minuit parameter uncertainties:
  1  4.39782
  2  19.0339
  3  15.5719
  4  12.2552
  5  3.9338e-05
  6  0.000794213
  7  0.00161614
  8  5.32774
  9  36.1123
  10  9.05013e-06
  11  4.54272e-08
  12  2.13898e-06
  13  1.26018e-05
  14  1.44799
  15  3.87074e-06
  16  7.19594
  17  1.355
  18  3.60576
  19  6.41978
  20  0.000286245
  21  3.79262e-05
  22  12.5698
  23  5.73144e-05
  24  1.31827e-05
  25  13.0575
  26  46.3233
  27  6.44135
  28  17.3966
  29  0.21766
  30  0.230189
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  3.493e-01  6.420e+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

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.067e+00  2.302e-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:  1.103e+00  2.177e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425310/likelihoodResults_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.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) = 6683.43981529
delta logL = 0.00539332982953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6683.43868352
delta logL = 0.00652509089377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34935       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9833       1.0000          .0000       10.000    
     3 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0683       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=   6683.439     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      256 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34730        3.5674        .54429E-01    .78593E-03
   2  Index         3.0165        .42550        .50000        .19147E-05
   3  Normalizat    1.1006        .65500E-02    .55505E-01    .12241E-04
   4  Prefactor     1.0685        .70578E-02    .60307E-01    .56036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.347305
  Index      = 3.01646
  Normalizat = 1.10058
  Prefactor  = 1.06846
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.439     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      291 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34730        1038.3        .19754E-02   -1.5590    
   2  Index         3.0165        7.7390        .48546E-02   -.40793    
   3  Normalizat    1.1006        .15435        .24544E-03   -.89733    
   4  Prefactor     1.0685        .17277        .26671E-03   -.90481    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.17582e-09
Minuit parameter uncertainties:
  1  38.6646
  2  52.2521
  3  0.154409
  4  0.172856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425310': 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) = 6683.4386483
delta logL = 0.00656031524613

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  3.473e-01  3.866e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.016e+00  5.225e+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.068e+00  1.729e-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:  1.101e+00  1.544e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/425310/cmap_HighResolution_288576001_288835201_4FGL_J1516.1+4351_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-11 21:52:05.040340', job_id='425310', GAL2='1.07', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631422325.04', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.56e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='190' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 425310: <4FGL_J1516.1+4351_daily_bin190> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin190> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 21:36:05 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:36:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 21:36:06 2021
Terminated at Sat Sep 11 21:52:05 2021
Results reported at Sat Sep 11 21:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin190 229.049 43.8527 288576001 288835201 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 :                                   941.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

