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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1756
RA = 162.913, Dec = 21.1651
tmin = 694483201, tmax = 694742401
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='10501', job_status='RUN', time_executed='2023-01-07 00:47:46.896405', time_epoch_executed='1673081266.9' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10501/ft1_4FGL_J1051.6+2109_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10501/ft2_4FGL_J1051.6+2109_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10501/ft1_4FGL_J1051.6+2109_daily_bin1756.fits outfile=/scratch/kocevski/10501/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1756.fits ra=162.913 dec=21.1651 rad=12.0 tmin=694483201.0 tmax=694742401.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 2.96
user 2.77
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10501/ft1_filtered_4FGL_J1051.6+2109_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/10501/ft2_4FGL_J1051.6+2109_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/10501/ltcube_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.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/10501/ft2_4FGL_J1051.6+2109_daily_bin1756.fits
.....................!
real 16.69
user 16.26
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10501/ft1_filtered_4FGL_J1051.6+2109_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10501/ft2_4FGL_J1051.6+2109_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10501/ltcube_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.fits outfile=/scratch/kocevski/10501/expmap_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.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/10501/ltcube_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.fits
.....................!
real 193.07
user 187.50
sys 5.18

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/10501/ft1_filtered_4FGL_J1051.6+2109_daily_bin1756.fits scfile=/scratch/kocevski/10501/ft2_4FGL_J1051.6+2109_daily_bin1756.fits outfile=/scratch/kocevski/10501/cmap_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.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.59
user 0.39
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.274       1.0000          .0000       .10000E+07
     2 'Prefactor '    41.883       1.0000          .0000       .10000E+07
     3 'Prefactor '    116.81       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.2053       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20188E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12157E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    16.393       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4511       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21293E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.442       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.4723       1.0000          .0000       .10000E+07
    12 'norm      '    .14065E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .47631E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8456       1.0000          .0000       .10000E+07
    15 'norm      '    .55627E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.1840       1.0000          .0000       .10000E+07
    17 'Normalizat'    .84477       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4079       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=   4124.953     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1293 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.526        6.7328       -.42790E-07    .37920E-01
   2  Prefactor     41.831        13.269        .21493E-07    .21556    
   3  Prefactor     116.81        2.8386        .18121E-08    .85203E-01
   4  Prefactor     6.1867        2.0094       -.10963E-07   -.92187E-02
   5  Prefactor     .19429E-08    5.0824        .37105E-07** at limit **
   6  Prefactor     .17764E-08    9.2746        .28554E-06** at limit **
   7  Prefactor     16.198        4.5223        .32792E-07   -.25663E-01
   8  Prefactor     2.8120        49.256       -.45061E-06    .23324E-01
   9  Prefactor     .37192E-08    5.4226        .13720E-06** at limit **
  10  Prefactor     10.395        10.394        .14618E-06    .33306E-01
  11  Prefactor     9.6191        7.9295       -.93517E-07    .21290E-01
  12  norm           .0000        .57552       -.66506E-07** at limit **
  13  Prefactor      .0000        2.5953       -.21324E-06** at limit **
  14  Prefactor     5.7574        7.7293        .24885E-06    .43247E-02
  15  norm          .19984E-07    14.526        .10075E-05** at limit **
  16  Prefactor     5.1602        2.2087        .91162E-07   -.14316E-01
  17  Normalizat    .84515        .26393        .91837E-05    .14125E-04
  18  Prefactor     1.4075        .29192       -.87550E-05   -.35488E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 41.5262
  Prefactor  = 41.8314
  Prefactor  = 116.813
  Prefactor  = 6.18671
  Prefactor  = 1.94289e-09
  Prefactor  = 1.77636e-09
  Prefactor  = 16.1975
  Prefactor  = 2.81196
  Prefactor  = 3.71925e-09
  Prefactor  = 10.3952
  Prefactor  = 9.61911
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.75744
  norm       = 1.9984e-08
  Prefactor  = 5.16019
  Normalizat = 0.845154
  Prefactor  = 1.40746
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.953     FROM HESSE     STATUS=OK           280 CALLS     1573 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.526        23.625        .15567E-03   -1.5579    
   2  Prefactor     41.831        62.491        .15453E-03   -1.5579    
   3  Prefactor     116.81        96.006        .92530E-04   -1.5492    
   4  Prefactor     6.1867        11.323        .40276E-03   -1.5658    
   5  Prefactor     .19429E-08    5.0599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17764E-08    9.2223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.198        17.123        .24710E-03   -1.5627    
   8  Prefactor     2.8120        65.408        .65309E-03   -1.5674    
   9  Prefactor     .37192E-08    5.4779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.395        10.428        .30982E-03   -1.5643    
  11  Prefactor     9.6191        22.167        .32537E-03   -1.5646    
  12  norm           .0000        .57407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.5736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7574        8.1294        .41514E-03   -1.5660    
  15  norm          .19984E-07    14.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1602        12.747        .44128E-03   -1.5663    
  17  Normalizat    .84515        .23424        .64220E-01   -.98415    
  18  Prefactor     1.4075        .24618        .56790E-01   -.80166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21205e-06
Minuit parameter uncertainties:
  1  23.6253
  2  62.4919
  3  96.007
  4  11.3231
  5  0.000198877
  6  0.000254236
  7  17.1229
  8  27.124
  9  0.000285295
  10  10.4281
  11  22.1673
  12  2.21229e-06
  13  1.51896e-06
  14  8.12945
  15  0.00107625
  16  12.7469
  17  0.234526
  18  0.246389
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.620e+01  1.712e+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.407e+00  2.464e-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.452e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 8.66e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.98e-05

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

Saving results to:
/scratch/kocevski/10501/likelihoodResults_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.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) = 4124.85021364
delta logL = 0.102629310645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4124.8319885
delta logL = 0.120854451285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4390       1.0000          .0000       .10000E+07
     2 'Index     '    3.7186       1.0000          .0000       10.000    
     3 'Normalizat'    .80581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4498       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4124.832     FROM MIGRAD    STATUS=FAILED        93 CALLS      293 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4320        67.923        .12706E-04   -.16016E-03
   2  Index         3.7192        6.7648        .64093E-02    .27789E-03
   3  Normalizat    .80599        .27943        .29020E-03    .61309E-04
   4  Prefactor     1.4495        .31142        .24811E-03   -.84696E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4124.832     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      374 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4320        67.923        .31137E-04   -1.5657    
   2  Index         3.7192        6.7648        .19577E-02   -.25905    
   3  Normalizat    .80599        .27943        .43370E-03   -.99847    
   4  Prefactor     1.4495        .31142        .33701E-03   -.78963    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4124.832     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      403 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4319        16.458        .50823E-06   -.53113E-03
   2  Index         3.7192        1.9141        .12819E-02    .67758E-05
   3  Normalizat    .80599        .27658        .11608E-04    .12928E-04
   4  Prefactor     1.4495        .29935        .49622E-04   -.21307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43193
  Index      = 3.71922
  Normalizat = 0.805989
  Prefactor  = 1.44955
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.832     FROM HESSE     STATUS=OK            23 CALLS      426 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4319        15.193        .37330E-06   -1.5657    
   2  Index         3.7192        1.7736        .51275E-04   -.25904    
   3  Normalizat    .80599        .27677        .23216E-05   -.99847    
   4  Prefactor     1.4495        .29922        .99243E-05   -.78963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65932e-11
Minuit parameter uncertainties:
  1  15.1934
  2  1.81607
  3  0.277258
  4  0.299577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10501': 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) = 4124.83198812
delta logL = 0.120854832042

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  6.432e+00  1.519e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  3.719e+00  1.816e+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.450e+00  2.996e-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.060e-01  2.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.72 +/- 1.82
Photon Flux (Free Index): 9.90e-08 +/- 8.51e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.42e-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/10501/cmap_HighResolution_694483201_694742401_4FGL_J1051.6+2109_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='1.56e-05', photon_flux_error='8.66e-08', dlogl='1.21e-01', energy_flux='1.87e-05', photon_flux2='9.90e-08', job_status='DONE', time_completed='2023-01-07 00:55:37.173023', photon_index_error2='1.82', photon_index2='3.72', ts='1.49', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='1.42e-05', EG='0.85', time_epoch_completed='1673081737.17', return_code='0', job_id='10501', GAL2='1.45', EG2='0.81', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='8.51e-08', ts2='1.84', photon_index='2.77' WHERE bin_id='1756' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:55:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 10501: <4FGL_J1051.6+2109_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:24 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:44:04 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:44:04 2023
Terminated at Sat Jan  7 00:55:37 2023
Results reported at Sat Jan  7 00:55:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1756 162.913 21.1651 694483201 694742401 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 :                                   472.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            913 sec.

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

