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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin588
RA = 162.913, Dec = 21.1651
tmin = 391737601, tmax = 391996801
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='253155', job_status='RUN', time_executed='2021-09-02 18:34:36.190970', time_epoch_executed='1630632876.19' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253155

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253155/ft1_4FGL_J1051.6+2109_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253155/ft2_4FGL_J1051.6+2109_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253155/ft1_4FGL_J1051.6+2109_daily_bin588.fits outfile=/scratch/kocevski/253155/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin588.fits ra=162.913 dec=21.1651 rad=12.0 tmin=391737601.0 tmax=391996801.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.30
user 3.09
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253155/ft2_4FGL_J1051.6+2109_daily_bin588.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/253155/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/253155/ft1_filtered_4FGL_J1051.6+2109_daily_bin588.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.37
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253155/ft1_filtered_4FGL_J1051.6+2109_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/253155/ft2_4FGL_J1051.6+2109_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/253155/ltcube_391737601_391996801_4FGL_J1051.6+2109_daily_bin588.fits outfile=/scratch/kocevski/253155/expmap_391737601_391996801_4FGL_J1051.6+2109_daily_bin588.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/253155/ltcube_391737601_391996801_4FGL_J1051.6+2109_daily_bin588.fits
.....................!
real 191.22
user 185.90
sys 4.66

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/253155/ft1_filtered_4FGL_J1051.6+2109_daily_bin588.fits scfile=/scratch/kocevski/253155/ft2_4FGL_J1051.6+2109_daily_bin588.fits outfile=/scratch/kocevski/253155/cmap_391737601_391996801_4FGL_J1051.6+2109_daily_bin588.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.56
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40447E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72760E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .57586E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.994       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2339       1.0000         .10000E-03   10000.    
    12 'norm      '    .31776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2524       1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.868       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51247       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99811       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98163       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=   5629.060     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1810 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6638        .77919E-07** at limit **
   2  Prefactor     .10000E-03    25.408        .82080E-05** at limit **
   3  Prefactor     .10001E-03    165.32       -.14076E-03** at limit **
   4  Prefactor     .10017E-03    5.7143        .18471E-05** at limit **
   5  Prefactor     .53762E-01    .95826        .30804E-06   -.15330E-02
   6  Prefactor     9.5316        6.9634        .86112E-07   -.57907E-04
   7  Prefactor     3.5621        9.3021       -.21540E-05   -.51444E-03
   8  Prefactor     .10000E-03    7.2482       -.18741E-06** at limit **
   9  Prefactor     10.993        11.672        .19007E-06   -.13624E-03
  10  Prefactor     .10000E-03    2.3074        .48371E-07** at limit **
  11  Prefactor     7.2310        13.179       -.91943E-07   -.79302E-04
  12  norm          .31826        .86760       -.44121E-06   -.18431E-02
  13  Prefactor     2.9457        2.3152       -.11175E-06   -.18467E-03
  14  Prefactor     3.2484        5.5572       -.20473E-05   -.30280E-03
  15  norm          .10000E-03    13.562        .26365E-06** at limit **
  16  norm          15.866        12.360       -.21715E-07    .45362E-05
  17  Prefactor     .56375        10.260       -.11474E-05    .69350E-04
  18  Prefactor     .10000E-03    22.172       -.14180E-04** at limit **
  19  Normalizat    .99812        .17333        .96849E-06    .24628E-03
  20  Prefactor     .98156        .17704        .24201E-06    .19936E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100173
  Prefactor  = 0.0537623
  Prefactor  = 9.53157
  Prefactor  = 3.56207
  Prefactor  = 0.0001
  Prefactor  = 10.993
  Prefactor  = 0.0001
  Prefactor  = 7.23102
  norm       = 0.31826
  Prefactor  = 2.9457
  Prefactor  = 3.24842
  norm       = 0.0001
  norm       = 15.8663
  Prefactor  = 0.56375
  Prefactor  = 0.0001
  Normalizat = 0.998116
  Prefactor  = 0.981557
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.060     FROM HESSE     STATUS=OK           299 CALLS     2109 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6744        .11958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    164.10        .21259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10017E-03    27.157        .33360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .53762E-01    11.831        .13732E-02   -1.5662    
   6  Prefactor     9.5316        6.9471        .12980E-03   -1.5090    
   7  Prefactor     3.5621        9.1139        .21450E-03   -1.5330    
   8  Prefactor     .10000E-03    7.2495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.993        11.537        .12083E-03   -1.5045    
  10  Prefactor     .10000E-03    2.3085        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2310        13.089        .14913E-03   -1.5170    
  12  norm          .31826        .81366        .11003E-02   -1.5595    
  13  Prefactor     2.9457        2.3115        .97221E-04   -1.5365    
  14  Prefactor     3.2484        5.5502        .21801E-03   -1.5347    
  15  norm          .10000E-03    13.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.866        12.396        .10055E-03   -1.4911    
  17  Prefactor     .56375        56.252        .43860E-02   -1.5558    
  18  Prefactor     .10000E-03    22.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99812        .20196        .22706E-03   -.93094    
  20  Prefactor     .98156        .20757        .24779E-03   -.93347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75496e-08
Minuit parameter uncertainties:
  1  3.04139e-06
  2  3.18075e-05
  3  0.00198242
  4  0.00433368
  5  1.59388
  6  6.94769
  7  9.11741
  8  1.42413e-07
  9  11.5393
  10  4.13781e-07
  11  13.094
  12  0.81369
  13  2.31157
  14  5.55107
  15  2.45741e-06
  16  12.3976
  17  11.2726
  18  4.24859e-06
  19  0.202116
  20  0.207738
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.562e+00  9.117e+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.816e-01  2.077e-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.981e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/253155/likelihoodResults_391737601_391996801_4FGL_J1051.6+2109_daily_bin588.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) = 5629.05857194
delta logL = 0.00147622452641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5629.05838019
delta logL = 0.00166797200563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4138       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8434       1.0000          .0000       10.000    
     3 'Normalizat'    .99731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98215       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5629.058     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4138        8.4689        .10947E-02   -.15445E-03
   2  Index         2.8436        1.3246        .11741E-01    .10192E-03
   3  Normalizat    .99728        .19279        .22715E-03    .12017E-03
   4  Prefactor     .98218        .20659        .24773E-03   -.41670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4138
  Index      = 2.84363
  Normalizat = 0.997279
  Prefactor  = 0.982184
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.058     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4138        8.0510        .43789E-04   -1.5338    
   2  Index         2.8436        1.2618        .23482E-02   -.44591    
   3  Normalizat    .99728        .19306        .90859E-05   -.93122    
   4  Prefactor     .98218        .20683        .99090E-05   -.93326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76492e-10
Minuit parameter uncertainties:
  1  8.05359
  2  1.27885
  3  0.193195
  4  0.206998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253155': 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) = 5629.05838015
delta logL = 0.00166800825082

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.414e+00  8.054e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.844e+00  1.279e+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.822e-01  2.070e-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.973e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/253155/cmap_HighResolution_391737601_391996801_4FGL_J1051.6+2109_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-02 18:44:16.597921', job_id='253155', GAL2='0.98', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630633456.6', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.67e-03', ts2='0.24', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='588' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:44:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 253155: <4FGL_J1051.6+2109_daily_bin588> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin588> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 18:31:14 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:32:31 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:32:31 2021
Terminated at Thu Sep  2 18:44:17 2021
Results reported at Thu Sep  2 18:44:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin588 162.913 21.1651 391737601 391996801 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 :                                   578.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            783 sec.

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

