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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin739
RA = 162.913, Dec = 21.1651
tmin = 430876801, tmax = 431136001
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='254885', job_status='RUN', time_executed='2021-09-02 18:40:23.905271', time_epoch_executed='1630633223.91' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254885/ft1_4FGL_J1051.6+2109_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254885/ft2_4FGL_J1051.6+2109_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254885/ft1_4FGL_J1051.6+2109_daily_bin739.fits outfile=/scratch/kocevski/254885/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin739.fits ra=162.913 dec=21.1651 rad=12.0 tmin=430876801.0 tmax=431136001.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.48
user 5.19
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254885/ft1_filtered_4FGL_J1051.6+2109_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/254885/ft2_4FGL_J1051.6+2109_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/254885/ltcube_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.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/254885/ft2_4FGL_J1051.6+2109_daily_bin739.fits
.....................!
real 14.53
user 14.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254885/ft1_filtered_4FGL_J1051.6+2109_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/254885/ft2_4FGL_J1051.6+2109_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/254885/ltcube_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.fits outfile=/scratch/kocevski/254885/expmap_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.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/254885/ltcube_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.fits
.....................!
real 192.44
user 187.09
sys 4.65

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/254885/ft1_filtered_4FGL_J1051.6+2109_daily_bin739.fits scfile=/scratch/kocevski/254885/ft2_4FGL_J1051.6+2109_daily_bin739.fits outfile=/scratch/kocevski/254885/cmap_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2044       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7331       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2093       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8039       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0504       1.0000         .10000E-03   10000.    
    16 'norm      '    15.329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5870       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1186       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2410       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=   5484.508     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2014 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.301        .75001E-07** at limit **
   2  Prefactor     18.468        62.043        .17817E-04   -.20251E-04
   3  Prefactor     .10000E-03    41.936       -.38028E-06** at limit **
   4  Prefactor     4.0682        8.9538        .28164E-05   -.91660E-04
   5  Prefactor     4.2039        3.0684        .43104E-07   -.90703E-04
   6  Prefactor     1.7333        8.6696        .13837E-04    .48895E-04
   7  Prefactor     .10000E-03    3.3111        .20106E-06** at limit **
   8  Prefactor     .10000E-03    27.122        .58114E-06** at limit **
   9  Prefactor     .10000E-03    3.3190       -.33334E-07** at limit **
  10  Prefactor     10.957        14.628        .40483E-06   -.24896E-04
  11  Prefactor     .10000E-03    4.1840        .74784E-07** at limit **
  12  norm          4.2086        2.0794       -.15730E-07   -.13703E-03
  13  Prefactor     4.8028        4.6107        .43090E-06   -.48798E-04
  14  Prefactor     .10000E-03    3.5852        .12184E-06** at limit **
  15  norm          5.0496        10.283        .51521E-06   -.10379E-04
  16  norm          15.327        12.660        .41143E-06   -.25910E-04
  17  Prefactor     6.5734        13.733        .23841E-05   -.12608E-04
  18  Prefactor     .10000E-03    16.357       -.57582E-08** at limit **
  19  Normalizat    1.1189        .21302       -.44126E-05   -.40588E-05
  20  Prefactor     1.2408        .21014       -.46688E-06   -.16091E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 18.4683
  Prefactor  = 0.0001
  Prefactor  = 4.06816
  Prefactor  = 4.20388
  Prefactor  = 1.7333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9574
  Prefactor  = 0.0001
  norm       = 4.20861
  Prefactor  = 4.80279
  Prefactor  = 0.0001
  norm       = 5.04963
  norm       = 15.3266
  Prefactor  = 6.57342
  Prefactor  = 0.0001
  Normalizat = 1.11891
  Prefactor  = 1.24078
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.508     FROM HESSE     STATUS=OK           295 CALLS     2309 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.468        62.073        .93003E-04   -1.4848    
   3  Prefactor     .10000E-03    41.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0682        8.9422        .99907E-03   -1.5305    
   5  Prefactor     4.2039        3.0604        .10358E-03   -1.5298    
   6  Prefactor     1.7333        8.7019        .15942E-02   -1.5445    
   7  Prefactor     .10000E-03    3.3175        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3211        .13176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.957        14.591        .12102E-03   -1.5046    
  11  Prefactor     .10000E-03    4.1874        .14794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2086        2.0801        .70713E-04   -1.5298    
  13  Prefactor     4.8028        4.5992        .13890E-03   -1.5270    
  14  Prefactor     .10000E-03    3.5930        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0496        10.273        .17893E-03   -1.5259    
  16  norm          15.327        12.666        .10230E-03   -1.4925    
  17  Prefactor     6.5734        13.771        .78180E-03   -1.5195    
  18  Prefactor     .10000E-03    16.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1189        .25181        .26886E-03   -.89147    
  20  Prefactor     1.2408        .24949        .26907E-03   -.85085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32921e-11
Minuit parameter uncertainties:
  1  2.06467e-05
  2  62.2915
  3  7.11645e-05
  4  8.94509
  5  3.06049
  6  7.76895
  7  8.10786e-06
  8  6.17535e-05
  9  5.07123e-06
  10  14.5954
  11  7.4392e-06
  12  2.08016
  13  4.59956
  14  1.07859e-05
  15  10.277
  16  12.6678
  17  13.7779
  18  1.56348e-05
  19  0.252077
  20  0.249724
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  8.108e-06  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.241e+00  2.497e-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.119e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/254885/likelihoodResults_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.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): 102
logL (Free Index) = 5484.50972295
delta logL = -0.00142186064841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5484.50830099
delta logL = 9.4491042546e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2408       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=   5484.508     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      252 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.492        .13255E-01** at limit **
   2  Index         2.2664        6.0523        .50000        .14700E-06
   3  Normalizat    1.1189        .15469E-01    .26886E-03    .17664E-03
   4  Prefactor     1.2408        .16267E-01    .26907E-03    .19821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26639
  Normalizat = 1.11891
  Prefactor  = 1.24078
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.508     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    284.54        .14222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2664        8.2777        .50000       -.57844    
   3  Normalizat    1.1189        .49079E-01    .53772E-04   -.89147    
   4  Prefactor     1.2408        .51610E-01    .53814E-04   -.85085    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17496e-10
Minuit parameter uncertainties:
  1  9.70568e-05
  2  993.526
  3  0.0490808
  4  0.0516122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254885': 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): 102
logL (Free Index) = 5484.5082989
delta logL = 2.1883752197e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  9.706e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.266e+00  9.935e+02  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.241e+00  5.161e-02  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.119e+00  4.908e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/254885/cmap_HighResolution_430876801_431136001_4FGL_J1051.6+2109_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-02 18:50:12.169051', job_id='254885', GAL2='1.24', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630633812.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='739' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:50:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 254885: <4FGL_J1051.6+2109_daily_bin739> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin739> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:36:22 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:36:57 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:36:57 2021
Terminated at Thu Sep  2 18:50:12 2021
Results reported at Thu Sep  2 18:50:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin739 162.913 21.1651 430876801 431136001 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 :                                   587.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            830 sec.

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

