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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1714
RA = 162.913, Dec = 21.1651
tmin = 683596801, tmax = 683856001
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='96180', job_status='RUN', time_executed='2022-09-16 15:33:50.619324', time_epoch_executed='1663367630.62' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96180/ft1_4FGL_J1051.6+2109_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96180/ft1_4FGL_J1051.6+2109_daily_bin1714.fits outfile=/scratch/kocevski/96180/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1714.fits ra=162.913 dec=21.1651 rad=12.0 tmin=683596801.0 tmax=683856001.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.51
user 3.28
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.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/96180/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.18

Number of photons that the gtmktime cut: 540

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/96180/ltcube_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.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/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits
.....................!
real 18.64
user 18.18
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/96180/ltcube_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.fits outfile=/scratch/kocevski/96180/expmap_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.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/96180/ltcube_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.fits
.....................!
real 191.54
user 186.00
sys 5.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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits scfile=/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits outfile=/scratch/kocevski/96180/cmap_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.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.913 yref=21.1651 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/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits scfile=/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits outfile=/scratch/kocevski/96180/cmap_HighResolution_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.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.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96180/Model_4FGL_J1051.6+2109_daily_bin1714.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/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits....................!
real 56.98
user 55.39
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits', '/scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits', expMap='/scratch/kocevski/96180/expmap_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.fits', expCube='/scratch/kocevski/96180/ltcube_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96180/Model_4FGL_J1051.6+2109_daily_bin1714.xml', optimizer='MINUIT')

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

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/96180/ft1_filtered_4FGL_J1051.6+2109_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/96180/ft2_4FGL_J1051.6+2109_daily_bin1714.fits
Exposure map: /scratch/kocevski/96180/expmap_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.fits
Exposure cube: /scratch/kocevski/96180/ltcube_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96180/Model_4FGL_J1051.6+2109_daily_bin1714.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) = 6139.64089547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.466       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10416E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11694E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.7853       1.0000          .0000       .10000E+07
     5 'Prefactor '    .88773E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    33.726       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.666       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12396E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.212       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20668E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    59.113       1.0000          .0000       .10000E+07
    12 'norm      '    2.8865       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.5985       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.100       1.0000          .0000       .10000E+07
    15 'norm      '    .26805E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .24709E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .83032       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6139.590     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1030 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.422        6.7512       -.20252E-07   -.47690E-01
   2  Prefactor     .18874E-08    14.887        .79578E-06** at limit **
   3  Prefactor     .16176E-06    48.644        .69914E-07** at limit **
   4  Prefactor     3.9580        7.6301        .10800E-06    .11934E-02
   5  Prefactor      .0000        .88751       -.14127E-06** at limit **
   6  Prefactor     33.723        10.475        .96721E-07   -.20786E-01
   7  Prefactor     11.057        6.3464        .10523E-06    .22174E-01
   8  Prefactor     .14660E-06    25.237        .56020E-06** at limit **
   9  Prefactor     12.933        5.5583        .79678E-07   -.47841E-01
  10  Prefactor     .17208E-08    6.2273        .44386E-06** at limit **
  11  Prefactor     58.320        4.3734        .21967E-07   -.17777    
  12  norm          2.8915        1.7917        .66519E-07   -.54560E-03
  13  Prefactor     4.5993        3.2540        .14937E-06   -.15341E-02
  14  Prefactor     14.210        8.5055       -.69380E-07   -.10488E-02
  15  norm          .20095E-07    3.9175        .40568E-06** at limit **
  16  Prefactor     .43021E-07    3.5534        .46198E-06** at limit **
  17  Normalizat    .82987        .21760        .37504E-05    .68113E-04
  18  Prefactor     1.1420        .21625       -.10741E-04    .11675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4222
  Prefactor  = 1.88738e-09
  Prefactor  = 1.61759e-07
  Prefactor  = 3.95798
  Prefactor  = 0
  Prefactor  = 33.7228
  Prefactor  = 11.0568
  Prefactor  = 1.46605e-07
  Prefactor  = 12.9332
  Prefactor  = 1.72085e-09
  Prefactor  = 58.3196
  norm       = 2.89155
  Prefactor  = 4.59933
  Prefactor  = 14.2101
  norm       = 2.0095e-08
  Prefactor  = 4.30211e-08
  Normalizat = 0.829872
  Prefactor  = 1.14203
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.590     FROM HESSE     STATUS=OK           284 CALLS     1314 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.422        9.8743        .22673E-03   -1.5620    
   2  Prefactor     .18874E-08    14.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16176E-06    48.957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9580        7.7982        .51861E-03   -1.5668    
   5  Prefactor      .0000        .88740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.723        11.458        .17221E-03   -1.5592    
   7  Prefactor     11.057        13.227        .30654E-03   -1.5641    
   8  Prefactor     .14660E-06    25.597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.933        11.273        .27531E-03   -1.5636    
  10  Prefactor     .17208E-08    6.2580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.320        26.299        .13007E-03   -1.5555    
  12  norm          2.8915        1.8022        .59792E-03   -1.5674    
  13  Prefactor     4.5993        3.2477        .46914E-03   -1.5665    
  14  Prefactor     14.210        8.5197        .26649E-03   -1.5633    
  15  norm          .20095E-07    7.3699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .43021E-07    7.2786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .82987        .18639        .64305E-01   -.98970    
  18  Prefactor     1.1420        .18386        .58271E-01   -.88134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71251e-07
Minuit parameter uncertainties:
  1  9.87426
  2  0.000335941
  3  0.00562798
  4  7.79825
  5  3.042e-06
  6  11.4579
  7  13.2274
  8  0.00387438
  9  11.2731
  10  0.000207549
  11  26.2995
  12  1.80224
  13  3.2477
  14  8.51967
  15  0.000769429
  16  0.00111899
  17  0.186535
  18  0.183963
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.106e+01  1.323e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.142e+00  1.840e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.299e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 6.69e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.53e-05

TS (Fixed Index): 1.13
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/96180/likelihoodResults_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.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) = 6139.47745939
delta logL = 0.113008492451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6139.46696388
delta logL = 0.123504009282

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6139.467     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      308 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.496        13.439        .10897E-04   -.69898E-04
   2  Index         2.3092        .79398        .10671E-01   -.94783E-04
   3  Normalizat    .84792        .20831        .28175E-03    .71460E-04
   4  Prefactor     1.1264        .21628        .25911E-03   -.45060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4964
  Index      = 2.3092
  Normalizat = 0.847925
  Prefactor  = 1.12635
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.467     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.496        13.431        .43589E-06   -1.5634    
   2  Index         2.3092        .79346        .21341E-02   -.56825    
   3  Normalizat    .84792        .20851        .11270E-04   -.98315    
   4  Prefactor     1.1264        .21644        .10365E-04   -.88629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.605e-11
Minuit parameter uncertainties:
  1  13.4315
  2  0.79822
  3  0.208705
  4  0.216607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96180': 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) = 6139.46695957
delta logL = 0.123508319198

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.350e+01  1.343e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.309e+00  7.982e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.126e+00  2.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.479e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.31 +/- 0.80
Photon Flux (Free Index): 4.37e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/96180/cmap_HighResolution_683596801_683856001_4FGL_J1051.6+2109_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='1.63e-05', photon_flux_error='6.69e-08', dlogl='1.24e-01', energy_flux='1.28e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2022-09-16 15:42:48.700265', photon_index_error2='0.80', photon_index2='2.31', ts='1.13', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.85e-05', EG='0.83', time_epoch_completed='1663368168.7', return_code='0', job_id='96180', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.28e-08', ts2='1.40', photon_index='2.77' WHERE bin_id='1714' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:42:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 96180: <4FGL_J1051.6+2109_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:30:22 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:31:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:31:36 2022
Terminated at Fri Sep 16 15:42:49 2022
Results reported at Fri Sep 16 15:42:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1714 162.913 21.1651 683596801 683856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   539.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            747 sec.

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

