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/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 231 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0010.6+2043_daily_bin1674
RA = 2.6502, Dec = 20.7332
tmin = 673228801, tmax = 673488001
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='668131', job_status='RUN', time_executed='2022-05-06 00:10:27.229736', time_epoch_executed='1651821027.23' WHERE source_name='4FGL J0010.6+2043' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668131/ft1_4FGL_J0010.6+2043_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668131/ft1_4FGL_J0010.6+2043_daily_bin1674.fits outfile=/scratch/kocevski/668131/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1674.fits ra=2.6502 dec=20.7332 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.81
user 2.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.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/668131/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.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.34
sys 0.15

Number of photons that the gtmktime cut: 409

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/668131/ltcube_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.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/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits
.....................!
real 16.69
user 16.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/668131/ltcube_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.fits outfile=/scratch/kocevski/668131/expmap_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.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/668131/ltcube_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.fits
.....................!
real 194.55
user 187.97
sys 5.41

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

Setting source of interest to:
4FGL J0010.6+2043 @ 2.6502 20.7332

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits scfile=/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits outfile=/scratch/kocevski/668131/cmap_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.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=2.6502 yref=20.7332 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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits scfile=/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits outfile=/scratch/kocevski/668131/cmap_HighResolution_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.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=2.6502 yref=20.7332 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.61
user 0.38
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668131/Model_4FGL_J0010.6+2043_daily_bin1674.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/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits.....................!
real 57.36
user 54.72
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits', '/scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits', expMap='/scratch/kocevski/668131/expmap_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.fits', expCube='/scratch/kocevski/668131/ltcube_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668131/Model_4FGL_J0010.6+2043_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0010.6+2043'

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/668131/ft1_filtered_4FGL_J0010.6+2043_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/668131/ft2_4FGL_J0010.6+2043_daily_bin1674.fits
Exposure map: /scratch/kocevski/668131/expmap_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.fits
Exposure cube: /scratch/kocevski/668131/ltcube_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668131/Model_4FGL_J0010.6+2043_daily_bin1674.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) = 4561.76231824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24925E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40572       1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.850       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9785       1.0000         .10000E-03   10000.    
    14 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .92475       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   4561.722     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     1741 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0942        .68784E-03** at limit **
   2  Prefactor     12.261        11.550        .11441E-03   -.31598E-04
   3  Prefactor     10.101        9.9080        .12608E-03    .15925E-04
   4  Prefactor     .92159        29.108        .33121E-02    .98000E-03
   5  Prefactor     .10003E-03    77.905        .15886    ** at limit **
   6  Prefactor     .41531        16.004        .22374E-02    .35966E-03
   7  norm          .10000E-03    8.7627        .18142E-02** at limit **
   8  Prefactor     .10000E-03    24.998        .18142E-02** at limit **
   9  Prefactor     19.854        21.355        .89899E-04    .15175E-04
  10  norm          .10000E-03    4.2629        .13618E-02** at limit **
  11  Prefactor     .10000E-03    6.9361        .17349E-02** at limit **
  12  Prefactor     .10000E-03    8.0944        .18142E-02** at limit **
  13  Prefactor     7.9810        19.020        .14195E-03    .41006E-04
  14  norm          .10000E-03    6.0074        .16155E-02** at limit **
  15  Prefactor     .10000E-03    3.8780        .12907E-02** at limit **
  16  Prefactor     .10000E-03    10.746        .18142E-02** at limit **
  17  Normalizat    .92464        .25538        .27798E-03   -.37355E-03
  18  Prefactor     .93392        .16018        .18310E-03    .38860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.2611
  Prefactor  = 10.1009
  Prefactor  = 0.921591
  Prefactor  = 0.000100034
  Prefactor  = 0.41531
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.8541
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.98104
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.92464
  Prefactor  = 0.93392
 **********
 **   18 **HESSE 
 **********

 FCN=   4561.722     FROM HESSE     STATUS=OK           240 CALLS     1981 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0942        .13757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.261        11.547        .45765E-05   -1.5008    
   3  Prefactor     10.101        9.9018        .25215E-04   -1.5072    
   4  Prefactor     .92159        29.018        .66242E-03   -1.5516    
   5  Prefactor     .10003E-03    81.106        .15467       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .41531        15.866        .89498E-04   -1.5579    
   7  norm          .10000E-03    8.7637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.854        21.353        .35959E-05   -1.4817    
  10  norm          .10000E-03    4.2629        .27236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9367        .34698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9810        19.010        .56780E-05   -1.5143    
  14  norm          .10000E-03    6.0077        .32309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8789        .25814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .92464        .25460        .55597E-04   -.95600    
  18  Prefactor     .93392        .16024        .36619E-04   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77351e-09
Minuit parameter uncertainties:
  1  1.40702e-06
  2  11.5488
  3  9.90339
  4  10.3476
  5  0.0033149
  6  5.13472
  7  0.000194801
  8  2.5959e-05
  9  21.3609
  10  7.45961e-06
  11  4.48502e-05
  12  1.56684e-05
  13  19.0247
  14  3.88416e-05
  15  5.21919e-06
  16  6.11812e-05
  17  0.254931
  18  0.160325
Done.

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

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.226e+01  1.155e+01  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.339e-01  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.246e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 2.650 20.733
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.43e-05

TS (Fixed Index): 2.18
Ra Dec: 2.650 20.733
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/668131/likelihoodResults_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.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) = 4561.72199143
delta logL = 0.000148873677063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4561.72189167
delta logL = 0.000248637134973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.074       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3375       1.0000          .0000       10.000    
     3 'Normalizat'    .92358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4561.722     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.066        379.56        .28821E-02    .30018E-04
   2  Index         2.3364        5.8480        .13434        .73867E-04
   3  Normalizat    .92371        .15274        .45202E-01    .18685E-04
   4  Prefactor     .93427        .61271E-01    .45439E-01    .12386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0662
  Index      = 2.33637
  Normalizat = 0.923709
  Prefactor  = 0.934271
 **********
 **   18 **HESSE 
 **********

 FCN=   4561.722     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.066        15.128        .11528E-03   -1.5013    
   2  Index         2.3364        .87213        .80189E-02   -.56182    
   3  Normalizat    .92371        .24464        .27811E-03   -.95632    
   4  Prefactor     .93427        .16006        .18306E-03   -.94954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50381e-12
Minuit parameter uncertainties:
  1  15.133
  2  0.878421
  3  0.24494
  4  0.160146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668131': 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) = 4561.7218881
delta logL = 0.000252206809819

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.207e+01  1.513e+01  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.336e+00  8.784e-01  0.000e+00  1.000e+01 (-1.000e+00)
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.343e-01  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.237e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 2.650 20.733
Photon Index (Free Index): 2.34 +/- 0.88
Photon Flux (Free Index): 4.20e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.58e-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/668131/cmap_HighResolution_673228801_673488001_4FGL_J0010.6+2043_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.51e-05', photon_flux_error='3.88e-08', dlogl='2.52e-04', energy_flux='1.52e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2022-05-06 00:18:46.552735', photon_index_error2='0.88', photon_index2='2.34', ts='2.18', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.58e-05', EG='0.92', time_epoch_completed='1651821526.55', return_code='0', job_id='668131', GAL2='0.93', EG2='0.92', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.18e-08', ts2='2.18', photon_index='2.32' WHERE bin_id='1674' AND source_name='4FGL J0010.6+2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 00:18:46 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 668132: <4FGL_J0010.6+2043_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0010.6+2043_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:05:22 2022
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:06:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:06:06 2022
Terminated at Fri May  6 00:15:53 2022
Results reported at Fri May  6 00:15:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_daily_bin1674 2.6502 20.7332 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0010.6+2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   491.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            631 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 668131: <4FGL_J0010.6+2043_daily_bin1674> in cluster <slac> Done

Job <4FGL_J0010.6+2043_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:05:22 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 00:06:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 00:06:05 2022
Terminated at Fri May  6 00:18:47 2022
Results reported at Fri May  6 00:18:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_daily_bin1674 2.6502 20.7332 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0010.6+2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   494.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            805 sec.

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

