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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1408
RA = 162.913, Dec = 21.1651
tmin = 604281601, tmax = 604540801
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='258115', job_status='RUN', time_executed='2021-09-02 18:49:43.074568', time_epoch_executed='1630633783.07' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258115/ft1_4FGL_J1051.6+2109_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258115/ft2_4FGL_J1051.6+2109_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258115/ft1_4FGL_J1051.6+2109_daily_bin1408.fits outfile=/scratch/kocevski/258115/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1408.fits ra=162.913 dec=21.1651 rad=12.0 tmin=604281601.0 tmax=604540801.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.39
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258115/ft1_filtered_4FGL_J1051.6+2109_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/258115/ft2_4FGL_J1051.6+2109_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/258115/ltcube_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.fits outfile=/scratch/kocevski/258115/expmap_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.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/258115/ltcube_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.fits
.....................!
real 191.81
user 186.48
sys 4.87

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/258115/ft1_filtered_4FGL_J1051.6+2109_daily_bin1408.fits scfile=/scratch/kocevski/258115/ft2_4FGL_J1051.6+2109_daily_bin1408.fits outfile=/scratch/kocevski/258115/cmap_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258115/ft1_filtered_4FGL_J1051.6+2109_daily_bin1408.fits scfile=/scratch/kocevski/258115/ft2_4FGL_J1051.6+2109_daily_bin1408.fits outfile=/scratch/kocevski/258115/cmap_HighResolution_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .59935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    36.610       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89109       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0720       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=   5350.793     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1717 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0925        8.6122        .22341E-06   -.68387E-05
   2  Prefactor     .10000E-03    28.687       -.24583E-06** at limit **
   3  Prefactor     .10000E-03    91.808       -.12405E-05** at limit **
   4  Prefactor     21.974        9.7251        .62380E-07    .65778E-05
   5  Prefactor     .60130        1.6263        .68541E-06   -.74047E-04
   6  Prefactor     .10000E-03    5.9848       -.51607E-06** at limit **
   7  Prefactor     3.0199        5.9412        .24521E-06   -.11874E-03
   8  Prefactor     .10000E-03    8.3316        .34990E-06** at limit **
   9  Prefactor     .10000E-03    3.7623       -.38941E-07** at limit **
  10  Prefactor     .10000E-03    7.0643       -.12149E-05** at limit **
  11  Prefactor     .10000E-03    6.3001        .12179E-05** at limit **
  12  norm          2.2401        1.5166        .55887E-07   -.22263E-04
  13  Prefactor     .32001        2.7146        .14013E-05   -.24912E-03
  14  Prefactor     .10000E-03    2.2432        .26208E-07** at limit **
  15  norm          36.610        14.693        .50272E-07   -.22107E-04
  16  norm          .10000E-03    4.7350        .49390E-07** at limit **
  17  Prefactor     .10000E-03    3.9820       -.36394E-07** at limit **
  18  Prefactor     .10000E-03    52.704        .10395E-05** at limit **
  19  Normalizat    .89100        .18338       -.10237E-05   -.80525E-04
  20  Prefactor     1.0720        .18985        .50676E-07   -.10063E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.09251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9744
  Prefactor  = 0.601305
  Prefactor  = 0.0001
  Prefactor  = 3.01987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24011
  Prefactor  = 0.320012
  Prefactor  = 0.0001
  norm       = 36.6096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.891
  Prefactor  = 1.07201
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.793     FROM HESSE     STATUS=OK           289 CALLS     2006 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0925        8.6075        .15063E-03   -1.5175    
   2  Prefactor     .10000E-03    28.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    92.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.974        9.6452        .85438E-04   -1.4770    
   5  Prefactor     .60130        1.5572        .14733E-02   -1.5553    
   6  Prefactor     .10000E-03    6.0676        .17498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0199        5.9066        .23351E-03   -1.5360    
   8  Prefactor     .10000E-03    8.3601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7688        .13855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2401        1.5095        .70886E-04   -1.5409    
  13  Prefactor     .32001        2.8086        .23246E-03   -1.5595    
  14  Prefactor     .10000E-03    2.2467        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.610        14.690        .66236E-04   -1.4497    
  16  norm          .10000E-03    4.7539        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9916        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89100        .21145        .24902E-03   -.96777    
  20  Prefactor     1.0720        .21954        .24253E-03   -.90366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62156e-09
Minuit parameter uncertainties:
  1  8.60895
  2  3.68757e-05
  3  0.000282874
  4  9.64591
  5  1.55728
  6  2.52283e-05
  7  5.90772
  8  2.9409e-05
  9  3.10692e-06
  10  9.05808e-05
  11  8.75644e-05
  12  1.50952
  13  1.89591
  14  2.00011e-06
  15  14.6916
  16  5.48208e-06
  17  1.1326e-07
  18  0.000232795
  19  0.211643
  20  0.219721
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.020e+00  5.908e+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:  1.072e+00  2.197e-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:  8.910e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258115/likelihoodResults_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.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) = 5350.79004956
delta logL = 0.00337044774551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.78994644
delta logL = 0.00347356764723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6037       1.0000          .0000       10.000    
     3 'Normalizat'    .89400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0700       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=   5350.790     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      280 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0307        5.9208        .11660E-02   -.59866E-04
   2  Index         2.6054        1.8637        .12352E-01    .26465E-04
   3  Normalizat    .89394        .20788        .24865E-03   -.12866E-03
   4  Prefactor     1.0700        .21850        .24272E-03   -.55550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03066
  Index      = 2.6054
  Normalizat = 0.893942
  Prefactor  = 1.07002
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.790     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0307        5.9317        .46640E-04   -1.5360    
   2  Index         2.6054        1.8666        .49409E-03   -.49942    
   3  Normalizat    .89394        .20798        .99459E-05   -.96673    
   4  Prefactor     1.0700        .21865        .97089E-05   -.90431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06358e-10
Minuit parameter uncertainties:
  1  5.93285
  2  1.928
  3  0.208167
  4  0.218832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258115': 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) = 5350.78994598
delta logL = 0.00347402627995

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.031e+00  5.933e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.605e+00  1.928e+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.070e+00  2.188e-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:  8.939e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/258115/cmap_HighResolution_604281601_604540801_4FGL_J1051.6+2109_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-02 19:00:34.810100', job_id='258115', GAL2='1.07', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630634434.81', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.47e-03', ts2='0.39', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1408' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 19:00:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 258115: <4FGL_J1051.6+2109_daily_bin1408> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1408> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 18:46:20 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:47:45 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:47:45 2021
Terminated at Thu Sep  2 19:00:35 2021
Results reported at Thu Sep  2 19:00:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1408 162.913 21.1651 604281601 604540801 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            855 sec.

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

