/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7432
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1013
RA = 229.244, Dec = 19.5805
tmin = 501897601, tmax = 502156801
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='454207', job_status='RUN', time_executed='2021-09-11 23:21:59.265786', time_epoch_executed='1631427719.27' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454207

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454207/ft1_4FGL_J1516.9+1934_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454207/ft2_4FGL_J1516.9+1934_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454207/ft1_4FGL_J1516.9+1934_daily_bin1013.fits outfile=/scratch/kocevski/454207/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1013.fits ra=229.244 dec=19.5805 rad=12.0 tmin=501897601.0 tmax=502156801.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.52
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454207/ft1_filtered_4FGL_J1516.9+1934_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/454207/ft2_4FGL_J1516.9+1934_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/454207/ltcube_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.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/454207/ft2_4FGL_J1516.9+1934_daily_bin1013.fits
.....................!
real 11.87
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454207/ft1_filtered_4FGL_J1516.9+1934_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/454207/ft2_4FGL_J1516.9+1934_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/454207/ltcube_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.fits outfile=/scratch/kocevski/454207/expmap_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.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/454207/ltcube_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.fits
.....................!
real 190.41
user 185.15
sys 4.88

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/454207/ft1_filtered_4FGL_J1516.9+1934_daily_bin1013.fits scfile=/scratch/kocevski/454207/ft2_4FGL_J1516.9+1934_daily_bin1013.fits outfile=/scratch/kocevski/454207/cmap_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.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.56
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1099       1.0000         .10000E-03   10000.    
     3 'norm      '    25.183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2281       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4003       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4931       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 '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.959       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78896       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11397E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2157       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99992       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98871       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=   7385.651     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2699 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.867       -.49584E-08** at limit **
   2  norm          6.1102        3.4386        .37258E-07   -.28174E-04
   3  norm          25.183        7.4098        .18522E-07   -.10064E-04
   4  Prefactor     4.2327        35.179        .38652E-06    .21817E-04
   5  Prefactor     16.980        20.378       -.28599E-06   -.12039E-03
   6  Prefactor     .10000E-03    9.7632       -.11420E-06** at limit **
   7  Prefactor     .10000E-03    96.651       -.26087E-05** at limit **
   8  Prefactor     3.4006        8.0349        .57430E-06   -.17279E-04
   9  norm          2.4931        .34888        .33252E-08   -.29290E-04
  10  norm          .10000E-03    3.1127        .14684E-07** at limit **
  11  norm          .10000E-03    16.733        .81345E-07** at limit **
  12  Prefactor     .10000E-03    17.285        .69562E-08** at limit **
  13  Prefactor     .10000E-03    2.1135        .41828E-07** at limit **
  14  Prefactor     42.946        38.756       -.13783E-06   -.89136E-04
  15  Prefactor     .10000E-03    2.2895        .99108E-08** at limit **
  16  Prefactor     12.023        13.664       -.42986E-07   -.38054E-05
  17  Prefactor     .78891        1.7921        .69521E-06   -.43362E-04
  18  Prefactor     .10000E-03    46.333        .29900E-06** at limit **
  19  norm          .10000E-03    1.0049       -.15428E-07** at limit **
  20  Prefactor     .10000E-03    8.2300        .12430E-07** at limit **
  21  norm          1.2145        11.328        .34510E-05   -.59424E-04
  22  Prefactor     .10000E-03    3.3092        .56756E-07** at limit **
  23  Normalizat    .99995        .21697        .19040E-06   -.86217E-04
  24  Prefactor     .98865        .13299       -.72032E-06   -.30500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.1102
  norm       = 25.1831
  Prefactor  = 4.23268
  Prefactor  = 16.9798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40063
  norm       = 2.49305
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9457
  Prefactor  = 0.0001
  Prefactor  = 12.0231
  Prefactor  = 0.788909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21453
  Prefactor  = 0.0001
  Normalizat = 0.999951
  Prefactor  = 0.988654
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.651     FROM HESSE     STATUS=OK           395 CALLS     3094 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1102        3.4366        .11463E-03   -1.5214    
   3  norm          25.183        7.4212        .79826E-04   -1.4704    
   4  Prefactor     4.2327        35.045        .19597E-03   -1.5296    
   5  Prefactor     16.980        20.334        .97085E-04   -1.4884    
   6  Prefactor     .10000E-03    9.7661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    97.620        .21433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4006        8.0342        .21940E-03   -1.5339    
   9  norm          2.4931        .34924        .18208E-04   -1.5392    
  10  norm          .10000E-03    3.1144        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1195        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.946        38.878        .61164E-04   -1.4396    
  15  Prefactor     .10000E-03    2.2909        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.023        13.664        .11553E-03   -1.5014    
  17  Prefactor     .78891        1.7872        .16809E-03   -1.5530    
  18  Prefactor     .10000E-03    46.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0327        .16820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2145        11.377        .40970E-03   -1.5488    
  22  Prefactor     .10000E-03    3.3228        .15268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99995        .25844        .32468E-03   -.93032    
  24  Prefactor     .98865        .15760        .20751E-03   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15688e-10
Minuit parameter uncertainties:
  1  4.02012e-05
  2  3.43673
  3  7.42147
  4  24.3777
  5  20.3424
  6  2.03432e-06
  7  0.000240571
  8  8.03675
  9  0.349245
  10  3.60364e-07
  11  3.30085e-05
  12  7.49534e-06
  13  1.17371e-07
  14  38.9008
  15  4.00195e-07
  16  13.6673
  17  1.78731
  18  0.000160653
  19  1.34275e-06
  20  4.2883e-07
  21  7.43613
  22  6.03641e-07
  23  0.258762
  24  0.157676
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  7.495e-06  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.887e-01  1.577e-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.000e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454207/likelihoodResults_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7385.65095711
delta logL = -0.000275104389402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7385.65068194
delta logL = 6.03058651905e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5547       1.0000          .0000       10.000    
     3 'Normalizat'    .99995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98864       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=   7385.651     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      263 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.114        .18142E-01** at limit **
   2  Index         2.0799        8.8229        .50000        .14743E-06
   3  Normalizat    .99995        .81833E-02    .32467E-03    .29063E-04
   4  Prefactor     .98865        .52372E-02    .20751E-03    .49143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07995
  Normalizat = 0.999952
  Prefactor  = 0.988653
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.651     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.24        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0799        5.1884        .50000       -.62366    
   3  Normalizat    .99995        .18703E-01    .12987E-04   -.93032    
   4  Prefactor     .98865        .11970E-01    .83005E-05   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.97877e-10
Minuit parameter uncertainties:
  1  0.000106701
  2  790.189
  3  0.0187032
  4  0.0119696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454207': 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) = 7385.65068126
delta logL = 7.38911694498e-07

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.067e-04  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.080e+00  7.902e+02  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.887e-01  1.197e-02  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.000e+00  1.870e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.244 19.581

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/454207/cmap_HighResolution_501897601_502156801_4FGL_J1516.9+1934_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-11 23:33:49.815111', job_id='454207', GAL2='0.99', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631428429.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1013' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:33:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 454207: <4FGL_J1516.9+1934_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1013> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:21:39 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:21:40 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:21:40 2021
Terminated at Sat Sep 11 23:33:50 2021
Results reported at Sat Sep 11 23:33:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1013 229.244 19.5805 501897601 502156801 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 :                                   696.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

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

