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


Performing analysis on: 4FGL_J1051.6+3253_weekly_bin759
RA = 162.911, Dec = 32.8853
tmin = 698025601, tmax = 698630401
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='587339', job_status='RUN', time_executed='2023-02-21 03:23:18.161571', time_epoch_executed='1676978598.16' WHERE source_name='4FGL J1051.6+3253' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587339

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587339/ft1_4FGL_J1051.6+3253_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587339/ft1_4FGL_J1051.6+3253_weekly_bin759.fits outfile=/scratch/kocevski/587339/ft1_filteredMKT_4FGL_J1051.6+3253_weekly_bin759.fits ra=162.911 dec=32.8853 rad=12.0 tmin=698025601.0 tmax=698630401.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 6.53
user 6.22
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.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/587339/ft1_filteredMKT_4FGL_J1051.6+3253_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/587339/ft1_filtered_4FGL_J1051.6+3253_weekly_bin759.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.45
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587339/ft1_filtered_4FGL_J1051.6+3253_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/587339/ltcube_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.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/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.fits
.....................!
real 20.82
user 20.50
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587339/ft1_filtered_4FGL_J1051.6+3253_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/587339/ltcube_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.fits outfile=/scratch/kocevski/587339/expmap_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.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/587339/ltcube_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.fits
.....................!
real 145.87
user 141.60
sys 4.03

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/587339/ft1_filtered_4FGL_J1051.6+3253_weekly_bin759.fits scfile=/scratch/kocevski/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.fits outfile=/scratch/kocevski/587339/cmap_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587339/ft1_filtered_4FGL_J1051.6+3253_weekly_bin759.fits scfile=/scratch/kocevski/587339/ft2_4FGL_J1051.6+3253_weekly_bin759.fits outfile=/scratch/kocevski/587339/cmap_HighResolution_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8542       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4711       1.0000          .0000       .10000E+07
     3 'norm      '    9.3701       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17302E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .51939E-03   1.0000          .0000       .10000E+07
     6 'norm      '    1.1427       1.0000          .0000       .10000E+07
     7 'Prefactor '    .18747E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    29.634       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.8216       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.937       1.0000          .0000       .10000E+07
    11 'Prefactor '    .60724E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.5044       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21234E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.452       1.0000          .0000       .10000E+07
    15 'Prefactor '    .79418E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15324E-01   1.0000          .0000       .10000E+07
    17 'norm      '    2.0821       1.0000          .0000       .10000E+07
    18 'Prefactor '    .52947E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .41616E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32355E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .29015E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.3080       1.0000          .0000       .10000E+07
    23 'Prefactor '    .28704E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    12.759       1.0000          .0000       .10000E+07
    25 'norm      '    7.9764       1.0000          .0000       .10000E+07
    26 'Prefactor '    11.956       1.0000          .0000       .10000E+07
    27 'Prefactor '    11.661       1.0000          .0000       .10000E+07
    28 'Normalizat'    .86698       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1145       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=   5936.493     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2763 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8532        6.1680        .85892E-07    .24465E-02
   2  Prefactor     1.4710        2.0361        .90075E-08    .93960E-03
   3  norm          9.3214        6.0742        .98750E-06    .48770E-01
   4  Prefactor     .55511E-10    1.3897       -.14252E-07** at limit **
   5  Prefactor     .54686E-05    23.490       -.30947E-05** at limit **
   6  norm          1.0750        11.949        .24902E-05    .63436E-02
   7  Prefactor     .76145E-06    8.3038        .72859E-06** at limit **
   8  Prefactor     29.720        15.277        .66605E-06   -.57963E-02
   9  Prefactor     1.8218        2.2015       -.38953E-07   -.62990E-02
  10  Prefactor     10.835        3.7736       -.68710E-08   -.16464E-01
  11  Prefactor     .38858E-09    .98092        .46309E-08** at limit **
  12  Prefactor     8.4234        2.9031       -.13802E-06   -.24350E-02
  13  Prefactor     .12599E-05    9.2687        .90759E-06** at limit **
  14  Prefactor     12.389        2.4943       -.62460E-07   -.16628E-02
  15  Prefactor     .17653E-07    25.708       -.75871E-06** at limit **
  16  Prefactor     .13323E-08    12.034       -.75044E-07** at limit **
  17  norm          2.0818        .39155        .34419E-08   -.14224E-01
  18  Prefactor     .13878E-08    1.4209        .26774E-07** at limit **
  19  Prefactor     .18324E-06    5.6516        .13043E-05** at limit **
  20  Prefactor     .25535E-08    4.5386       -.15701E-07** at limit **
  21  norm          .23770E-06    5.6645       -.12538E-05** at limit **
  22  Prefactor     1.3053        2.4496       -.12084E-07   -.48634E-03
  23  Prefactor     .18085E-05    15.613       -.12745E-05** at limit **
  24  Prefactor     12.763        1.9490       -.27012E-06   -.17182E-03
  25  norm          7.9744        3.0779        .35656E-07    .92450E-02
  26  Prefactor     11.957        2.9587        .33355E-07    .10570E-01
  27  Prefactor     11.681        5.8602        .47405E-07    .29466E-02
  28  Normalizat    .86742        .19469       -.12678E-05    .42561E-03
  29  Prefactor     1.1146        .23732       -.21127E-05    .28005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.85321
  Prefactor  = 1.47097
  norm       = 9.32137
  Prefactor  = 5.55112e-11
  Prefactor  = 5.46857e-06
  norm       = 1.07503
  Prefactor  = 7.61446e-07
  Prefactor  = 29.7201
  Prefactor  = 1.82183
  Prefactor  = 10.8348
  Prefactor  = 3.88578e-10
  Prefactor  = 8.42337
  Prefactor  = 1.25994e-06
  Prefactor  = 12.3885
  Prefactor  = 1.76525e-08
  Prefactor  = 1.33227e-09
  norm       = 2.08184
  Prefactor  = 1.38778e-09
  Prefactor  = 1.83242e-07
  Prefactor  = 2.55351e-09
  norm       = 2.37699e-07
  Prefactor  = 1.30533
  Prefactor  = 1.8085e-06
  Prefactor  = 12.7632
  norm       = 7.97442
  Prefactor  = 11.9568
  Prefactor  = 11.6808
  Normalizat = 0.867422
  Prefactor  = 1.11462
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.493     FROM HESSE     STATUS=OK           627 CALLS     3390 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8532        6.1717        .41483E-03   -1.5660    
   2  Prefactor     1.4710        2.0713        .88562E-03   -1.5684    
   3  norm          9.3214        8.6975        .32715E-03   -1.5647    
   4  Prefactor     .55511E-10    1.3894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .54686E-05    3.1218        .48592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0750        25.248        .10860E-02   -1.5687    
   7  Prefactor     .76145E-06    22.567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.720        29.025        .18373E-03   -1.5599    
   9  Prefactor     1.8218        2.2258        .77334E-03   -1.5681    
  10  Prefactor     10.835        9.6123        .30269E-03   -1.5642    
  11  Prefactor     .38858E-09    .98034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4234        13.677        .34351E-03   -1.5650    
  13  Prefactor     .12599E-05    22.766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.389        14.542        .28362E-03   -1.5638    
  15  Prefactor     .17653E-07    39.549        .14519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13323E-08    6.3412        .72103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0818        .39158        .45635E-03   -1.5679    
  18  Prefactor     .13878E-08    1.4178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .18324E-06    6.4385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25535E-08    4.5563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .23770E-06    6.6382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3053        2.4978        .96424E-03   -1.5685    
  23  Prefactor     .18085E-05    21.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.763        13.061        .28017E-03   -1.5637    
  25  norm          7.9744        3.1058        .35478E-03   -1.5651    
  26  Prefactor     11.957        11.435        .28946E-03   -1.5639    
  27  Prefactor     11.681        5.9204        .29312E-03   -1.5640    
  28  Normalizat    .86742        .17177        .44478E-01   -.97614    
  29  Prefactor     1.1146        .20393        .62544E-01   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81434e-07
Minuit parameter uncertainties:
  1  6.1717
  2  2.07127
  3  8.69752
  4  1.51922e-05
  5  0.00826356
  6  10.4198
  7  0.00829064
  8  29.025
  9  2.22579
  10  9.61229
  11  3.97225e-05
  12  13.6773
  13  0.0107114
  14  14.5416
  15  0.00167223
  16  0.000185082
  17  0.391582
  18  8.93504e-05
  19  0.00217226
  20  0.000215095
  21  0.00251221
  22  2.49776
  23  0.0125916
  24  13.0606
  25  3.1058
  26  11.4352
  27  5.92044
  28  0.171875
  29  0.204069
Done.

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

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  1.260e-06  1.071e-02  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:  1.115e+00  2.041e-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:  8.674e-01  1.719e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587339/likelihoodResults_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5936.51377081
delta logL = -0.0212172490556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5932.88682163
delta logL = 3.60573193069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13712E-02   1.0000          .0000       .10000E+07
     2 'Index     '    5.8391       1.0000          .0000       10.000    
     3 'Normalizat'    .70074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2405       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=   5936.493     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      333 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.1499        .42118E-03** at limit **
   2  Index         .53167        .45547        .10205E-04     .0000    
   3  Normalizat    .86742        1.1487        .51527E-06    .33817E-04
   4  Prefactor     1.1146        1.0417       -.20172E-05    .22513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.53167
  Normalizat = 0.867421
  Prefactor  = 1.11462
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5936.493     FROM HESSE     STATUS=FAILED         9 CALLS      342 TOTAL
                     EDM=   .99E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.1499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1956        1.5709        .10205E-04    10.530    
   3  Normalizat    .86742        1.1487        .51527E-06   -.97615    
   4  Prefactor     1.1146        1.0417       -.20172E-05   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.94301e-13
Minuit parameter uncertainties:
  1  5.01405e-07
  2  0.458661
  3  1.18369
  4  1.06174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587339': 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) = 5936.49255353
delta logL = 2.77632352663e-08

Extracting fit parameters...

4FGL J1051.6+3253
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  5.014e-07  0.000e+00  1.000e+06 ( 1.000e-14)
294        Index:  5.317e-01  4.587e-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:  1.115e+00  1.062e+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:  8.674e-01  1.184e+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/587339/cmap_HighResolution_698025601_698630401_4FGL_J1051.6+3253_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2023-02-21 03:33:32.479497', job_id='587339', GAL2='1.11', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1676979212.48', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.78e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='759' AND source_name='4FGL J1051.6+3253' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:33:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 587339: <4FGL_J1051.6+3253_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1051.6+3253_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:20:36 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:20:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:20:37 2023
Terminated at Tue Feb 21 03:33:32 2023
Results reported at Tue Feb 21 03:33:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+3253_weekly_bin759 162.911 32.8853 698025601 698630401 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 :                                   613.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            776 sec.

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

