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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1352
RA = 229.244, Dec = 19.5805
tmin = 589766401, tmax = 590025601
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='456028', job_status='RUN', time_executed='2021-09-11 23:26:37.421685', time_epoch_executed='1631427997.42' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456028/ft1_4FGL_J1516.9+1934_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456028/ft2_4FGL_J1516.9+1934_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456028/ft1_4FGL_J1516.9+1934_daily_bin1352.fits outfile=/scratch/kocevski/456028/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1352.fits ra=229.244 dec=19.5805 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.21
user 4.93
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456028/ft1_filtered_4FGL_J1516.9+1934_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/456028/ft2_4FGL_J1516.9+1934_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/456028/ltcube_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.fits outfile=/scratch/kocevski/456028/expmap_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.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/456028/ltcube_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.fits
.....................!
real 191.73
user 186.69
sys 4.69

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/456028/ft1_filtered_4FGL_J1516.9+1934_daily_bin1352.fits scfile=/scratch/kocevski/456028/ft2_4FGL_J1516.9+1934_daily_bin1352.fits outfile=/scratch/kocevski/456028/cmap_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=229.244 yref=19.5805 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456028/ft1_filtered_4FGL_J1516.9+1934_daily_bin1352.fits scfile=/scratch/kocevski/456028/ft2_4FGL_J1516.9+1934_daily_bin1352.fits outfile=/scratch/kocevski/456028/cmap_HighResolution_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0141       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5590       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0340       1.0000         .10000E-03   10000.    
     9 'norm      '    .16938       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9372       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3486       1.0000         .10000E-03   10000.    
    19 'norm      '    8.3581       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    17.928       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8782       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90659       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0756       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=   5974.651     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2795 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0147        9.7749        .40932E-02   -.93510E-03
   2  norm          2.5591        2.4880        .63802E-02    .16117E-03
   3  norm          .10000E-03    1.4909        .90712E-02** at limit **
   4  Prefactor     .10000E-03    76.437        .90712E-02** at limit **
   5  Prefactor     .10000E-03    9.7534        .90712E-02** at limit **
   6  Prefactor     6.0295        107.22        .40636E-02   -.32690E-03
   7  Prefactor     24.670        74.361        .20148E-02   -.43029E-03
   8  Prefactor     7.0337        7.6563        .37815E-02   -.25771E-02
   9  norm          .16941        .16303        .63772E-02    .76279E-03
  10  norm          2.9376        4.5802        .59250E-02    .10008E-03
  11  norm          .10000E-03    30.896        .90712E-02** at limit **
  12  Prefactor     .10019E-03    304.59        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.5824        .90712E-01** at limit **
  14  Prefactor     27.321        43.142        .19160E-02    .29674E-03
  15  Prefactor     .10000E-03    4.3325        .90712E-02** at limit **
  16  Prefactor     .10000E-03    12.023        .90712E-02** at limit **
  17  Prefactor     .10000E-03    2.3282        .90712E-02** at limit **
  18  Prefactor     2.3545        86.733        .66871E-02    .32206E-03
  19  norm          8.3560        4.7887        .34667E-02    .47866E-02
  20  Prefactor     .10000E-03    52.482        .90712E-02** at limit **
  21  norm          17.935        14.758        .23648E-02    .52563E-03
  22  Prefactor     6.8755        11.987        .38245E-02    .20020E-03
  23  Normalizat    .90648        .24555        .77088E-01    .36391E-04
  24  Prefactor     1.0757        .14953        .38598E-01    .22151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.01467
  norm       = 2.55907
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.0295
  Prefactor  = 24.67
  Prefactor  = 7.03366
  norm       = 0.169408
  norm       = 2.93756
  norm       = 0.0001
  Prefactor  = 0.000100188
  Prefactor  = 0.0001
  Prefactor  = 27.3213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35452
  norm       = 8.35604
  Prefactor  = 0.000100001
  norm       = 17.9346
  Prefactor  = 6.87549
  Normalizat = 0.906478
  Prefactor  = 1.07571
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.651     FROM HESSE     STATUS=OK           397 CALLS     3192 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0147        9.7625        .16373E-03   -1.5217    
   2  norm          2.5591        2.4830        .11646E-03   -1.5388    
   3  norm          .10000E-03    1.4941        .92164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    77.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0295        102.35        .16254E-03   -1.5217    
   7  Prefactor     24.670        72.792        .80590E-04   -1.4714    
   8  Prefactor     7.0337        7.6527        .15126E-03   -1.5177    
   9  norm          .16941        .15569        .29334E-03   -1.5626    
  10  norm          2.9376        4.5660        .20162E-03   -1.5365    
  11  norm          .10000E-03    30.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10019E-03    310.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.271        .31836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.321        43.207        .76640E-04   -1.4662    
  15  Prefactor     .10000E-03    4.3384        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3992        .23008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3545        86.577        .26748E-03   -1.5401    
  19  norm          8.3560        4.7827        .58360E-03   -1.5130    
  20  Prefactor     .10000E-03    52.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.935        14.748        .94591E-04   -1.4861    
  22  Prefactor     6.8755        11.981        .15298E-03   -1.5183    
  23  Normalizat    .90648        .28981        .34119E-03   -.96233    
  24  Prefactor     1.0757        .17873        .19622E-03   -.90247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50044e-08
Minuit parameter uncertainties:
  1  9.76513
  2  2.48314
  3  6.62302e-07
  4  0.000457673
  5  7.38209e-06
  6  49.784
  7  73.0563
  8  7.65375
  9  0.155686
  10  4.56655
  11  0.000195367
  12  0.0153531
  13  0.000130693
  14  43.2569
  15  1.13242e-06
  16  3.05074e-06
  17  1.13127e-06
  18  28.5991
  19  4.78296
  20  0.00044921
  21  14.7506
  22  11.9852
  23  0.290314
  24  0.178832
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.002e-04  1.535e-02  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:  1.076e+00  1.788e-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.065e-01  2.903e-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: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456028/likelihoodResults_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.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) = 5974.65111848
delta logL = -1.52079628606e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5974.65110364
delta logL = -3.61154889106e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26130E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5576       1.0000          .0000       10.000    
     3 'Normalizat'    .90648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0757       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=   5974.651     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    9506.8        .10724E-01** at limit **
   2  Index         2.5616        5.3673        .50000       -.76104E-05
   3  Normalizat    .90648        .51778E-01    .77088E-01    .41523E-04
   4  Prefactor     1.0757        .32269E-01    .38592E-01    .44242E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100061
  Index      = 2.56162
  Normalizat = 0.906478
  Prefactor  = 1.07571
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.651     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    8402.7        .21447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5616        5.9718        .50000       -.50943    
   3  Normalizat    .90648        .12958        .34119E-03   -.96233    
   4  Prefactor     1.0757        .81006E-01    .19622E-03   -.90247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.55557e-09
Minuit parameter uncertainties:
  1  0.107006
  2  61.68
  3  0.129629
  4  0.0810157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456028': 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) = 5974.65110331
delta logL = -3.2030584407e-08

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.001e-04  1.070e-01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.562e+00  6.168e+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:  1.076e+00  8.102e-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:  9.065e-01  1.296e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/456028/cmap_HighResolution_589766401_590025601_4FGL_J1516.9+1934_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-11 23:36:50.486567', job_id='456028', GAL2='1.08', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631428610.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-3.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1352' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 456028: <4FGL_J1516.9+1934_daily_bin1352> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1352> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:26:23 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:26: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:26:24 2021
Terminated at Sat Sep 11 23:36:51 2021
Results reported at Sat Sep 11 23:36:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1352 229.244 19.5805 589766401 590025601 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            628 sec.

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

