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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin17
RA = 229.244, Dec = 19.5805
tmin = 243734401, tmax = 243993601
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='448040', job_status='RUN', time_executed='2021-09-11 23:05:23.056003', time_epoch_executed='1631426723.06' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448040/ft1_4FGL_J1516.9+1934_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448040/ft1_4FGL_J1516.9+1934_daily_bin17.fits outfile=/scratch/kocevski/448040/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin17.fits ra=229.244 dec=19.5805 rad=12.0 tmin=243734401.0 tmax=243993601.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 1.37
user 1.20
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.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/448040/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.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/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/448040/ltcube_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.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/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits
.....................!
real 12.36
user 11.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/448040/ltcube_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.fits outfile=/scratch/kocevski/448040/expmap_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.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/448040/ltcube_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.fits
.....................!
real 189.70
user 185.25
sys 4.14

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/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.fits scfile=/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits outfile=/scratch/kocevski/448040/cmap_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.fits scfile=/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits outfile=/scratch/kocevski/448040/cmap_HighResolution_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.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/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/448040/ft2_4FGL_J1516.9+1934_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448040/Model_4FGL_J1516.9+1934_daily_bin17.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/448040/ft1_filtered_4FGL_J1516.9+1934_daily_bin17.fits.....................!
real 53.59
user 52.21
sys 1.28

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6313       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25902E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2556       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    39.594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.253       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2554       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2054       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87525       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=   6968.232     FROM MIGRAD    STATUS=CONVERGED   1013 CALLS     3561 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6329        10.678        .21201E-03    .13889E-03
   2  norm          .10000E-03    1.3110        .92479E-03** at limit **
   3  norm          6.3347        4.6608        .14919E-03    .70562E-04
   4  Prefactor     .10000E-03    41.244        .18142E-02** at limit **
   5  Prefactor     .10000E-03    10.553        .18142E-02** at limit **
   6  Prefactor     .10000E-03    10.824        .18142E-02** at limit **
   7  Prefactor     .10000E-03    15.506        .18142E-02** at limit **
   8  Prefactor     .10000E-03    32.087        .38783E-02** at limit **
   9  norm          2.2555        .31863        .16978E-04    .32945E-03
  10  norm          .10000E-03    5.0817        .18142E-02** at limit **
  11  norm          39.670        50.783        .31850E-03   -.63929E-04
  12  Prefactor     .17797E-01    37.079        .14039        .32290E-04
  13  Prefactor     .10000E-03    2.1488        .11942E-02** at limit **
  14  Prefactor     .10000E-03    15.021        .18142E-02** at limit **
  15  Prefactor     .10000E-03    4.3488        .16986E-02** at limit **
  16  Prefactor     .10000E-03    9.3808        .18142E-02** at limit **
  17  Prefactor     .10000E-03    1.5897        .20261E-03** at limit **
  18  Prefactor     15.247        33.480        .10255E-03   -.24277E-04
  19  norm          5.2551        3.0027        .10438E-03   -.13037E-03
  20  Prefactor     .10000E-03    37.903        .18142E-02** at limit **
  21  norm          11.003        9.5732        .12079E-03   -.46119E-05
  22  Prefactor     10.523        11.359        .12352E-03    .26600E-04
  23  Normalizat    1.2053        .25645        .29719E-03    .21594E-03
  24  Prefactor     .87522        .15708        .21484E-03    .30959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6329
  norm       = 0.0001
  norm       = 6.33466
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25553
  norm       = 0.0001
  norm       = 39.6695
  Prefactor  = 0.0177974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2473
  norm       = 5.25506
  Prefactor  = 0.000100002
  norm       = 11.003
  Prefactor  = 10.5231
  Normalizat = 1.20526
  Prefactor  = 0.875221
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.232     FROM HESSE     STATUS=OK           383 CALLS     3944 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6329        10.677        .84803E-05   -1.5327    
   2  norm          .10000E-03    1.3112        .18496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3347        4.6608        .59677E-05   -1.5205    
   4  Prefactor     .10000E-03    41.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.803        .77566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2555        .31863        .67912E-06   -1.5408    
  10  norm          .10000E-03    5.0832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          39.670        50.785        .12740E-04   -1.4447    
  12  Prefactor     .17797E-01    36.741        .14131       -1.5681    
  13  Prefactor     .10000E-03    2.1489        .23884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3490        .33972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5897        .40522E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.247        33.493        .41022E-05   -1.4927    
  19  norm          5.2551        3.0027        .41753E-05   -1.5249    
  20  Prefactor     .10000E-03    37.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.003        9.5732        .48316E-05   -1.5044    
  22  Prefactor     10.523        11.359        .49408E-05   -1.5059    
  23  Normalizat    1.2053        .25668        .11888E-04   -.86440    
  24  Prefactor     .87522        .15724        .42967E-04   -.97012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76736e-10
Minuit parameter uncertainties:
  1  10.6823
  2  3.48548e-05
  3  4.66105
  4  0.000627926
  5  4.54872e-05
  6  2.84144e-05
  7  7.79668e-06
  8  0.000114253
  9  0.318631
  10  1.28182e-06
  11  50.8401
  12  1.61371
  13  1.691e-06
  14  6.28724e-05
  15  2.99527e-06
  16  1.2456e-06
  17  1.0694e-05
  18  33.5345
  19  3.00275
  20  0.000536966
  21  9.57453
  22  11.3612
  23  0.256945
  24  0.157319
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.780e-02  1.614e+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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.752e-01  1.573e-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.205e+00  2.569e-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: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448040/likelihoodResults_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.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) = 6968.23184704
delta logL = 4.21096046921e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6968.23184704
delta logL = 8.42192093842e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17797E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5801       1.0000          .0000       10.000    
     3 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87522       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6968.226     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      371 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1522        88.923        .18223E-02   -.39465E-04
   2  Index         3.1022        6.5254        .14506E-01   -.33544E-05
   3  Normalizat    1.2013        .24821        .29763E-03    .50038E-05
   4  Prefactor     .87576        .15495        .21478E-03    .12439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15216
  Index      = 3.10225
  Normalizat = 1.20132
  Prefactor  = 0.875759
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.226     FROM HESSE     STATUS=OK            27 CALLS      398 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1522        60.088        .72894E-04   -1.5415    
   2  Index         3.1022        3.4888        .58022E-03   -.38931    
   3  Normalizat    1.2013        .24848        .11905E-04   -.86562    
   4  Prefactor     .87576        .15511        .85913E-05   -.96993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72487e-11
Minuit parameter uncertainties:
  1  22.7684
  2  3.95253
  3  0.248721
  4  0.155188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448040': 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) = 6968.22590636
delta logL = 0.00594068538339

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.152e+00  2.277e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.102e+00  3.953e+00  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.758e-01  1.552e-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.201e+00  2.487e-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/448040/cmap_HighResolution_243734401_243993601_4FGL_J1516.9+1934_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2021-09-11 23:17:30.002000', job_id='448040', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1631427450.0', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.94e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='17' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:17:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 448040: <4FGL_J1516.9+1934_daily_bin17> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin17> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:43 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:44 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:01:44 2021
Terminated at Sat Sep 11 23:17:30 2021
Results reported at Sat Sep 11 23:17:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin17 229.244 19.5805 243734401 243993601 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

