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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin527
RA = 229.049, Dec = 43.8527
tmin = 375926401, tmax = 376185601
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='429193', job_status='RUN', time_executed='2021-09-11 21:51:28.514133', time_epoch_executed='1631422288.51' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429193/ft1_4FGL_J1516.1+4351_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429193/ft1_4FGL_J1516.1+4351_daily_bin527.fits outfile=/scratch/kocevski/429193/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin527.fits ra=229.049 dec=43.8527 rad=12.0 tmin=375926401.0 tmax=376185601.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.38
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.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/429193/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin527.fits evtable="EVENTS" outfile="/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/429193/ltcube_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.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/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits
.....................!
real 12.00
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/429193/ltcube_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.fits outfile=/scratch/kocevski/429193/expmap_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.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/429193/ltcube_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.fits
.....................!
real 190.40
user 185.04
sys 5.02

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits scfile=/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits outfile=/scratch/kocevski/429193/cmap_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.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.049 yref=43.8527 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits scfile=/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits outfile=/scratch/kocevski/429193/cmap_HighResolution_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.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.049 yref=43.8527 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429193/Model_4FGL_J1516.1+4351_daily_bin527.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/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits.....................!
real 52.20
user 50.94
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits', '/scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits', expMap='/scratch/kocevski/429193/expmap_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.fits', expCube='/scratch/kocevski/429193/ltcube_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429193/Model_4FGL_J1516.1+4351_daily_bin527.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/429193/ft1_filtered_4FGL_J1516.1+4351_daily_bin527.fits
Spacecraft file(s): /scratch/kocevski/429193/ft2_4FGL_J1516.1+4351_daily_bin527.fits
Exposure map: /scratch/kocevski/429193/expmap_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.fits
Exposure cube: /scratch/kocevski/429193/ltcube_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429193/Model_4FGL_J1516.1+4351_daily_bin527.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) = 6347.9158862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.5174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .59453       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.724       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11126E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10461E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.290       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4076       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.454       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0931       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88821       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6347.069     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3926 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4273        3.0636        .19479E-06   -.12681E-03
   2  Prefactor     .10000E-03    45.270        .29922E-04** at limit **
   3  Prefactor     13.610        17.431       -.45372E-06    .14183E-04
   4  Prefactor     .10000E-03    14.919        .14523E-05** at limit **
   5  norm          7.5178        15.192        .18246E-07    .31691E-05
   6  Prefactor     68.155        72.006       -.39988E-04   -.36874E-04
   7  Prefactor     .10000E-03    14.225       -.32219E-05** at limit **
   8  norm          .59751        3.5276       -.18838E-05    .67574E-03
   9  Prefactor     .10000E-03    15.039        .17332E-05** at limit **
  10  Prefactor     28.729        24.661        .10169E-04   -.73292E-04
  11  norm          .10000E-03    3.7938        .30216E-06** at limit **
  12  Prefactor     .10000E-03    4.5340        .32256E-06** at limit **
  13  Prefactor     .10000E-03    13.009       -.48576E-06** at limit **
  14  norm          .10000E-03    .56451        .46398E-07** at limit **
  15  Prefactor     .10000E-03    2.4636        .34572E-07** at limit **
  16  Prefactor     11.290        6.9401       -.43643E-06   -.62654E-04
  17  norm          .10000E-03    .36861        .20537E-07** at limit **
  18  norm          5.4078        3.4843       -.67395E-07    .17969E-03
  19  Prefactor     .10000E-03    2.8258        .44058E-07** at limit **
  20  Prefactor     .10000E-03    22.945        .23211E-05** at limit **
  21  Prefactor     .10000E-03    31.644       -.25971E-04** at limit **
  22  Prefactor     10.492        14.348        .61913E-06    .37804E-03
  23  Prefactor     .10000E-03    5.5585       -.19712E-06** at limit **
  24  norm          .10000E-03    3.9868       -.18274E-06** at limit **
  25  Prefactor     33.450        32.706       -.23479E-05    .66339E-04
  26  Prefactor     .10000E-03    92.924       -.20462E-04** at limit **
  27  Prefactor     7.0901        6.3234        .40729E-05   -.16934E-03
  28  Prefactor     .10000E-03    22.415        .50828E-05** at limit **
  29  Normalizat    1.0300        .17635        .16891E-06    .20647E-03
  30  Prefactor     .88769        .17807        .63201E-06    .17165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42734
  Prefactor  = 0.0001
  Prefactor  = 13.6104
  Prefactor  = 0.0001
  norm       = 7.51777
  Prefactor  = 68.1547
  Prefactor  = 0.0001
  norm       = 0.597515
  Prefactor  = 0.0001
  Prefactor  = 28.7292
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2904
  norm       = 0.0001
  norm       = 5.40782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.492
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.4496
  Prefactor  = 0.0001
  Prefactor  = 7.09013
  Prefactor  = 0.000100002
  Normalizat = 1.02997
  Prefactor  = 0.887693
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.069     FROM HESSE     STATUS=OK           580 CALLS     4506 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4273        3.0563        .15260E-03   -1.5396    
   2  Prefactor     .10000E-03    45.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.610        17.397        .10858E-03   -1.4970    
   4  Prefactor     .10000E-03    14.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5178        15.194        .14627E-03   -1.5160    
   6  Prefactor     68.155        72.170        .48605E-04   -1.4055    
   7  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59751        16.557        .28186E-02   -1.5553    
   9  Prefactor     .10000E-03    15.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.729        24.571        .74752E-04   -1.4635    
  11  norm          .10000E-03    3.8181        .15153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5411        .16567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .96058        .11548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4707        .12210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.290        6.9349        .11923E-03   -1.5036    
  17  norm          .10000E-03    .37118        .47212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4078        3.4777        .11322E-03   -1.5243    
  19  Prefactor     .10000E-03    2.8269        .13067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.492        14.408        .12365E-03   -1.5060    
  23  Prefactor     .10000E-03    5.5622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.9908        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     33.450        32.704        .69281E-04   -1.4551    
  26  Prefactor     .10000E-03    93.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.0901        6.3067        .15062E-03   -1.5175    
  28  Prefactor     .10000E-03    22.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0300        .20873        .23327E-03   -.92033    
  30  Prefactor     .88769        .20992        .26240E-03   -.96572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87029e-09
Minuit parameter uncertainties:
  1  3.05651
  2  0.000202417
  3  17.4038
  4  2.52179e-05
  5  15.2023
  6  72.2626
  7  8.24514e-07
  8  6.2921
  9  1.10471e-05
  10  24.5797
  11  4.04618e-06
  12  2.6455e-06
  13  4.38163e-05
  14  3.04836e-06
  15  2.71242e-06
  16  6.93544
  17  3.65953e-07
  18  3.47786
  19  1.2562e-06
  20  1.37018e-06
  21  0.000117198
  22  14.4124
  23  5.69161e-08
  24  3.73201e-07
  25  32.7219
  26  0.000279576
  27  6.30726
  28  0.000380741
  29  0.2089
  30  0.210114
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.256e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.877e-01  2.101e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.030e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429193/likelihoodResults_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.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) = 6347.07063643
delta logL = -0.00168004802526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6347.06895646
delta logL = -8.06658135843e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4456       1.0000          .0000       10.000    
     3 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   6347.069     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      224 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    174.81        .13234E-01** at limit **
   2  Index         1.7053        5.1817        .94926E-01    .27438E-06
   3  Normalizat    1.0300        .28442E-01    .23327E-03    .23518E-03
   4  Prefactor     .88769        .30079E-01    .26240E-03    .19483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.70532
  Normalizat = 1.02997
  Prefactor  = 0.887693
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.069     FROM HESSE     STATUS=OK            23 CALLS      247 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9679        .15451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7053        5.1991        .37970E-02   -.71940    
   3  Normalizat    1.0300        .19552        .46653E-04   -.92033    
   4  Prefactor     .88769        .20674        .10496E-04   -.96572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40129e-10
Minuit parameter uncertainties:
  1  5.5543e-05
  2  218.664
  3  0.195658
  4  0.20692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429193': 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) = 6347.06895137
delta logL = 5.01521208207e-06

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.554e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.705e+00  2.187e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  8.877e-01  2.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.030e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

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/429193/cmap_HighResolution_375926401_376185601_4FGL_J1516.1+4351_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-11 22:06:24.066946', job_id='429193', GAL2='0.89', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631423184.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='527' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:06:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 429193: <4FGL_J1516.1+4351_daily_bin527> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin527> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 21:51:09 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:51: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 21:51:11 2021
Terminated at Sat Sep 11 22:06:24 2021
Results reported at Sat Sep 11 22:06:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin527 229.049 43.8527 375926401 376185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   890.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

