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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1594
RA = 162.913, Dec = 21.1651
tmin = 652492801, tmax = 652752001
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='715110', job_status='RUN', time_executed='2021-09-08 00:22:08.382258', time_epoch_executed='1631085728.38' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/715110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/715110/ft1_4FGL_J1051.6+2109_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/715110/ft2_4FGL_J1051.6+2109_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/715110/ft1_4FGL_J1051.6+2109_daily_bin1594.fits outfile=/scratch/kocevski/715110/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1594.fits ra=162.913 dec=21.1651 rad=12.0 tmin=652492801.0 tmax=652752001.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.51
user 4.23
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/715110/ft2_4FGL_J1051.6+2109_daily_bin1594.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/715110/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1594.fits evtable="EVENTS" outfile="/scratch/kocevski/715110/ft1_filtered_4FGL_J1051.6+2109_daily_bin1594.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/715110/ft1_filtered_4FGL_J1051.6+2109_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/715110/ft2_4FGL_J1051.6+2109_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/715110/ltcube_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.fits outfile=/scratch/kocevski/715110/expmap_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.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/715110/ltcube_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.fits
.....................!
real 192.71
user 187.54
sys 4.69

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/715110/ft1_filtered_4FGL_J1051.6+2109_daily_bin1594.fits scfile=/scratch/kocevski/715110/ft2_4FGL_J1051.6+2109_daily_bin1594.fits outfile=/scratch/kocevski/715110/cmap_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/715110/ft1_filtered_4FGL_J1051.6+2109_daily_bin1594.fits scfile=/scratch/kocevski/715110/ft2_4FGL_J1051.6+2109_daily_bin1594.fits outfile=/scratch/kocevski/715110/cmap_HighResolution_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13853E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45993E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8228       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.3036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3275       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4124       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7317       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92669       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=   4645.109     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     1810 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1240       -.10327E-06** at limit **
   2  Prefactor     .10000E-03    77.952        .42399E-06** at limit **
   3  Prefactor     .10000E-03    28.481        .26313E-06** at limit **
   4  Prefactor     .24500E-03    9.8404       -.36750E-05** at limit **
   5  Prefactor     .10000E-03    1.9662        .24885E-07** at limit **
   6  Prefactor     .10000E-03    8.1116       -.14111E-05** at limit **
   7  Prefactor     8.8270        10.486       -.26435E-07    .21952E-03
   8  Prefactor     .10000E-03    28.830       -.24888E-05** at limit **
   9  Prefactor     .10000E-03    10.192        .34766E-06** at limit **
  10  Prefactor     21.393        14.932       -.37151E-06   -.15322E-04
  11  Prefactor     .10000E-03    7.0710       -.61548E-05** at limit **
  12  norm          9.3033        3.2901       -.66977E-07   -.33711E-04
  13  Prefactor     .10000E-03    2.1975        .74531E-07** at limit **
  14  Prefactor     7.3276        8.0626       -.95368E-07   -.27392E-04
  15  norm          .10000E-03    6.5329        .92086E-06** at limit **
  16  norm          .10000E-03    7.3483        .68066E-05** at limit **
  17  Prefactor     .10000E-03    4.9939        .64042E-07** at limit **
  18  Prefactor     4.4074        84.404       -.12645E-04   -.39950E-04
  19  Normalizat    1.7320        .24328        .53625E-06    .34826E-03
  20  Prefactor     .92639        .24632        .51245E-06    .19573E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000245003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3932
  Prefactor  = 0.000100001
  norm       = 9.30332
  Prefactor  = 0.000100001
  Prefactor  = 7.32757
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.40738
  Normalizat = 1.73198
  Prefactor  = 0.926393
 **********
 **   18 **HESSE 
 **********

 FCN=   4645.109     FROM HESSE     STATUS=OK           297 CALLS     2107 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1271        .97010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24500E-03    10.239        .56239E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0220        .18630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8270        10.098        .13494E-03   -1.5114    
   8  Prefactor     .10000E-03    28.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.386        .40288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.393        14.589        .86639E-04   -1.4783    
  11  Prefactor     .10000E-03    7.0784        .17700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.3033        3.2956        .70083E-04   -1.5098    
  13  Prefactor     .10000E-03    16.168        .18932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3276        8.0608        .14817E-03   -1.5167    
  15  norm          .10000E-03    6.5450        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3381        .17985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9985        .14875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4074        85.243        .19172E-03   -1.5288    
  19  Normalizat    1.7320        .28858        .24062E-03   -.71453    
  20  Prefactor     .92639        .29161        .32765E-03   -.95225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59402e-09
Minuit parameter uncertainties:
  1  1.41167e-06
  2  4.8766e-06
  3  7.47221e-06
  4  0.0770767
  5  7.48251e-06
  6  3.31549e-05
  7  10.1003
  8  0.000112279
  9  0.000173685
  10  14.5916
  11  0.000130529
  12  3.29564
  13  0.000247664
  14  8.06197
  15  2.24713e-05
  16  0.000136543
  17  6.3864e-07
  18  38.8293
  19  0.288858
  20  0.292103
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  8.827e+00  1.010e+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.264e-01  2.921e-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.732e+00  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/715110/likelihoodResults_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.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) = 4644.90951137
delta logL = 0.199625576039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4644.89775589
delta logL = 0.211381050703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4287       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9798       1.0000          .0000       10.000    
     3 'Normalizat'    1.7670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90330       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=   4644.898     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4187        8.7989        .36787E-02    .23803E-03
   2  Index         1.9792        .66953        .25906       -.12213E-03
   3  Normalizat    1.7669        .23598        .53995E-01   -.18673E-04
   4  Prefactor     .90346        .24568        .74839E-01   -.17486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.41867
  Index      = 1.97916
  Normalizat = 1.76691
  Prefactor  = 0.903456
 **********
 **   18 **HESSE 
 **********

 FCN=   4644.898     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4187        10.658        .14715E-03   -1.5163    
   2  Index         1.9792        1.0470        .11163E-01   -.64872    
   3  Normalizat    1.7669        .27926        .23872E-03   -.70531    
   4  Prefactor     .90346        .28941        .33118E-03   -.96020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87838e-10
Minuit parameter uncertainties:
  1  10.661
  2  1.05949
  3  0.279516
  4  0.289908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/715110': 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) = 4644.8977553
delta logL = 0.211381647188

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  7.419e+00  1.066e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  1.979e+00  1.059e+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:  9.035e-01  2.899e-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.767e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 162.913 21.165
Photon Index (Free Index): 1.98 +/- 1.06
Photon Flux (Free Index): 1.88e-08 +/- 3.53e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.32e-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/715110/cmap_HighResolution_652492801_652752001_4FGL_J1051.6+2109_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='1.37e-05', photon_flux_error='5.11e-08', dlogl='2.11e-01', energy_flux='1.02e-05', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-09-08 00:31:23.624950', photon_index_error2='1.06', photon_index2='1.98', ts='1.40', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='2.32e-05', EG='1.73', time_epoch_completed='1631086283.63', return_code='0', job_id='715110', GAL2='0.90', EG2='1.77', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.53e-08', ts2='1.82', photon_index='2.77' WHERE bin_id='1594' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 715110: <4FGL_J1051.6+2109_daily_bin1594> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1594> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 00:15:34 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:18:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:18:20 2021
Terminated at Wed Sep  8 00:31:24 2021
Results reported at Wed Sep  8 00:31:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1594 162.913 21.1651 652492801 652752001 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 :                                 1094 MB
    Average Memory :                             247.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            950 sec.

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

