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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1415
RA = 229.244, Dec = 19.5805
tmin = 606096001, tmax = 606355201
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='457045', job_status='RUN', time_executed='2021-09-11 23:34:48.463759', time_epoch_executed='1631428488.46' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457045/ft1_4FGL_J1516.9+1934_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457045/ft2_4FGL_J1516.9+1934_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457045/ft1_4FGL_J1516.9+1934_daily_bin1415.fits outfile=/scratch/kocevski/457045/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1415.fits ra=229.244 dec=19.5805 rad=12.0 tmin=606096001.0 tmax=606355201.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.74
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/457045/ft2_4FGL_J1516.9+1934_daily_bin1415.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/457045/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1415.fits evtable="EVENTS" outfile="/scratch/kocevski/457045/ft1_filtered_4FGL_J1516.9+1934_daily_bin1415.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.50
user 0.36
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457045/ft1_filtered_4FGL_J1516.9+1934_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/457045/ft2_4FGL_J1516.9+1934_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/457045/ltcube_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.fits outfile=/scratch/kocevski/457045/expmap_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.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/457045/ltcube_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.fits
.....................!
real 191.42
user 185.57
sys 4.73

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/457045/ft1_filtered_4FGL_J1516.9+1934_daily_bin1415.fits scfile=/scratch/kocevski/457045/ft2_4FGL_J1516.9+1934_daily_bin1415.fits outfile=/scratch/kocevski/457045/cmap_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457045/ft1_filtered_4FGL_J1516.9+1934_daily_bin1415.fits scfile=/scratch/kocevski/457045/ft2_4FGL_J1516.9+1934_daily_bin1415.fits outfile=/scratch/kocevski/457045/cmap_HighResolution_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5871       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2292       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.751       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.653       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.792       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3689       1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.009       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8962       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0837       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2250       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79056       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=   6968.790     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2709 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.358        .10297E-04** at limit **
   2  norm          5.5874        3.0534       -.13853E-06   -.19268E-03
   3  norm          6.4954        4.1408        .69001E-06    .37277E-04
   4  Prefactor     .10000E-03    8.6710       -.14516E-05** at limit **
   5  Prefactor     .10000E-03    19.797        .91280E-05** at limit **
   6  Prefactor     .10000E-03    16.510       -.10418E-04** at limit **
   7  Prefactor     .10000E-03    48.724       -.36546E-04** at limit **
   8  Prefactor     .10000E-03    2.2257       -.19100E-06** at limit **
   9  norm          1.2292        .24926        .36504E-08    .38844E-03
  10  norm          .10000E-03    2.3560       -.20021E-06** at limit **
  11  norm          36.750        46.953       -.10878E-05    .68759E-05
  12  Prefactor     22.646        43.071       -.90863E-05    .37796E-05
  13  Prefactor     .10000E-03    4.3988       -.11470E-06** at limit **
  14  Prefactor     .10000E-03    14.936       -.82849E-05** at limit **
  15  Prefactor     .10000E-03    4.5915        .43679E-06** at limit **
  16  Prefactor     .10000E-03    40.032        .31796E-04** at limit **
  17  Prefactor     2.4748        2.7396       -.17012E-06   -.20023E-03
  18  Prefactor     50.787        38.112       -.40460E-05   -.10972E-05
  19  norm          2.3692        2.1821        .32381E-07    .46602E-04
  20  Prefactor     52.010        49.538        .63159E-06    .60387E-05
  21  norm          3.8964        6.4160        .13392E-06   -.56962E-03
  22  Prefactor     1.0748        3.1206        .15316E-05   -.17340E-02
  23  Normalizat    1.2250        .20773        .43527E-06   -.66225E-04
  24  Prefactor     .79056        .12825        .26311E-06   -.65129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.5874
  norm       = 6.4954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22918
  norm       = 0.0001
  norm       = 36.7502
  Prefactor  = 22.6463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47476
  Prefactor  = 50.7874
  norm       = 2.36916
  Prefactor  = 52.0095
  norm       = 3.89637
  Prefactor  = 1.0748
  Normalizat = 1.225
  Prefactor  = 0.790561
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.790     FROM HESSE     STATUS=OK           397 CALLS     3106 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5874        3.0541        .10424E-03   -1.5235    
   3  norm          6.4954        4.1453        .13156E-03   -1.5198    
   4  Prefactor     .10000E-03    8.6847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2273        .12162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2292        .24966        .18112E-04   -1.5486    
  10  norm          .10000E-03    2.3567        .12514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.750        46.991        .66110E-04   -1.4495    
  12  Prefactor     22.646        43.219        .84158E-04   -1.4756    
  13  Prefactor     .10000E-03    4.4232        .17095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5988        .17469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4748        2.7388        .13786E-03   -1.5393    
  18  Prefactor     50.787        38.121        .56272E-04   -1.4281    
  19  norm          2.3692        2.1809        .11306E-03   -1.5400    
  20  Prefactor     52.010        49.522        .55612E-04   -1.4264    
  21  norm          3.8964        6.4660        .10220E-02   -1.5313    
  22  Prefactor     1.0748        18.811        .23088E-02   -1.5501    
  23  Normalizat    1.2250        .25001        .28243E-03   -.85834    
  24  Prefactor     .79056        .15523        .21546E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23408e-08
Minuit parameter uncertainties:
  1  4.07581e-05
  2  3.05421
  3  4.14545
  4  5.64541e-06
  5  6.76958e-05
  6  2.34099e-05
  7  0.000151664
  8  8.43512e-07
  9  0.249658
  10  6.11937e-07
  11  47.038
  12  43.2788
  13  1.04807e-06
  14  4.98881e-06
  15  2.30836e-06
  16  0.000115738
  17  2.7389
  18  38.1393
  19  2.18096
  20  49.5616
  21  6.46719
  22  8.99576
  23  0.250258
  24  0.155311
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.265e+01  4.328e+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:  7.906e-01  1.553e-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.225e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/457045/likelihoodResults_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.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) = 6968.39399023
delta logL = 0.396001606671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6968.38863202
delta logL = 0.40135981491

Fit tolerance = 1e-08

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

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

 FCN=   6968.389     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      311 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5612        140.54        .42441E-02    .77998E-03
   2  Index         4.1352        4.0646        .14266        .22878E-03
   3  Normalizat    1.1705        .62946E-01    .65115E-01   -.30809E-03
   4  Prefactor     .81275        .38558E-01    .43883E-01   -.40340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56121
  Index      = 4.13523
  Normalizat = 1.17048
  Prefactor  = 0.81275
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.389     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      340 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5612        264.71        .16976E-03   -1.5236    
   2  Index         4.1352        6.9525        .76799E-02   -.17383    
   3  Normalizat    1.1705        .21418        .28805E-03   -.87520    
   4  Prefactor     .81275        .13487        .21274E-03   -.99260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73188e-09
Minuit parameter uncertainties:
  1  77.1
  2  8.38006
  3  0.214336
  4  0.134927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457045': 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) = 6968.38863011
delta logL = 0.401361721228

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  5.561e+00  7.710e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  4.135e+00  8.380e+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:  8.127e-01  1.349e-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.170e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 229.244 19.581
Photon Index (Free Index): 4.14 +/- 8.38
Photon Flux (Free Index): 6.03e-08 +/- 6.02e-08
Energy Flux (Free Index): 8.84e-06 +/- 1.43e-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/457045/cmap_HighResolution_606096001_606355201_4FGL_J1516.9+1934_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', comment='SUCCESS', energy_flux2='8.84e-06', dlogl='4.01e-01', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-09-11 23:46:05.074359', photon_index_error2='8.38', photon_index2='4.14', ts='0.35', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.43e-05', EG='1.22', time_epoch_completed='1631429165.07', return_code='0', job_id='457045', GAL2='0.81', EG2='1.17', return_code2='102', photon_flux_error2='6.02e-08', ts2='1.22', photon_index='2.58' WHERE bin_id='1415' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 457045: <4FGL_J1516.9+1934_daily_bin1415> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1415> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:31:00 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:31:03 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:31:03 2021
Terminated at Sat Sep 11 23:46:05 2021
Results reported at Sat Sep 11 23:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1415 229.244 19.5805 606096001 606355201 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 :                                   668.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

