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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin309
RA = 229.244, Dec = 19.5805
tmin = 319420801, tmax = 319680001
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='449366', job_status='RUN', time_executed='2021-09-11 23:06:30.208356', time_epoch_executed='1631426790.21' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449366/ft1_4FGL_J1516.9+1934_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449366/ft1_4FGL_J1516.9+1934_daily_bin309.fits outfile=/scratch/kocevski/449366/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin309.fits ra=229.244 dec=19.5805 rad=12.0 tmin=319420801.0 tmax=319680001.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.46
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.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/449366/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin309.fits evtable="EVENTS" outfile="/scratch/kocevski/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits" evtable="EVENTS" scfile=/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits sctable="SC_DATA" outfile=/scratch/kocevski/449366/ltcube_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.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/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits
.....................!
real 11.96
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/449366/ltcube_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.fits outfile=/scratch/kocevski/449366/expmap_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.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/449366/ltcube_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.fits
.....................!
real 191.29
user 186.37
sys 4.53

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/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits scfile=/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits outfile=/scratch/kocevski/449366/cmap_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits scfile=/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits outfile=/scratch/kocevski/449366/cmap_HighResolution_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/449366/Model_4FGL_J1516.9+1934_daily_bin309.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/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits.....................!
real 55.62
user 54.28
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits', '/scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits', expMap='/scratch/kocevski/449366/expmap_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.fits', expCube='/scratch/kocevski/449366/ltcube_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449366/Model_4FGL_J1516.9+1934_daily_bin309.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/449366/ft1_filtered_4FGL_J1516.9+1934_daily_bin309.fits
Spacecraft file(s): /scratch/kocevski/449366/ft2_4FGL_J1516.9+1934_daily_bin309.fits
Exposure map: /scratch/kocevski/449366/expmap_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.fits
Exposure cube: /scratch/kocevski/449366/ltcube_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449366/Model_4FGL_J1516.9+1934_daily_bin309.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) = 7338.11845749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11723E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9231       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8084       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19581E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10959E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32342       1.0000         .10000E-03   10000.    
     9 'norm      '    .35650       1.0000         .10000E-03   10000.    
    10 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .72039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12888E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21290E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32854E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.0664       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14397E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.1208       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13271E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1215       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98492       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=   7338.111     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2686 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3376        .94253E-06** at limit **
   2  norm          1.9317        3.1236       -.12821E-05   -.90378E-03
   3  norm          2.8049        3.2012        .19597E-05   -.60369E-04
   4  Prefactor     .10000E-03    11.566        .10887E-05** at limit **
   5  Prefactor     20.055        18.435       -.60445E-06    .66622E-04
   6  Prefactor     .10000E-03    10.339       -.15830E-05** at limit **
   7  Prefactor     .10000E-03    56.267       -.79180E-05** at limit **
   8  Prefactor     .31903        2.8917        .43134E-07   -.84111E-03
   9  norm          .35646        .17305       -.75629E-07    .26048E-05
  10  norm          .10000E-03    2.0556       -.67284E-07** at limit **
  11  norm          .10000E-03    52.669       -.15129E-04** at limit **
  12  Prefactor     44.454        50.413       -.63842E-04    .37308E-04
  13  Prefactor     .10000E-03    2.7190       -.56907E-07** at limit **
  14  Prefactor     .10000E-03    50.349        .12881E-04** at limit **
  15  Prefactor     .10000E-03    3.1523       -.86402E-08** at limit **
  16  Prefactor     .10000E-03    9.6093       -.85819E-06** at limit **
  17  Prefactor     .10000E-03    1.0604       -.10399E-06** at limit **
  18  Prefactor     .10000E-03    45.959       -.19252E-04** at limit **
  19  norm          7.0646        3.3956       -.21946E-06    .15516E-04
  20  Prefactor     .10000E-03    11.042        .50477E-06** at limit **
  21  norm          8.1216        7.9051       -.58859E-06    .13090E-04
  22  Prefactor     .10000E-03    4.7237       -.18845E-06** at limit **
  23  Normalizat    1.1212        .20914        .66662E-05   -.22544E-04
  24  Prefactor     .98504        .12654        .15850E-05    .29280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.93171
  norm       = 2.80494
  Prefactor  = 0.0001
  Prefactor  = 20.0552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.319026
  norm       = 0.356457
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 44.4544
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.06455
  Prefactor  = 0.0001
  norm       = 8.12161
  Prefactor  = 0.0001
  Normalizat = 1.12118
  Prefactor  = 0.985035
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.111     FROM HESSE     STATUS=OK           391 CALLS     3077 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9317        3.1136        .18436E-03   -1.5430    
   3  norm          2.8049        3.1973        .15920E-03   -1.5373    
   4  Prefactor     .10000E-03    11.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.055        18.464        .89767E-04   -1.4812    
   6  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.687        .20701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31903        6.9402        .28390E-02   -1.5595    
   9  norm          .35646        .17088        .23863E-04   -1.5589    
  10  norm          .10000E-03    2.0564        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    52.875        .20963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.454        50.402        .60089E-04   -1.4373    
  13  Prefactor     .10000E-03    2.7270        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1540        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.0736        .86110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.571        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.0646        3.3971        .10436E-03   -1.5176    
  20  Prefactor     .10000E-03    11.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.1216        7.9020        .14069E-03   -1.5138    
  22  Prefactor     .10000E-03    4.7383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1212        .25043        .31192E-03   -.89075    
  24  Prefactor     .98504        .15250        .20311E-03   -.93230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03037e-09
Minuit parameter uncertainties:
  1  4.13546e-05
  2  3.11385
  3  3.1975
  4  7.22951e-06
  5  18.4688
  6  1.40334e-05
  7  0.000118942
  8  2.97589
  9  0.17088
  10  1.25822e-06
  11  0.000111118
  12  50.4503
  13  4.72571e-06
  14  0.000381164
  15  5.31394e-06
  16  7.53886e-06
  17  9.55026e-06
  18  0.000171599
  19  3.39722
  20  9.28818e-06
  21  7.90303
  22  2.05522e-05
  23  0.250698
  24  0.152566
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.445e+01  5.045e+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.850e-01  1.526e-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:  1.121e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 5.09e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/449366/likelihoodResults_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.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) = 7338.07427303
delta logL = 0.0366783010395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7338.06050011
delta logL = 0.0504512242496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.782       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8830       1.0000          .0000       10.000    
     3 'Normalizat'    1.1084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99019       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=   7338.060     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.777        58.027        .66996E-04   -.36993E-04
   2  Index         2.8844        1.1145        .87971E-02   -.21251E-04
   3  Normalizat    1.1082        .25000        .31352E-03   -.41313E-03
   4  Prefactor     .99036        .15236        .20263E-03   -.68047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.7769
  Index      = 2.8844
  Normalizat = 1.10819
  Prefactor  = 0.990365
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.060     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.777        52.626        .26799E-05   -1.4511    
   2  Index         2.8844        1.0110        .35188E-03   -.43689    
   3  Normalizat    1.1082        .24982        .62704E-04   -.89489    
   4  Prefactor     .99036        .15218        .40525E-04   -.93051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99717e-10
Minuit parameter uncertainties:
  1  52.6945
  2  1.01963
  3  0.250083
  4  0.15225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449366': 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) = 7338.06049776
delta logL = 0.0504535780728

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.578e+01  5.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.884e+00  1.020e+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:  9.904e-01  1.523e-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:  1.108e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.88 +/- 1.02
Photon Flux (Free Index): 5.51e-08 +/- 6.38e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.26e-05

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/449366/cmap_HighResolution_319420801_319680001_4FGL_J1516.9+1934_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.17e-05', photon_flux_error='5.09e-08', dlogl='5.05e-02', energy_flux='1.20e-05', photon_flux2='5.51e-08', job_status='DONE', time_completed='2021-09-11 23:18:00.825573', photon_index_error2='1.02', photon_index2='2.88', ts='1.09', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.26e-05', EG='1.12', time_epoch_completed='1631427480.83', return_code='0', job_id='449366', GAL2='0.99', EG2='1.11', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.38e-08', ts2='1.19', photon_index='2.58' WHERE bin_id='309' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:18:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 449366: <4FGL_J1516.9+1934_daily_bin309> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin309> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 23:06:12 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:06:14 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:06:14 2021
Terminated at Sat Sep 11 23:18:01 2021
Results reported at Sat Sep 11 23:18:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin309 229.244 19.5805 319420801 319680001 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 :                                   684.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

