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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin416
RA = 229.244, Dec = 19.5805
tmin = 347155201, tmax = 347414401
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='449516', job_status='RUN', time_executed='2021-09-11 23:06:37.435107', time_epoch_executed='1631426797.44' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449516/ft1_4FGL_J1516.9+1934_daily_bin416.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449516/ft2_4FGL_J1516.9+1934_daily_bin416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449516/ft1_4FGL_J1516.9+1934_daily_bin416.fits outfile=/scratch/kocevski/449516/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin416.fits ra=229.244 dec=19.5805 rad=12.0 tmin=347155201.0 tmax=347414401.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.44
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449516/ft2_4FGL_J1516.9+1934_daily_bin416.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/449516/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin416.fits evtable="EVENTS" outfile="/scratch/kocevski/449516/ft1_filtered_4FGL_J1516.9+1934_daily_bin416.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/449516/ft1_filtered_4FGL_J1516.9+1934_daily_bin416.fits" evtable="EVENTS" scfile=/scratch/kocevski/449516/ft2_4FGL_J1516.9+1934_daily_bin416.fits sctable="SC_DATA" outfile=/scratch/kocevski/449516/ltcube_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.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/449516/ft2_4FGL_J1516.9+1934_daily_bin416.fits
.....................!
real 11.78
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449516/ft1_filtered_4FGL_J1516.9+1934_daily_bin416.fits evtable="EVENTS" scfile=/scratch/kocevski/449516/ft2_4FGL_J1516.9+1934_daily_bin416.fits sctable="SC_DATA" expcube=/scratch/kocevski/449516/ltcube_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.fits outfile=/scratch/kocevski/449516/expmap_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.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/449516/ltcube_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.fits
.....................!
real 190.03
user 184.91
sys 4.79

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/449516/ft1_filtered_4FGL_J1516.9+1934_daily_bin416.fits scfile=/scratch/kocevski/449516/ft2_4FGL_J1516.9+1934_daily_bin416.fits outfile=/scratch/kocevski/449516/cmap_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449516/ft1_filtered_4FGL_J1516.9+1934_daily_bin416.fits scfile=/scratch/kocevski/449516/ft2_4FGL_J1516.9+1934_daily_bin416.fits outfile=/scratch/kocevski/449516/cmap_HighResolution_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.146       1.0000         .10000E-03   10000.    
     2 'norm      '    .38774E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78452E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.971       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .52421       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .26289E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.679       1.0000         .10000E-03   10000.    
    21 'norm      '    .13422E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1767       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3960       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90569       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=   8632.732     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     3290 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.139        11.377        .13492E-06   -.14210E-03
   2  norm          .10000E-03    1.1685        .75283E-07** at limit **
   3  norm          2.1983        3.9677        .57129E-06   -.17246E-03
   4  Prefactor     .10004E-03    65.082        .10397E-04** at limit **
   5  Prefactor     9.2172        15.913        .64117E-06    .27741E-04
   6  Prefactor     32.946        23.401        .14317E-05    .26423E-03
   7  Prefactor     .10000E-03    10.879       -.43080E-06** at limit **
   8  Prefactor     .10000E-03    3.3625       -.30223E-08** at limit **
   9  norm          .52415        .20461        .18461E-07   -.36493E-03
  10  norm          .10000E-03    2.7185        .14729E-07** at limit **
  11  norm          .10000E-03    21.339        .20304E-05** at limit **
  12  Prefactor     .10000E-03    16.613       -.14243E-05** at limit **
  13  Prefactor     .10000E-03    4.5383       -.29933E-08** at limit **
  14  Prefactor     .10000E-03    30.784       -.22572E-05** at limit **
  15  Prefactor     18.014        20.152        .31130E-06    .74589E-04
  16  Prefactor     .10000E-03    18.404        .28623E-06** at limit **
  17  Prefactor     .36099        1.8981        .22462E-06   -.37343E-03
  18  Prefactor     .10000E-03    12.239        .72763E-06** at limit **
  19  norm          .10004E-03    1.0866        .42029E-06** at limit **
  20  Prefactor     41.678        35.942        .13411E-06   -.60026E-04
  21  norm          .10119E-03    3.7462       -.36251E-06** at limit **
  22  Prefactor     5.1775        9.0963        .42987E-05   -.65990E-03
  23  Normalizat    1.3965        .21291       -.89097E-06   -.15031E-03
  24  Prefactor     .90543        .12555       -.18555E-06   -.25519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1392
  norm       = 0.000100002
  norm       = 2.19835
  Prefactor  = 0.000100038
  Prefactor  = 9.21716
  Prefactor  = 32.946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.524145
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 18.0143
  Prefactor  = 0.0001
  Prefactor  = 0.360993
  Prefactor  = 0.0001
  norm       = 0.00010004
  Prefactor  = 41.6783
  norm       = 0.000101191
  Prefactor  = 5.17748
  Normalizat = 1.39649
  Prefactor  = 0.905427
 **********
 **   18 **HESSE 
 **********

 FCN=   8632.732     FROM HESSE     STATUS=OK           409 CALLS     3699 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.139        11.343        .89235E-04   -1.4810    
   2  norm          .10000E-03    15.713        .19276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1983        3.9572        .24025E-03   -1.5411    
   4  Prefactor     .10004E-03    71.288        .41828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.2172        15.875        .13193E-03   -1.5101    
   6  Prefactor     32.946        23.487        .69785E-04   -1.4559    
   7  Prefactor     .10000E-03    10.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3714        .16637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52415        .20366        .24903E-04   -1.5563    
  10  norm          .10000E-03    2.7220        .14961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.014        20.134        .94350E-04   -1.4859    
  16  Prefactor     .10000E-03    18.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36099        3.9634        .23963E-02   -1.5588    
  18  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10004E-03    12.988        .18278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.678        35.731        .62092E-04   -1.4416    
  21  norm          .10119E-03    5.4049        .63773E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1775        9.5399        .88344E-03   -1.5253    
  23  Normalizat    1.3965        .25765        .30323E-03   -.80730    
  24  Prefactor     .90543        .15256        .22115E-03   -.95952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98574e-08
Minuit parameter uncertainties:
  1  11.344
  2  0.00030738
  3  3.95764
  4  0.00327504
  5  15.8827
  6  23.4931
  7  9.44162e-05
  8  1.82874e-07
  9  0.203663
  10  1.62571e-06
  11  0.000526
  12  0.000327457
  13  1.22915e-06
  14  0.000628965
  15  20.1412
  16  5.94997e-05
  17  2.39216
  18  0.000147049
  19  0.00144888
  20  35.7498
  21  0.00507508
  22  9.54269
  23  0.257891
  24  0.152634
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  3.275e-04  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.054e-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.396e+00  2.579e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449516/likelihoodResults_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.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) = 8632.73243575
delta logL = -0.000283137154838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8632.73215595
delta logL = -3.33414755005e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2276       1.0000          .0000       10.000    
     3 'Normalizat'    1.3965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90543       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=   8632.732     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.005        .50583E-01** at limit **
   2  Index         4.2224        6.5389        .20395        .63750E-05
   3  Normalizat    1.3965        .18201E-01    .68540E-01    .16509E-03
   4  Prefactor     .90543        .10987E-01    .45074E-01    .12456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 4.22239
  Normalizat = 1.39649
  Prefactor  = 0.905428
 **********
 **   18 **HESSE 
 **********

 FCN=   8632.732     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1371        .30589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.2224        6.8998        .81579E-02   -.15616    
   3  Normalizat    1.3965        .24552        .30323E-03   -.80730    
   4  Prefactor     .90543        .14892        .22115E-03   -.95952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16163e-10
Minuit parameter uncertainties:
  1  0.000257722
  2  4.94152
  3  0.24573
  4  0.148992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449516': 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) = 8632.73215573
delta logL = -3.11228359351e-06

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.577e-04  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  4.222e+00  4.942e+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.054e-01  1.490e-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.396e+00  2.457e-01  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/449516/cmap_HighResolution_347155201_347414401_4FGL_J1516.9+1934_daily_bin416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-11 23:19:44.694938', job_id='449516', GAL2='0.91', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1631427584.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='416' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:19:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 449516: <4FGL_J1516.9+1934_daily_bin416> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin416 229.244 19.5805 347155201 347414401 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 :                                   781.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             329.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

