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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1323
RA = 162.913, Dec = 21.1651
tmin = 582249601, tmax = 582508801
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='256938', job_status='RUN', time_executed='2021-09-02 18:49:06.413780', time_epoch_executed='1630633746.41' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256938/ft1_4FGL_J1051.6+2109_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256938/ft2_4FGL_J1051.6+2109_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256938/ft1_4FGL_J1051.6+2109_daily_bin1323.fits outfile=/scratch/kocevski/256938/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1323.fits ra=162.913 dec=21.1651 rad=12.0 tmin=582249601.0 tmax=582508801.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 5.39
user 5.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256938/ft1_filtered_4FGL_J1051.6+2109_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/256938/ft2_4FGL_J1051.6+2109_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/256938/ltcube_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.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/256938/ft2_4FGL_J1051.6+2109_daily_bin1323.fits
.....................!
real 14.98
user 14.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256938/ft1_filtered_4FGL_J1051.6+2109_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/256938/ft2_4FGL_J1051.6+2109_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/256938/ltcube_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.fits outfile=/scratch/kocevski/256938/expmap_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.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/256938/ltcube_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.fits
.....................!
real 190.64
user 185.88
sys 4.34

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256938/ft1_filtered_4FGL_J1051.6+2109_daily_bin1323.fits scfile=/scratch/kocevski/256938/ft2_4FGL_J1051.6+2109_daily_bin1323.fits outfile=/scratch/kocevski/256938/cmap_HighResolution_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4711       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1474       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16925E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14913E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91990       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1793       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=   4696.677     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2030 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.948        11.024       -.18044E-06   -.75767E-05
   2  Prefactor     .10000E-03    14.008        .11685E-05** at limit **
   3  Prefactor     44.460        73.200       -.18620E-05   -.28338E-05
   4  Prefactor     .10000E-03    5.1633        .21240E-07** at limit **
   5  Prefactor     2.7358        3.1347        .92088E-07   -.29318E-05
   6  Prefactor     .10000E-03    2.8673       -.14800E-07** at limit **
   7  Prefactor     5.4711        12.601       -.33255E-06    .21041E-04
   8  Prefactor     43.856        39.894        .21742E-05    .33072E-04
   9  Prefactor     .10000E-03    8.7998        .52910E-06** at limit **
  10  Prefactor     3.1215        17.927        .10058E-05    .58427E-05
  11  Prefactor     .10000E-03    11.023       -.21465E-05** at limit **
  12  norm          .20275        .82159        .32265E-06   -.24893E-03
  13  Prefactor     .10000E-03    3.0425       -.70809E-06** at limit **
  14  Prefactor     .10000E-03    2.4207        .25145E-08** at limit **
  15  norm          .10000E-03    7.2622       -.26766E-06** at limit **
  16  norm          .10000E-03    7.1680       -.62273E-06** at limit **
  17  Prefactor     .10000E-03    9.0162        .21824E-06** at limit **
  18  Prefactor     .10000E-03    27.969        .38139E-06** at limit **
  19  Normalizat    .91974        .20913        .17207E-05    .31948E-04
  20  Prefactor     1.1794        .20799       -.64682E-06    .12475E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9484
  Prefactor  = 0.0001
  Prefactor  = 44.4602
  Prefactor  = 0.0001
  Prefactor  = 2.73582
  Prefactor  = 0.0001
  Prefactor  = 5.47109
  Prefactor  = 43.8562
  Prefactor  = 0.0001
  Prefactor  = 3.12155
  Prefactor  = 0.0001
  norm       = 0.202749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.919745
  Prefactor  = 1.1794
 **********
 **   18 **HESSE 
 **********

 FCN=   4696.677     FROM HESSE     STATUS=OK           285 CALLS     2315 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.948        11.028        .12109E-03   -1.5046    
   2  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.460        73.293        .60124E-04   -1.4373    
   4  Prefactor     .10000E-03    5.2338        .15195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7358        3.1086        .12145E-03   -1.5377    
   6  Prefactor     .10000E-03    2.8790        .11331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4711        12.554        .17178E-03   -1.5240    
   8  Prefactor     43.856        40.101        .60542E-04   -1.4383    
   9  Prefactor     .10000E-03    8.8257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1215        19.429        .22849E-03   -1.5355    
  11  Prefactor     .10000E-03    11.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20275        .79776        .11899E-03   -1.5618    
  13  Prefactor     .10000E-03    8.1226        .21221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4248        .10413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.3182        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.2057        .17942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91974        .24327        .25613E-03   -.95770    
  20  Prefactor     1.1794        .24649        .24152E-03   -.86968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52102e-11
Minuit parameter uncertainties:
  1  11.0301
  2  1.37474e-05
  3  73.4421
  4  7.80493e-06
  5  3.10874
  6  5.24808e-06
  7  12.5604
  8  40.1259
  9  5.62831e-06
  10  15.5828
  11  3.01416e-05
  12  0.797798
  13  4.72281e-05
  14  1.5851e-06
  15  1.26762e-05
  16  1.1711e-05
  17  1.01199e-05
  18  9.26692e-06
  19  0.243558
  20  0.246726
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.471e+00  1.256e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.179e+00  2.467e-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.197e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256938/likelihoodResults_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.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) = 4696.63030456
delta logL = 0.0470277919994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4696.62411869
delta logL = 0.05321366317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4191       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3074       1.0000          .0000       10.000    
     3 'Normalizat'    .90312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1913       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=   4696.624     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3983        312.28        .47892E-02    .29207E-03
   2  Index         3.3131        5.9716        .21486        .51733E-04
   3  Normalizat    .90286        .56543E-01    .44942E-01    .13846E-04
   4  Prefactor     1.1917        .60892E-01    .54379E-01    .48153E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39835
  Index      = 3.31314
  Normalizat = 0.902864
  Prefactor  = 1.19175
 **********
 **   18 **HESSE 
 **********

 FCN=   4696.624     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3983        13.945        .19157E-03   -1.5288    
   2  Index         3.3131        2.2454        .13433E-01   -.34412    
   3  Normalizat    .90286        .24383        .25827E-03   -.96360    
   4  Prefactor     1.1917        .24955        .24044E-03   -.86586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31397e-11
Minuit parameter uncertainties:
  1  13.9555
  2  2.34063
  3  0.244129
  4  0.2498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256938': 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) = 4696.62411162
delta logL = 0.0532207363176

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  4.398e+00  1.396e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.313e+00  2.341e+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:  1.192e+00  2.498e-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.029e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/256938/cmap_HighResolution_582249601_582508801_4FGL_J1051.6+2109_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-02 18:58:46.201134', job_id='256938', GAL2='1.19', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1630634326.2', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='5.32e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1323' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:58:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 256938: <4FGL_J1051.6+2109_daily_bin1323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1323 162.913 21.1651 582249601 582508801 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 :                                   543.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            994 sec.

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

