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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin773
RA = 162.913, Dec = 21.1651
tmin = 439689601, tmax = 439948801
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='254934', job_status='RUN', time_executed='2021-09-02 18:37:28.626469', time_epoch_executed='1630633048.63' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254934

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254934/ft1_4FGL_J1051.6+2109_daily_bin773.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254934/ft2_4FGL_J1051.6+2109_daily_bin773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254934/ft1_4FGL_J1051.6+2109_daily_bin773.fits outfile=/scratch/kocevski/254934/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin773.fits ra=162.913 dec=21.1651 rad=12.0 tmin=439689601.0 tmax=439948801.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 4.47
user 4.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254934/ft1_filtered_4FGL_J1051.6+2109_daily_bin773.fits" evtable="EVENTS" scfile=/scratch/kocevski/254934/ft2_4FGL_J1051.6+2109_daily_bin773.fits sctable="SC_DATA" outfile=/scratch/kocevski/254934/ltcube_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.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/254934/ft2_4FGL_J1051.6+2109_daily_bin773.fits
.....................!
real 13.94
user 13.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254934/ft1_filtered_4FGL_J1051.6+2109_daily_bin773.fits evtable="EVENTS" scfile=/scratch/kocevski/254934/ft2_4FGL_J1051.6+2109_daily_bin773.fits sctable="SC_DATA" expcube=/scratch/kocevski/254934/ltcube_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.fits outfile=/scratch/kocevski/254934/expmap_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.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/254934/ltcube_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.fits
.....................!
real 191.81
user 186.17
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/254934/ft1_filtered_4FGL_J1051.6+2109_daily_bin773.fits scfile=/scratch/kocevski/254934/ft2_4FGL_J1051.6+2109_daily_bin773.fits outfile=/scratch/kocevski/254934/cmap_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.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.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3059       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13386E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2012       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13519E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5192       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14446E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .59811       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4017       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=   5797.927     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     2083 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3131        8.7410        .17448E-03    .34728E-04
   2  Prefactor     .10000E-03    9.9497        .18142E-02** at limit **
   3  Prefactor     .10000E-03    19.073        .18142E-02** at limit **
   4  Prefactor     5.2047        6.6105        .17626E-03   -.70110E-04
   5  Prefactor     .10000E-03    1.2144        .16102E-03** at limit **
   6  Prefactor     .10000E-03    1.9739        .10433E-02** at limit **
   7  Prefactor     14.360        11.348        .10566E-03   -.60977E-03
   8  Prefactor     .10000E-03    12.265        .18142E-02** at limit **
   9  Prefactor     .10000E-03    11.778        .18142E-02** at limit **
  10  Prefactor     .10000E-03    3.7499        .14381E-02** at limit **
  11  Prefactor     .10146E-03    19.980        .73132E-01** at limit **
  12  norm          3.1813        1.5048        .61633E-04   -.89461E-04
  13  Prefactor     .10000E-03    .54996        .55068E-03** at limit **
  14  Prefactor     .10000E-03    3.3571        .13588E-02** at limit **
  15  norm          8.5214        8.0562        .13734E-03   -.13079E-04
  16  norm          .10000E-03    2.1699        .10950E-02** at limit **
  17  Prefactor     1.4659        11.708        .17778E-02    .25530E-03
  18  Prefactor     .10013E-03    34.308        .13252    ** at limit **
  19  Normalizat    .59803        .20475        .28718E-03   -.20158E-03
  20  Prefactor     1.4017        .22158        .21818E-03   -.15907E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.31305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.20475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101464
  norm       = 3.18127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.52139
  norm       = 0.0001
  Prefactor  = 1.46586
  Prefactor  = 0.000100134
  Normalizat = 0.598027
  Prefactor  = 1.40168
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.927     FROM HESSE     STATUS=OK           293 CALLS     2376 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3131        8.7404        .69793E-05   -1.5247    
   2  Prefactor     .10000E-03    9.9498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2047        6.6091        .70505E-05   -1.5252    
   5  Prefactor     .10000E-03    1.2145        .32204E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9739        .20865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.360        11.340        .42263E-05   -1.4950    
   8  Prefactor     .10000E-03    12.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7501        .28761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10146E-03    17.095        .81100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1813        1.5047        .24653E-05   -1.5351    
  13  Prefactor     .10000E-03    .54997        .11014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3574        .27176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5214        8.0561        .54936E-05   -1.5124    
  16  norm          .10000E-03    2.1699        .21901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4659        11.682        .71112E-04   -1.5466    
  18  Prefactor     .10013E-03    33.714        .13435       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .59803        .20484        .11487E-04   -1.0807    
  20  Prefactor     1.4017        .22177        .43635E-04   -.80332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14763e-10
Minuit parameter uncertainties:
  1  8.7425
  2  7.54122e-06
  3  1.14723e-05
  4  6.61007
  5  7.69692e-07
  6  3.70497e-07
  7  11.342
  8  6.66608e-05
  9  5.05877e-05
  10  2.32803e-06
  11  0.0100088
  12  1.50474
  13  3.64235e-07
  14  8.64657e-07
  15  8.05712
  16  5.93943e-07
  17  8.27813
  18  0.00424614
  19  0.205102
  20  0.221919
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.436e+01  1.134e+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.402e+00  2.219e-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:  5.980e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/254934/likelihoodResults_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.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) = 5797.66283339
delta logL = 0.26453485104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5797.66185571
delta logL = 0.265512533148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.786       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3692       1.0000          .0000       10.000    
     3 'Normalizat'    .61822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3808       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=   5797.662     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      303 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.787        13.249        .92408E-04   -.18287E-02
   2  Index         2.3691        .50322        .72802E-02   -.55393E-03
   3  Normalizat    .61811        .20032        .28272E-03    .17017E-03
   4  Prefactor     1.3810        .22179        .21943E-03    .28764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7869
  Index      = 2.36912
  Normalizat = 0.618114
  Prefactor  = 1.38096
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.662     FROM HESSE     STATUS=OK            23 CALLS      326 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.787        13.174        .18482E-04   -1.4841    
   2  Index         2.3691        .50020        .29121E-03   -.55410    
   3  Normalizat    .61811        .20052        .11309E-04   -1.0722    
   4  Prefactor     1.3810        .22193        .43886E-04   -.80931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59257e-09
Minuit parameter uncertainties:
  1  13.1764
  2  0.501364
  3  0.200754
  4  0.222087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254934': 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) = 5797.66185554
delta logL = 0.265512707187

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.879e+01  1.318e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.369e+00  5.014e-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:  1.381e+00  2.221e-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:  6.181e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.37 +/- 0.50
Photon Flux (Free Index): 6.41e-08 +/- 4.95e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.71e-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/254934/cmap_HighResolution_439689601_439948801_4FGL_J1051.6+2109_daily_bin773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='2.19e-05', photon_flux_error='5.74e-08', dlogl='2.66e-01', energy_flux='1.66e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-02 18:47:38.655350', photon_index_error2='0.50', photon_index2='2.37', ts='2.51', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.71e-05', EG='0.60', time_epoch_completed='1630633658.66', return_code='0', job_id='254934', GAL2='1.38', EG2='0.62', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.95e-08', ts2='3.01', photon_index='2.77' WHERE bin_id='773' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:47:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 254934: <4FGL_J1051.6+2109_daily_bin773> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin773> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 18:36:25 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 18:37:17 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:37:17 2021
Terminated at Thu Sep  2 18:47:39 2021
Results reported at Thu Sep  2 18:47:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin773 162.913 21.1651 439689601 439948801 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 :                                   608.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            674 sec.

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

