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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1224
RA = 229.244, Dec = 19.5805
tmin = 556588801, tmax = 556848001
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='455896', job_status='RUN', time_executed='2021-09-11 23:28:27.616006', time_epoch_executed='1631428107.62' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455896/ft1_4FGL_J1516.9+1934_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455896/ft2_4FGL_J1516.9+1934_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455896/ft1_4FGL_J1516.9+1934_daily_bin1224.fits outfile=/scratch/kocevski/455896/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1224.fits ra=229.244 dec=19.5805 rad=12.0 tmin=556588801.0 tmax=556848001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.61
user 3.39
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455896/ft1_filtered_4FGL_J1516.9+1934_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/455896/ft2_4FGL_J1516.9+1934_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/455896/ltcube_556588801_556848001_4FGL_J1516.9+1934_daily_bin1224.fits outfile=/scratch/kocevski/455896/expmap_556588801_556848001_4FGL_J1516.9+1934_daily_bin1224.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/455896/ltcube_556588801_556848001_4FGL_J1516.9+1934_daily_bin1224.fits
.....................!
real 190.39
user 185.47
sys 4.56

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/455896/ft1_filtered_4FGL_J1516.9+1934_daily_bin1224.fits scfile=/scratch/kocevski/455896/ft2_4FGL_J1516.9+1934_daily_bin1224.fits outfile=/scratch/kocevski/455896/cmap_556588801_556848001_4FGL_J1516.9+1934_daily_bin1224.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.52
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.969       1.0000         .10000E-03   10000.    
     2 'norm      '    16.907       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.473       1.0000         .10000E-03   10000.    
     9 'norm      '    .50419       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.537       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52338E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .31273E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0103       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .41269       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1874       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=   2491.442     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2683 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.978        18.421        .13171E-06    .52238E-05
   2  norm          16.908        6.9741       -.70827E-07   -.76483E-04
   3  norm          .10000E-03    4.3527        .59904E-07** at limit **
   4  Prefactor     .10000E-03    50.880        .32573E-05** at limit **
   5  Prefactor     .10000E-03    11.954        .59491E-06** at limit **
   6  Prefactor     .10000E-03    13.133       -.82015E-06** at limit **
   7  Prefactor     99.179        73.888        .39398E-05    .24743E-03
   8  Prefactor     26.502        27.574        .20367E-05    .23293E-03
   9  norm          .50444        .35493        .54746E-08   -.13655E-03
  10  norm          .10000E-03    6.6237       -.12827E-08** at limit **
  11  norm          .10000E-03    65.312       -.22238E-05** at limit **
  12  Prefactor     18.515        74.863       -.50407E-05   -.65817E-04
  13  Prefactor     .10000E-03    16.689        .13032E-05** at limit **
  14  Prefactor     22.094        35.177        .69072E-06    .27699E-04
  15  Prefactor     .10000E-03    5.3188        .81781E-08** at limit **
  16  Prefactor     .10000E-03    20.410        .39378E-07** at limit **
  17  Prefactor     .10002E-03    4.0362        .84882E-06** at limit **
  18  Prefactor     .10000E-03    20.178        .63332E-07** at limit **
  19  norm          .10000E-03    2.2294       -.46112E-07** at limit **
  20  Prefactor     .10000E-03    23.003       -.16602E-05** at limit **
  21  norm          .10000E-03    13.921        .84126E-06** at limit **
  22  Prefactor     4.0174        12.468        .82117E-05   -.14589E-03
  23  Normalizat    .41210        .38824        .61607E-06   -.12193E-03
  24  Prefactor     1.1874        .23241       -.76088E-06   -.17719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9776
  norm       = 16.9084
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.1789
  Prefactor  = 26.5016
  norm       = 0.504445
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 18.5152
  Prefactor  = 0.000100001
  Prefactor  = 22.0937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100005
  Prefactor  = 4.01735
  Normalizat = 0.412105
  Prefactor  = 1.18743
 **********
 **   18 **HESSE 
 **********

 FCN=   2491.442     FROM HESSE     STATUS=OK           389 CALLS     3072 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.978        18.357        .11123E-03   -1.4987    
   2  norm          16.908        6.9707        .82143E-04   -1.4885    
   3  norm          .10000E-03    4.3677        .10169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.964        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.194        .17710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     99.179        75.899        .20187E-03   -1.3713    
   8  Prefactor     26.502        27.732        .77860E-04   -1.4678    
   9  norm          .50444        .34934        .23644E-04   -1.5566    
  10  norm          .10000E-03    6.6250        .12547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    65.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.515        74.627        .93026E-04   -1.4847    
  13  Prefactor     .10000E-03    16.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.094        35.134        .85224E-04   -1.4768    
  15  Prefactor     .10000E-03    5.3194        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    15.200        .18316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2458        .72750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    44.578        .35786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0174        12.748        .10069E-02   -1.5307    
  23  Normalizat    .41210        .39059        .42355E-03   -1.1668    
  24  Prefactor     1.1874        .24407        .16926E-03   -.86719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74087e-09
Minuit parameter uncertainties:
  1  18.3647
  2  6.97101
  3  3.8192e-06
  4  0.000695924
  5  1.63786e-05
  6  0.000146261
  7  75.9731
  8  27.7457
  9  0.349345
  10  9.45835e-07
  11  0.000704402
  12  74.5057
  13  0.000190059
  14  35.1665
  15  3.66066e-07
  16  3.31105e-06
  17  0.00117751
  18  2.85517e-05
  19  1.00725e-07
  20  0.000283339
  21  0.000911312
  22  12.7567
  23  0.393208
  24  0.244307
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.852e+01  7.451e+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.187e+00  2.443e-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:  4.121e-01  3.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455896/likelihoodResults_556588801_556848001_4FGL_J1516.9+1934_daily_bin1224.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) = 2490.07214784
delta logL = 1.37011183439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2489.92924438
delta logL = 1.51301529492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.7326       1.0000          .0000       10.000    
     3 'Normalizat'    .25806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2561       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2489.929     FROM MIGRAD    STATUS=FAILED       112 CALLS      524 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46602E-03    .18589E-01    .93487E-05** at limit **
   2  Index         9.7827        8.1828        .16573E-01   -.10779E-03
   3  Normalizat    .25783        .32400        .53038E-03    .24232E-04
   4  Prefactor     1.2562        .21162        .16477E-03    .38329E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2489.929     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      606 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46602E-03    .18589E-01    .65038E-05** at limit **
   2  Index         9.7827        8.1828        .99954E-02   -.10779E-03
   3  Normalizat    .25783        .32400        .38365E-03    .24232E-04
   4  Prefactor     1.2562        .21162        .92403E-04    .38329E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2489.929     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      637 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46597E-03    .18741E-01    .37395E-06** at limit **
   2  Index         9.7828        8.1389        .33145E-02   -.27903E-05
   3  Normalizat    .25783        .37019        .21215E-04   -.43941E-05
   4  Prefactor     1.2562        .24267        .65907E-05   -.14145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000465972
  Index      = 9.7828
  Normalizat = 0.257833
  Prefactor  = 1.25617
 **********
 **   18 **HESSE 
 **********

 FCN=   2489.929     FROM HESSE     STATUS=OK            25 CALLS      662 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46597E-03    .14977        .37442E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7828        5.3882        .13258E-03    1.2750    
   3  Normalizat    .25783        .38063        .42431E-05   -1.2545    
   4  Prefactor     1.2562        .24835        .13181E-05   -.84620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87673e-10
Minuit parameter uncertainties:
  1  0.0148069
  2  16.9516
  3  0.384541
  4  0.248578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455896': 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) = 2489.9292167
delta logL = 1.51304297354

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.660e-04  1.481e-02  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  9.783e+00  1.695e+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.256e+00  2.486e-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:  2.578e-01  3.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 229.244 19.581
Photon Index (Free Index): 9.78 +/- 16.95
Photon Flux (Free Index): 1.23e-07 +/- 1.05e-07
Energy Flux (Free Index): 1.38e-05 +/- 1.36e-05

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/455896/cmap_HighResolution_556588801_556848001_4FGL_J1516.9+1934_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='1.51e+00', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-11 23:35:58.694500', photon_index_error2='16.95', photon_index2='9.78', ts='0.08', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='1.36e-05', EG='0.41', time_epoch_completed='1631428558.69', return_code='0', job_id='455896', GAL2='1.26', EG2='0.26', return_code2='0', photon_flux_error2='1.05e-07', ts2='3.41', photon_index='2.58' WHERE bin_id='1224' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:35:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 455896: <4FGL_J1516.9+1934_daily_bin1224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1224 229.244 19.5805 556588801 556848001 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 :                                   444.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            590 sec.

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

