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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1126
RA = 162.913, Dec = 21.1651
tmin = 531187201, tmax = 531446401
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='256682', job_status='RUN', time_executed='2021-09-02 18:45:03.787065', time_epoch_executed='1630633503.79' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256682/ft1_4FGL_J1051.6+2109_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256682/ft2_4FGL_J1051.6+2109_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256682/ft1_4FGL_J1051.6+2109_daily_bin1126.fits outfile=/scratch/kocevski/256682/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1126.fits ra=162.913 dec=21.1651 rad=12.0 tmin=531187201.0 tmax=531446401.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.03
user 3.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256682/ft2_4FGL_J1051.6+2109_daily_bin1126.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/256682/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/256682/ft1_filtered_4FGL_J1051.6+2109_daily_bin1126.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.53
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256682/ft1_filtered_4FGL_J1051.6+2109_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/256682/ft2_4FGL_J1051.6+2109_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/256682/ltcube_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.fits outfile=/scratch/kocevski/256682/expmap_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.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/256682/ltcube_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.fits
.....................!
real 192.22
user 186.49
sys 5.07

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/256682/ft1_filtered_4FGL_J1051.6+2109_daily_bin1126.fits scfile=/scratch/kocevski/256682/ft2_4FGL_J1051.6+2109_daily_bin1126.fits outfile=/scratch/kocevski/256682/cmap_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256682/ft1_filtered_4FGL_J1051.6+2109_daily_bin1126.fits scfile=/scratch/kocevski/256682/ft2_4FGL_J1051.6+2109_daily_bin1126.fits outfile=/scratch/kocevski/256682/cmap_HighResolution_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    90.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6777       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7358       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68201       1.0000         .10000E-03   10000.    
    12 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18411E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6261       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5790       1.0000         .10000E-03   10000.    
    16 'norm      '    13.587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1845       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85254       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1569       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=   5982.494     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2085 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9176       -.14934E-07** at limit **
   2  Prefactor     90.401        51.311       -.26589E-04   -.75589E-05
   3  Prefactor     .10000E-03    61.204       -.39097E-05** at limit **
   4  Prefactor     10.289        7.4588        .23875E-05   -.94114E-04
   5  Prefactor     .10000E-03    .67653       -.28927E-07** at limit **
   6  Prefactor     1.6772        3.3849       -.52224E-06   -.52850E-03
   7  Prefactor     .10000E-03    3.6544        .12305E-06** at limit **
   8  Prefactor     .10000E-03    9.1971       -.21780E-07** at limit **
   9  Prefactor     8.7389        8.8231       -.62277E-05   -.19810E-03
  10  Prefactor     .10000E-03    18.798       -.15635E-05** at limit **
  11  Prefactor     .66833        8.1144        .17360E-05   -.60151E-03
  12  norm          .10000E-03    .63465       -.23882E-06** at limit **
  13  Prefactor     .12332E-01    1.1711        .55477E-07   -.80907E-03
  14  Prefactor     6.6256        5.6983       -.47406E-06   -.28612E-04
  15  norm          2.5749        9.5222        .37463E-05   -.27430E-03
  16  norm          13.587        11.932        .15131E-06   -.37634E-04
  17  Prefactor     16.143        10.718       -.20449E-05   -.33884E-04
  18  Prefactor     2.0638        188.94        .19311E-04   -.31191E-04
  19  Normalizat    .85272        .17673        .19941E-05   -.74559E-04
  20  Prefactor     1.1570        .17927        .14658E-05   -.52571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 90.4013
  Prefactor  = 0.0001
  Prefactor  = 10.289
  Prefactor  = 0.0001
  Prefactor  = 1.67723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.73889
  Prefactor  = 0.0001
  Prefactor  = 0.668332
  norm       = 0.0001
  Prefactor  = 0.0123319
  Prefactor  = 6.62557
  norm       = 2.57487
  norm       = 13.5873
  Prefactor  = 16.1431
  Prefactor  = 2.06379
  Normalizat = 0.852717
  Prefactor  = 1.15697
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.494     FROM HESSE     STATUS=OK           309 CALLS     2394 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9303        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     90.401        51.499        .21123E-03   -1.3803    
   3  Prefactor     .10000E-03    61.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.289        7.4684        .12491E-03   -1.5066    
   5  Prefactor     .10000E-03    .68132        .62055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6772        3.3523        .19604E-03   -1.5449    
   7  Prefactor     .10000E-03    3.6809        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.7389        8.7708        .13562E-03   -1.5117    
  10  Prefactor     .10000E-03    19.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .66833        24.350        .41324E-02   -1.5544    
  12  norm          .10000E-03    2.1953        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12332E-01    2.5467        .29294E-01   -1.5686    
  14  Prefactor     6.6256        5.6962        .15589E-03   -1.5193    
  15  norm          2.5749        9.4212        .25414E-03   -1.5387    
  16  norm          13.587        11.945        .10866E-03   -1.4971    
  17  Prefactor     16.143        10.731        .99681E-04   -1.4904    
  18  Prefactor     2.0638        187.26        .27851E-03   -1.5421    
  19  Normalizat    .85272        .20886        .25544E-03   -.98142    
  20  Prefactor     1.1570        .21266        .23827E-03   -.87666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33434e-09
Minuit parameter uncertainties:
  1  4.15833e-07
  2  51.5241
  3  0.000111858
  4  7.46907
  5  3.35272e-06
  6  3.35264
  7  2.07647e-05
  8  7.32287e-06
  9  8.77207
  10  0.000102996
  11  8.07113
  12  3.39709e-05
  13  0.353009
  14  5.69668
  15  9.42663
  16  11.9472
  17  10.7322
  18  39.4445
  19  0.209053
  20  0.212815
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  2.076e-05  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.157e+00  2.128e-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.527e-01  2.091e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256682/likelihoodResults_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.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) = 5982.4953411
delta logL = -0.00129294906037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5982.49404802
delta logL = 1.28750798467e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7544       1.0000          .0000       10.000    
     3 'Normalizat'    .85273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1570       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=   5982.494     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.273        .14593E-01** at limit **
   2  Index         2.2252        7.4776        .50000        .21091E-06
   3  Normalizat    .85272        .10801E-01    .25544E-03    .56981E-03
   4  Prefactor     1.1570        .11607E-01    .23827E-03    .71073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22524
  Normalizat = 0.852717
  Prefactor  = 1.15697
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.494     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    275.48        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2252        5.6035        .50000       -.58830    
   3  Normalizat    .85272        .35175E-01    .51087E-04   -.98142    
   4  Prefactor     1.1570        .37802E-01    .47654E-04   -.87666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41865e-09
Minuit parameter uncertainties:
  1  5.69284e-05
  2  835.179
  3  0.0351759
  4  0.0378025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256682': 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) = 5982.49404553
delta logL = 2.62541470875e-06

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.000e-04  5.693e-05  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.225e+00  8.352e+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.157e+00  3.780e-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:  8.527e-01  3.518e-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/256682/cmap_HighResolution_531187201_531446401_4FGL_J1051.6+2109_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-02 18:55:27.545407', job_id='256682', GAL2='1.16', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630634127.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1126' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:55:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 256682: <4FGL_J1051.6+2109_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1126> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:41:49 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:44:13 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:44:13 2021
Terminated at Thu Sep  2 18:55:28 2021
Results reported at Thu Sep  2 18:55:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1126 162.913 21.1651 531187201 531446401 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 :                                   616.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            819 sec.

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

