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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin284
RA = 162.913, Dec = 21.1651
tmin = 312940801, tmax = 313200001
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='251734', job_status='RUN', time_executed='2021-09-02 18:27:54.878045', time_epoch_executed='1630632474.88' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251734

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251734/ft1_4FGL_J1051.6+2109_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251734/ft2_4FGL_J1051.6+2109_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251734/ft1_4FGL_J1051.6+2109_daily_bin284.fits outfile=/scratch/kocevski/251734/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin284.fits ra=162.913 dec=21.1651 rad=12.0 tmin=312940801.0 tmax=313200001.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 4.18
user 3.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251734/ft2_4FGL_J1051.6+2109_daily_bin284.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/251734/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/251734/ft1_filtered_4FGL_J1051.6+2109_daily_bin284.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 1.17
user 0.37
sys 0.24

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251734/ft1_filtered_4FGL_J1051.6+2109_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/251734/ft2_4FGL_J1051.6+2109_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/251734/ltcube_312940801_313200001_4FGL_J1051.6+2109_daily_bin284.fits outfile=/scratch/kocevski/251734/expmap_312940801_313200001_4FGL_J1051.6+2109_daily_bin284.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/251734/ltcube_312940801_313200001_4FGL_J1051.6+2109_daily_bin284.fits
.....................!
real 194.12
user 187.83
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/251734/ft1_filtered_4FGL_J1051.6+2109_daily_bin284.fits scfile=/scratch/kocevski/251734/ft2_4FGL_J1051.6+2109_daily_bin284.fits outfile=/scratch/kocevski/251734/cmap_312940801_313200001_4FGL_J1051.6+2109_daily_bin284.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251734/ft1_filtered_4FGL_J1051.6+2109_daily_bin284.fits scfile=/scratch/kocevski/251734/ft2_4FGL_J1051.6+2109_daily_bin284.fits outfile=/scratch/kocevski/251734/cmap_HighResolution_312940801_313200001_4FGL_J1051.6+2109_daily_bin284.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.995       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21246E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69355       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9742       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89279       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2804       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=   5613.870     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2103 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.948        8.1566        .15960E-06    .11101E-04
   2  Prefactor     23.977        35.397       -.65794E-05   -.39802E-03
   3  Prefactor     16.549        33.352        .20081E-05    .97604E-04
   4  Prefactor     .10000E-03    3.7353        .12835E-06** at limit **
   5  Prefactor     .10000E-03    1.0876        .55376E-07** at limit **
   6  Prefactor     5.7211        7.6201        .30998E-05   -.95120E-03
   7  Prefactor     29.992        14.514        .50346E-06    .22693E-03
   8  Prefactor     11.602        16.624        .45761E-06    .60229E-04
   9  Prefactor     16.289        13.958       -.35420E-06   -.45143E-04
  10  Prefactor     .21252        8.3067       -.22155E-06   -.82560E-06
  11  Prefactor     .10000E-03    11.586        .12546E-06** at limit **
  12  norm          1.3325        1.5866       -.64407E-07   -.24284E-03
  13  Prefactor     .70045        2.7881        .44786E-06   -.23094E-03
  14  Prefactor     .10000E-03    2.1114        .15533E-07** at limit **
  15  norm          .10000E-03    19.727       -.69246E-07** at limit **
  16  norm          .10000E-03    5.1015        .54672E-07** at limit **
  17  Prefactor     6.8279        9.2475        .25094E-06    .19790E-04
  18  Prefactor     1.9712        359.74       -.37197E-05   -.17130E-04
  19  Normalizat    .89282        .19527       -.13376E-05    .15599E-06
  20  Prefactor     1.2804        .19937        .30129E-06   -.65070E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9476
  Prefactor  = 23.9771
  Prefactor  = 16.5493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72114
  Prefactor  = 29.9916
  Prefactor  = 11.6016
  Prefactor  = 16.2894
  Prefactor  = 0.212516
  Prefactor  = 0.0001
  norm       = 1.33247
  Prefactor  = 0.700448
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.82791
  Prefactor  = 1.97122
  Normalizat = 0.89282
  Prefactor  = 1.28036
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.870     FROM HESSE     STATUS=OK           299 CALLS     2402 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.948        8.1554        .12108E-03   -1.5046    
   2  Prefactor     23.977        38.553        .81773E-04   -1.4728    
   3  Prefactor     16.549        33.459        .98471E-04   -1.4894    
   4  Prefactor     .10000E-03    10.794        .27944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1007        .76234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7211        8.4404        .83965E-03   -1.5230    
   7  Prefactor     29.992        14.528        .73143E-04   -1.4612    
   8  Prefactor     11.602        16.627        .11761E-03   -1.5027    
   9  Prefactor     16.289        13.973        .99243E-04   -1.4901    
  10  Prefactor     .21252        139.33        .36372E-02   -1.5616    
  11  Prefactor     .10000E-03    11.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3325        1.5581        .97313E-04   -1.5477    
  13  Prefactor     .70045        4.3934        .20317E-02   -1.5541    
  14  Prefactor     .10000E-03    2.1130        .10632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1179        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8279        9.2434        .15354E-03   -1.5185    
  18  Prefactor     1.9712        366.56        .29507E-03   -1.5427    
  19  Normalizat    .89282        .22636        .26876E-03   -.96713    
  20  Prefactor     1.2804        .23304        .24866E-03   -.83893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46335e-08
Minuit parameter uncertainties:
  1  8.15624
  2  38.5929
  3  33.4973
  4  7.86739e-06
  5  2.05469e-07
  6  8.44219
  7  14.5293
  8  16.6332
  9  13.9761
  10  10.906
  11  5.88972e-06
  12  1.55816
  13  3.5086
  14  1.56583e-08
  15  3.57291e-05
  16  1.80446e-06
  17  9.24535
  18  54.0998
  19  0.2266
  20  0.233228
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.999e+01  1.453e+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.280e+00  2.332e-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.928e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.52e-07 +/- 7.35e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.68e-05

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) = 5613.7931089
delta logL = 0.0768315174882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5613.78980845
delta logL = 0.0801319648872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.642       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5794       1.0000          .0000       10.000    
     3 'Normalizat'    .90803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2648       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=   5613.790     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      261 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.603        283.57        .17021E-02    .30538E-03
   2  Index         2.5779        6.2887        .13957        .42303E-04
   3  Normalizat    .90822        .12299        .45004E-01   -.55566E-04
   4  Prefactor     1.2649        .16170        .56504E-01   -.55200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.6029
  Index      = 2.57786
  Normalizat = 0.908224
  Prefactor  = 1.26487
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.790     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.603        18.428        .34043E-03   -1.4531    
   2  Index         2.5779        .46623        .56331E-02   -.50571    
   3  Normalizat    .90822        .21892        .26672E-03   -.96172    
   4  Prefactor     1.2649        .23417        .24985E-03   -.84358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37751e-10
Minuit parameter uncertainties:
  1  18.4306
  2  0.467118
  3  0.219139
  4  0.234366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251734': 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) = 5613.78979039
delta logL = 0.0801500222915

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.460e+01  1.843e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.578e+00  4.671e-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.265e+00  2.344e-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:  9.082e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.72
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.58 +/- 0.47
Photon Flux (Free Index): 1.44e-07 +/- 6.72e-08
Energy Flux (Free Index): 3.85e-05 +/- 2.03e-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/251734/cmap_HighResolution_312940801_313200001_4FGL_J1051.6+2109_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.52e-07', energy_flux2='3.85e-05', photon_flux_error='7.35e-08', dlogl='8.02e-02', energy_flux='3.47e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-02 18:37:19.820082', photon_index_error2='0.47', photon_index2='2.58', ts='7.50', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.89', time_epoch_completed='1630633039.82', return_code='0', job_id='251734', GAL2='1.26', EG2='0.91', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='6.72e-08', ts2='7.72', photon_index='2.77' WHERE bin_id='284' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:37:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 251734: <4FGL_J1051.6+2109_daily_bin284> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin284> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:28 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:27:41 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:27:41 2021
Terminated at Thu Sep  2 18:37:20 2021
Results reported at Thu Sep  2 18:37:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin284 162.913 21.1651 312940801 313200001 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 :                                   556.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            652 sec.

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

