aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache us/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 29 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 = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin1700
RA = 154.009, Dec = 5.2089
tmin = 679968001, tmax = 680227201
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='74982', job_status='RUN', time_executed='2022-07-23 00:13:56.708215', time_epoch_executed='1658560436.71' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74982

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74982/ft1_4FGL_J1016.0+0512_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74982/ft1_4FGL_J1016.0+0512_daily_bin1700.fits outfile=/scratch/kocevski/74982/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin1700.fits ra=154.009 dec=5.2089 rad=12.0 tmin=679968001.0 tmax=680227201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.63
user 4.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.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/74982/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin1700.fits evtable="EVENTS" outfile="/scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.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.54
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 438

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/74982/ltcube_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.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/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits
.....................!
real 22.82
user 22.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/74982/ltcube_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.fits outfile=/scratch/kocevski/74982/expmap_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.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/74982/ltcube_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.fits
.....................!
real 190.83
user 186.00
sys 4.48

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

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits scfile=/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits outfile=/scratch/kocevski/74982/cmap_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.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=154.009 yref=5.2089 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits scfile=/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits outfile=/scratch/kocevski/74982/cmap_HighResolution_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.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=154.009 yref=5.2089 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/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74982/Model_4FGL_J1016.0+0512_daily_bin1700.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/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits.....................!
real 50.25
user 48.90
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits', '/scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits', expMap='/scratch/kocevski/74982/expmap_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.fits', expCube='/scratch/kocevski/74982/ltcube_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74982/Model_4FGL_J1016.0+0512_daily_bin1700.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/74982/ft1_filtered_4FGL_J1016.0+0512_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/74982/ft2_4FGL_J1016.0+0512_daily_bin1700.fits
Exposure map: /scratch/kocevski/74982/expmap_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.fits
Exposure cube: /scratch/kocevski/74982/ltcube_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74982/Model_4FGL_J1016.0+0512_daily_bin1700.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) = 4915.94728625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0178       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26601E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7122       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4915.855     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1488 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0174        1.8881        .12875E-01    .12236E-02
   2  norm          1.0744        .84004        .11676E-01    .94575E-03
   3  Prefactor     .10026E-03    19.128        .10720E-01** at limit **
   4  Prefactor     .10000E-03    21.314        .90712E-02** at limit **
   5  Prefactor     .10000E-03    11.544        .90712E-02** at limit **
   6  norm          27.998        20.764        .18926E-02    .80339E-03
   7  Prefactor     10.420        12.774        .31030E-02    .59390E-04
   8  Prefactor     .10001E-03    61.462        .90712E-02** at limit **
   9  Prefactor     .10001E-03    43.472        .90712E-02** at limit **
  10  Prefactor     .10001E-03    11.416        .90712E-02** at limit **
  11  norm          4.2436        2.1604        .48904E-02    .21423E-03
  12  Prefactor     .10001E-03    11.669        .90712E-02** at limit **
  13  Prefactor     1.6954        2.5307        .80791E-02    .21395E-03
  14  Prefactor     .10000E-03    2.0891        .90712E-02** at limit **
  15  norm          1.7122        .70933        .80305E-02    .73430E-03
  16  Prefactor     .10000E-03    4.5063        .90712E-02** at limit **
  17  Normalizat    1.0649        .23179        .64495E-01   -.23675E-04
  18  Prefactor     1.1552        .19163        .52844E-01   -.70351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01737
  norm       = 1.07438
  Prefactor  = 0.000100263
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 27.9984
  Prefactor  = 10.42
  Prefactor  = 0.000100007
  Prefactor  = 0.000100006
  Prefactor  = 0.000100009
  norm       = 4.24361
  Prefactor  = 0.000100006
  Prefactor  = 1.69539
  Prefactor  = 0.0001
  norm       = 1.7122
  Prefactor  = 0.0001
  Normalizat = 1.06491
  Prefactor  = 1.15516
 **********
 **   18 **HESSE 
 **********

 FCN=   4915.855     FROM HESSE     STATUS=OK           240 CALLS     1728 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0174        1.8715        .12083E-03   -1.5506    
   2  norm          1.0744        .81582        .53997E-03   -1.5501    
   3  Prefactor     .10026E-03    19.412        .21440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.998        20.742        .75703E-04   -1.4649    
   7  Prefactor     10.420        12.751        .12412E-03   -1.5062    
   8  Prefactor     .10001E-03    61.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    43.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    11.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2436        2.1583        .70158E-04   -1.5296    
  12  Prefactor     .10001E-03    11.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6954        2.5059        .13124E-03   -1.5448    
  14  Prefactor     .10000E-03    2.0909        .98963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7122        .70841        .36891E-04   -1.5446    
  16  Prefactor     .10000E-03    4.5179        .14529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0649        .27826        .28529E-03   -.90887    
  18  Prefactor     1.1552        .23200        .23364E-03   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66355e-08
Minuit parameter uncertainties:
  1  1.87165
  2  0.815828
  3  0.00451792
  4  0.000401056
  5  0.000368251
  6  20.7473
  7  12.7539
  8  0.00127947
  9  0.00105731
  10  0.000658573
  11  2.15836
  12  0.000546042
  13  2.50609
  14  9.47612e-06
  15  0.708411
  16  2.74062e-05
  17  0.278647
  18  0.232199
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.042e+01  1.275e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.155e+00  2.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.065e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74982/likelihoodResults_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.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) = 4915.84197655
delta logL = 0.0127262040414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4915.83585414
delta logL = 0.0188486182988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9237       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3715       1.0000          .0000       10.000    
     3 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+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=   4915.836     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      246 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9211        14.742        .13417E-03    .11064E-02
   2  Index         2.3718        .83908        .77481E-02    .31188E-03
   3  Normalizat    1.0594        .27284        .28592E-03   -.42357E-03
   4  Prefactor     1.1581        .23111        .23337E-03   -.58931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.92115
  Index      = 2.37179
  Normalizat = 1.05944
  Prefactor  = 1.15815
 **********
 **   18 **HESSE 
 **********

 FCN=   4915.836     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9211        13.657        .53669E-05   -1.5111    
   2  Index         2.3718        .77759        .30992E-03   -.55347    
   3  Normalizat    1.0594        .27292        .57185E-04   -.91065    
   4  Prefactor     1.1581        .23118        .46675E-04   -.87629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70154e-09
Minuit parameter uncertainties:
  1  13.6616
  2  0.781985
  3  0.273287
  4  0.231379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74982': 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) = 4915.83585404
delta logL = 0.018848718496

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.921e+00  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.372e+00  7.820e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.158e+00  2.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.059e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.94
Ra Dec: 154.009 5.209

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/74982/cmap_HighResolution_679968001_680227201_4FGL_J1016.0+0512_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-03', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2022-07-23 00:22:29.027954', job_id='74982', GAL2='1.16', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1658560949.03', return_code2='0', ts='0.94', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.88e-02', ts2='0.98', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1700' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:22:29 PDT 2022

='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:21:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 75068: <4FGL_J1016.0+0512_daily_bin1700> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin1700> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul 23 00:06:36 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:07:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:07:08 2022
Terminated at Sat Jul 23 00:21:20 2022
Results reported at Sat Jul 23 00:21:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin1700 154.009 5.2089 679968001 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1016.0+0512 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   478.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            884 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 74982: <4FGL_J1016.0+0512_daily_bin1700> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin1700> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul 23 00:06:30 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:07:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:07:06 2022
Terminated at Sat Jul 23 00:22:29 2022
Results reported at Sat Jul 23 00:22:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin1700 154.009 5.2089 679968001 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1016.0+0512 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   498.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             197.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            959 sec.

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

