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 116 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_bin1746
RA = 162.913, Dec = 21.1651
tmin = 691891201, tmax = 692150401
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='721331', job_status='RUN', time_executed='2022-12-08 00:42:25.129069', time_epoch_executed='1670488945.13' WHERE source_name='4FGL J1051.6+2109' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721331/ft1_4FGL_J1051.6+2109_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721331/ft2_4FGL_J1051.6+2109_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721331/ft1_4FGL_J1051.6+2109_daily_bin1746.fits outfile=/scratch/kocevski/721331/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1746.fits ra=162.913 dec=21.1651 rad=12.0 tmin=691891201.0 tmax=692150401.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.72
user 4.47
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721331/ft2_4FGL_J1051.6+2109_daily_bin1746.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/721331/ft1_filteredMKT_4FGL_J1051.6+2109_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/721331/ft1_filtered_4FGL_J1051.6+2109_daily_bin1746.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 597

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721331/ft1_filtered_4FGL_J1051.6+2109_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/721331/ft2_4FGL_J1051.6+2109_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/721331/ltcube_691891201_692150401_4FGL_J1051.6+2109_daily_bin1746.fits outfile=/scratch/kocevski/721331/expmap_691891201_692150401_4FGL_J1051.6+2109_daily_bin1746.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/721331/ltcube_691891201_692150401_4FGL_J1051.6+2109_daily_bin1746.fits
.....................!
real 190.13
user 184.61
sys 5.21

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/721331/ft1_filtered_4FGL_J1051.6+2109_daily_bin1746.fits scfile=/scratch/kocevski/721331/ft2_4FGL_J1051.6+2109_daily_bin1746.fits outfile=/scratch/kocevski/721331/cmap_691891201_692150401_4FGL_J1051.6+2109_daily_bin1746.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2999       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47392E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    130.34       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38071E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .68001E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.660       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.9086       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24885E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.291       1.0000          .0000       .10000E+07
    10 'Prefactor '    .28604E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .54126E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .22154       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4802       1.0000          .0000       .10000E+07
    14 'Prefactor '    .46220E-05   1.0000          .0000       .10000E+07
    15 'norm      '    5.9436       1.0000          .0000       .10000E+07
    16 'Prefactor '    .25835E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3270       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .83177       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=   6683.250     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1348 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3027        8.5762        .13270E-05    .35354E-03
   2  Prefactor      .0000        27.205        .29205E-05** at limit **
   3  Prefactor     130.84        73.210        .12659E-05   -.18474E-02
   4  Prefactor     .55511E-10    5.7535       -.75277E-06** at limit **
   5  Prefactor      .0000        .64889       -.23264E-06** at limit **
   6  Prefactor     12.763        7.0716       -.19267E-06    .26445E-03
   7  Prefactor     5.8495        6.7410        .22906E-07   -.49373E-02
   8  Prefactor     .33307E-09    7.1655        .13720E-05** at limit **
   9  Prefactor     10.244        5.0821        .36837E-06    .12118E-01
  10  Prefactor     .44409E-09    7.5447       -.10774E-05** at limit **
  11  Prefactor     .34273E-06    11.346       -.13985E-05** at limit **
  12  norm          .22031        .80713        .31432E-06** at limit **
  13  Prefactor     5.4830        3.3114       -.37673E-07    .79542E-03
  14  Prefactor     .65403E-06    7.0955       -.76658E-06** at limit **
  15  norm          5.9777        10.980       -.11694E-05   -.37283E-02
  16  Prefactor     .55511E-10    2.5072        .66504E-06** at limit **
  17  Normalizat    1.3269        .20398       -.16499E-04    .29396E-04
  18  Prefactor     .83167        .20210        .13308E-04    .39846E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30269
  Prefactor  = 0
  Prefactor  = 130.839
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 12.7628
  Prefactor  = 5.84952
  Prefactor  = 3.33067e-10
  Prefactor  = 10.2437
  Prefactor  = 4.44089e-10
  Prefactor  = 3.42726e-07
  norm       = 0.220314
  Prefactor  = 5.48297
  Prefactor  = 6.54032e-07
  norm       = 5.97772
  Prefactor  = 5.55112e-11
  Normalizat = 1.32694
  Prefactor  = 0.831671
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.250     FROM HESSE     STATUS=OK           282 CALLS     1630 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3027        8.5946        .67642E-03   -1.5678    
   2  Prefactor      .0000        27.044        .15646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     130.84        73.236        .87597E-04   -1.5479    
   4  Prefactor     .55511E-10    5.7438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .64802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.763        7.0582        .28127E-03   -1.5637    
   7  Prefactor     5.8495        8.8597        .41289E-03   -1.5660    
   8  Prefactor     .33307E-09    7.5627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.244        11.751        .31210E-03   -1.5644    
  10  Prefactor     .44409E-09    7.9130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .34273E-06    17.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .22031        .79204        .11404E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4830        3.3038        .42898E-03   -1.5661    
  14  Prefactor     .65403E-06    18.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9777        11.011        .41165E-03   -1.5659    
  16  Prefactor     .55511E-10    2.5053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3269        .17206        .51936E-01   -.82766    
  18  Prefactor     .83167        .17180        .65364E-01   -.98571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87531e-08
Minuit parameter uncertainties:
  1  8.59461
  2  1.47517e-05
  3  73.2368
  4  2.82745e-05
  5  5.73656e-07
  6  7.05819
  7  8.85976
  8  9.65056e-05
  9  11.7507
  10  0.000118585
  11  0.00489817
  12  0.79204
  13  3.30377
  14  0.00703462
  15  11.0114
  16  2.32427e-05
  17  0.172133
  18  0.171913
Done.

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

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.850e+00  8.860e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.317e-01  1.719e-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.327e+00  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721331/likelihoodResults_691891201_692150401_4FGL_J1051.6+2109_daily_bin1746.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) = 6683.2043911
delta logL = 0.0460601512596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.19723668
delta logL = 0.0532145722691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0264       1.0000          .0000       .10000E+07
     2 'Index     '    3.1692       1.0000          .0000       10.000    
     3 'Normalizat'    1.3148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83987       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=   6683.197     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0238        12.588        .44828E-03    .32758E-02
   2  Index         3.1698        2.0227        .21745E-01    .30392E-04
   3  Normalizat    1.3150        .17006        .52135E-01    .27819E-04
   4  Prefactor     .83969        .17147        .65090E-01    .22009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.02383
  Index      = 3.1698
  Normalizat = 1.31496
  Prefactor  = 0.839685
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.197     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0238        7.7019        .17931E-04   -1.5663    
   2  Index         3.1698        1.2696        .86981E-03   -.37475    
   3  Normalizat    1.3150        .20281        .23051E-03   -.83121    
   4  Prefactor     .83969        .20284        .28792E-03   -.98282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47974e-12
Minuit parameter uncertainties:
  1  7.70189
  2  1.28591
  3  0.20293
  4  0.203024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721331': 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) = 6683.19723612
delta logL = 0.0532151353527

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  5.024e+00  7.702e+00  0.000e+00  1.000e+06 ( 1.000e-12)
245        Index:  3.170e+00  1.286e+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:  8.397e-01  2.030e-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.315e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
Ra Dec: 162.913 21.165

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/721331/cmap_HighResolution_691891201_692150401_4FGL_J1051.6+2109_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2022-12-08 00:52:02.083146', job_id='721331', GAL2='0.84', fit_tolerance='1e-08', EG2='1.31', EG='1.33', time_epoch_completed='1670489522.08', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.32e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='1746' AND source_name='4FGL J1051.6+2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:52:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 721331: <4FGL_J1051.6+2109_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1051.6+2109_daily_bin1746> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec  8 00:40:15 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:40:16 2022
Terminated at Thu Dec  8 00:52:02 2022
Results reported at Thu Dec  8 00:52:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_daily_bin1746 162.913 21.1651 691891201 692150401 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 :                                   579.04 sec.
    Max Memory :                                 1240 MB
    Average Memory :                             288.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

