/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7398
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin573
RA = 229.244, Dec = 19.5805
tmin = 387849601, tmax = 388108801
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='453604', job_status='RUN', time_executed='2021-09-11 23:24:18.277945', time_epoch_executed='1631427858.28' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453604

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453604/ft1_4FGL_J1516.9+1934_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453604/ft1_4FGL_J1516.9+1934_daily_bin573.fits outfile=/scratch/kocevski/453604/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin573.fits ra=229.244 dec=19.5805 rad=12.0 tmin=387849601.0 tmax=388108801.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 4.59
user 4.22
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.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/453604/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/453604/ft1_filtered_4FGL_J1516.9+1934_daily_bin573.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.51
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453604/ft1_filtered_4FGL_J1516.9+1934_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/453604/ltcube_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.fits outfile=/scratch/kocevski/453604/expmap_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.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/453604/ltcube_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.fits
.....................!
real 191.79
user 185.93
sys 5.36

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/453604/ft1_filtered_4FGL_J1516.9+1934_daily_bin573.fits scfile=/scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.fits outfile=/scratch/kocevski/453604/cmap_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453604/ft1_filtered_4FGL_J1516.9+1934_daily_bin573.fits scfile=/scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.fits outfile=/scratch/kocevski/453604/cmap_HighResolution_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453604/ft1_filtered_4FGL_J1516.9+1934_daily_bin573.fits', '/scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.fits', expMap='/scratch/kocevski/453604/expmap_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.fits', expCube='/scratch/kocevski/453604/ltcube_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453604/Model_4FGL_J1516.9+1934_daily_bin573.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/453604/ft1_filtered_4FGL_J1516.9+1934_daily_bin573.fits
Spacecraft file(s): /scratch/kocevski/453604/ft2_4FGL_J1516.9+1934_daily_bin573.fits
Exposure map: /scratch/kocevski/453604/expmap_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.fits
Exposure cube: /scratch/kocevski/453604/ltcube_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453604/Model_4FGL_J1516.9+1934_daily_bin573.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6188.74001149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6179       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6492       1.0000         .10000E-03   10000.    
     3 'norm      '    18.485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2622       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13298       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95768E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.199       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4628       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3493       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73644       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=   6188.674     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2391 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6206        11.831        .76642E-06   -.10543E-03
   2  norm          2.6493        2.2577       -.15412E-07   -.17123E-03
   3  norm          18.486        7.2271        .72105E-07   -.69914E-04
   4  Prefactor     .10000E-03    124.80        .86588E-05** at limit **
   5  Prefactor     6.2625        7.3739        .38749E-06    .42319E-03
   6  Prefactor     .10000E-03    9.3301       -.60210E-07** at limit **
   7  Prefactor     .10000E-03    19.161        .39470E-06** at limit **
   8  Prefactor     .10000E-03    6.9898        .83336E-06** at limit **
   9  norm          .13301        .13386        .27396E-07   -.39745E-03
  10  norm          .10000E-03    6.4174        .14006E-06** at limit **
  11  norm          .10000E-03    82.821       -.30920E-05** at limit **
  12  Prefactor     4.1699        129.09        .71236E-04   -.40785E-05
  13  Prefactor     .10000E-03    7.5670       -.12967E-06** at limit **
  14  Prefactor     11.202        35.001       -.15775E-04   -.42813E-04
  15  Prefactor     .10000E-03    6.8463       -.85950E-06** at limit **
  16  Prefactor     .10000E-03    10.717        .10218E-06** at limit **
  17  Prefactor     .95684E-01    1.0790       -.17868E-06   -.17846E-03
  18  Prefactor     15.195        19.245        .11501E-06   -.15930E-04
  19  norm          4.4621        2.8394        .13301E-06   -.81070E-04
  20  Prefactor     .10000E-03    17.297       -.34685E-06** at limit **
  21  norm          .10000E-03    3.3746        .28958E-07** at limit **
  22  Prefactor     .10000E-03    4.4675        .24762E-07** at limit **
  23  Normalizat    1.3492        .21502       -.80318E-06   -.15070E-03
  24  Prefactor     .73644        .12782       -.96714E-06   -.15663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.62056
  norm       = 2.64931
  norm       = 18.4857
  Prefactor  = 0.0001
  Prefactor  = 6.26252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.133012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16993
  Prefactor  = 0.0001
  Prefactor  = 11.2023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0956842
  Prefactor  = 15.1954
  norm       = 4.46213
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34923
  Prefactor  = 0.736443
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.674     FROM HESSE     STATUS=OK           399 CALLS     2790 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6206        11.851        .12922E-03   -1.5088    
   2  norm          2.6493        2.2534        .10568E-03   -1.5382    
   3  norm          18.486        7.2447        .93156E-04   -1.4848    
   4  Prefactor     .10000E-03    130.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2625        7.3893        .80205E-03   -1.5207    
   6  Prefactor     .10000E-03    9.3367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13301        .12894        .27847E-03   -1.5635    
  10  norm          .10000E-03    6.5670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    83.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1699        127.86        .19815E-03   -1.5300    
  13  Prefactor     .10000E-03    7.6412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.202        35.279        .11959E-03   -1.5038    
  15  Prefactor     .10000E-03    6.9028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .95684E-01    7.3118        .15748E-02   -1.5646    
  18  Prefactor     15.195        19.244        .10274E-03   -1.4928    
  19  norm          4.4621        2.8408        .10200E-03   -1.5285    
  20  Prefactor     .10000E-03    17.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3836        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5007        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3492        .25773        .26635E-03   -.82109    
  24  Prefactor     .73644        .15275        .21379E-03   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84398e-08
Minuit parameter uncertainties:
  1  11.8539
  2  2.25347
  3  7.24505
  4  0.000508495
  5  7.39042
  6  6.97037e-06
  7  4.35879e-06
  8  2.1489e-05
  9  0.128939
  10  5.47155e-06
  11  7.02392e-05
  12  46.2881
  13  7.08775e-06
  14  35.3447
  15  6.94772e-06
  16  2.88028e-06
  17  1.6722
  18  19.2522
  19  2.84092
  20  1.65838e-05
  21  5.6998e-06
  22  5.79507e-06
  23  0.257977
  24  0.152833
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.170e+00  4.629e+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.364e-01  1.528e-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.349e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/453604/likelihoodResults_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.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) = 6188.67383811
delta logL = 0.000496015822137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.67365549
delta logL = 0.000678642680214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9273       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6909       1.0000          .0000       10.000    
     3 'Normalizat'    1.3485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73668       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=   6188.674     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      246 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8384        6090.9        .50892E-02    .90909E-04
   2  Index         2.7463        5.4694        .38137        .21112E-04
   3  Normalizat    1.3483        .28788E-01    .60241E-01    .24715E-04
   4  Prefactor     .73679        .17721E-01    .42887E-01   -.15305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83835
  Index      = 2.74626
  Normalizat = 1.34833
  Prefactor  = 0.736789
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.674     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8384        203.73        .20357E-03   -1.5316    
   2  Index         2.7463        6.3116        .28803E-01   -.46760    
   3  Normalizat    1.3483        .24757        .26643E-03   -.82135    
   4  Prefactor     .73679        .15177        .21374E-03   -1.0210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44766e-10
Minuit parameter uncertainties:
  1  56.1298
  2  5.91574
  3  0.247786
  4  0.151851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453604': 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) = 6188.67357407
delta logL = 0.000760056937906

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.838e+00  5.613e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.746e+00  5.916e+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:  7.368e-01  1.519e-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.348e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/453604/cmap_HighResolution_387849601_388108801_4FGL_J1516.9+1934_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-11 23:34:27.092954', job_id='453604', GAL2='0.74', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631428467.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='7.60e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='573' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:34:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 453604: <4FGL_J1516.9+1934_daily_bin573> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin573> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:20:55 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:20:57 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:20:57 2021
Terminated at Sat Sep 11 23:34:27 2021
Results reported at Sat Sep 11 23:34:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin573 229.244 19.5805 387849601 388108801 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

