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 88 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7708
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1766
RA = 162.911, Dec = 32.8853
tmin = 697075201, tmax = 697334401
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='846485', job_status='RUN', time_executed='2023-02-06 00:44:12.506166', time_epoch_executed='1675673052.51' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846485/ft1_4FGL_J1051.6+3253_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846485/ft1_4FGL_J1051.6+3253_daily_bin1766.fits outfile=/scratch/kocevski/846485/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1766.fits ra=162.911 dec=32.8853 rad=12.0 tmin=697075201.0 tmax=697334401.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.70
user 3.49
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.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/846485/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.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.13

Number of photons that the gtmktime cut: 596

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/846485/ltcube_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.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/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits
.....................!
real 14.52
user 14.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/846485/ltcube_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.fits outfile=/scratch/kocevski/846485/expmap_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.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/846485/ltcube_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.fits
.....................!
real 193.38
user 186.40
sys 4.98

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

Setting source of interest to:
4FGL J1051.6+3253 @ 162.911 32.8853

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits scfile=/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits outfile=/scratch/kocevski/846485/cmap_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.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=162.911 yref=32.8853 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits scfile=/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits outfile=/scratch/kocevski/846485/cmap_HighResolution_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.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=162.911 yref=32.8853 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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846485/Model_4FGL_J1051.6+3253_daily_bin1766.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/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits.....................!
real 59.79
user 57.88
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits', '/scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits', expMap='/scratch/kocevski/846485/expmap_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.fits', expCube='/scratch/kocevski/846485/ltcube_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846485/Model_4FGL_J1051.6+3253_daily_bin1766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+3253'

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.091e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/846485/ft1_filtered_4FGL_J1051.6+3253_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/846485/ft2_4FGL_J1051.6+3253_daily_bin1766.fits
Exposure map: /scratch/kocevski/846485/expmap_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.fits
Exposure cube: /scratch/kocevski/846485/ltcube_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846485/Model_4FGL_J1051.6+3253_daily_bin1766.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6576.84193925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1216       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6487       1.0000          .0000       .10000E+07
     3 'norm      '    62.622       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27983E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7833       1.0000          .0000       .10000E+07
     6 'norm      '    26.665       1.0000          .0000       .10000E+07
     7 'Prefactor '    27.709       1.0000          .0000       .10000E+07
     8 'Prefactor '    26.079       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9170       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.3047       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1927       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.679       1.0000          .0000       .10000E+07
    13 'Prefactor '    .76992E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24217E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    58.020       1.0000          .0000       .10000E+07
    16 'Prefactor '    .24258E-07   1.0000          .0000       .10000E+07
    17 'norm      '    3.3625       1.0000          .0000       .10000E+07
    18 'Prefactor '    .63986       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10991E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .35329E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .52153E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .89373E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .34889E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    51.358       1.0000          .0000       .10000E+07
    25 'norm      '    4.4262       1.0000          .0000       .10000E+07
    26 'Prefactor '    .88023E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .74471E-03   1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1135       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6573.934     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     1628 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1742        10.063       -.16800E-06   -.65469E-03
   2  Prefactor     2.6485        2.6776        .30271E-07    .57777E-03
   3  norm          62.575        2.6615       -.85631E-08   -.21692E-01
   4  Prefactor      .0000        6.5929       -.25094E-06** at limit **
   5  Prefactor     1.7765        4.8247       -.96233E-06   -.26888E-04
   6  norm          26.670        2.3672       -.40730E-07   -.10315E-01
   7  Prefactor     26.684        42.839       -.49474E-06   -.46647E-01
   8  Prefactor     26.313        4.1584       -.17353E-06   -.15457E-01
   9  Prefactor     1.9124        3.8768        .68867E-06    .21391E-03
  10  Prefactor     3.2439        8.1163        .10171E-06   -.57381E-02
  11  Prefactor     2.1960        1.9566       -.75055E-07   -.51038E-03
  12  Prefactor     13.643        5.5169        .89011E-06    .68112E-01
  13  Prefactor     .91482E-07    9.7406       -.14213E-05** at limit **
  14  Prefactor     .94369E-09    5.0321       -.46388E-06** at limit **
  15  Prefactor     58.311        23.181        .13026E-05   -.18774    
  16  Prefactor     .11102E-09    3.2849       -.39307E-06** at limit **
  17  norm          3.3619        .48967       -.17001E-07   -.78792E-02
  18  Prefactor     .63926        1.5694       -.11812E-06   -.22515E-04
  19  Prefactor     .23981E-07    3.1594       -.11071E-07** at limit **
  20  Prefactor     .34950E-06    7.9255       -.98941E-06** at limit **
  21  norm          .92371E-07    5.3453       -.20015E-05** at limit **
  22  Prefactor      .0000        1.1616        .93700E-07** at limit **
  23  Prefactor     .14821E-07    19.238       -.98702E-06** at limit **
  24  Prefactor     51.370        25.338       -.10373E-05   -.87495E-01
  25  norm          4.4237        3.1448        .30745E-07    .34615E-03
  26  Prefactor     .93370E-07    9.0483        .88253E-06** at limit **
  27  Prefactor     .13251E-06    5.2852        .16355E-05** at limit **
  28  Normalizat    1.1137        .22476       -.43107E-05    .87481E-05
  29  Prefactor     .79886        .23904        .14907E-04    .62171E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.1742
  Prefactor  = 2.64847
  norm       = 62.5753
  Prefactor  = 0
  Prefactor  = 1.77651
  norm       = 26.6696
  Prefactor  = 26.6837
  Prefactor  = 26.3129
  Prefactor  = 1.91241
  Prefactor  = 3.24391
  Prefactor  = 2.19597
  Prefactor  = 13.6435
  Prefactor  = 9.14824e-08
  Prefactor  = 9.4369e-10
  Prefactor  = 58.311
  Prefactor  = 1.11022e-10
  norm       = 3.36186
  Prefactor  = 0.639265
  Prefactor  = 2.39808e-08
  Prefactor  = 3.49498e-07
  norm       = 9.23706e-08
  Prefactor  = 0
  Prefactor  = 1.48215e-08
  Prefactor  = 51.3703
  norm       = 4.42369
  Prefactor  = 9.33698e-08
  Prefactor  = 1.32505e-07
  Normalizat = 1.11367
  Prefactor  = 0.798858
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.934     FROM HESSE     STATUS=OK           615 CALLS     2243 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1742        10.081        .33160E-03   -1.5647    
   2  Prefactor     2.6485        2.6899        .62615E-03   -1.5675    
   3  norm          62.575        18.504        .12638E-03   -1.5550    
   4  Prefactor      .0000        6.5907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7765        4.8952        .78327E-03   -1.5681    
   6  norm          26.670        14.701        .19369E-03   -1.5605    
   7  Prefactor     26.684        44.149        .19000E-03   -1.5605    
   8  Prefactor     26.313        24.592        .19586E-03   -1.5605    
   9  Prefactor     1.9124        4.0246        .75033E-03   -1.5680    
  10  Prefactor     3.2439        8.3334        .55665E-03   -1.5672    
  11  Prefactor     2.1960        1.9590        .69471E-03   -1.5678    
  12  Prefactor     13.643        11.673        .27056E-03   -1.5634    
  13  Prefactor     .91482E-07    10.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .94369E-09    5.0391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     58.311        76.263        .13129E-03   -1.5555    
  16  Prefactor     .11102E-09    3.2852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3619        .48941        .47056E-03   -1.5671    
  18  Prefactor     .63926        1.5987        .65731E-03   -1.5692    
  19  Prefactor     .23981E-07    8.0471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .34950E-06    13.322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .92371E-07    7.9110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        1.1586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .14821E-07    19.592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     51.370        26.830        .13955E-03   -1.5565    
  25  norm          4.4237        3.1520        .47842E-03   -1.5666    
  26  Prefactor     .93370E-07    14.541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .13251E-06    8.6504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1137        .19114        .57731E-01   -.89314    
  29  Prefactor     .79886        .20248        .75435E-01   -.99770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98664e-06
Minuit parameter uncertainties:
  1  10.0815
  2  2.68986
  3  18.504
  4  1.98211e-05
  5  4.89517
  6  14.7009
  7  44.1496
  8  24.5917
  9  4.02456
  10  8.33346
  11  1.95904
  12  11.6732
  13  0.00194872
  14  0.000138138
  15  76.2645
  16  3.92908e-05
  17  0.489412
  18  1.5987
  19  0.000878779
  20  0.00431555
  21  0.00170972
  22  1.36516e-06
  23  0.00107724
  24  26.8297
  25  3.15196
  26  0.00233037
  27  0.00214144
  28  0.191257
  29  0.202671
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  9.148e-08  1.949e-03  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  7.989e-01  2.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.114e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.911 32.885
Photon Flux Upper Limit: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846485/likelihoodResults_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.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) = 6573.97996196
delta logL = -0.0463287680614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6573.93363368
delta logL = -4.81851202494e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41026E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .50821       1.0000          .0000       10.000    
     3 'Normalizat'    1.1136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6573.934     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      217 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.247        .42118E-03** at limit **
   2  Index         2.0649        1.5684        .38559E-04     .0000    
   3  Normalizat    1.1137        1.1462        .12476E-05   -.20518E-03
   4  Prefactor     .79886        1.1475       -.13856E-04   -.15640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.06491
  Normalizat = 1.11367
  Prefactor  = 0.798858
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6573.934     FROM HESSE     STATUS=FAILED         9 CALLS      226 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .46234        1.8318        .38559E-04   -.62737    
   3  Normalizat    1.1137        1.1462        .12476E-05   -.89314    
   4  Prefactor     .79886        1.1475       -.13856E-04   -.99770    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.79351e-11
Minuit parameter uncertainties:
  1  6.65602e-06
  2  1.61053
  3  1.17352
  4  1.18487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846485': 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): 101
logL (Free Index) = 6573.93363319
delta logL = 4.38285496784e-09

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  6.656e-06  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  2.065e+00  1.611e+00  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  2.968e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  7.989e-01  1.185e+00  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.114e+00  1.174e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.911 32.885

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/846485/cmap_HighResolution_697075201_697334401_4FGL_J1051.6+3253_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2023-02-06 00:55:30.148050', job_id='846485', GAL2='0.80', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1675673730.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.38e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1766' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 00:55:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 846485: <4FGL_J1051.6+3253_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 00:40:23 2023
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:42:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:42:35 2023
Terminated at Mon Feb  6 00:55:30 2023
Results reported at Mon Feb  6 00:55:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1766 162.911 32.8853 697075201 697334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+3253 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            907 sec.

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

