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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin705
RA = 162.913, Dec = 21.1651
tmin = 422064001, tmax = 422323201
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='254837', job_status='RUN', time_executed='2021-09-02 18:39:18.352994', time_epoch_executed='1630633158.35' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254837

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254837/ft1_4FGL_J1051.6+2109_daily_bin705.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254837/ft2_4FGL_J1051.6+2109_daily_bin705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254837/ft1_4FGL_J1051.6+2109_daily_bin705.fits outfile=/scratch/kocevski/254837/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin705.fits ra=162.913 dec=21.1651 rad=12.0 tmin=422064001.0 tmax=422323201.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.65
user 3.41
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254837/ft1_filtered_4FGL_J1051.6+2109_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/254837/ft2_4FGL_J1051.6+2109_daily_bin705.fits sctable="SC_DATA" expcube=/scratch/kocevski/254837/ltcube_422064001_422323201_4FGL_J1051.6+2109_daily_bin705.fits outfile=/scratch/kocevski/254837/expmap_422064001_422323201_4FGL_J1051.6+2109_daily_bin705.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/254837/ltcube_422064001_422323201_4FGL_J1051.6+2109_daily_bin705.fits
.....................!
real 192.96
user 187.36
sys 5.12

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254837/ft1_filtered_4FGL_J1051.6+2109_daily_bin705.fits scfile=/scratch/kocevski/254837/ft2_4FGL_J1051.6+2109_daily_bin705.fits outfile=/scratch/kocevski/254837/cmap_HighResolution_422064001_422323201_4FGL_J1051.6+2109_daily_bin705.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/254837/ft1_filtered_4FGL_J1051.6+2109_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/254837/ft2_4FGL_J1051.6+2109_daily_bin705.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/254837/Model_4FGL_J1051.6+2109_daily_bin705.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/254837/ft1_filtered_4FGL_J1051.6+2109_daily_bin705.fits.....................!
real 54.15
user 52.67
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .48391E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5462       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.402       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.574       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13329E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9222       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12636E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.8766       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.583       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2161       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65228       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=   5546.056     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2067 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8153        6.2889        .39259E-05   -.65113E-04
   2  Prefactor     .10000E-03    11.872       -.33814E-07** at limit **
   3  Prefactor     .10000E-03    289.69       -.23422E-04** at limit **
   4  Prefactor     .10000E-03    2.2099        .50826E-07** at limit **
   5  Prefactor     1.5465        2.8333       -.24349E-06   -.79449E-03
   6  Prefactor     .10000E-03    4.3364        .36655E-07** at limit **
   7  Prefactor     29.404        14.840        .16496E-05    .12675E-05
   8  Prefactor     33.982        29.118        .46330E-05    .15270E-04
   9  Prefactor     19.581        18.608       -.28441E-05   -.27440E-05
  10  Prefactor     .10000E-03    22.598        .24942E-06** at limit **
  11  Prefactor     6.9229        14.467        .10304E-05   -.34491E-04
  12  norm          1.9265        1.3991       -.15790E-07   -.48932E-03
  13  Prefactor     .10000E-03    1.9663       -.42242E-06** at limit **
  14  Prefactor     .10000E-03    3.3586        .10871E-06** at limit **
  15  norm          .10000E-03    5.8684       -.13475E-06** at limit **
  16  norm          9.8854        12.552        .10773E-04    .88622E-05
  17  Prefactor     12.581        18.503       -.12291E-04   -.60733E-04
  18  Prefactor     63.609        59.366        .17086E-04   -.60125E-06
  19  Normalizat    1.2161        .18470       -.18342E-05    .26827E-03
  20  Prefactor     .65210        .16970        .46424E-06    .27507E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.81528
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.54647
  Prefactor  = 0.0001
  Prefactor  = 29.4035
  Prefactor  = 33.9816
  Prefactor  = 19.5806
  Prefactor  = 0.0001
  Prefactor  = 6.9229
  norm       = 1.92653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.88536
  Prefactor  = 12.5814
  Prefactor  = 63.6086
  Normalizat = 1.21606
  Prefactor  = 0.652102
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.056     FROM HESSE     STATUS=OK           291 CALLS     2358 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8153        6.2708        .15367E-03   -1.5186    
   2  Prefactor     .10000E-03    11.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    295.57        .19247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2152        .10808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5465        2.8077        .15606E-03   -1.5459    
   6  Prefactor     .10000E-03    4.4542        .30272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.404        14.865        .73888E-04   -1.4623    
   8  Prefactor     33.982        29.112        .68731E-04   -1.4541    
   9  Prefactor     19.581        18.561        .90530E-04   -1.4823    
  10  Prefactor     .10000E-03    22.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9229        14.421        .15249E-03   -1.5182    
  12  norm          1.9265        1.3895        .71534E-04   -1.5430    
  13  Prefactor     .10000E-03    9.0439        .19600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3651        .13325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8890        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.8854        12.527        .12751E-03   -1.5079    
  17  Prefactor     12.581        18.715        .11301E-03   -1.4998    
  18  Prefactor     63.609        59.262        .50326E-04   -1.4111    
  19  Normalizat    1.2161        .21444        .22326E-03   -.86108    
  20  Prefactor     .65210        .19740        .29258E-03   -1.0544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13138e-10
Minuit parameter uncertainties:
  1  6.27139
  2  1.57767e-06
  3  0.00110195
  4  5.30213e-07
  5  2.80792
  6  7.80421e-06
  7  14.8671
  8  29.1245
  9  18.567
  10  1.95435e-05
  11  14.4285
  12  1.38954
  13  9.68758e-05
  14  4.54597e-05
  15  5.7141e-05
  16  12.5306
  17  18.7235
  18  59.3172
  19  0.214596
  20  0.197609
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.940e+01  1.487e+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:  6.521e-01  1.976e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.216e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.11
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 7.52e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.72e-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) = 5545.54288074
delta logL = 0.513388169536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5545.48186125
delta logL = 0.574407653251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.492       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3253       1.0000          .0000       10.000    
     3 'Normalizat'    1.2551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62384       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=   5545.482     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.493        14.151        .20557E-05   -.11839E-02
   2  Index         2.3253        .31918       -.45522E-05   -.53573E-03
   3  Normalizat    1.2551        .17304        .71965E-07    .10128E-03
   4  Prefactor     .62386        .16913       -.41828E-06    .38924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.493
  Index      = 2.32526
  Normalizat = 1.25512
  Prefactor  = 0.623864
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.482     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.493        15.151        .68234E-04   -1.4533    
   2  Index         2.3253        .38912        .59773E-02   -.56445    
   3  Normalizat    1.2551        .20259        .22041E-03   -.84916    
   4  Prefactor     .62386        .19635        .29834E-03   -1.0659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49525e-09
Minuit parameter uncertainties:
  1  15.1526
  2  0.389674
  3  0.202717
  4  0.196567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254837': 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) = 5545.48186124
delta logL = 0.574407664605

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.449e+01  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.325e+00  3.897e-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:  6.239e-01  1.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.255e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.33 +/- 0.39
Photon Flux (Free Index): 1.13e-07 +/- 6.25e-08
Energy Flux (Free Index): 4.12e-05 +/- 2.09e-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/254837/cmap_HighResolution_422064001_422323201_4FGL_J1051.6+2109_daily_bin705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='4.12e-05', photon_flux_error='7.52e-08', dlogl='5.74e-01', energy_flux='3.40e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-02 18:48:21.498963', photon_index_error2='0.39', photon_index2='2.33', ts='9.11', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.22', time_epoch_completed='1630633701.5', return_code='0', job_id='254837', GAL2='0.62', EG2='1.26', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.25e-08', ts2='10.45', photon_index='2.77' WHERE bin_id='705' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:48:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 254837: <4FGL_J1051.6+2109_daily_bin705> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin705> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:36:19 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:36:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:36:44 2021
Terminated at Thu Sep  2 18:48:21 2021
Results reported at Thu Sep  2 18:48:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin705 162.913 21.1651 422064001 422323201 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 :                                   541.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            722 sec.

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

