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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1331
RA = 162.913, Dec = 21.1651
tmin = 584323201, tmax = 584582401
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='256950', job_status='RUN', time_executed='2021-09-02 18:46:54.910634', time_epoch_executed='1630633614.91' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256950/ft1_4FGL_J1051.6+2109_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256950/ft2_4FGL_J1051.6+2109_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256950/ft1_4FGL_J1051.6+2109_daily_bin1331.fits outfile=/scratch/kocevski/256950/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1331.fits ra=162.913 dec=21.1651 rad=12.0 tmin=584323201.0 tmax=584582401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256950/ft1_filtered_4FGL_J1051.6+2109_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/256950/ft2_4FGL_J1051.6+2109_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/256950/ltcube_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.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/256950/ft2_4FGL_J1051.6+2109_daily_bin1331.fits
.....................!
real 15.96
user 15.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256950/ft1_filtered_4FGL_J1051.6+2109_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/256950/ft2_4FGL_J1051.6+2109_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/256950/ltcube_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.fits outfile=/scratch/kocevski/256950/expmap_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.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/256950/ltcube_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.fits
.....................!
real 191.85
user 186.80
sys 4.39

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/256950/ft1_filtered_4FGL_J1051.6+2109_daily_bin1331.fits scfile=/scratch/kocevski/256950/ft2_4FGL_J1051.6+2109_daily_bin1331.fits outfile=/scratch/kocevski/256950/cmap_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256950/ft1_filtered_4FGL_J1051.6+2109_daily_bin1331.fits scfile=/scratch/kocevski/256950/ft2_4FGL_J1051.6+2109_daily_bin1331.fits outfile=/scratch/kocevski/256950/cmap_HighResolution_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15504E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89550E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10471E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.0747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73212E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.600       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87282       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1110       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=   3925.883     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2045 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4897        11.449        .45288E-06    .12822E-04
   2  Prefactor     .10000E-03    26.126       -.15359E-05** at limit **
   3  Prefactor     .10000E-03    58.033       -.12576E-04** at limit **
   4  Prefactor     3.6119        8.5868       -.74067E-05   -.12069E-03
   5  Prefactor     .10000E-03    2.0357        .21651E-06** at limit **
   6  Prefactor     14.516        9.9764       -.37976E-06   -.94755E-05
   7  Prefactor     22.927        12.184       -.31127E-06    .65344E-05
   8  Prefactor     .10000E-03    41.089        .42428E-05** at limit **
   9  Prefactor     .10000E-03    4.3104        .57552E-07** at limit **
  10  Prefactor     1.2912        4.1936        .18094E-05   -.10205E-02
  11  Prefactor     .10000E-03    5.2070       -.16446E-06** at limit **
  12  norm          .10000E-03    .58504       -.32941E-07** at limit **
  13  Prefactor     .10000E-03    1.1333       -.63483E-07** at limit **
  14  Prefactor     .10018E-03    9.4933        .20978E-05** at limit **
  15  norm          .10000E-03    6.6594       -.11259E-06** at limit **
  16  norm          9.0752        10.661        .96834E-06    .27631E-04
  17  Prefactor     .10001E-03    12.887       -.28263E-05** at limit **
  18  Prefactor     27.615        50.383        .19137E-04    .56757E-04
  19  Normalizat    .87265        .21148        .11561E-06    .99101E-04
  20  Prefactor     1.1110        .21391       -.13208E-06    .82510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.48966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61187
  Prefactor  = 0.0001
  Prefactor  = 14.5164
  Prefactor  = 22.9275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29116
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100182
  norm       = 0.0001
  norm       = 9.07525
  Prefactor  = 0.000100015
  Prefactor  = 27.615
  Normalizat = 0.872654
  Prefactor  = 1.11097
 **********
 **   18 **HESSE 
 **********

 FCN=   3925.883     FROM HESSE     STATUS=OK           289 CALLS     2334 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4897        11.443        .13010E-03   -1.5092    
   2  Prefactor     .10000E-03    26.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6119        8.6023        .21263E-03   -1.5328    
   5  Prefactor     .10000E-03    2.0819        .87220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.516        10.000        .10513E-03   -1.4946    
   7  Prefactor     22.927        12.208        .83658E-04   -1.4750    
   8  Prefactor     .10000E-03    41.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3137        .12703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2912        27.079        .19506E-02   -1.5481    
  11  Prefactor     .10000E-03    5.2091        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .60326        .93516E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1414        .65126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10018E-03    49.846        .35217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6872        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.0752        10.671        .13305E-03   -1.5105    
  17  Prefactor     .10001E-03    44.929        .40872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.615        50.516        .76257E-04   -1.4656    
  19  Normalizat    .87265        .24560        .24710E-03   -.97428    
  20  Prefactor     1.1110        .25051        .24039E-03   -.89117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53484e-08
Minuit parameter uncertainties:
  1  11.4452
  2  6.8669e-06
  3  0.000167258
  4  8.60522
  5  3.87365e-05
  6  10.0012
  7  12.2089
  8  4.47121e-05
  9  1.07526e-05
  10  11.8316
  11  4.53612e-06
  12  1.60371e-06
  13  4.61391e-07
  14  0.00602881
  15  5.93524e-05
  16  10.6728
  17  0.0016274
  18  50.594
  19  0.24591
  20  0.250779
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.293e+01  1.221e+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.111e+00  2.508e-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.727e-01  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.41
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 6.18e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.41e-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) = 3925.85167832
delta logL = 0.0315972493377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3925.84959756
delta logL = 0.0336780130392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.724       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9430       1.0000          .0000       10.000    
     3 'Normalizat'    .85790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1227       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=   3925.850     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      260 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.733        209.79        .21996E-02    .36090E-04
   2  Index         2.9436        6.4648        .14409        .59982E-04
   3  Normalizat    .85808        .12753        .44361E-01    .15153E-04
   4  Prefactor     1.1224        .11339        .54134E-01    .46501E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7329
  Index      = 2.94359
  Normalizat = 0.858079
  Prefactor  = 1.12244
 **********
 **   18 **HESSE 
 **********

 FCN=   3925.850     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.733        14.890        .87983E-04   -1.4797    
   2  Index         2.9436        .70883        .56976E-02   -.42386    
   3  Normalizat    .85808        .24037        .24891E-03   -.97949    
   4  Prefactor     1.1224        .25418        .23935E-03   -.88753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6813e-12
Minuit parameter uncertainties:
  1  14.8924
  2  0.711722
  3  0.240666
  4  0.254453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256950': 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) = 3925.8495949
delta logL = 0.0336806662244

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.073e+01  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.944e+00  7.117e-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.122e+00  2.545e-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.581e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.51
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.94 +/- 0.71
Photon Flux (Free Index): 1.27e-07 +/- 7.41e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.36e-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/256950/cmap_HighResolution_584323201_584582401_4FGL_J1051.6+2109_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.60e-05', photon_flux_error='6.18e-08', dlogl='3.37e-02', energy_flux='2.65e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-02 18:54:57.792691', photon_index_error2='0.71', photon_index2='2.94', ts='7.41', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.87', time_epoch_completed='1630634097.79', return_code='0', job_id='256950', GAL2='1.12', EG2='0.86', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='7.41e-08', ts2='7.51', photon_index='2.77' WHERE bin_id='1331' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 256950: <4FGL_J1051.6+2109_daily_bin1331> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1331> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 18:42:13 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:46:20 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:46:20 2021
Terminated at Thu Sep  2 18:54:58 2021
Results reported at Thu Sep  2 18:54:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1331 162.913 21.1651 584323201 584582401 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 :                                   478.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            765 sec.

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

