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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1057
RA = 162.913, Dec = 21.1651
tmin = 513302401, tmax = 513561601
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='256580', job_status='RUN', time_executed='2021-09-02 18:44:06.979043', time_epoch_executed='1630633446.98' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256580/ft1_4FGL_J1051.6+2109_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256580/ft2_4FGL_J1051.6+2109_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256580/ft1_4FGL_J1051.6+2109_daily_bin1057.fits outfile=/scratch/kocevski/256580/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1057.fits ra=162.913 dec=21.1651 rad=12.0 tmin=513302401.0 tmax=513561601.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 5.44
user 5.16
sys 0.26

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256580/ft1_filtered_4FGL_J1051.6+2109_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/256580/ft2_4FGL_J1051.6+2109_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/256580/ltcube_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.fits outfile=/scratch/kocevski/256580/expmap_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.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/256580/ltcube_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.fits
.....................!
real 190.59
user 185.97
sys 4.04

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/256580/ft1_filtered_4FGL_J1051.6+2109_daily_bin1057.fits scfile=/scratch/kocevski/256580/ft2_4FGL_J1051.6+2109_daily_bin1057.fits outfile=/scratch/kocevski/256580/cmap_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.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.60
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256580/ft1_filtered_4FGL_J1051.6+2109_daily_bin1057.fits scfile=/scratch/kocevski/256580/ft2_4FGL_J1051.6+2109_daily_bin1057.fits outfile=/scratch/kocevski/256580/cmap_HighResolution_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.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/256580/ft1_filtered_4FGL_J1051.6+2109_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/256580/ft2_4FGL_J1051.6+2109_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256580/Model_4FGL_J1051.6+2109_daily_bin1057.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/256580/ft1_filtered_4FGL_J1051.6+2109_daily_bin1057.fits.....................!
real 85.68
user 84.21
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.746       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .29307       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18933E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.132       1.0000         .10000E-03   10000.    
    16 'norm      '    12.823       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7222       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96368       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=   10624.54     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1778 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.354        5.9848       -.18470E-06    .59020E-06
   2  Prefactor     .10000E-03    22.923       -.54605E-07** at limit **
   3  Prefactor     85.452        40.370       -.33118E-05   -.32456E-05
   4  Prefactor     6.1381        5.2355       -.41006E-06   -.14485E-04
   5  Prefactor     .99368        1.5846        .23758E-07   -.57910E-04
   6  Prefactor     4.1789        1.6018        .10230E-06   -.12104E-02
   7  Prefactor     4.0971        5.7039       -.52388E-07    .38840E-04
   8  Prefactor     24.744        20.740       -.18583E-05   -.34269E-05
   9  Prefactor     .76457        5.2423       -.24166E-06   -.14421E-03
  10  Prefactor     .10000E-03    6.1117        .11840E-05** at limit **
  11  Prefactor     .10000E-03    6.2153       -.12485E-05** at limit **
  12  norm          .29316        .71523       -.12359E-06   -.33091E-03
  13  Prefactor     .10000E-03    .61548       -.21299E-07** at limit **
  14  Prefactor     .10000E-03    1.4142       -.47492E-07** at limit **
  15  norm          11.131        6.7711        .16620E-06    .29990E-04
  16  norm          12.822        7.0670       -.60470E-07   -.13441E-03
  17  Prefactor     .10000E-03    1.7307       -.43914E-07** at limit **
  18  Prefactor     6.7208        23.602       -.45843E-05   -.13795E-05
  19  Normalizat    1.0125        .12494        .59216E-06    .12205E-04
  20  Prefactor     .96360        .12964        .24077E-08    .75788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.354
  Prefactor  = 0.0001
  Prefactor  = 85.4516
  Prefactor  = 6.13809
  Prefactor  = 0.993679
  Prefactor  = 4.17888
  Prefactor  = 4.09709
  Prefactor  = 24.7438
  Prefactor  = 0.764565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.293164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1315
  norm       = 12.8217
  Prefactor  = 0.0001
  Prefactor  = 6.72077
  Normalizat = 1.01249
  Prefactor  = 0.963599
 **********
 **   18 **HESSE 
 **********

 FCN=   10624.54     FROM HESSE     STATUS=OK           303 CALLS     2081 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.354        5.9882        .11397E-03   -1.5005    
   2  Prefactor     .10000E-03    23.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.452        40.396        .21729E-03   -1.3857    
   4  Prefactor     6.1381        5.1802        .16204E-03   -1.5212    
   5  Prefactor     .99368        1.5515        .14972E-03   -1.5509    
   6  Prefactor     4.1789        4.5201        .98572E-03   -1.5299    
   7  Prefactor     4.0971        5.5581        .19916E-03   -1.5303    
   8  Prefactor     24.744        20.764        .80526E-04   -1.4713    
   9  Prefactor     .76457        5.3133        .44179E-03   -1.5533    
  10  Prefactor     .10000E-03    6.1987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .29316        .69915        .12840E-03   -1.5600    
  13  Prefactor     .10000E-03    9.5723        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4249        .11970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.131        6.7626        .12008E-03   -1.5041    
  16  norm          12.822        7.1534        .55931E-03   -1.4992    
  17  Prefactor     .10000E-03    1.7355        .13242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7208        23.615        .15476E-03   -1.5189    
  19  Normalizat    1.0125        .14598        .22470E-03   -.92613    
  20  Prefactor     .96360        .15092        .25079E-03   -.93953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.991e-10
Minuit parameter uncertainties:
  1  5.98845
  2  9.971e-06
  3  40.4086
  4  5.1806
  5  1.55152
  6  4.52045
  7  5.55885
  8  20.7697
  9  4.03131
  10  6.09563e-06
  11  9.95002e-08
  12  0.699165
  13  9.41892e-05
  14  7.27926e-07
  15  6.76304
  16  7.15391
  17  6.13828e-07
  18  23.6474
  19  0.146043
  20  0.150989
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  4.097e+00  5.559e+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.636e-01  1.510e-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.012e+00  1.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256580/likelihoodResults_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.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) = 10624.2669738
delta logL = 0.274112272014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10624.2650292
delta logL = 0.276056870434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6606       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5718       1.0000          .0000       10.000    
     3 'Normalizat'    .99425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97671       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=   10624.27     FROM MIGRAD    STATUS=FAILED        83 CALLS      270 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6604        6.0153        .15284E-03   -.96844E-04
   2  Index         3.5717        1.6711        .11061E-01    .51196E-03
   3  Normalizat    .99427        .14196        .22650E-03    .47085E-03
   4  Prefactor     .97669        .15216        .24931E-03    .40209E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10624.27     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      347 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6604        6.0153        .86763E-04   -1.5382    
   2  Index         3.5717        1.6711        .10393E-02   -.28969    
   3  Normalizat    .99427        .14196        .20815E-03   -.93223    
   4  Prefactor     .97669        .15216        .22700E-03   -.93511    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10624.27     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      376 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6604        4.5697        .61137E-05   -.11157E-03
   2  Index         3.5717        1.2793        .22122E-02    .15006E-05
   3  Normalizat    .99427        .14212        .45300E-04    .83823E-04
   4  Prefactor     .97669        .15213        .49861E-04    .73327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66041
  Index      = 3.57173
  Normalizat = 0.994273
  Prefactor  = 0.976689
 **********
 **   18 **HESSE 
 **********

 FCN=   10624.27     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6604        4.3928        .12227E-05   -1.5382    
   2  Index         3.5717        1.2301        .88488E-04   -.28969    
   3  Normalizat    .99427        .14216        .90599E-05   -.93223    
   4  Prefactor     .97669        .15215        .99723E-05   -.93511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54009e-11
Minuit parameter uncertainties:
  1  4.39335
  2  1.24403
  3  0.142216
  4  0.15222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256580': 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) = 10624.2650292
delta logL = 0.276056890902

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.660e+00  4.393e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.572e+00  1.244e+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:  9.767e-01  1.522e-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.943e-01  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.57 +/- 1.24
Photon Flux (Free Index): 3.41e-08 +/- 3.39e-08
Energy Flux (Free Index): 5.56e-06 +/- 5.47e-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/256580/cmap_HighResolution_513302401_513561601_4FGL_J1051.6+2109_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', comment='SUCCESS', energy_flux2='5.56e-06', dlogl='2.76e-01', photon_flux2='3.41e-08', job_status='DONE', time_completed='2021-09-02 18:58:03.694389', photon_index_error2='1.24', photon_index2='3.57', ts='0.74', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.59e-08', energy_flux_error2='5.47e-06', EG='1.01', time_epoch_completed='1630634283.69', return_code='0', job_id='256580', GAL2='0.98', EG2='0.99', return_code2='0', photon_flux_error2='3.39e-08', ts2='1.33', photon_index='2.77' WHERE bin_id='1057' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:58:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 256580: <4FGL_J1051.6+2109_daily_bin1057> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1057> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:43 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:43:25 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:43:25 2021
Terminated at Thu Sep  2 18:58:04 2021
Results reported at Thu Sep  2 18:58:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1057 162.913 21.1651 513302401 513561601 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 :                                   831.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            981 sec.

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

