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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1735
RA = 337.426, Dec = -8.5447
tmin = 689040001, tmax = 689299201
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='866630', job_status='RUN', time_executed='2022-11-05 00:37:00.735114', time_epoch_executed='1667633820.74' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866630/ft1_4FGL_J2229.7-0832_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866630/ft1_4FGL_J2229.7-0832_daily_bin1735.fits outfile=/scratch/kocevski/866630/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1735.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=689040001.0 tmax=689299201.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.66
user 3.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.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/866630/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1735.fits evtable="EVENTS" outfile="/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.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.32
sys 0.16

Number of photons that the gtmktime cut: 710

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/866630/ltcube_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.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/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits
.....................!
real 11.72
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866630/ltcube_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.fits outfile=/scratch/kocevski/866630/expmap_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.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/866630/ltcube_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.fits
.....................!
real 190.51
user 185.21
sys 4.95

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

Setting source of interest to:
4FGL J2229.7-0832 @ 337.426 -8.5447

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits scfile=/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits outfile=/scratch/kocevski/866630/cmap_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.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=337.426 yref=-8.5447 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits scfile=/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits outfile=/scratch/kocevski/866630/cmap_HighResolution_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.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=337.426 yref=-8.5447 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866630/Model_4FGL_J2229.7-0832_daily_bin1735.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/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits.....................!
real 69.30
user 67.89
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits', '/scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits', expMap='/scratch/kocevski/866630/expmap_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.fits', expCube='/scratch/kocevski/866630/ltcube_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866630/Model_4FGL_J2229.7-0832_daily_bin1735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2229.7-0832'

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.119e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/866630/ft1_filtered_4FGL_J2229.7-0832_daily_bin1735.fits
Spacecraft file(s): /scratch/kocevski/866630/ft2_4FGL_J2229.7-0832_daily_bin1735.fits
Exposure map: /scratch/kocevski/866630/expmap_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.fits
Exposure cube: /scratch/kocevski/866630/ltcube_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866630/Model_4FGL_J2229.7-0832_daily_bin1735.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) = 7559.50544822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7734       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.261       1.0000          .0000       .10000E+07
     3 'Prefactor '    .51903E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32030E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.878       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.306       1.0000          .0000       .10000E+07
     7 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98061       1.0000          .0000       .10000E+07
     9 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    10 'Prefactor '    100.91       1.0000          .0000       .10000E+07
    11 'norm      '    2.4519       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10004E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .13012E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    20.766       1.0000          .0000       .10000E+07
    15 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    16 'Prefactor '    100.75       1.0000          .0000       .10000E+07
    17 'Prefactor '    .99920E-09   1.0000          .0000       .10000E+07
    18 'norm      '    10.075       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4952       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .66348       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7559.500     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1915 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7734        4.7292        .16171E-06   -.28200E-02
   2  Prefactor     10.262        6.3347       -.76209E-07   -.18087E-02
   3  Prefactor     .77716E-09    14.036        .13730E-05** at limit **
   4  Prefactor     .39968E-08    8.0963       -.35712E-06** at limit **
   5  Prefactor     16.872        1.3711       -.11779E-06    .11641E-01
   6  Prefactor     21.319        1.3879       -.21707E-06    .37709E-01
   7  Prefactor     .49960E-09    5.0196       -.26958E-05** at limit **
   8  Prefactor     .98071        .52035        .34876E-06   -.10246E-01
   9  Prefactor      .0000        1.3545        .13152E-06** at limit **
  10  Prefactor     100.87        1.1288        .73896E-07   -.65630E-01
  11  norm          2.4501        3.2573       -.72865E-07   -.15439E-02
  12  Prefactor     .20539E-08    31.127       -.39192E-07** at limit **
  13  norm          .49960E-09    3.7739       -.46793E-06** at limit **
  14  Prefactor     20.769        3.0028        .60721E-06   -.54412E-01
  15  norm          .55511E-10    1.4444        .28595E-07** at limit **
  16  Prefactor     100.77        1.3359       -.73911E-07    .11150    
  17  Prefactor     .55511E-08    5.4469        .25585E-05** at limit **
  18  norm          10.075        9.4233       -.37650E-05   -.84251E-02
  19  Normalizat    1.4952        .22083       -.19868E-05    .32568E-03
  20  Prefactor     .66342        .14303        .26471E-05    .21506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77339
  Prefactor  = 10.2619
  Prefactor  = 7.77156e-10
  Prefactor  = 3.9968e-09
  Prefactor  = 16.872
  Prefactor  = 21.3188
  Prefactor  = 4.996e-10
  Prefactor  = 0.980706
  Prefactor  = 0
  Prefactor  = 100.868
  norm       = 2.45009
  Prefactor  = 2.05391e-09
  norm       = 4.996e-10
  Prefactor  = 20.7691
  norm       = 5.55112e-11
  Prefactor  = 100.768
  Prefactor  = 5.55112e-09
  norm       = 10.0751
  Normalizat = 1.49524
  Prefactor  = 0.663421
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.500     FROM HESSE     STATUS=OK           341 CALLS     2256 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7734        4.7701        .78591E-03   -1.5681    
   2  Prefactor     10.262        6.3856        .31255E-03   -1.5644    
   3  Prefactor     .77716E-09    14.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .39968E-08    8.2949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.872        25.912        .24352E-03   -1.5626    
   6  Prefactor     21.319        32.660        .21671E-03   -1.5616    
   7  Prefactor     .49960E-09    5.0263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .98071        12.159        .43078E-03   -1.5688    
   9  Prefactor      .0000        1.3521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     100.87        73.047        .99554E-04   -1.5507    
  11  norm          2.4501        3.2775        .65299E-03   -1.5677    
  12  Prefactor     .20539E-08    31.162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .49960E-09    .41435        .31418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.769        17.958        .21951E-03   -1.5617    
  15  norm          .55511E-10    1.4440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     100.77        41.399        .99634E-04   -1.5507    
  17  Prefactor     .55511E-08    5.4632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.075        9.5144        .31544E-03   -1.5644    
  19  Normalizat    1.4952        .19858        .57707E-01   -.77912    
  20  Prefactor     .66342        .12384        .41913E-01   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03294e-06
Minuit parameter uncertainties:
  1  4.77011
  2  6.38556
  3  0.000206492
  4  0.000365017
  5  25.9119
  6  32.6604
  7  9.87164e-05
  8  6.90645
  9  5.34653e-06
  10  73.0475
  11  3.27746
  12  0.000506987
  13  2.92291e-05
  14  17.9576
  15  1.94691e-05
  16  41.3988
  17  0.000349047
  18  9.51441
  19  0.198686
  20  0.123892
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  2.450e+00  3.277e+00  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  6.634e-01  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.495e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866630/likelihoodResults_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.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) = 7559.14322101
delta logL = 0.356813807917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7559.12621939
delta logL = 0.373815427808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7621       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8582       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7559.126     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7608        46.503        .78897E-03    .69733E-02
   2  alpha         3.8604        2.9119        .50000        .30996E-04
   3  Normalizat    1.4526        .67274E-01    .58387E-01   -.65859E-04
   4  Prefactor     .68413        .46048E-01    .42189E-01   -.58994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76076
  alpha      = 3.86039
  Normalizat = 1.45259
  Prefactor  = 0.684129
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.126     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7608        74.945        .10189E-04   -1.5681    
   2  alpha         3.8604        3.5663        .43359E-01    .57538    
   3  Normalizat    1.4526        .24787        .25820E-03   -.79119    
   4  Prefactor     .68413        .18350        .23562E-03   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.70756e-07
Minuit parameter uncertainties:
  1  22.9751
  2  15.0441
  3  0.248071
  4  0.183665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866630': 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): 102
logL (Free Index) = 7559.12621844
delta logL = 0.373816381589

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.761e+00  2.298e+01  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  3.860e+00  1.504e+01  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.910e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  6.841e-01  1.837e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.453e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 3.86 +/- 15.04
Photon Flux (Free Index): 5.80e-08 +/- 5.99e-08
Energy Flux (Free Index): 9.01e-06 +/- 3.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/866630/cmap_HighResolution_689040001_689299201_4FGL_J2229.7-0832_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', comment='SUCCESS', energy_flux2='9.01e-06', dlogl='3.74e-01', photon_flux2='5.80e-08', job_status='DONE', time_completed='2022-11-05 00:47:11.332309', photon_index_error2='15.04', photon_index2='3.86', ts='0.68', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='3.01e-05', EG='1.50', time_epoch_completed='1667634431.33', return_code='0', job_id='866630', GAL2='0.68', EG2='1.45', return_code2='102', photon_flux_error2='5.99e-08', ts2='1.47', photon_index='2.47' WHERE bin_id='1735' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:47:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 866630: <4FGL_J2229.7-0832_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:22 2022
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:22 2022
Terminated at Sat Nov  5 00:47:12 2022
Results reported at Sat Nov  5 00:47:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1735 337.426 -8.5447 689040001 689299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2229.7-0832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   613.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            710 sec.

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

