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


Performing analysis on: 4FGL_J1051.6+3253_daily_bin1744
RA = 162.911, Dec = 32.8853
tmin = 691372801, tmax = 691632001
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='576533', job_status='RUN', time_executed='2022-12-02 00:47:59.357755', time_epoch_executed='1669970879.36' WHERE source_name='4FGL J1051.6+3253' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576533/ft1_4FGL_J1051.6+3253_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576533/ft1_4FGL_J1051.6+3253_daily_bin1744.fits outfile=/scratch/kocevski/576533/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1744.fits ra=162.911 dec=32.8853 rad=12.0 tmin=691372801.0 tmax=691632001.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.10
user 1.88
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.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/576533/ft1_filteredMKT_4FGL_J1051.6+3253_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.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.44
user 0.27
sys 0.16

Number of photons that the gtmktime cut: 829

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/576533/ltcube_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.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/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits
.....................!
real 11.50
user 11.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/576533/ltcube_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.fits outfile=/scratch/kocevski/576533/expmap_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.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/576533/ltcube_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.fits
.....................!
real 154.42
user 149.30
sys 4.47

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/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.fits scfile=/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits outfile=/scratch/kocevski/576533/cmap_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.fits scfile=/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits outfile=/scratch/kocevski/576533/cmap_HighResolution_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.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.47
user 0.31
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.fits', '/scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits', expMap='/scratch/kocevski/576533/expmap_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.fits', expCube='/scratch/kocevski/576533/ltcube_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576533/Model_4FGL_J1051.6+3253_daily_bin1744.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/576533/ft1_filtered_4FGL_J1051.6+3253_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/576533/ft2_4FGL_J1051.6+3253_daily_bin1744.fits
Exposure map: /scratch/kocevski/576533/expmap_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.fits
Exposure cube: /scratch/kocevski/576533/ltcube_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576533/Model_4FGL_J1051.6+3253_daily_bin1744.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) = 8915.21165872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8548       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.2814       1.0000          .0000       .10000E+07
     3 'norm      '    5.6923       1.0000          .0000       .10000E+07
     4 'Prefactor '    .36672E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7050       1.0000          .0000       .10000E+07
     6 'norm      '    .19781E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .82844E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.508       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25974E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32364E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74718E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.660       1.0000          .0000       .10000E+07
    13 'Prefactor '    .59110E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .19545E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    25.121       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10066E-03   1.0000          .0000       .10000E+07
    17 'norm      '    3.7538       1.0000          .0000       .10000E+07
    18 'Prefactor '    .53962       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12482E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32050E-04   1.0000          .0000       .10000E+07
    21 'norm      '    13.442       1.0000          .0000       .10000E+07
    22 'Prefactor '    .62184E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .59096E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    15.405       1.0000          .0000       .10000E+07
    25 'norm      '    2.4083       1.0000          .0000       .10000E+07
    26 'Prefactor '    .65475E-05   1.0000          .0000       .10000E+07
    27 'Prefactor '    2.5276       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.3803       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84117       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=   8915.073     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2717 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8681        8.2533       -.44672E-07   -.50338E-03
   2  Prefactor     2.2940        2.6898        .91315E-08    .42482E-03
   3  norm          5.6962        7.9531       -.32572E-07   -.50611E-03
   4  Prefactor     .15388E-06    3.7885        .28370E-07** at limit **
   5  Prefactor     1.7126        3.5588        .14220E-07    .40238E-04
   6  norm          .14433E-08    7.5095        .24268E-06** at limit **
   7  Prefactor     .83489E-07    75.553       -.16426E-06** at limit **
   8  Prefactor     19.521        4.5202       -.87092E-08    .58384E-01
   9  Prefactor      .0000        1.1540       -.53406E-08** at limit **
  10  Prefactor     .61617E-08    5.1894        .10304E-06** at limit **
  11  Prefactor      .0000        1.8410       -.66128E-07** at limit **
  12  Prefactor     10.646        8.5955        .20285E-07   -.56220E-03
  13  Prefactor     .44409E-09    11.237        .10133E-06** at limit **
  14  Prefactor     .55511E-09    4.1346        .98983E-08** at limit **
  15  Prefactor     30.192        53.601        .99253E-07   -.18868E-02
  16  Prefactor     .22204E-09    2.8752       -.10673E-06** at limit **
  17  norm          3.7533        .43743        .34581E-08    .75091E-02
  18  Prefactor     .54402        1.4724        .12729E-07    .50302E-03
  19  Prefactor     .17208E-08    10.708       -.14142E-06** at limit **
  20  Prefactor     .51625E-07    4.6045        .45000E-07** at limit **
  21  norm          13.582        9.0553        .47431E-08   -.39382E-01
  22  Prefactor      .0000        1.0932        .52762E-07** at limit **
  23  Prefactor     .55511E-10    14.899       -.12656E-06** at limit **
  24  Prefactor     15.445        11.366       -.20289E-07    .29587E-02
  25  norm          2.4085        2.2428       -.76153E-08    .92312E-04
  26  Prefactor     .22260E-07    52.520        .93733E-07** at limit **
  27  Prefactor     2.5414        2.9402       -.36397E-07   -.90496E-03
  28  Normalizat    1.3793        .18514        .13874E-06    .64498E-04
  29  Prefactor     .84070        .20814        .32620E-06    .41209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86808
  Prefactor  = 2.29402
  norm       = 5.69625
  Prefactor  = 1.53877e-07
  Prefactor  = 1.71255
  norm       = 1.44329e-09
  Prefactor  = 8.34888e-08
  Prefactor  = 19.5208
  Prefactor  = 0
  Prefactor  = 6.16174e-09
  Prefactor  = 0
  Prefactor  = 10.6465
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 30.1919
  Prefactor  = 2.22045e-10
  norm       = 3.75334
  Prefactor  = 0.544023
  Prefactor  = 1.72085e-09
  Prefactor  = 5.16254e-08
  norm       = 13.5818
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4446
  norm       = 2.40852
  Prefactor  = 2.226e-08
  Prefactor  = 2.54144
  Normalizat = 1.37934
  Prefactor  = 0.8407
 **********
 **   18 **HESSE 
 **********

 FCN=   8915.073     FROM HESSE     STATUS=OK           611 CALLS     3328 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8681        8.2769        .51374E-03   -1.5669    
   2  Prefactor     2.2940        2.7008        .67948E-03   -1.5678    
   3  norm          5.6962        7.9669        .42078E-03   -1.5660    
   4  Prefactor     .15388E-06    5.4421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7126        3.5887        .80503E-03   -1.5682    
   6  norm          .14433E-08    7.4319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83489E-07    76.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.521        18.432        .22648E-03   -1.5620    
   9  Prefactor      .0000        1.1497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61617E-08    5.2327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.8121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.646        8.6059        .30662E-03   -1.5643    
  13  Prefactor     .44409E-09    11.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-09    4.1350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.192        53.641        .19956E-03   -1.5598    
  16  Prefactor     .22204E-09    2.8782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7533        .43827        .46496E-03   -1.5669    
  18  Prefactor     .54402        1.5065        .74820E-03   -1.5693    
  19  Prefactor     .17208E-08    13.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .51625E-07    5.1657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.582        14.157        .27295E-03   -1.5634    
  22  Prefactor      .0000        1.0885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    17.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.445        18.176        .25492E-03   -1.5629    
  25  norm          2.4085        2.2556        .65944E-03   -1.5677    
  26  Prefactor     .22260E-07    52.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.5414        2.9553        .64223E-03   -1.5676    
  28  Normalizat    1.3793        .15911        .53749E-01   -.81228    
  29  Prefactor     .84070        .17768        .77018E-01   -.98245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68899e-07
Minuit parameter uncertainties:
  1  8.27689
  2  2.7008
  3  7.96692
  4  0.00183025
  5  3.58875
  6  0.0002084
  7  0.00504508
  8  18.4316
  9  2.27262e-06
  10  0.000358946
  11  1.3666e-05
  12  8.60591
  13  0.000141365
  14  9.66716e-05
  15  53.6416
  16  4.96885e-05
  17  0.438266
  18  1.50653
  19  0.000309695
  20  0.00103298
  21  14.1571
  22  3.62147e-06
  23  4.51161e-05
  24  18.1763
  25  2.25557
  26  0.00215747
  27  2.95534
  28  0.159167
  29  0.177806
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  4.441e-10  1.414e-04  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:  8.407e-01  1.778e-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.379e+00  1.592e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576533/likelihoodResults_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.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) = 8915.11611949
delta logL = -0.0426734452485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8915.07344611
delta logL = -6.22567313258e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11078E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.2399       1.0000          .0000       10.000    
     3 'Normalizat'    1.3794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84069       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=   8915.073     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      222 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.3491        .42118E-03** at limit **
   2  Index         .57745        .56736        .50289E-04     .0000    
   3  Normalizat    1.3793        1.0650       -.27967E-05    .15008E-04
   4  Prefactor     .84070        1.1881        .86675E-06    .86405E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.57745
  Normalizat = 1.37934
  Prefactor  = 0.8407
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8915.073     FROM HESSE     STATUS=FAILED         9 CALLS      231 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.3491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15185E-02    .70875        .50289E-04   -1.0854    
   3  Normalizat    1.3793        1.0650       -.27967E-05   -.81228    
   4  Prefactor     .84070        1.1881        .86675E-06   -.98245    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.5419e-13
Minuit parameter uncertainties:
  1  7.17656e-06
  2  0.573111
  3  1.08285
  4  1.22775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576533': 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) = 8915.07344605
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  7.177e-06  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  5.774e-01  5.731e-01  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:  8.407e-01  1.228e+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.379e+00  1.083e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/576533/cmap_HighResolution_691372801_691632001_4FGL_J1051.6+3253_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-03', job_status='DONE', photon_flux_upper_limit='4.21e-08', time_completed='2022-12-02 01:00:07.139327', job_id='576533', GAL2='0.84', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1669971607.14', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1744' AND source_name='4FGL J1051.6+3253' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:00:07 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 576533: <4FGL_J1051.6+3253_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1051.6+3253_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:45:17 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:45:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:45:18 2022
Terminated at Fri Dec  2 01:00:07 2022
Results reported at Fri Dec  2 01:00:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_daily_bin1744 162.911 32.8853 691372801 691632001 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 :                                   728.43 sec.
    Max Memory :                                 1102 MB
    Average Memory :                             274.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

