/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 139 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1051.6+2109_daily_bin215
RA = 162.913, Dec = 21.1651
tmin = 295056001, tmax = 295315201
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='251632', job_status='RUN', time_executed='2021-09-02 18:29:44.055210', time_epoch_executed='1630632584.06' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251632

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251632/ft1_4FGL_J1051.6+2109_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251632/ft2_4FGL_J1051.6+2109_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251632/ft1_4FGL_J1051.6+2109_daily_bin215.fits outfile=/scratch/kocevski/251632/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin215.fits ra=162.913 dec=21.1651 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.65
user 2.37
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251632/ft1_filtered_4FGL_J1051.6+2109_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/251632/ft2_4FGL_J1051.6+2109_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/251632/ltcube_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.fits outfile=/scratch/kocevski/251632/expmap_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.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/251632/ltcube_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.fits
.....................!
real 190.09
user 185.47
sys 4.05

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/251632/ft1_filtered_4FGL_J1051.6+2109_daily_bin215.fits scfile=/scratch/kocevski/251632/ft2_4FGL_J1051.6+2109_daily_bin215.fits outfile=/scratch/kocevski/251632/cmap_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251632/ft1_filtered_4FGL_J1051.6+2109_daily_bin215.fits scfile=/scratch/kocevski/251632/ft2_4FGL_J1051.6+2109_daily_bin215.fits outfile=/scratch/kocevski/251632/cmap_HighResolution_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251632/ft1_filtered_4FGL_J1051.6+2109_daily_bin215.fits', '/scratch/kocevski/251632/ft2_4FGL_J1051.6+2109_daily_bin215.fits', expMap='/scratch/kocevski/251632/expmap_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.fits', expCube='/scratch/kocevski/251632/ltcube_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251632/Model_4FGL_J1051.6+2109_daily_bin215.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/251632/ft1_filtered_4FGL_J1051.6+2109_daily_bin215.fits
Spacecraft file(s): /scratch/kocevski/251632/ft2_4FGL_J1051.6+2109_daily_bin215.fits
Exposure map: /scratch/kocevski/251632/expmap_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.fits
Exposure cube: /scratch/kocevski/251632/ltcube_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251632/Model_4FGL_J1051.6+2109_daily_bin215.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5523.72649004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15477E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.486       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.082       1.0000         .10000E-03   10000.    
    12 'norm      '    .70323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6225       1.0000         .10000E-03   10000.    
    15 'norm      '    16.022       1.0000         .10000E-03   10000.    
    16 'norm      '    .81143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4448       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6390       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99083       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=   5523.587     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2101 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.197        10.889       -.33281E-06    .13689E-04
   2  Prefactor     .10000E-03    52.639       -.98030E-05** at limit **
   3  Prefactor     .10000E-03    28.551       -.86766E-05** at limit **
   4  Prefactor     .10000E-03    3.8393       -.23543E-07** at limit **
   5  Prefactor     .10000E-03    .78503        .48777E-07** at limit **
   6  Prefactor     6.2042        6.8032        .56935E-05    .95599E-04
   7  Prefactor     16.478        12.090       -.14499E-05   -.64039E-04
   8  Prefactor     .10000E-03    34.470        .16549E-04** at limit **
   9  Prefactor     .10000E-03    3.5616       -.14840E-06** at limit **
  10  Prefactor     4.0168        8.6957       -.35429E-05   -.75906E-04
  11  Prefactor     12.090        20.312        .43896E-05    .19936E-04
  12  norm          .70321        1.4686       -.69847E-06   -.46529E-03
  13  Prefactor     .10000E-03    1.2373        .25304E-06** at limit **
  14  Prefactor     2.6221        6.5841       -.12333E-05   -.92799E-05
  15  norm          16.023        14.758        .32480E-05    .22199E-03
  16  norm          .81059        1.3698        .42869E-06   -.13023E-02
  17  Prefactor     7.4461        12.854        .27098E-06    .54337E-04
  18  Prefactor     3.6165        199.45       -.91043E-04    .63283E-06
  19  Normalizat    1.0295        .18840        .68002E-06    .99038E-04
  20  Prefactor     .99088        .18901        .14427E-06    .10075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2042
  Prefactor  = 16.4779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.01678
  Prefactor  = 12.0903
  norm       = 0.703214
  Prefactor  = 0.0001
  Prefactor  = 2.62211
  norm       = 16.0234
  norm       = 0.810591
  Prefactor  = 7.44607
  Prefactor  = 3.6165
  Normalizat = 1.02946
  Prefactor  = 0.990881
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.587     FROM HESSE     STATUS=OK           303 CALLS     2404 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.197        10.902        .78267E-04   -1.4684    
   2  Prefactor     .10000E-03    52.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.595        .27976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2417        .12724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2042        6.7969        .16118E-03   -1.5210    
   7  Prefactor     16.478        12.039        .49321E-03   -1.4896    
   8  Prefactor     .10000E-03    35.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5634        .13693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0168        8.5836        .20121E-03   -1.5307    
  11  Prefactor     12.090        20.239        .11525E-03   -1.5012    
  12  norm          .70321        1.4428        .12025E-03   -1.5540    
  13  Prefactor     .10000E-03    2.3027        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6221        6.5285        .25184E-03   -1.5384    
  15  norm          16.023        14.701        .10006E-03   -1.4907    
  16  norm          .81059        14.019        .24965E-02   -1.5528    
  17  Prefactor     7.4461        12.786        .14699E-03   -1.5162    
  18  Prefactor     3.6165        199.99        .21177E-03   -1.5328    
  19  Normalizat    1.0295        .21783        .23584E-03   -.92050    
  20  Prefactor     .99088        .21894        .25739E-03   -.93034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32897e-09
Minuit parameter uncertainties:
  1  10.9027
  2  3.5175e-05
  3  9.90264e-06
  4  7.16984e-05
  5  4.80009e-06
  6  6.79774
  7  12.0412
  8  0.000229839
  9  3.78431e-06
  10  8.58623
  11  20.2503
  12  1.44283
  13  4.42602e-05
  14  6.53022
  15  14.7042
  16  6.74346
  17  12.7903
  18  53.9779
  19  0.218018
  20  0.219139
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.648e+01  1.204e+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:  9.909e-01  2.191e-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.029e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 8.35e-08 +/- 6.09e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.39e-05

TS (Fixed Index): 3.29
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251632/likelihoodResults_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.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) = 5523.56703893
delta logL = 0.0195010446951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5523.55688602
delta logL = 0.0296539625333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.230       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6143       1.0000          .0000       10.000    
     3 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5523.557     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.230        13.453        .93804E-04    .52357E-03
   2  Index         2.6142        .63301        .73106E-02    .12157E-03
   3  Normalizat    1.0381        .20885        .23496E-03   -.11051E-03
   4  Prefactor     .98308        .22037        .25824E-03   -.11917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.23
  Index      = 2.61423
  Normalizat = 1.03812
  Prefactor  = 0.983076
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.557     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.230        13.160        .37522E-05   -1.4854    
   2  Index         2.6142        .61871        .29242E-03   -.49741    
   3  Normalizat    1.0381        .20899        .93985E-05   -.91764    
   4  Prefactor     .98308        .22044        .10330E-04   -.93296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34087e-10
Minuit parameter uncertainties:
  1  13.1622
  2  0.620774
  3  0.209159
  4  0.220644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251632': 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) = 5523.556886
delta logL = 0.0296539820683

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.823e+01  1.316e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.614e+00  6.208e-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:  9.831e-01  2.206e-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.038e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.61 +/- 0.62
Photon Flux (Free Index): 7.85e-08 +/- 5.56e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.42e-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/251632/cmap_HighResolution_295056001_295315201_4FGL_J1051.6+2109_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='8.35e-08', energy_flux2='2.03e-05', photon_flux_error='6.09e-08', dlogl='2.97e-02', energy_flux='1.91e-05', photon_flux2='7.85e-08', job_status='DONE', time_completed='2021-09-02 18:40:21.382898', photon_index_error2='0.62', photon_index2='2.61', ts='3.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.42e-05', EG='1.03', time_epoch_completed='1630633221.38', return_code='0', job_id='251632', GAL2='0.98', EG2='1.04', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.56e-08', ts2='3.34', photon_index='2.77' WHERE bin_id='215' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:40:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 251632: <4FGL_J1051.6+2109_daily_bin215> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin215> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 18:26:21 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:27:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 18:27:13 2021
Terminated at Thu Sep  2 18:40:22 2021
Results reported at Thu Sep  2 18:40:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin215 162.913 21.1651 295056001 295315201 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 :                                   587.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            841 sec.

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

