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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1312
RA = 162.913, Dec = 21.1651
tmin = 579398401, tmax = 579657601
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='256921', job_status='RUN', time_executed='2021-09-02 18:46:32.016844', time_epoch_executed='1630633592.02' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256921/ft1_4FGL_J1051.6+2109_daily_bin1312.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256921/ft2_4FGL_J1051.6+2109_daily_bin1312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256921/ft1_4FGL_J1051.6+2109_daily_bin1312.fits outfile=/scratch/kocevski/256921/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1312.fits ra=162.913 dec=21.1651 rad=12.0 tmin=579398401.0 tmax=579657601.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.62
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256921/ft2_4FGL_J1051.6+2109_daily_bin1312.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/256921/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1312.fits evtable="EVENTS" outfile="/scratch/kocevski/256921/ft1_filtered_4FGL_J1051.6+2109_daily_bin1312.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.55
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256921/ft1_filtered_4FGL_J1051.6+2109_daily_bin1312.fits evtable="EVENTS" scfile=/scratch/kocevski/256921/ft2_4FGL_J1051.6+2109_daily_bin1312.fits sctable="SC_DATA" expcube=/scratch/kocevski/256921/ltcube_579398401_579657601_4FGL_J1051.6+2109_daily_bin1312.fits outfile=/scratch/kocevski/256921/expmap_579398401_579657601_4FGL_J1051.6+2109_daily_bin1312.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/256921/ltcube_579398401_579657601_4FGL_J1051.6+2109_daily_bin1312.fits
.....................!
real 193.78
user 187.64
sys 5.02

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/256921/ft1_filtered_4FGL_J1051.6+2109_daily_bin1312.fits scfile=/scratch/kocevski/256921/ft2_4FGL_J1051.6+2109_daily_bin1312.fits outfile=/scratch/kocevski/256921/cmap_579398401_579657601_4FGL_J1051.6+2109_daily_bin1312.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.57
user 0.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5788       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8287       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18510E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.225       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6653       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4057       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1519       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87145E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.307       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99186       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93225       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=   5592.222     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1751 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.850        9.3848       -.18160E-07   -.13173E-04
   2  Prefactor     6.5794        19.473        .74919E-06   -.25917E-04
   3  Prefactor     .10000E-03    12.493       -.57320E-06** at limit **
   4  Prefactor     4.5265        5.0684        .31241E-05   -.10331E-03
   5  Prefactor     1.4198        2.4466       -.11404E-05   -.10964E-02
   6  Prefactor     22.578        10.474       -.39689E-07   -.45907E-04
   7  Prefactor     5.8224        8.0202        .87933E-06   -.25660E-03
   8  Prefactor     23.909        22.225        .16072E-05    .73255E-06
   9  Prefactor     .10000E-03    17.264        .27742E-05** at limit **
  10  Prefactor     .10000E-03    5.1636       -.21188E-06** at limit **
  11  Prefactor     21.228        14.943        .24688E-05   -.49146E-04
  12  norm          3.6655        1.8305       -.79320E-08   -.20658E-03
  13  Prefactor     .10000E-03    .46454        .49780E-07** at limit **
  14  Prefactor     7.3945        8.5318       -.65547E-06   -.98960E-04
  15  norm          9.1518        8.3924        .49163E-07   -.36882E-05
  16  norm          .10000E-03    2.5102       -.38994E-06** at limit **
  17  Prefactor     .10002E-03    7.1581       -.13374E-06** at limit **
  18  Prefactor     25.303        29.164       -.52359E-05   -.67920E-06
  19  Normalizat    .99178        .18661       -.46789E-06    .21110E-04
  20  Prefactor     .93226        .19044       -.26308E-06   -.81396E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8499
  Prefactor  = 6.57943
  Prefactor  = 0.0001
  Prefactor  = 4.52655
  Prefactor  = 1.4198
  Prefactor  = 22.5775
  Prefactor  = 5.8224
  Prefactor  = 23.9087
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 21.2282
  norm       = 3.66549
  Prefactor  = 0.0001
  Prefactor  = 7.39448
  norm       = 9.15177
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 25.303
  Normalizat = 0.991776
  Prefactor  = 0.932258
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.222     FROM HESSE     STATUS=OK           305 CALLS     2056 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.850        9.3855        .85690E-04   -1.4773    
   2  Prefactor     6.5794        19.451        .15646E-03   -1.5195    
   3  Prefactor     .10000E-03    12.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5265        5.0401        .16890E-03   -1.5282    
   5  Prefactor     1.4198        2.4930        .14586E-03   -1.5470    
   6  Prefactor     22.578        10.494        .84302E-04   -1.4757    
   7  Prefactor     5.8224        7.9465        .16635E-03   -1.5225    
   8  Prefactor     23.909        22.206        .81924E-04   -1.4730    
   9  Prefactor     .10000E-03    17.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.249        .32960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.228        14.915        .86940E-04   -1.4786    
  12  norm          3.6655        1.8271        .67642E-04   -1.5325    
  13  Prefactor     .10000E-03    .46537        .49768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3945        8.3723        .14738E-03   -1.5164    
  15  norm          9.1518        8.3908        .13248E-03   -1.5103    
  16  norm          .10000E-03    2.5152        .11570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    31.202        .37241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.303        29.132        .79630E-04   -1.4701    
  19  Normalizat    .99178        .21657        .23794E-03   -.93306    
  20  Prefactor     .93226        .22204        .26398E-03   -.95023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28195e-09
Minuit parameter uncertainties:
  1  9.38616
  2  19.47
  3  6.92513e-07
  4  5.04059
  5  2.49319
  6  10.4952
  7  7.94795
  8  22.2133
  9  0.000201309
  10  0.00070706
  11  14.9175
  12  1.82711
  13  1.15905e-07
  14  8.3736
  15  8.39186
  16  8.82116e-07
  17  0.00140284
  18  29.1484
  19  0.216765
  20  0.22226
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.822e+00  7.948e+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.323e-01  2.223e-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.918e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256921/likelihoodResults_579398401_579657601_4FGL_J1051.6+2109_daily_bin1312.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) = 5592.22178969
delta logL = 0.000506612113895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5592.22164193
delta logL = 0.000654371551718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7323       1.0000          .0000       10.000    
     3 'Normalizat'    .99270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93137       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=   5592.222     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9606        329.78        .41132E-02    .16170E-03
   2  Index         2.7323        5.4873        .22796        .38901E-04
   3  Normalizat    .99258        .64143E-01    .46075E-01    .10679E-04
   4  Prefactor     .93157        .71888E-01    .45404E-01    .11764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96057
  Index      = 2.73235
  Normalizat = 0.99258
  Prefactor  = 0.931568
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.222     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9606        8.9789        .16453E-03   -1.5220    
   2  Index         2.7323        1.0964        .12324E-01   -.47072    
   3  Normalizat    .99258        .20714        .23786E-03   -.93279    
   4  Prefactor     .93157        .22184        .26406E-03   -.95047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35877e-12
Minuit parameter uncertainties:
  1  8.98088
  2  1.10778
  3  0.207308
  4  0.222058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256921': 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) = 5592.22164125
delta logL = 0.00065504997383

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.961e+00  8.981e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.732e+00  1.108e+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.316e-01  2.221e-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.926e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
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/256921/cmap_HighResolution_579398401_579657601_4FGL_J1051.6+2109_daily_bin1312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-02 18:56:26.617709', job_id='256921', GAL2='0.93', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630634186.62', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.55e-04', ts2='0.77', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1312' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:56:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 256921: <4FGL_J1051.6+2109_daily_bin1312> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1312 162.913 21.1651 579398401 579657601 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            856 sec.

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

