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 228 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1700
RA = 337.426, Dec = -8.5447
tmin = 679968001, tmax = 680227201
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='83390', job_status='RUN', time_executed='2022-07-23 00:39:45.406606', time_epoch_executed='1658561985.41' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83390/ft1_4FGL_J2229.7-0832_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83390/ft1_4FGL_J2229.7-0832_daily_bin1700.fits outfile=/scratch/kocevski/83390/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1700.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=679968001.0 tmax=680227201.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.57
user 4.31
sys 0.22

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

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

Number of photons that the gtmktime cut: 592

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83390/ltcube_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.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/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits
.....................!
real 12.15
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83390/ltcube_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.fits outfile=/scratch/kocevski/83390/expmap_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.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/83390/ltcube_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.fits
.....................!
real 191.87
user 185.65
sys 5.80

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/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits scfile=/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits outfile=/scratch/kocevski/83390/cmap_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits scfile=/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits outfile=/scratch/kocevski/83390/cmap_HighResolution_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83390/Model_4FGL_J2229.7-0832_daily_bin1700.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/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits.....................!
real 60.38
user 58.57
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits', '/scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits', expMap='/scratch/kocevski/83390/expmap_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.fits', expCube='/scratch/kocevski/83390/ltcube_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83390/Model_4FGL_J2229.7-0832_daily_bin1700.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  1.000e-04  1.000e+04 ( 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  0.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/83390/ft1_filtered_4FGL_J2229.7-0832_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83390/ft2_4FGL_J2229.7-0832_daily_bin1700.fits
Exposure map: /scratch/kocevski/83390/expmap_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83390/ltcube_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83390/Model_4FGL_J2229.7-0832_daily_bin1700.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) = 6431.04672328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    76.436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.289       1.0000         .10000E-03   10000.    
     9 'Prefactor '    132.34       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.000       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9323       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33906E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.783       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91731       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6431.039     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2853 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5767        .25554E-07** at limit **
   2  Prefactor     .10000E-03    11.850       -.25748E-06** at limit **
   3  Prefactor     .10000E-03    3.3159        .83578E-08** at limit **
   4  Prefactor     .10000E-03    10.871       -.72833E-06** at limit **
   5  Prefactor     13.641        13.670        .86230E-07   -.41612E-05
   6  Prefactor     .10000E-03    8.0314        .56327E-06** at limit **
   7  Prefactor     76.439        19.351        .15594E-06    .11331E-03
   8  Prefactor     10.284        11.337        .10906E-06   -.48210E-04
   9  Prefactor     132.33        91.845       -.47309E-06   -.99366E-05
  10  Prefactor     .10000E-03    4.3534        .70335E-07** at limit **
  11  Prefactor     .10000E-03    17.921        .20719E-05** at limit **
  12  norm          5.0476        3.7035       -.64929E-07   -.16951E-03
  13  Prefactor     58.989        70.285       -.13248E-05   -.28618E-04
  14  norm          2.9322        1.0880        .19657E-08   -.41499E-04
  15  Prefactor     .10001E-03    6.0911       -.17530E-05** at limit **
  16  norm          .10131        .43638        .97556E-06   -.50994E-03
  17  Prefactor     .10000E-03    5.2235       -.26695E-06** at limit **
  18  Prefactor     14.164        11.654       -.65459E-07   -.60061E-05
  19  Prefactor     10.782        8.7224        .13986E-08    .28337E-05
  20  norm          .10000E-03    23.203       -.17493E-05** at limit **
  21  Normalizat    1.0380        .20504       -.94495E-07    .11334E-03
  22  Prefactor     .91728        .13636       -.11579E-07    .13860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6413
  Prefactor  = 0.0001
  Prefactor  = 76.4386
  Prefactor  = 10.2837
  Prefactor  = 132.33
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.04759
  Prefactor  = 58.9894
  norm       = 2.93219
  Prefactor  = 0.000100008
  norm       = 0.101308
  Prefactor  = 0.0001
  Prefactor  = 14.1637
  Prefactor  = 10.7821
  norm       = 0.0001
  Normalizat = 1.03803
  Prefactor  = 0.917281
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.039     FROM HESSE     STATUS=OK           338 CALLS     3191 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5770        .12572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3170        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.641        13.668        .10845E-03   -1.4969    
   6  Prefactor     .10000E-03    8.0618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     76.439        19.424        .45929E-04   -1.3957    
   8  Prefactor     10.284        11.305        .12492E-03   -1.5066    
   9  Prefactor     132.33        91.874        .35004E-04   -1.3402    
  10  Prefactor     .10000E-03    4.5116        .32571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0476        3.7054        .12413E-03   -1.5259    
  13  Prefactor     58.989        70.624        .52232E-04   -1.4170    
  14  norm          2.9322        1.0856        .48753E-04   -1.5365    
  15  Prefactor     .10001E-03    27.120        .35172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10131        .47641        .10816E-03   -1.5644    
  17  Prefactor     .10000E-03    5.2333        .17911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.164        11.649        .10643E-03   -1.4955    
  19  Prefactor     10.782        8.7224        .12201E-03   -1.5051    
  20  norm          .10000E-03    24.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0380        .24138        .29558E-03   -.91767    
  22  Prefactor     .91728        .16096        .21210E-03   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07292e-10
Minuit parameter uncertainties:
  1  5.19389e-07
  2  3.86919e-05
  3  6.49262e-07
  4  4.59026e-05
  5  13.6712
  6  2.14511e-05
  7  19.4253
  8  11.3073
  9  91.9734
  10  1.80364e-05
  11  0.000139512
  12  3.7056
  13  70.7244
  14  1.0856
  15  0.000953222
  16  0.43917
  17  1.1905e-05
  18  11.6513
  19  8.72343
  20  1.23642e-05
  21  0.241638
  22  0.16104
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.048e+00  3.706e+00  1.000e-04  1.000e+04 ( 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  0.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:  9.173e-01  1.610e-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.038e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/83390/likelihoodResults_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.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) = 6430.93565889
delta logL = 0.103835899426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6430.93285625
delta logL = 0.10663854024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8559       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1430       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90979       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=   6430.933     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8559        3.6337        .45637E-02   -.25988E-02
   2  alpha         2.1428        .56013        .41695       -.32292E-04
   3  Normalizat    1.0531        .19913        .66404E-01    .13205E-04
   4  Prefactor     .90975        .13562        .45130E-01    .70674E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.85591
  alpha      = 2.1428
  Normalizat = 1.05305
  Prefactor  = 0.909748
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.933     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8559        3.6432        .12211E-03   -1.5267    
   2  alpha         2.1428        .67001        .17067E-01   -.14337    
   3  Normalizat    1.0531        .23565        .29376E-03   -.91274    
   4  Prefactor     .90975        .16001        .21285E-03   -.95801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18358e-09
Minuit parameter uncertainties:
  1  3.64336
  2  0.678477
  3  0.235883
  4  0.160093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83390': 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) = 6430.93285618
delta logL = 0.106638608219

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  4.856e+00  3.643e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.143e+00  6.785e-01  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.910e-02  0.000e+00  0.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:  9.097e-01  1.601e-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.053e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.14 +/- 0.68
Photon Flux (Free Index): 5.13e-08 +/- 4.40e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.43e-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/83390/cmap_HighResolution_679968001_680227201_4FGL_J2229.7-0832_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='1.84e-05', photon_flux_error='4.54e-08', dlogl='1.07e-01', energy_flux='1.64e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2022-07-23 00:50:52.580949', photon_index_error2='0.68', photon_index2='2.14', ts='3.30', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.43e-05', EG='1.04', time_epoch_completed='1658562652.58', return_code='0', job_id='83390', GAL2='0.91', EG2='1.05', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.40e-08', ts2='3.52', photon_index='2.47' WHERE bin_id='1700' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:50:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 83390: <4FGL_J2229.7-0832_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:43 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:45 2022
Terminated at Sat Jul 23 00:50:53 2022
Results reported at Sat Jul 23 00:50:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1700 337.426 -8.5447 679968001 680227201 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 :                                   657.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

