aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 79 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1713
RA = 162.913, Dec = 21.1651
tmin = 683337601, tmax = 683596801
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='96178', job_status='RUN', time_executed='2022-09-16 15:33:02.460197', time_epoch_executed='1663367582.46' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96178/ft1_4FGL_J1051.6+2109_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96178/ft2_4FGL_J1051.6+2109_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96178/ft1_4FGL_J1051.6+2109_daily_bin1713.fits outfile=/scratch/kocevski/96178/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1713.fits ra=162.913 dec=21.1651 rad=12.0 tmin=683337601.0 tmax=683596801.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.52
user 3.27
sys 0.22

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

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

Number of photons that the gtmktime cut: 583

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96178/ft1_filtered_4FGL_J1051.6+2109_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/96178/ft2_4FGL_J1051.6+2109_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/96178/ltcube_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.fits outfile=/scratch/kocevski/96178/expmap_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.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/96178/ltcube_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.fits
.....................!
real 193.65
user 187.95
sys 5.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/96178/ft1_filtered_4FGL_J1051.6+2109_daily_bin1713.fits scfile=/scratch/kocevski/96178/ft2_4FGL_J1051.6+2109_daily_bin1713.fits outfile=/scratch/kocevski/96178/cmap_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96178/ft1_filtered_4FGL_J1051.6+2109_daily_bin1713.fits scfile=/scratch/kocevski/96178/ft2_4FGL_J1051.6+2109_daily_bin1713.fits outfile=/scratch/kocevski/96178/cmap_HighResolution_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96178/ft1_filtered_4FGL_J1051.6+2109_daily_bin1713.fits', '/scratch/kocevski/96178/ft2_4FGL_J1051.6+2109_daily_bin1713.fits', expMap='/scratch/kocevski/96178/expmap_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.fits', expCube='/scratch/kocevski/96178/ltcube_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96178/Model_4FGL_J1051.6+2109_daily_bin1713.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  0.000e+00  1.000e+06 ( 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/96178/ft1_filtered_4FGL_J1051.6+2109_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/96178/ft2_4FGL_J1051.6+2109_daily_bin1713.fits
Exposure map: /scratch/kocevski/96178/expmap_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.fits
Exposure cube: /scratch/kocevski/96178/ltcube_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96178/Model_4FGL_J1051.6+2109_daily_bin1713.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) = 6726.04160129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4065       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10241E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3178       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0656       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10225E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.276       1.0000          .0000       .10000E+07
     7 'Prefactor '    36.962       1.0000          .0000       .10000E+07
     8 'Prefactor '    .45408       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15495E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.0589       1.0000          .0000       .10000E+07
    11 'Prefactor '    .80913E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .86303       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25710E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.4277       1.0000          .0000       .10000E+07
    15 'norm      '    .98528E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .53069E-07   1.0000          .0000       .10000E+07
    17 'Normalizat'    .80141       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.6494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6725.253     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     1107 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5461        8.7584        .86196E-08   -.48793E-04
   2  Prefactor      .0000        15.522        .16964E-06** at limit **
   3  Prefactor     .16653E-08    718.75        .29849E-05** at limit **
   4  Prefactor     1.1274        17.562        .10948E-06   -.38844E-04
   5  Prefactor      .0000        1.1576       -.15848E-07** at limit **
   6  Prefactor     15.172        9.1553        .10560E-07   -.25501E-03
   7  Prefactor     36.633        14.723       -.18443E-07   -.17000E-03
   8  Prefactor     .33307E-09    417.44       -.10574E-05** at limit **
   9  Prefactor     .55511E-10    21.845       -.14686E-06** at limit **
  10  Prefactor     7.1396        11.714       -.15231E-06    .21473E-03
  11  Prefactor      .0000        7.8790       -.17557E-07** at limit **
  12  norm          .86321        1.2275       -.10515E-07   -.74521E-04
  13  Prefactor     .36786E-01    29.054       -.12269E-06** at limit **
  14  Prefactor     3.4272        3.8175       -.15143E-07   -.12132E-04
  15  norm           .0000        4.7114        .54593E-07** at limit **
  16  Prefactor      .0000        3.7341        .11520E-07** at limit **
  17  Normalizat    .80379        .23636       -.23720E-06   -.31616E-04
  18  Prefactor     1.6484        .24050        .19754E-06   -.34585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54607
  Prefactor  = 0
  Prefactor  = 1.66533e-09
  Prefactor  = 1.12738
  Prefactor  = 0
  Prefactor  = 15.1717
  Prefactor  = 36.6327
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 7.13957
  Prefactor  = 0
  norm       = 0.863212
  Prefactor  = 0.036786
  Prefactor  = 3.42717
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.803788
  Prefactor  = 1.64839
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.253     FROM HESSE     STATUS=OK           298 CALLS     1405 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5461        8.7674        .43194E-03   -1.5661    
   2  Prefactor      .0000        15.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16653E-08    699.07        .67353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1274        17.934        .11810E-02   -1.5687    
   5  Prefactor      .0000        1.1657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.172        9.1898        .25599E-03   -1.5630    
   7  Prefactor     36.633        14.864        .16450E-03   -1.5587    
   8  Prefactor     .33307E-09    32.154        .13527E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    22.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1396        11.749        .37734E-03   -1.5655    
  11  Prefactor      .0000        7.8647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .86321        1.2479        .48350E-03   -1.5689    
  13  Prefactor     .36786E-01    1.4265        .53435E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4272        3.8242        .54611E-03   -1.5671    
  15  norm           .0000        4.7090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.7369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .80379        .20192        .71840E-01   -.99928    
  18  Prefactor     1.6484        .20280        .56432E-01   -.73464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86195e-06
Minuit parameter uncertainties:
  1  8.76745
  2  2.46052e-05
  3  0.00214591
  4  8.99304
  5  5.93431e-07
  6  9.18984
  7  14.8636
  8  0.000201243
  9  6.85267e-05
  10  11.7488
  11  1.08555e-06
  12  1.24791
  13  0.458145
  14  3.82417
  15  5.43047e-06
  16  6.59833e-07
  17  0.202103
  18  0.202906
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  3.663e+01  1.486e+01  0.000e+00  1.000e+06 ( 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.648e+00  2.029e-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.038e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.79
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 7.52e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 1.72e-05

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) = 6724.3179314
delta logL = 0.935260380591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6724.31745964
delta logL = 0.935732144947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.662       1.0000          .0000       .10000E+07
     2 'Index     '    3.4966       1.0000          .0000       10.000    
     3 'Normalizat'    .72981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7127       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=   6724.317     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      310 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.666        17.941        .88024E-05   -.36176E-02
   2  Index         3.4968        .70801        .43610E-02   -.37370E-04
   3  Normalizat    .72976        .23605        .33193E-03   -.39011E-04
   4  Prefactor     1.7126        .24724        .24577E-03   -.45609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6663
  Index      = 3.49681
  Normalizat = 0.72976
  Prefactor  = 1.71262
 **********
 **   18 **HESSE 
 **********

 FCN=   6724.317     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.666        15.673        .35210E-06   -1.5617    
   2  Index         3.4968        .61846        .17444E-03   -.30536    
   3  Normalizat    .72976        .23609        .13277E-04   -1.0273    
   4  Prefactor     1.7126        .24688        .98310E-05   -.71746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38496e-11
Minuit parameter uncertainties:
  1  15.6733
  2  0.620209
  3  0.236423
  4  0.247055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96178': 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) = 6724.31745878
delta logL = 0.935732996749

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  2.067e+01  1.567e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  3.497e+00  6.202e-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.713e+00  2.471e-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:  7.298e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.26
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.50 +/- 0.62
Photon Flux (Free Index): 2.41e-07 +/- 9.03e-08
Energy Flux (Free Index): 4.02e-05 +/- 1.49e-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/96178/cmap_HighResolution_683337601_683596801_4FGL_J1051.6+2109_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='4.02e-05', photon_flux_error='7.52e-08', dlogl='9.36e-01', energy_flux='4.24e-05', photon_flux2='2.41e-07', job_status='DONE', time_completed='2022-09-16 15:41:36.993477', photon_index_error2='0.62', photon_index2='3.50', ts='9.79', fit_tolerance='1e-08', GAL='1.65', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.80', time_epoch_completed='1663368096.99', return_code='0', job_id='96178', GAL2='1.71', EG2='0.73', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='9.03e-08', ts2='12.26', photon_index='2.77' WHERE bin_id='1713' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:41:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 96178: <4FGL_J1051.6+2109_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1713> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:30:22 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:31:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:31:35 2022
Terminated at Fri Sep 16 15:41:37 2022
Results reported at Fri Sep 16 15:41:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1713 162.913 21.1651 683337601 683596801 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 :                                   517.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            675 sec.

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

