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 93 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_J1054.5+2211_daily_bin1746
RA = 163.628, Dec = 22.1913
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='721334', job_status='RUN', time_executed='2022-12-08 00:41:58.503517', time_epoch_executed='1670488918.5' WHERE source_name='4FGL J1054.5+2211' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721334

Creating custom pfile directory:
/scratch/kocevski/721334/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/721334/ft1_4FGL_J1054.5+2211_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/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721334/ft1_4FGL_J1054.5+2211_daily_bin1746.fits outfile=/scratch/kocevski/721334/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1746.fits ra=163.628 dec=22.1913 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.77
user 4.52
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_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/721334/ft1_filteredMKT_4FGL_J1054.5+2211_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_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.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 588

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/721334/ltcube_691891201_692150401_4FGL_J1054.5+2211_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/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/721334/ltcube_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.fits outfile=/scratch/kocevski/721334/expmap_691891201_692150401_4FGL_J1054.5+2211_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/721334/ltcube_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.fits
.....................!
real 190.10
user 185.37
sys 4.37

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits scfile=/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits outfile=/scratch/kocevski/721334/cmap_691891201_692150401_4FGL_J1054.5+2211_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=163.628 yref=22.1913 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/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits scfile=/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits outfile=/scratch/kocevski/721334/cmap_HighResolution_691891201_692150401_4FGL_J1054.5+2211_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=163.628 yref=22.1913 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721334/Model_4FGL_J1054.5+2211_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/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits.....................!
real 60.47
user 59.02
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits', '/scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits', expMap='/scratch/kocevski/721334/expmap_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.fits', expCube='/scratch/kocevski/721334/ltcube_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/721334/Model_4FGL_J1054.5+2211_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/721334/ft1_filtered_4FGL_J1054.5+2211_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/721334/ft2_4FGL_J1054.5+2211_daily_bin1746.fits
Exposure map: /scratch/kocevski/721334/expmap_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.fits
Exposure cube: /scratch/kocevski/721334/ltcube_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/721334/Model_4FGL_J1054.5+2211_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) = 6579.88103949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2644       1.0000          .0000       .10000E+07
     2 'Prefactor '    .22204E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    108.00       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10258E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18874E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.936       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1189       1.0000          .0000       .10000E+07
     8 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.317       1.0000          .0000       .10000E+07
    10 'Prefactor '    .93814E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15729E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .36328       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4138       1.0000          .0000       .10000E+07
    14 'Prefactor '    .18768E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .82734E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2961       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6579.865     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1772 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2640        8.5643       -.88436E-08    .53365E-03
   2  Prefactor     .55511E-10    27.765       -.39958E-07** at limit **
   3  Prefactor     108.02        1.7028        .19854E-08    .66003E-01
   4  Prefactor      .0000        6.1822       -.15332E-06** at limit **
   5  Prefactor      .0000        .65634       -.97627E-07** at limit **
   6  Prefactor     12.936        7.0949       -.42770E-07    .88877E-03
   7  Prefactor     6.1158        6.5678       -.77308E-07   -.14471E-01
   8  Prefactor     .61062E-09    7.0621       -.20218E-07** at limit **
   9  Prefactor     10.319        3.8292       -.27906E-07    .35456E-01
  10  Prefactor     .77716E-09    8.0507       -.16449E-06** at limit **
  11  Prefactor     .55511E-10    18.302        .95163E-07** at limit **
  12  norm          .36330        .88620       -.49133E-07    .45096E-03
  13  Prefactor     5.4144        3.2741        .58994E-07   -.21821E-03
  14  Prefactor     .44409E-09    22.181       -.12474E-06** at limit **
  15  norm          .71054E-08    256.94        .12098E-05** at limit **
  16  Prefactor      .0000        2.4957        .29572E-09** at limit **
  17  Prefactor      .0000        3.8542        .96929E-07** at limit **
  18  Normalizat    1.2962        .20015       -.26634E-06   -.10559E-04
  19  Prefactor     .85129        .20327        .29099E-06   -.12111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26395
  Prefactor  = 5.55112e-11
  Prefactor  = 108.023
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 12.936
  Prefactor  = 6.11583
  Prefactor  = 6.10623e-10
  Prefactor  = 10.3186
  Prefactor  = 7.77156e-10
  Prefactor  = 5.55112e-11
  norm       = 0.363301
  Prefactor  = 5.41441
  Prefactor  = 4.44089e-10
  norm       = 7.10543e-09
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.29616
  Prefactor  = 0.851286
 **********
 **   18 **HESSE 
 **********

 FCN=   6579.865     FROM HESSE     STATUS=OK           310 CALLS     2082 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2640        8.5809        .68230E-03   -1.5678    
   2  Prefactor     .55511E-10    28.184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     108.02        64.958        .96232E-04   -1.5500    
   4  Prefactor      .0000        6.1734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .65533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.936        7.0945        .27824E-03   -1.5636    
   7  Prefactor     6.1158        8.9676        .40563E-03   -1.5659    
   8  Prefactor     .61062E-09    7.0976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.319        11.806        .31171E-03   -1.5644    
  10  Prefactor     .77716E-09    8.0779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    18.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36330        .90223        .93870E-03   -1.5720    
  13  Prefactor     5.4144        3.2749        .43164E-03   -1.5661    
  14  Prefactor     .44409E-09    21.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .71054E-08    12.142        .67695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.5012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.8704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2962        .17068        .51783E-01   -.83681    
  19  Prefactor     .85129        .17347        .64874E-01   -.97865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98527e-07
Minuit parameter uncertainties:
  1  8.58094
  2  9.5069e-05
  3  64.958
  4  1.76274e-05
  5  9.84922e-07
  6  7.09446
  7  8.96767
  8  0.000131845
  9  11.8065
  10  0.000156353
  11  6.29441e-05
  12  0.90223
  13  3.27487
  14  0.000192333
  15  0.000588364
  16  2.46808e-06
  17  2.53731e-06
  18  0.170756
  19  0.173582
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.032e+01  1.181e+01  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.513e-01  1.736e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.296e+00  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.65e-05

TS (Fixed Index): 1.28
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721334/likelihoodResults_691891201_692150401_4FGL_J1054.5+2211_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) = 6579.86189395
delta logL = 0.00331321279009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6579.86039428
delta logL = 0.00481288728042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.963       1.0000          .0000       .10000E+07
     2 'Index     '    2.0541       1.0000          .0000       10.000    
     3 'Normalizat'    1.2990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   6579.860     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.964        13.156        .12093E-04   -.15897E-02
   2  Index         2.0540        .83713        .10352E-01   -.63205E-04
   3  Normalizat    1.2991        .19611        .22873E-03    .12544E-03
   4  Prefactor     .84928        .20277        .28725E-03    .13025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9636
  Index      = 2.05399
  Normalizat = 1.29906
  Prefactor  = 0.849283
 **********
 **   18 **HESSE 
 **********

 FCN=   6579.860     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.964        12.616        .48374E-06   -1.5642    
   2  Index         2.0540        .80267        .41410E-03   -.63007    
   3  Normalizat    1.2991        .19599        .45747E-04   -.83595    
   4  Prefactor     .84928        .20276        .11490E-04   -.97936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06502e-10
Minuit parameter uncertainties:
  1  12.6164
  2  0.808045
  3  0.196105
  4  0.202934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721334': 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) = 6579.86039427
delta logL = 0.00481289507206

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  1.096e+01  1.262e+01  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.054e+00  8.080e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.493e-01  2.029e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.299e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.05 +/- 0.81
Photon Flux (Free Index): 2.60e-08 +/- 3.55e-08
Energy Flux (Free Index): 1.58e-05 +/- 2.23e-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/721334/cmap_HighResolution_691891201_692150401_4FGL_J1054.5+2211_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='1.58e-05', photon_flux_error='3.23e-08', dlogl='4.81e-03', energy_flux='1.44e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2022-12-08 00:51:53.232957', photon_index_error2='0.81', photon_index2='2.05', ts='1.28', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.31e-08', energy_flux_error2='2.23e-05', EG='1.30', time_epoch_completed='1670489513.23', return_code='0', job_id='721334', GAL2='0.85', EG2='1.30', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='3.55e-08', ts2='1.30', photon_index='2.13' WHERE bin_id='1746' AND source_name='4FGL J1054.5+2211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:51:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 721334: <4FGL_J1054.5+2211_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1054.5+2211_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) <bullet0228>, 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:51:54 2022
Results reported at Thu Dec  8 00:51:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1054.5+2211_daily_bin1746 163.628 22.1913 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1054.5+2211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            699 sec.

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

