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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin358
RA = 162.913, Dec = 21.1651
tmin = 332121601, tmax = 332380801
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='251843', job_status='RUN', time_executed='2021-09-02 18:30:47.629058', time_epoch_executed='1630632647.63' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251843/ft1_4FGL_J1051.6+2109_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251843/ft2_4FGL_J1051.6+2109_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251843/ft1_4FGL_J1051.6+2109_daily_bin358.fits outfile=/scratch/kocevski/251843/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin358.fits ra=162.913 dec=21.1651 rad=12.0 tmin=332121601.0 tmax=332380801.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.34
user 3.07
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251843/ft1_filtered_4FGL_J1051.6+2109_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/251843/ft2_4FGL_J1051.6+2109_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/251843/ltcube_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.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/251843/ft2_4FGL_J1051.6+2109_daily_bin358.fits
.....................!
real 15.73
user 15.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251843/ft1_filtered_4FGL_J1051.6+2109_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/251843/ft2_4FGL_J1051.6+2109_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/251843/ltcube_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.fits outfile=/scratch/kocevski/251843/expmap_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.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/251843/ltcube_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.fits
.....................!
real 192.70
user 186.07
sys 5.62

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/251843/ft1_filtered_4FGL_J1051.6+2109_daily_bin358.fits scfile=/scratch/kocevski/251843/ft2_4FGL_J1051.6+2109_daily_bin358.fits outfile=/scratch/kocevski/251843/cmap_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.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.65
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251843/ft1_filtered_4FGL_J1051.6+2109_daily_bin358.fits scfile=/scratch/kocevski/251843/ft2_4FGL_J1051.6+2109_daily_bin358.fits outfile=/scratch/kocevski/251843/cmap_HighResolution_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.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.64
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16050E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45653       1.0000         .10000E-03   10000.    
    12 'norm      '    .95798       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8782       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .64487E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.674       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1432       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.339       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1857       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0738       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=   5713.980     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     2770 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3331        5.7638        .22164E-03    .14085E-03
   2  Prefactor     .10000E-03    21.202        .18142E-02** at limit **
   3  Prefactor     .10000E-03    25.248        .18142E-02** at limit **
   4  Prefactor     .10000E-03    30.305        .26579E-02** at limit **
   5  Prefactor     .58797        1.8376        .17358E-03    .34588E-03
   6  Prefactor     .10000E-03    9.7389        .36285E-03** at limit **
   7  Prefactor     3.0167        17.881        .23723E-03    .17463E-03
   8  Prefactor     19.422        24.690        .90867E-04   -.12511E-05
   9  Prefactor     .10662E-03    20.741        .63661E-01** at limit **
  10  Prefactor     5.5365        8.0355        .17076E-03   -.95872E-05
  11  Prefactor     .23231        52.740        .72925E-01    .52535E-03
  12  norm          .95816        1.0866        .87676E-03   -.50164E-03
  13  Prefactor     1.8771        2.4031        .12632E-03    .22886E-03
  14  Prefactor     .10000E-03    2.4335        .11499E-02** at limit **
  15  norm          .10003E-03    58.226        .39725E-02** at limit **
  16  norm          10.672        11.171        .12263E-03    .76946E-05
  17  Prefactor     2.1427        6.5574        .28152E-03    .13973E-03
  18  Prefactor     21.320        45.555        .86708E-04    .11307E-03
  19  Normalizat    1.1861        .22184        .22989E-03    .87740E-03
  20  Prefactor     1.0737        .22489        .26188E-03    .11526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.587967
  Prefactor  = 0.0001
  Prefactor  = 3.01673
  Prefactor  = 19.4221
  Prefactor  = 0.000106617
  Prefactor  = 5.53645
  Prefactor  = 0.232308
  norm       = 0.95816
  Prefactor  = 1.87711
  Prefactor  = 0.0001
  norm       = 0.000100027
  norm       = 10.6719
  Prefactor  = 2.14267
  Prefactor  = 21.3197
  Normalizat = 1.18605
  Prefactor  = 1.07375
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.980     FROM HESSE     STATUS=OK           293 CALLS     3063 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3331        5.7633        .88657E-05   -1.5343    
   2  Prefactor     .10000E-03    21.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.713        .53157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58797        1.8347        .69433E-05   -1.5555    
   6  Prefactor     .10000E-03    9.7395        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0167        16.419        .94891E-05   -1.5361    
   8  Prefactor     19.422        24.691        .36347E-05   -1.4826    
   9  Prefactor     .10662E-03    17.042        .71010E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5365        8.0349        .68303E-05   -1.5237    
  11  Prefactor     .23231        35.604        .85632E-01   -1.5612    
  12  norm          .95816        1.0862        .35071E-04   -1.5512    
  13  Prefactor     1.8771        2.4028        .50529E-05   -1.5434    
  14  Prefactor     .10000E-03    2.4336        .22998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10003E-03    60.189        .15890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.672        11.170        .49053E-05   -1.5054    
  17  Prefactor     2.1427        6.5570        .11261E-04   -1.5415    
  18  Prefactor     21.320        45.542        .17342E-04   -1.4784    
  19  Normalizat    1.1861        .22154        .45979E-04   -.87035    
  20  Prefactor     1.0737        .22500        .10475E-04   -.90310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70853e-09
Minuit parameter uncertainties:
  1  5.76426
  2  4.20151e-05
  3  1.60827e-05
  4  9.26241e-06
  5  1.83491
  6  3.11122e-05
  7  14.0814
  8  24.7037
  9  0.0212442
  10  8.03643
  11  5.75412
  12  1.0862
  13  2.40293
  14  5.5122e-06
  15  0.00254488
  16  11.1725
  17  6.55918
  18  45.6159
  19  0.221717
  20  0.225194
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.017e+00  1.408e+01  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.074e+00  2.252e-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.186e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251843/likelihoodResults_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.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) = 5713.65657195
delta logL = 0.323204865983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5713.64493497
delta logL = 0.334841847609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4795       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9124       1.0000          .0000       10.000    
     3 'Normalizat'    1.1412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1030       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.

 FCN=   5713.645     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      225 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4756        69.457        .64908E-02    .63296E-03
   2  Index         3.9149        6.8853        .20660        .80928E-04
   3  Normalizat    1.1411        .47317E-01    .52869E-01    .56162E-05
   4  Prefactor     1.1031        .51934E-01    .58528E-01    .41219E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47557
  Index      = 3.91492
  Normalizat = 1.14106
  Prefactor  = 1.10313
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.645     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4756        7.8635        .13176E-03   -1.5393    
   2  Index         3.9149        2.0818        .87724E-02   -.21876    
   3  Normalizat    1.1411        .21472        .23376E-03   -.88444    
   4  Prefactor     1.1031        .22642        .25882E-03   -.89366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17427e-11
Minuit parameter uncertainties:
  1  7.86678
  2  2.15074
  3  0.214889
  4  0.226617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251843': 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) = 5713.64493265
delta logL = 0.334844169597

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.476e+00  7.867e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.915e+00  2.151e+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.103e+00  2.266e-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.141e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 162.913 21.165

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/251843/cmap_HighResolution_332121601_332380801_4FGL_J1051.6+2109_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-02 18:41:57.181853', job_id='251843', GAL2='1.10', fit_tolerance='1e-08', EG2='1.14', EG='1.19', time_epoch_completed='1630633317.18', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.35e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='358' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 251843: <4FGL_J1051.6+2109_daily_bin358> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin358> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:35 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:28:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:28:01 2021
Terminated at Thu Sep  2 18:41:58 2021
Results reported at Thu Sep  2 18:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin358 162.913 21.1651 332121601 332380801 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 :                                   661.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            923 sec.

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

