/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 197 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin18
RA = 229.244, Dec = 19.5805
tmin = 243993601, tmax = 244252801
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='448042', job_status='RUN', time_executed='2021-09-11 23:05:12.305195', time_epoch_executed='1631426712.31' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448042/ft1_4FGL_J1516.9+1934_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448042/ft1_4FGL_J1516.9+1934_daily_bin18.fits outfile=/scratch/kocevski/448042/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin18.fits ra=229.244 dec=19.5805 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.41
user 1.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.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/448042/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/448042/ltcube_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.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/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits
.....................!
real 13.00
user 12.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/448042/ltcube_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.fits outfile=/scratch/kocevski/448042/expmap_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.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/448042/ltcube_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.fits
.....................!
real 191.43
user 186.03
sys 4.97

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

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits scfile=/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits outfile=/scratch/kocevski/448042/cmap_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.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.244 yref=19.5805 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits scfile=/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits outfile=/scratch/kocevski/448042/cmap_HighResolution_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.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.244 yref=19.5805 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/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448042/Model_4FGL_J1516.9+1934_daily_bin18.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/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits.....................!
real 49.85
user 48.60
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits', '/scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits', expMap='/scratch/kocevski/448042/expmap_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.fits', expCube='/scratch/kocevski/448042/ltcube_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448042/Model_4FGL_J1516.9+1934_daily_bin18.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/448042/ft1_filtered_4FGL_J1516.9+1934_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/448042/ft2_4FGL_J1516.9+1934_daily_bin18.fits
Exposure map: /scratch/kocevski/448042/expmap_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.fits
Exposure cube: /scratch/kocevski/448042/ltcube_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448042/Model_4FGL_J1516.9+1934_daily_bin18.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) = 6235.05706722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .21249       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.402       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0378       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2513       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5014       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    21.128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81458       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6235.032     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2720 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.801       -.36396E-06** at limit **
   2  norm          .20077        1.7360       -.10109E-05    .71489E-03
   3  norm          .10000E-03    2.6773        .42056E-07** at limit **
   4  Prefactor     22.793        24.737       -.11330E-05    .81528E-05
   5  Prefactor     .10000E-03    26.116        .11562E-05** at limit **
   6  Prefactor     .10000E-03    15.628        .89017E-06** at limit **
   7  Prefactor     20.403        29.358       -.15633E-06   -.10045E-04
   8  Prefactor     .10000E-03    3.2327       -.34476E-07** at limit **
   9  norm          2.0378        .30972        .11189E-07   -.25253E-03
  10  norm          .10000E-03    2.4716        .30820E-08** at limit **
  11  norm          .10000E-03    15.190        .89615E-06** at limit **
  12  Prefactor     43.857        44.604        .63316E-05    .52620E-05
  13  Prefactor     2.3308        7.4233        .64909E-05    .13129E-03
  14  Prefactor     1.9343        96.964       -.35498E-06   -.90636E-05
  15  Prefactor     .10000E-03    5.8369       -.17165E-06** at limit **
  16  Prefactor     1.2294        101.85        .77717E-05   -.16454E-04
  17  Prefactor     2.3557        2.2128       -.47272E-07   -.83800E-04
  18  Prefactor     .10000E-03    19.389       -.11110E-05** at limit **
  19  norm          1.5014        1.6447        .32306E-07    .18040E-04
  20  Prefactor     .10000E-03    11.162       -.38547E-06** at limit **
  21  norm          21.126        10.633        .14288E-06    .52538E-05
  22  Prefactor     .10000E-03    3.9293       -.14175E-07** at limit **
  23  Normalizat    .81456        .21796       -.11707E-05    .38402E-04
  24  Prefactor     .98765        .13316       -.46155E-06    .15229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.200772
  norm       = 0.0001
  Prefactor  = 22.7928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4031
  Prefactor  = 0.0001
  norm       = 2.0378
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 43.8567
  Prefactor  = 2.33077
  Prefactor  = 1.93431
  Prefactor  = 0.0001
  Prefactor  = 1.22937
  Prefactor  = 2.35568
  Prefactor  = 0.0001
  norm       = 1.50136
  Prefactor  = 0.0001
  norm       = 21.1262
  Prefactor  = 0.0001
  Normalizat = 0.814561
  Prefactor  = 0.987651
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.032     FROM HESSE     STATUS=OK           403 CALLS     3123 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.594        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .20077        6.2973        .18962E-02   -1.5618    
   3  norm          .10000E-03    2.7020        .12614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.793        24.709        .83916E-04   -1.4753    
   5  Prefactor     .10000E-03    26.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.403        29.360        .88675E-04   -1.4804    
   8  Prefactor     .10000E-03    3.2488        .13864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0378        .31009        .16466E-04   -1.5422    
  10  norm          .10000E-03    2.4726        .12124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.857        44.775        .60508E-04   -1.4383    
  13  Prefactor     2.3308        7.4991        .13430E-02   -1.5403    
  14  Prefactor     1.9343        97.140        .29869E-03   -1.5430    
  15  Prefactor     .10000E-03    5.8511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2294        104.90        .39971E-03   -1.5486    
  17  Prefactor     2.3557        2.2152        .10975E-03   -1.5401    
  18  Prefactor     .10000E-03    19.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5014        1.6430        .10265E-03   -1.5463    
  20  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.126        10.622        .87139E-04   -1.4788    
  22  Prefactor     .10000E-03    3.9446        .15286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81456        .25822        .33076E-03   -.99531    
  24  Prefactor     .98765        .15962        .19272E-03   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85153e-09
Minuit parameter uncertainties:
  1  0.000237006
  2  2.24855
  3  5.12274e-06
  4  24.72
  5  9.46073e-05
  6  4.12405e-05
  7  29.3807
  8  3.24388e-06
  9  0.31009
  10  2.95259e-07
  11  2.08382e-07
  12  44.8094
  13  7.50209
  14  27.4617
  15  1.72543e-05
  16  22.7528
  17  2.21523
  18  3.62225e-06
  19  1.64303
  20  2.86677e-06
  21  10.6228
  22  2.73181e-06
  23  0.258615
  24  0.159693
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.386e+01  4.481e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.877e-01  1.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.146e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.21e-05

TS (Fixed Index): 1.32
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448042/likelihoodResults_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.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) = 6234.58375739
delta logL = 0.448737730416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6234.57995743
delta logL = 0.452537699499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4622       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2993       1.0000          .0000       10.000    
     3 'Normalizat'    .75512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   6234.580     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      373 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4695        160.79        .13662E-03    .20554E-04
   2  Index         4.2993        7.1299        .55249E-02    .23503E-04
   3  Normalizat    .75360        .22123        .34268E-03   -.97071E-04
   4  Prefactor     1.0175        .14196        .19018E-03    .21364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46946
  Index      = 4.29931
  Normalizat = 0.753602
  Prefactor  = 1.01752
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.580     FROM HESSE     STATUS=OK            25 CALLS      398 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4695        28.094        .54648E-05   -1.5240    
   2  Index         4.2993        2.5622        .22100E-03   -.14060    
   3  Normalizat    .75360        .25585        .13707E-04   -1.0181    
   4  Prefactor     1.0175        .16134        .38036E-04   -.92148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14108e-10
Minuit parameter uncertainties:
  1  24.8102
  2  2.69306
  3  0.256255
  4  0.161414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448042': 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) = 6234.57993933
delta logL = 0.452555794823

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  5.469e+00  2.481e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  4.299e+00  2.693e+00  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.018e+00  1.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  7.536e-01  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 229.244 19.581
Photon Index (Free Index): 4.30 +/- 2.69
Photon Flux (Free Index): 7.79e-08 +/- 6.16e-08
Energy Flux (Free Index): 1.12e-05 +/- 9.63e-06

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/448042/cmap_HighResolution_243993601_244252801_4FGL_J1516.9+1934_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='1.12e-05', photon_flux_error='4.52e-08', dlogl='4.53e-01', energy_flux='1.18e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-11 23:15:47.797464', photon_index_error2='2.69', photon_index2='4.30', ts='1.32', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='9.63e-06', EG='0.81', time_epoch_completed='1631427347.8', return_code='0', job_id='448042', GAL2='1.02', EG2='0.75', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='6.16e-08', ts2='2.33', photon_index='2.58' WHERE bin_id='18' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:15:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 448042: <4FGL_J1516.9+1934_daily_bin18> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin18> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:43 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:01:45 2021
Terminated at Sat Sep 11 23:15:48 2021
Results reported at Sat Sep 11 23:15:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin18 229.244 19.5805 243993601 244252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

