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


Performing analysis on: 4FGL_J1051.4-3139_daily_bin1776
RA = 162.85, Dec = -31.6507
tmin = 699667201, tmax = 699926401
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='830214', job_status='RUN', time_executed='2023-03-08 00:28:11.701590', time_epoch_executed='1678264091.7' WHERE source_name='4FGL J1051.4-3139' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830214/ft1_4FGL_J1051.4-3139_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830214/ft1_4FGL_J1051.4-3139_daily_bin1776.fits outfile=/scratch/kocevski/830214/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin1776.fits ra=162.85 dec=-31.6507 rad=12.0 tmin=699667201.0 tmax=699926401.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.90
user 3.67
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.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/830214/ft1_filteredMKT_4FGL_J1051.4-3139_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 669

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/830214/ltcube_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.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/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits
.....................!
real 12.47
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/830214/ltcube_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.fits outfile=/scratch/kocevski/830214/expmap_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.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/830214/ltcube_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.fits
.....................!
real 191.07
user 184.90
sys 5.74

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

Setting source of interest to:
4FGL J1051.4-3139 @ 162.85 -31.6507

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits scfile=/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits outfile=/scratch/kocevski/830214/cmap_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.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.85 yref=-31.6507 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits scfile=/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits outfile=/scratch/kocevski/830214/cmap_HighResolution_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.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.85 yref=-31.6507 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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830214/Model_4FGL_J1051.4-3139_daily_bin1776.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/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits.....................!
real 74.21
user 72.74
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits', '/scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits', expMap='/scratch/kocevski/830214/expmap_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.fits', expCube='/scratch/kocevski/830214/ltcube_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830214/Model_4FGL_J1051.4-3139_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.4-3139'

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.422e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.716e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830214/ft1_filtered_4FGL_J1051.4-3139_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/830214/ft2_4FGL_J1051.4-3139_daily_bin1776.fits
Exposure map: /scratch/kocevski/830214/expmap_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.fits
Exposure cube: /scratch/kocevski/830214/ltcube_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830214/Model_4FGL_J1051.4-3139_daily_bin1776.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) = 7229.47999314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5455       1.0000          .0000       .10000E+07
     2 'Prefactor '    57.119       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15068E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.6099       1.0000          .0000       .10000E+07
     5 'norm      '    .10620E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.1382       1.0000          .0000       .10000E+07
     7 'norm      '    .46618       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32397       1.0000          .0000       .10000E+07
     9 'Prefactor '    .45016E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14540E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .69890E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7118       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.199       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15000E-01   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .94249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7229.462     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1131 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5499        3.7896        .51716E-07    .78142E-02
   2  Prefactor     57.424        35.298        .15797E-05   -.22856E-02
   3  Prefactor     .11102E-08    5.2634        .27164E-06** at limit **
   4  norm          1.6252        11.767        .81862E-06   -.32837E-02
   5  norm           .0000        3.0009        .26235E-06** at limit **
   6  Prefactor     9.1235        1.3956        .17855E-08    .71196E-02
   7  norm          .47030        3.7828       -.22273E-06    .19016E-03
   8  Prefactor     .13378E-07    80.413        .16224E-05** at limit **
   9  Prefactor     .55511E-10    2.3029        .10374E-07** at limit **
  10  Prefactor     .11102E-09    10.697        .32507E-06** at limit **
  11  Prefactor     .55511E-10    1.8299       -.36893E-06** at limit **
  12  Prefactor     9.7187        7.6840       -.21673E-05   -.16046E-02
  13  Prefactor     19.186        1.2041        .88199E-07   -.11689E-01
  14  Prefactor     .27756E-09    24.686       -.22364E-06** at limit **
  15  Normalizat    1.1349        .25863       -.15539E-04   -.22547E-03
  16  Prefactor     .94220        .12103        .66415E-05   -.21966E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54993
  Prefactor  = 57.4239
  Prefactor  = 1.11022e-09
  norm       = 1.62524
  norm       = 0
  Prefactor  = 9.1235
  norm       = 0.470303
  Prefactor  = 1.33782e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 9.71872
  Prefactor  = 19.186
  Prefactor  = 2.77556e-10
  Normalizat = 1.13486
  Prefactor  = 0.942196
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.462     FROM HESSE     STATUS=OK           235 CALLS     1366 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5499        9.9467        .63977E-03   -1.5676    
   2  Prefactor     57.424        35.363        .13232E-03   -1.5556    
   3  Prefactor     .11102E-08    5.2663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6252        14.782        .83456E-03   -1.5682    
   5  norm           .0000        3.0054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1235        16.943        .33130E-03   -1.5648    
   7  norm          .47030        4.8048        .82188E-03   -1.5694    
   8  Prefactor     .13378E-07    77.847        .98883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    2.2990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    10.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    1.8290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7187        7.7025        .32132E-03   -1.5646    
  13  Prefactor     19.186        13.615        .22831E-03   -1.5620    
  14  Prefactor     .27756E-09    24.543        .17391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1349        .22118        .76361E-01   -.88640    
  16  Prefactor     .94220        .10224        .45544E-01   -.94682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43642e-07
Minuit parameter uncertainties:
  1  9.94672
  2  35.3636
  3  0.000154472
  4  9.8031
  5  9.26898e-06
  6  16.9433
  7  3.00646
  8  0.00204306
  9  1.71012e-05
  10  7.28281e-05
  11  2.17453e-05
  12  7.70246
  13  13.6154
  14  0.000164635
  15  0.221364
  16  0.102261
Done.

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

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.110e-10  7.283e-05  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.716e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.422e-01  1.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.135e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.850 -31.651
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/830214/likelihoodResults_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.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) = 7229.46318541
delta logL = -0.00161576507344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7229.46157106
delta logL = -1.42281351145e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7229.444     FROM MIGRAD    STATUS=FAILED       135 CALLS      336 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11315        135.29        .14090E-03** at limit **
   2  Index         5.0659        6.3805        .13815E-01    .55613E-04
   3  Normalizat    1.1198        .13240        .34003E-03   -.10733E-04
   4  Prefactor     .94638        .57475E-01    .17113E-03   -.39700E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7229.444     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      437 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11315        135.29        .10749E-04** at limit **
   2  Index         5.0659        6.3805        .23889E-02    .55613E-04
   3  Normalizat    1.1198        .13240        .10568E-03   -.10733E-04
   4  Prefactor     .94638        .57475E-01    .15665E-04   -.39700E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7229.444     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      512 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11315        4.3149        .56361E-05** at limit **
   2  Index         5.0659        7.5328        .11052E-03   -.98753E-06
   3  Normalizat    1.1198        .26863        .27202E-05   -.10866E-04
   4  Prefactor     .94638        .12267        .68453E-05   -.39859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.113151
  Index      = 5.06594
  Normalizat = 1.11981
  Prefactor  = 0.946381
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.444     FROM HESSE     STATUS=OK            23 CALLS      535 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11315        3.6666        .22544E-06   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0659        7.5103        .22103E-04    .13189E-01
   3  Normalizat    1.1198        .26435        .54404E-06   -.89118    
   4  Prefactor     .94638        .12113        .13691E-05   -.94539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34893e-12
Minuit parameter uncertainties:
  1  1.28822
  2  7.24616
  3  0.264664
  4  0.121164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830214': 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) = 7229.44425191
delta logL = 0.0173177318547

Extracting fit parameters...

4FGL J1051.4-3139
   Spectrum: PowerLaw
294    Prefactor:  1.132e-01  1.288e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  5.066e+00  7.246e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  5.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.464e-01  1.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.120e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.850 -31.651

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/830214/cmap_HighResolution_699667201_699926401_4FGL_J1051.4-3139_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2023-03-08 00:38:00.617511', job_id='830214', GAL2='0.95', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1678264680.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.73e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1776' AND source_name='4FGL J1051.4-3139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:38:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 830214: <4FGL_J1051.4-3139_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1051.4-3139_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 00:25:43 2023
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:25:51 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:25:51 2023
Terminated at Wed Mar  8 00:38:01 2023
Results reported at Wed Mar  8 00:38:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.4-3139_daily_bin1776 162.85 -31.6507 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.4-3139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   591.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            738 sec.

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

