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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin22
RA = 229.244, Dec = 19.5805
tmin = 245030401, tmax = 245289601
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='448048', job_status='RUN', time_executed='2021-09-11 23:01:54.269519', time_epoch_executed='1631426514.27' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448048/ft1_4FGL_J1516.9+1934_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448048/ft2_4FGL_J1516.9+1934_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448048/ft1_4FGL_J1516.9+1934_daily_bin22.fits outfile=/scratch/kocevski/448048/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin22.fits ra=229.244 dec=19.5805 rad=12.0 tmin=245030401.0 tmax=245289601.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.46
user 1.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448048/ft1_filtered_4FGL_J1516.9+1934_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/448048/ft2_4FGL_J1516.9+1934_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/448048/ltcube_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.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/448048/ft2_4FGL_J1516.9+1934_daily_bin22.fits
.....................!
real 12.76
user 12.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448048/ft1_filtered_4FGL_J1516.9+1934_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/448048/ft2_4FGL_J1516.9+1934_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/448048/ltcube_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.fits outfile=/scratch/kocevski/448048/expmap_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.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/448048/ltcube_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.fits
.....................!
real 190.68
user 185.66
sys 4.39

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/448048/ft1_filtered_4FGL_J1516.9+1934_daily_bin22.fits scfile=/scratch/kocevski/448048/ft2_4FGL_J1516.9+1934_daily_bin22.fits outfile=/scratch/kocevski/448048/cmap_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448048/ft1_filtered_4FGL_J1516.9+1934_daily_bin22.fits scfile=/scratch/kocevski/448048/ft2_4FGL_J1516.9+1934_daily_bin22.fits outfile=/scratch/kocevski/448048/cmap_HighResolution_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=229.244 yref=19.5805 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1211       1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23755E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2974       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.611       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0997       1.0000         .10000E-03   10000.    
    10 'norm      '    6.3854       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.124       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.437       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4757       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .31246E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1948       1.0000         .10000E-03   10000.    
    21 'norm      '    15.163       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4052       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78442       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1020       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=   8897.772     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2709 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1149        9.3463        .37772E-06    .32484E-04
   2  norm          .10000E-03    1.2523       -.23454E-07** at limit **
   3  norm          .10000E-03    2.3984       -.24565E-07** at limit **
   4  Prefactor     .10000E-03    56.894       -.76480E-06** at limit **
   5  Prefactor     .10000E-03    20.148       -.13945E-06** at limit **
   6  Prefactor     4.2554        22.822       -.20146E-05   -.13158E-03
   7  Prefactor     .10000E-03    11.452       -.84989E-07** at limit **
   8  Prefactor     10.612        7.1754        .62856E-07    .33141E-04
   9  norm          1.0997        .21064        .61722E-08    .48831E-04
  10  norm          6.3856        5.5433        .10845E-06    .96241E-04
  11  norm          .10000E-03    21.054       -.15561E-06** at limit **
  12  Prefactor     61.133        47.226        .12208E-05    .13163E-03
  13  Prefactor     5.9731        5.5232        .78948E-06    .60183E-03
  14  Prefactor     18.442        29.258        .38275E-06    .34511E-04
  15  Prefactor     5.6371        9.0742        .21362E-06    .42843E-05
  16  Prefactor     .10000E-03    28.138        .64192E-06** at limit **
  17  Prefactor     2.4759        1.9898        .37312E-07   -.35722E-04
  18  Prefactor     .10000E-03    21.184       -.83429E-06** at limit **
  19  norm          .10000E-03    1.0676       -.19903E-06** at limit **
  20  Prefactor     4.2007        22.658        .78926E-05   -.10978E-03
  21  norm          15.169        9.5724       -.56900E-07   -.65976E-04
  22  Prefactor     4.4054        4.3982        .10089E-06    .17348E-03
  23  Normalizat    .78426        .20225       -.78605E-06    .18245E-04
  24  Prefactor     1.1020        .12252        .25113E-07    .11812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11492
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25541
  Prefactor  = 0.0001
  Prefactor  = 10.6117
  norm       = 1.09969
  norm       = 6.38556
  norm       = 0.0001
  Prefactor  = 61.1335
  Prefactor  = 5.97308
  Prefactor  = 18.4418
  Prefactor  = 5.63709
  Prefactor  = 0.0001
  Prefactor  = 2.47588
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.20068
  norm       = 15.1693
  Prefactor  = 4.40544
  Normalizat = 0.784256
  Prefactor  = 1.10198
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.772     FROM HESSE     STATUS=OK           399 CALLS     3108 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1149        9.3671        .15032E-03   -1.5174    
   2  norm          .10000E-03    1.2998        .20603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.4705        .28523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    58.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2554        23.990        .19434E-03   -1.5295    
   7  Prefactor     .10000E-03    11.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.612        7.1755        .12300E-03   -1.5056    
   9  norm          1.0997        .21076        .18186E-04   -1.5498    
  10  norm          6.3856        5.5486        .15884E-03   -1.5203    
  11  norm          .10000E-03    21.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     61.133        47.655        .51321E-04   -1.4143    
  13  Prefactor     5.9731        5.6811        .16431E-03   -1.5219    
  14  Prefactor     18.442        29.282        .93277E-04   -1.4849    
  15  Prefactor     5.6371        9.0649        .16918E-03   -1.5233    
  16  Prefactor     .10000E-03    28.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4759        1.9886        .11485E-03   -1.5393    
  18  Prefactor     .10000E-03    21.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.0570        .18323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2007        23.827        .98384E-03   -1.5298    
  21  norm          15.169        9.3922        .10286E-03   -1.4929    
  22  Prefactor     4.4054        4.4114        .19188E-03   -1.5288    
  23  Normalizat    .78426        .23491        .35324E-03   -1.0066    
  24  Prefactor     1.1020        .14350        .19140E-03   -.89403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9451e-10
Minuit parameter uncertainties:
  1  9.36905
  2  2.94253e-07
  3  6.88374e-07
  4  0.000303117
  5  0.000137404
  6  20.2199
  7  1.82067e-05
  8  7.17604
  9  0.210756
  10  5.54901
  11  2.98508e-05
  12  47.6844
  13  5.68159
  14  29.3052
  15  9.06715
  16  0.000137237
  17  1.98866
  18  0.000168951
  19  2.37366e-05
  20  20.0209
  21  9.39311
  22  4.41174
  23  0.235216
  24  0.143551
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  6.113e+01  4.768e+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:  1.102e+00  1.436e-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:  7.843e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.29e-05

TS (Fixed Index): 2.43
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448048/likelihoodResults_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.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) = 8897.74351888
delta logL = 0.0281070797828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8897.73046769
delta logL = 0.0411582758898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.777       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3639       1.0000          .0000       10.000    
     3 'Normalizat'    .79863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0955       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=   8897.730     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      234 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.777        1201.3        .12014E-02   -.13069E-03
   2  Index         2.3638        6.1719        .24045        .36029E-04
   3  Normalizat    .79884        .81372E-01    .79117E-01    .64943E-05
   4  Prefactor     1.0953        .40618E-01    .37761E-01   -.15053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.7768
  Index      = 2.36379
  Normalizat = 0.798845
  Prefactor  = 1.09533
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.730     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.777        59.265        .48055E-04   -1.4035    
   2  Index         2.3638        .72021        .90698E-02   -.55535    
   3  Normalizat    .79884        .22952        .35025E-03   -1.0011    
   4  Prefactor     1.0953        .14377        .19189E-03   -.89616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98124e-10
Minuit parameter uncertainties:
  1  59.3152
  2  0.723707
  3  0.2298
  4  0.143817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448048': 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) = 8897.7304672
delta logL = 0.0411587630206

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  6.978e+01  5.932e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.364e+00  7.237e-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.095e+00  1.438e-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:  7.988e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.36 +/- 0.72
Photon Flux (Free Index): 5.33e-08 +/- 5.17e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.66e-05

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/448048/cmap_HighResolution_245030401_245289601_4FGL_J1516.9+1934_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='1.84e-05', photon_flux_error='4.81e-08', dlogl='4.12e-02', energy_flux='1.65e-05', photon_flux2='5.33e-08', job_status='DONE', time_completed='2021-09-11 23:14:29.479353', photon_index_error2='0.72', photon_index2='2.36', ts='2.43', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.66e-05', EG='0.78', time_epoch_completed='1631427269.48', return_code='0', job_id='448048', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.17e-08', ts2='2.49', photon_index='2.58' WHERE bin_id='22' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:14:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 448048: <4FGL_J1516.9+1934_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin22 229.244 19.5805 245030401 245289601 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

