aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 0 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 17201
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_weekly_bin16
RA = 162.913, Dec = 21.1651
tmin = 248659201, tmax = 249264001
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='580046', job_status='RUN', time_executed='2021-07-17 10:50:46.893314', time_epoch_executed='1626544246.89' WHERE source_name='4FGL J1051.6+2109' and cadence='weekly' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580046

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580046/ft1_4FGL_J1051.6+2109_weekly_bin16.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580046/ft1_4FGL_J1051.6+2109_weekly_bin16.fits outfile=/scratch/kocevski/580046/ft1_filteredMKT_4FGL_J1051.6+2109_weekly_bin16.fits ra=162.913 dec=21.1651 rad=12.0 tmin=248659201.0 tmax=249264001.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.17
user 2.96
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580046/ft1_filtered_4FGL_J1051.6+2109_weekly_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/580046/ltcube_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.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/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits
.....................!
real 32.07
user 31.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580046/ft1_filtered_4FGL_J1051.6+2109_weekly_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/580046/ltcube_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.fits outfile=/scratch/kocevski/580046/expmap_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.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/580046/ltcube_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.fits
.....................!
real 192.50
user 187.15
sys 4.76

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/580046/ft1_filtered_4FGL_J1051.6+2109_weekly_bin16.fits scfile=/scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits outfile=/scratch/kocevski/580046/cmap_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580046/ft1_filtered_4FGL_J1051.6+2109_weekly_bin16.fits scfile=/scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits outfile=/scratch/kocevski/580046/cmap_HighResolution_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.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.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580046/ft1_filtered_4FGL_J1051.6+2109_weekly_bin16.fits', '/scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits', expMap='/scratch/kocevski/580046/expmap_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.fits', expCube='/scratch/kocevski/580046/ltcube_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580046/Model_4FGL_J1051.6+2109_weekly_bin16.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  1.000e-04  1.000e+04 ( 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/580046/ft1_filtered_4FGL_J1051.6+2109_weekly_bin16.fits
Spacecraft file(s): /scratch/kocevski/580046/ft2_4FGL_J1051.6+2109_weekly_bin16.fits
Exposure map: /scratch/kocevski/580046/expmap_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.fits
Exposure cube: /scratch/kocevski/580046/ltcube_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580046/Model_4FGL_J1051.6+2109_weekly_bin16.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) = 13052.6023477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18846E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9035       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11890E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1374       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30531E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5050       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3076       1.0000         .10000E-03   10000.    
    15 'norm      '    .11612E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .66749E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27505       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1398       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96574       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.

 FCN=   13052.47     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1865 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3854       -.23348E-06** at limit **
   2  Prefactor     5.8805        16.493       -.20215E-04   -.57528E-04
   3  Prefactor     34.753        27.592       -.66328E-05   -.28219E-04
   4  Prefactor     .10000E-03    1.7812        .37062E-07** at limit **
   5  Prefactor     .10000E-03    .51556       -.58712E-07** at limit **
   6  Prefactor     1.7450        3.1688       -.70982E-06   -.20018E-03
   7  Prefactor     5.1396        6.2506       -.10058E-06   -.11628E-02
   8  Prefactor     .10000E-03    12.651       -.88925E-06** at limit **
   9  Prefactor     10.984        7.2143       -.17618E-06    .49099E-04
  10  Prefactor     .10000E-03    2.7310       -.81955E-06** at limit **
  11  Prefactor     1.5032        3.2141        .10781E-05   -.18910E-02
  12  norm          .10000E-03    .32256       -.54985E-07** at limit **
  13  Prefactor     .72180        .81388       -.21703E-07    .13058E-03
  14  Prefactor     7.3068        3.6830        .86198E-06    .22059E-03
  15  norm          .10002E-03    2.2538        .21827E-06** at limit **
  16  norm          .10004E-03    2.5812        .10585E-05** at limit **
  17  Prefactor     .30138        3.1041       -.90325E-06    .23564E-03
  18  Prefactor     3.1364        33.881       -.72669E-05   -.11349E-04
  19  Normalizat    1.0911        .11463        .39928E-06    .35675E-03
  20  Prefactor     .96594        .11933        .10705E-05    .23101E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.88055
  Prefactor  = 34.7527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74501
  Prefactor  = 5.13955
  Prefactor  = 0.0001
  Prefactor  = 10.9835
  Prefactor  = 0.000100002
  Prefactor  = 1.50316
  norm       = 0.0001
  Prefactor  = 0.721803
  Prefactor  = 7.30684
  norm       = 0.000100017
  norm       = 0.000100036
  Prefactor  = 0.301383
  Prefactor  = 3.13643
  Normalizat = 1.09107
  Prefactor  = 0.965943
 **********
 **   18 **HESSE 
 **********

 FCN=   13052.47     FROM HESSE     STATUS=OK           307 CALLS     2172 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.8670        .33977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8805        16.545        .16528E-03   -1.5223    
   3  Prefactor     34.753        27.623        .67971E-04   -1.4528    
   4  Prefactor     .10000E-03    1.7985        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8376        .15487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7450        3.1511        .26174E-03   -1.5444    
   7  Prefactor     5.1396        6.1721        .88687E-03   -1.5255    
   8  Prefactor     .10000E-03    12.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.984        7.4389        .12089E-03   -1.5045    
  10  Prefactor     .10000E-03    7.3630        .36343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5032        8.5025        .17444E-02   -1.5463    
  12  norm          .10000E-03    1.2660        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .72180        .80002        .10588E-03   -1.5538    
  14  Prefactor     7.3068        3.6769        .14837E-03   -1.5167    
  15  norm          .10002E-03    25.931        .33097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10004E-03    9.6804        .35362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .30138        17.275        .38372E-02   -1.5598    
  18  Prefactor     3.1364        33.727        .22878E-03   -1.5354    
  19  Normalizat    1.0911        .13093        .22162E-03   -.90039    
  20  Prefactor     .96594        .13831        .25125E-03   -.93873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7441e-08
Minuit parameter uncertainties:
  1  0.000120973
  2  16.5582
  3  27.6336
  4  1.29566e-06
  5  1.58577e-05
  6  3.1514
  7  6.17288
  8  1.07326e-05
  9  7.43954
  10  0.000253822
  11  7.15132
  12  7.58565e-06
  13  0.800033
  14  3.67701
  15  0.00131128
  16  0.0011852
  17  4.56419
  18  20.5847
  19  0.130974
  20  0.138359
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.140e+00  6.173e+00  1.000e-04  1.000e+04 ( 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:  9.659e-01  1.384e-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:  1.091e+00  1.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 5.95e-06 +/- 7.14e-06

TS (Fixed Index): 1.05
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580046/likelihoodResults_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.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) = 13052.4199462
delta logL = 0.0506816285579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13052.4180867
delta logL = 0.0525411757117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1857       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5455       1.0000          .0000       10.000    
     3 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96247       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=   13052.42     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      295 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1867        6.7932        .16141E-03   -.25492E-02
   2  Index         2.5455        .66211        .12597E-01   -.53831E-03
   3  Normalizat    1.0942        .12900        .22133E-03    .55238E-03
   4  Prefactor     .96260        .13774        .25160E-03    .47081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18672
  Index      = 2.54545
  Normalizat = 1.09416
  Prefactor  = 0.962598
 **********
 **   18 **HESSE 
 **********

 FCN=   13052.42     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1867        6.6177        .64565E-05   -1.5210    
   2  Index         2.5455        .64509        .50388E-03   -.51313    
   3  Normalizat    1.0942        .12914        .44266E-04   -.89939    
   4  Prefactor     .96260        .13783        .50320E-04   -.93987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2301e-09
Minuit parameter uncertainties:
  1  6.61846
  2  0.647474
  3  0.129176
  4  0.137876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580046': 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) = 13052.4180862
delta logL = 0.0525416744877

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  6.187e+00  6.618e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.545e+00  6.475e-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:  9.626e-01  1.379e-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:  1.094e+00  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.55 +/- 0.65
Photon Flux (Free Index): 2.49e-08 +/- 2.63e-08
Energy Flux (Free Index): 6.89e-06 +/- 7.44e-06

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/580046/cmap_HighResolution_248659201_249264001_4FGL_J1051.6+2109_weekly_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='6.89e-06', photon_flux_error='3.12e-08', dlogl='5.25e-02', energy_flux='5.95e-06', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-07-17 11:07:00.437573', photon_index_error2='0.65', photon_index2='2.55', ts='1.05', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='7.44e-06', EG='1.09', time_epoch_completed='1626545220.44', return_code='0', job_id='580046', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='7.14e-06', photon_flux_error2='2.63e-08', ts2='1.17', photon_index='2.77' WHERE bin_id='16' AND source_name='4FGL J1051.6+2109' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 11:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 580046: <4FGL_J1051.6+2109_weekly_bin16> in cluster <slac> Done

Job <4FGL_J1051.6+2109_weekly_bin16> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul 17 10:50:35 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 10:50:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 10:50:38 2021
Terminated at Sat Jul 17 11:07:01 2021
Results reported at Sat Jul 17 11:07:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_weekly_bin16 162.913 21.1651 248659201 249264001 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 :                                   962.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             351.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            986 sec.

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

