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


Performing analysis on: 4FGL_J1051.6+2109_weekly_bin308
RA = 162.913, Dec = 21.1651
tmin = 425260801, tmax = 425865601
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='581729', job_status='RUN', time_executed='2021-07-17 10:58:26.804869', time_epoch_executed='1626544706.8' WHERE source_name='4FGL J1051.6+2109' and cadence='weekly' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581729

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

Retrieving the FT1 file...

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

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

Retrieving 98 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581729/ft1_4FGL_J1051.6+2109_weekly_bin308.fits


Retrieving the FT1 file...

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

Retrieving 98 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581729/ft1_4FGL_J1051.6+2109_weekly_bin308.fits outfile=/scratch/kocevski/581729/ft1_filteredMKT_4FGL_J1051.6+2109_weekly_bin308.fits ra=162.913 dec=21.1651 rad=12.0 tmin=425260801.0 tmax=425865601.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 8.74
user 8.35
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.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/581729/ft1_filteredMKT_4FGL_J1051.6+2109_weekly_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/581729/ft1_filtered_4FGL_J1051.6+2109_weekly_bin308.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.38
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581729/ft1_filtered_4FGL_J1051.6+2109_weekly_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/581729/ltcube_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.fits outfile=/scratch/kocevski/581729/expmap_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.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/581729/ltcube_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.fits
.....................!
real 192.12
user 186.60
sys 5.09

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/581729/ft1_filtered_4FGL_J1051.6+2109_weekly_bin308.fits scfile=/scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.fits outfile=/scratch/kocevski/581729/cmap_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581729/ft1_filtered_4FGL_J1051.6+2109_weekly_bin308.fits scfile=/scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.fits outfile=/scratch/kocevski/581729/cmap_HighResolution_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.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.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/581729/ft1_filtered_4FGL_J1051.6+2109_weekly_bin308.fits', '/scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.fits', expMap='/scratch/kocevski/581729/expmap_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.fits', expCube='/scratch/kocevski/581729/ltcube_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/581729/Model_4FGL_J1051.6+2109_weekly_bin308.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/581729/ft1_filtered_4FGL_J1051.6+2109_weekly_bin308.fits
Spacecraft file(s): /scratch/kocevski/581729/ft2_4FGL_J1051.6+2109_weekly_bin308.fits
Exposure map: /scratch/kocevski/581729/expmap_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.fits
Exposure cube: /scratch/kocevski/581729/ltcube_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/581729/Model_4FGL_J1051.6+2109_weekly_bin308.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) = 8653.98941897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22186E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7797       1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0831       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.077       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88477       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1413       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=   8653.959     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1765 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3703        .67958E-08** at limit **
   2  Prefactor     .10000E-03    15.998        .79445E-06** at limit **
   3  Prefactor     20.903        28.595        .70380E-05    .34997E-04
   4  Prefactor     1.1014        6.0001        .17011E-05   -.30982E-04
   5  Prefactor     .10000E-03    .68895        .81465E-07** at limit **
   6  Prefactor     .10000E-03    4.6070        .64766E-07** at limit **
   7  Prefactor     5.4573        7.0352        .21295E-06   -.12451E-02
   8  Prefactor     .10000E-03    6.6564        .42528E-07** at limit **
   9  Prefactor     .10000E-03    3.8233        .36895E-06** at limit **
  10  Prefactor     .10000E-03    16.248        .62577E-06** at limit **
  11  Prefactor     .10011E-03    8.3898        .29584E-05** at limit **
  12  norm          2.8532        1.2867        .94151E-07   -.17322E-03
  13  Prefactor     .10000E-03    .76511        .34732E-07** at limit **
  14  Prefactor     1.7802        6.2882        .69446E-06   -.10161E-03
  15  norm          .10000E-03    4.0001        .57424E-07** at limit **
  16  norm          3.0826        6.9672        .40590E-05    .13255E-03
  17  Prefactor     .10000E-03    12.686       -.42128E-06** at limit **
  18  Prefactor     44.074        34.420        .72332E-06   -.18193E-04
  19  Normalizat    .88488        .14017       -.20903E-05   -.65434E-03
  20  Prefactor     1.1412        .14451        .23556E-06   -.62643E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9026
  Prefactor  = 1.10143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.45734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100112
  norm       = 2.85317
  Prefactor  = 0.0001
  Prefactor  = 1.78025
  norm       = 0.0001
  norm       = 3.08258
  Prefactor  = 0.0001
  Prefactor  = 44.0743
  Normalizat = 0.884877
  Prefactor  = 1.14123
 **********
 **   18 **HESSE 
 **********

 FCN=   8653.959     FROM HESSE     STATUS=OK           285 CALLS     2050 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4130        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.903        28.115        .87502E-04   -1.4793    
   4  Prefactor     1.1014        5.9763        .41775E-03   -1.5498    
   5  Prefactor     .10000E-03    .70552        .15047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4573        6.8231        .86002E-03   -1.5241    
   8  Prefactor     .10000E-03    6.6606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8534        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10011E-03    30.394        .45580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8532        1.2839        .67444E-04   -1.5370    
  13  Prefactor     .10000E-03    .77689        .79393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7802        6.2647        .31373E-03   -1.5441    
  15  norm          .10000E-03    4.0203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0826        6.9623        .11549E-02   -1.5357    
  17  Prefactor     .10000E-03    12.983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.074        34.426        .60386E-04   -1.4379    
  19  Normalizat    .88488        .16367        .24186E-03   -.96994    
  20  Prefactor     1.1412        .17111        .23470E-03   -.88159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73996e-09
Minuit parameter uncertainties:
  1  2.83593e-06
  2  1.91728e-05
  3  28.1325
  4  5.13182
  5  8.69232e-07
  6  1.70842e-05
  7  6.82402
  8  2.03221e-07
  9  1.01258e-05
  10  4.76236e-05
  11  0.00369266
  12  1.28391
  13  1.60579e-06
  14  6.26699
  15  2.44278e-06
  16  6.96414
  17  3.39476e-05
  18  34.4413
  19  0.163763
  20  0.171194
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.457e+00  6.824e+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:  1.141e+00  1.712e-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.849e-01  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/581729/likelihoodResults_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.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) = 8653.5130634
delta logL = 0.446005198999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8653.50960115
delta logL = 0.449467447001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5302       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3023       1.0000          .0000       10.000    
     3 'Normalizat'    .84956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1707       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8653.510     FROM MIGRAD    STATUS=FAILED        83 CALLS      324 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5297        52.709        .91970E-04   -.42115E-02
   2  Index         4.3022        7.0386        .82146E-02   -.46232E-03
   3  Normalizat    .84936        .15041        .24633E-03   -.82070E-03
   4  Prefactor     1.1708        .16289        .23213E-03   -.65457E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8653.510     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      412 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5297        52.709        .17897E-03   -.42115E-02
   2  Index         4.3022        7.0386        .14865E-02   -.46232E-03
   3  Normalizat    .84936        .15041        .10770E-03   -.82070E-03
   4  Prefactor     1.1708        .16289        .82584E-04   -.65457E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8653.510     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      441 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5295        3.9684        .36788E-05   -.48642E-02
   2  Index         4.3023        1.8455        .32858E-03   -.39021E-03
   3  Normalizat    .84936        .16375        .49266E-04   -.81108E-03
   4  Prefactor     1.1708        .17408        .46426E-04   -.64364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5295
  Index      = 4.30233
  Normalizat = 0.84936
  Prefactor  = 1.17083
 **********
 **   18 **HESSE 
 **********

 FCN=   8653.510     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5295        3.8676        .73576E-06   -1.5461    
   2  Index         4.3023        1.8007        .13143E-04   -.13999    
   3  Normalizat    .84936        .16377        .98532E-05   -.98263    
   4  Prefactor     1.1708        .17409        .92852E-05   -.87234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46679e-09
Minuit parameter uncertainties:
  1  3.86823
  2  1.843
  3  0.163867
  4  0.174174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581729': 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) = 8653.50959945
delta logL = 0.449469148574

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.530e+00  3.868e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  4.302e+00  1.843e+00  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.171e+00  1.742e-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.494e-01  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 162.913 21.165
Photon Index (Free Index): 4.30 +/- 1.84
Photon Flux (Free Index): 5.00e-08 +/- 4.31e-08
Energy Flux (Free Index): 7.15e-06 +/- 6.31e-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/581729/cmap_HighResolution_425260801_425865601_4FGL_J1051.6+2109_weekly_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', comment='SUCCESS', energy_flux2='7.15e-06', dlogl='4.49e-01', photon_flux2='5.00e-08', job_status='DONE', time_completed='2021-07-17 11:11:32.303805', photon_index_error2='1.84', photon_index2='4.30', ts='0.78', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='9.65e-08', energy_flux_error2='6.31e-06', EG='0.88', time_epoch_completed='1626545492.3', return_code='0', job_id='581729', GAL2='1.17', EG2='0.85', return_code2='0', photon_flux_error2='4.31e-08', ts2='1.79', photon_index='2.77' WHERE bin_id='308' AND source_name='4FGL J1051.6+2109' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 11:11:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 581729: <4FGL_J1051.6+2109_weekly_bin308> in cluster <slac> Done

Job <4FGL_J1051.6+2109_weekly_bin308> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul 17 10:56:29 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 10:58:18 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:58:18 2021
Terminated at Sat Jul 17 11:11:33 2021
Results reported at Sat Jul 17 11:11:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_weekly_bin308 162.913 21.1651 425260801 425865601 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            904 sec.

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

