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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin56
RA = 229.244, Dec = 19.5805
tmin = 253843201, tmax = 254102401
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='448099', job_status='RUN', time_executed='2021-09-11 23:04:28.743888', time_epoch_executed='1631426668.74' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448099/ft1_4FGL_J1516.9+1934_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448099/ft2_4FGL_J1516.9+1934_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448099/ft1_4FGL_J1516.9+1934_daily_bin56.fits outfile=/scratch/kocevski/448099/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin56.fits ra=229.244 dec=19.5805 rad=12.0 tmin=253843201.0 tmax=254102401.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.47
user 1.29
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448099/ft1_filtered_4FGL_J1516.9+1934_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/448099/ft2_4FGL_J1516.9+1934_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/448099/ltcube_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.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/448099/ft2_4FGL_J1516.9+1934_daily_bin56.fits
.....................!
real 14.10
user 13.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448099/ft1_filtered_4FGL_J1516.9+1934_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/448099/ft2_4FGL_J1516.9+1934_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/448099/ltcube_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.fits outfile=/scratch/kocevski/448099/expmap_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.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/448099/ltcube_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.fits
.....................!
real 192.19
user 186.48
sys 5.40

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/448099/ft1_filtered_4FGL_J1516.9+1934_daily_bin56.fits scfile=/scratch/kocevski/448099/ft2_4FGL_J1516.9+1934_daily_bin56.fits outfile=/scratch/kocevski/448099/cmap_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448099/ft1_filtered_4FGL_J1516.9+1934_daily_bin56.fits scfile=/scratch/kocevski/448099/ft2_4FGL_J1516.9+1934_daily_bin56.fits outfile=/scratch/kocevski/448099/cmap_HighResolution_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .34885E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.521       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6524       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1062       1.0000         .10000E-03   10000.    
    10 'norm      '    .38190       1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0687       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.718       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5893       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95388       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=   8189.191     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2740 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4314       -.15999E-07** at limit **
   2  norm          .10000E-03    1.4513        .18300E-06** at limit **
   3  norm          6.5067        5.5363        .13510E-06   -.50140E-04
   4  Prefactor     21.523        25.811       -.55141E-06   -.19604E-03
   5  Prefactor     .10000E-03    6.3353       -.39565E-07** at limit **
   6  Prefactor     .10000E-03    12.203       -.84438E-08** at limit **
   7  Prefactor     .10000E-03    13.965       -.12631E-06** at limit **
   8  Prefactor     3.6524        6.0614        .20939E-06   -.42167E-04
   9  norm          3.1066        .35733       -.19476E-08   -.22315E-02
  10  norm          .33627        6.2728        .17008E-05   -.64356E-03
  11  norm          .10000E-03    36.043       -.91458E-06** at limit **
  12  Prefactor     73.808        44.178        .24870E-05    .45453E-03
  13  Prefactor     2.9059        5.3760        .26328E-06   -.36703E-04
  14  Prefactor     15.026        31.524        .15517E-06    .53226E-05
  15  Prefactor     7.2154        11.697        .31632E-05   -.55530E-04
  16  Prefactor     .10000E-03    8.6957       -.27349E-07** at limit **
  17  Prefactor     2.0691        2.1752        .59720E-07   -.56299E-04
  18  Prefactor     .10000E-03    9.0685       -.22659E-07** at limit **
  19  norm          1.7139        1.7564        .40312E-07   -.11540E-04
  20  Prefactor     .10000E-03    14.033        .16152E-07** at limit **
  21  norm          14.718        8.9356        .82455E-07    .50020E-05
  22  Prefactor     6.5889        6.1076       -.50519E-08   -.12064E-04
  23  Normalizat    1.0066        .21722       -.83783E-06   -.57320E-04
  24  Prefactor     .95420        .12783        .47194E-07   -.15302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 6.50673
  Prefactor  = 21.523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65244
  norm       = 3.10663
  norm       = 0.336267
  norm       = 0.000100001
  Prefactor  = 73.8084
  Prefactor  = 2.90585
  Prefactor  = 15.0257
  Prefactor  = 7.21537
  Prefactor  = 0.0001
  Prefactor  = 2.06906
  Prefactor  = 0.0001
  norm       = 1.7139
  Prefactor  = 0.0001
  norm       = 14.7179
  Prefactor  = 6.58889
  Normalizat = 1.00663
  Prefactor  = 0.954204
 **********
 **   18 **HESSE 
 **********

 FCN=   8189.191     FROM HESSE     STATUS=OK           401 CALLS     3141 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4335        .13780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    27.993        .20654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5067        5.5544        .15734E-03   -1.5198    
   4  Prefactor     21.523        26.133        .86340E-04   -1.4780    
   5  Prefactor     .10000E-03    6.3580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6524        6.0563        .21137E-03   -1.5326    
   9  norm          3.1066        .36047        .17318E-04   -1.5355    
  10  norm          .33627        58.314        .40034E-02   -1.5592    
  11  norm          .10000E-03    36.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     73.808        47.241        .46741E-04   -1.3988    
  13  Prefactor     2.9059        5.3605        .23832E-03   -1.5367    
  14  Prefactor     15.026        31.597        .10309E-03   -1.4933    
  15  Prefactor     7.2154        12.086        .74676E-03   -1.5171    
  16  Prefactor     .10000E-03    8.6967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0691        2.1627        .13107E-03   -1.5420    
  18  Prefactor     .10000E-03    9.0808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7139        1.7483        .11728E-03   -1.5446    
  20  Prefactor     .10000E-03    14.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.718        8.9257        .10440E-03   -1.4940    
  22  Prefactor     6.5889        6.1102        .15633E-03   -1.5195    
  23  Normalizat    1.0066        .26058        .33312E-03   -.92809    
  24  Prefactor     .95420        .15424        .21417E-03   -.94272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97796e-09
Minuit parameter uncertainties:
  1  6.69057e-07
  2  0.00065237
  3  5.55486
  4  26.147
  5  2.80392e-06
  6  2.11286e-05
  7  2.42961e-05
  8  6.0573
  9  0.360474
  10  8.86391
  11  0.000313979
  12  47.2652
  13  5.36139
  14  31.632
  15  12.0896
  16  3.54294e-06
  17  2.16274
  18  6.6576e-06
  19  1.74834
  20  5.34301e-06
  21  8.9265
  22  6.11074
  23  0.260912
  24  0.154309
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.381e+01  4.727e+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.542e-01  1.543e-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.007e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.45e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/448099/likelihoodResults_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.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) = 8188.29228022
delta logL = 0.898594925991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8188.28318877
delta logL = 0.907686372634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.641       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5545       1.0000          .0000       10.000    
     3 'Normalizat'    .92978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98546       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=   8188.283     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      310 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.646        56.688        .72383E-04    .35132E-03
   2  Index         3.5554        1.2132        .49471E-02    .24029E-03
   3  Normalizat    .92900        .25117        .34502E-03    .96118E-04
   4  Prefactor     .98575        .15516        .21106E-03    .23567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6465
  Index      = 3.55541
  Normalizat = 0.929001
  Prefactor  = 0.985753
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.646        38.822        .14477E-04   -1.4600    
   2  Index         3.5554        .83395        .19788E-03   -.29310    
   3  Normalizat    .92900        .24948        .13801E-04   -.95448    
   4  Prefactor     .98575        .15403        .42211E-04   -.93206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45348e-10
Minuit parameter uncertainties:
  1  38.8539
  2  0.838223
  3  0.249793
  4  0.154097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448099': 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) = 8188.28318057
delta logL = 0.907694578135

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.065e+01  3.885e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.555e+00  8.382e-01  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.858e-01  1.541e-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:  9.290e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 229.244 19.581
Photon Index (Free Index): 3.56 +/- 0.84
Photon Flux (Free Index): 1.30e-07 +/- 6.86e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.08e-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/448099/cmap_HighResolution_253843201_254102401_4FGL_J1516.9+1934_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='7.45e-08', energy_flux2='2.14e-05', photon_flux_error='4.77e-08', dlogl='9.08e-01', energy_flux='1.99e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-11 23:16:51.094729', photon_index_error2='0.84', photon_index2='3.56', ts='3.85', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.08e-05', EG='1.01', time_epoch_completed='1631427411.09', return_code='0', job_id='448099', GAL2='0.99', EG2='0.93', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.86e-08', ts2='5.81', photon_index='2.58' WHERE bin_id='56' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:16:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 448099: <4FGL_J1516.9+1934_daily_bin56> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin56> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:48 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:50 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:50 2021
Terminated at Sat Sep 11 23:16:51 2021
Results reported at Sat Sep 11 23:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin56 229.244 19.5805 253843201 254102401 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 :                                   740.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

