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


Performing analysis on: 4FGL_J1051.6+2109_daily_bin1747
RA = 162.913, Dec = 21.1651
tmin = 692150401, tmax = 692409601
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='795562', job_status='RUN', time_executed='2022-12-11 00:36:26.074517', time_epoch_executed='1670747786.07' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795562

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795562/ft1_4FGL_J1051.6+2109_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795562/ft2_4FGL_J1051.6+2109_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795562/ft1_4FGL_J1051.6+2109_daily_bin1747.fits outfile=/scratch/kocevski/795562/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1747.fits ra=162.913 dec=21.1651 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.75
sys 0.20

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

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

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

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

Number of photons that the gtmktime cut: 615

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795562/ft1_filtered_4FGL_J1051.6+2109_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/795562/ft2_4FGL_J1051.6+2109_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/795562/ltcube_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.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/795562/ft2_4FGL_J1051.6+2109_daily_bin1747.fits
.....................!
real 11.72
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795562/ft1_filtered_4FGL_J1051.6+2109_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/795562/ft2_4FGL_J1051.6+2109_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/795562/ltcube_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.fits outfile=/scratch/kocevski/795562/expmap_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.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/795562/ltcube_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.fits
.....................!
real 190.51
user 185.20
sys 4.96

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/795562/ft1_filtered_4FGL_J1051.6+2109_daily_bin1747.fits scfile=/scratch/kocevski/795562/ft2_4FGL_J1051.6+2109_daily_bin1747.fits outfile=/scratch/kocevski/795562/cmap_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795562/ft1_filtered_4FGL_J1051.6+2109_daily_bin1747.fits scfile=/scratch/kocevski/795562/ft2_4FGL_J1051.6+2109_daily_bin1747.fits outfile=/scratch/kocevski/795562/cmap_HighResolution_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.601       1.0000          .0000       .10000E+07
     2 'Prefactor '    .71176E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    38.741       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.6268       1.0000          .0000       .10000E+07
     5 'Prefactor '    .57582       1.0000          .0000       .10000E+07
     6 'Prefactor '    13.493       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.463       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29238E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9108       1.0000          .0000       .10000E+07
    10 'Prefactor '    .38758E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    20.758       1.0000          .0000       .10000E+07
    12 'norm      '    .12087E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4454       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62714E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .75602       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10085E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1389       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0155       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=   6873.604     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1473 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.633        6.9308        .32308E-07    .12058E-02
   2  Prefactor     .66613E-09    27.133        .51836E-06** at limit **
   3  Prefactor     39.057        50.993        .97990E-06   -.59365E-02
   4  Prefactor     1.6260        7.5484       -.68191E-06    .64951E-03
   5  Prefactor     .57520        1.3075       -.43763E-07    .21885E-02
   6  Prefactor     13.464        8.4404        .69354E-07    .23415E-02
   7  Prefactor     10.416        9.0617        .45663E-06   -.12783E-02
   8  Prefactor     .57732E-08    8.8583        .61879E-07** at limit **
   9  Prefactor     7.0041        8.0027       -.20659E-06    .15532E-04
  10  Prefactor     .12768E-08    19.234        .16359E-05** at limit **
  11  Prefactor     20.726        3.0745        .10804E-06    .16361E-01
  12  norm          .11102E-08    39.717        .35377E-05** at limit **
  13  Prefactor     5.4417        3.3524        .22665E-06    .15883E-02
  14  Prefactor     .89928E-08    9.7482       -.39400E-06** at limit **
  15  norm          .78354        1.7948        .96253E-07    .30582E-01
  16  Prefactor      .0000        3.1337       -.69522E-06** at limit **
  17  Normalizat    1.1393        .21537       -.11401E-04    .34062E-04
  18  Prefactor     1.0152        .21674        .11618E-04    .31271E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.633
  Prefactor  = 6.66134e-10
  Prefactor  = 39.0565
  Prefactor  = 1.62598
  Prefactor  = 0.575205
  Prefactor  = 13.4637
  Prefactor  = 10.4163
  Prefactor  = 5.77316e-09
  Prefactor  = 7.00405
  Prefactor  = 1.27676e-09
  Prefactor  = 20.7257
  norm       = 1.11022e-09
  Prefactor  = 5.44172
  Prefactor  = 8.99281e-09
  norm       = 0.783541
  Prefactor  = 0
  Normalizat = 1.13925
  Prefactor  = 1.01516
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.604     FROM HESSE     STATUS=OK           292 CALLS     1765 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.633        6.9352        .30748E-03   -1.5643    
   2  Prefactor     .66613E-09    27.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.057        51.470        .16068E-03   -1.5583    
   4  Prefactor     1.6260        7.7278        .82902E-03   -1.5682    
   5  Prefactor     .57520        1.3464        .71423E-03   -1.5693    
   6  Prefactor     13.464        8.4771        .27243E-03   -1.5635    
   7  Prefactor     10.416        10.303        .30951E-03   -1.5643    
   8  Prefactor     .57732E-08    8.9440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0041        8.0242        .38140E-03   -1.5655    
  10  Prefactor     .12768E-08    19.115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.726        15.923        .21955E-03   -1.5617    
  12  norm          .11102E-08    .97812        .26070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4417        3.3485        .43037E-03   -1.5661    
  14  Prefactor     .89928E-08    9.7175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78354        21.713        .56272E-03   -1.5690    
  16  Prefactor      .0000        3.1383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1393        .17768        .55411E-01   -.88501    
  18  Prefactor     1.0152        .17883        .61150E-01   -.92226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03031e-07
Minuit parameter uncertainties:
  1  6.9352
  2  0.000266727
  3  51.4705
  4  7.08951
  5  1.34639
  6  8.47706
  7  10.3033
  8  0.000454701
  9  8.0242
  10  0.000314751
  11  15.9231
  12  6.56636e-05
  13  3.34848
  14  0.000591917
  15  8.24942
  16  9.5471e-06
  17  0.177769
  18  0.178937
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.042e+01  1.030e+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.015e+00  1.789e-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.139e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 5.21e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/795562/likelihoodResults_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.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) = 6873.54910228
delta logL = 0.0549915860893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6873.5462785
delta logL = 0.0578153692231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.207       1.0000          .0000       .10000E+07
     2 'Index     '    2.5150       1.0000          .0000       10.000    
     3 'Normalizat'    1.1481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6873.546     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      308 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.233        11.306        .57293E-04    .62974E-03
   2  Index         2.5172        .70856        .96344E-02    .10499E-03
   3  Normalizat    1.1480        .20840        .24421E-03   -.69831E-05
   4  Prefactor     1.0069        .21675        .27116E-03   -.35218E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.233
  Index      = 2.51717
  Normalizat = 1.14803
  Prefactor  = 1.0069
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.546     FROM HESSE     STATUS=OK            27 CALLS      335 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.233        11.139        .11459E-04   -1.5638    
   2  Index         2.5172        .69803        .19269E-02   -.51964    
   3  Normalizat    1.1480        .20865        .97682E-05   -.88224    
   4  Prefactor     1.0069        .21694        .10846E-04   -.92500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70268e-14
Minuit parameter uncertainties:
  1  11.139
  2  0.701077
  3  0.208797
  4  0.217124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795562': 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) = 6873.54626757
delta logL = 0.0578262956642

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.223e+01  1.114e+01  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  2.517e+00  7.011e-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.007e+00  2.171e-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.148e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 162.913 21.165
Photon Index (Free Index): 2.52 +/- 0.70
Photon Flux (Free Index): 4.79e-08 +/- 4.61e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/795562/cmap_HighResolution_692150401_692409601_4FGL_J1051.6+2109_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='1.36e-05', photon_flux_error='5.21e-08', dlogl='5.78e-02', energy_flux='1.20e-05', photon_flux2='4.79e-08', job_status='DONE', time_completed='2022-12-11 00:46:06.473708', photon_index_error2='0.70', photon_index2='2.52', ts='1.55', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.28e-05', EG='1.14', time_epoch_completed='1670748366.47', return_code='0', job_id='795562', GAL2='1.01', EG2='1.15', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.61e-08', ts2='1.68', photon_index='2.77' WHERE bin_id='1747' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:46:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 795562: <4FGL_J1051.6+2109_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1747> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Dec 11 00:35:23 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:35:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:35:25 2022
Terminated at Sun Dec 11 00:46:07 2022
Results reported at Sun Dec 11 00:46:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1747 162.913 21.1651 692150401 692409601 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 :                                   582.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            644 sec.

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

