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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1666
RA = 337.426, Dec = -8.5447
tmin = 671155201, tmax = 671414401
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='414497', job_status='RUN', time_executed='2022-04-12 00:36:52.226956', time_epoch_executed='1649749012.23' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414497/ft1_4FGL_J2229.7-0832_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414497/ft1_4FGL_J2229.7-0832_daily_bin1666.fits outfile=/scratch/kocevski/414497/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1666.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=671155201.0 tmax=671414401.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 5.28
user 5.03
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.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/414497/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1666.fits evtable="EVENTS" outfile="/scratch/kocevski/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.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: 824

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/414497/ltcube_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.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/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits
.....................!
real 11.88
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/414497/ltcube_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.fits outfile=/scratch/kocevski/414497/expmap_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.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/414497/ltcube_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.fits
.....................!
real 190.70
user 185.41
sys 4.98

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/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits scfile=/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits outfile=/scratch/kocevski/414497/cmap_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.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.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits scfile=/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits outfile=/scratch/kocevski/414497/cmap_HighResolution_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414497/Model_4FGL_J2229.7-0832_daily_bin1666.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/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits.....................!
real 77.98
user 76.66
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits', '/scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits', expMap='/scratch/kocevski/414497/expmap_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.fits', expCube='/scratch/kocevski/414497/ltcube_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414497/Model_4FGL_J2229.7-0832_daily_bin1666.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/414497/ft1_filtered_4FGL_J2229.7-0832_daily_bin1666.fits
Spacecraft file(s): /scratch/kocevski/414497/ft2_4FGL_J2229.7-0832_daily_bin1666.fits
Exposure map: /scratch/kocevski/414497/expmap_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.fits
Exposure cube: /scratch/kocevski/414497/ltcube_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414497/Model_4FGL_J2229.7-0832_daily_bin1666.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) = 8891.67185289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.354       1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5949       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.086       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33892E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.255       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6569       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.417       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59341       1.0000         .10000E-03   10000.    
    20 'norm      '    18.929       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88893       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=   8891.667     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2389 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3054        .20377E-07** at limit **
   2  Prefactor     3.4288        4.1725        .46173E-06    .37013E-05
   3  Prefactor     .10000E-03    4.9144       -.14840E-07** at limit **
   4  Prefactor     10.358        14.332        .12424E-05    .16120E-03
   5  Prefactor     49.522        20.311       -.18877E-06   -.10339E-03
   6  Prefactor     8.5908        14.506        .78968E-06    .63661E-04
   7  Prefactor     7.0105        9.7006        .82670E-06    .10673E-03
   8  Prefactor     13.084        9.0319       -.48898E-06    .30840E-04
   9  Prefactor     .10000E-03    284.90       -.50247E-05** at limit **
  10  Prefactor     6.7606        4.0021        .18478E-05   -.34791E-03
  11  Prefactor     80.197        53.036       -.28908E-05   -.30541E-03
  12  norm          4.6451        3.6585       -.57808E-07   -.13138E-03
  13  Prefactor     .10000E-03    75.877        .77385E-06** at limit **
  14  norm          3.5216        1.0021        .32190E-07   -.41276E-03
  15  Prefactor     .10000E-03    7.6140        .70709E-06** at limit **
  16  norm          .10000E-03    .22894        .47458E-06** at limit **
  17  Prefactor     14.426        14.168        .10569E-05    .19188E-03
  18  Prefactor     .10000E-03    2.5421        .10616E-06** at limit **
  19  Prefactor     .58867        5.5723       -.11590E-05    .38912E-03
  20  norm          18.931        10.807        .17328E-06   -.64602E-06
  21  Normalizat    1.1131        .17955       -.16908E-05   -.49775E-04
  22  Prefactor     .88888        .11586        .17591E-07   -.19522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.42884
  Prefactor  = 0.0001
  Prefactor  = 10.3584
  Prefactor  = 49.5216
  Prefactor  = 8.59083
  Prefactor  = 7.01053
  Prefactor  = 13.0844
  Prefactor  = 0.000100004
  Prefactor  = 6.76061
  Prefactor  = 80.1974
  norm       = 4.64509
  Prefactor  = 0.0001
  norm       = 3.5216
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4264
  Prefactor  = 0.0001
  Prefactor  = 0.588674
  norm       = 18.9313
  Normalizat = 1.1131
  Prefactor  = 0.88888
 **********
 **   18 **HESSE 
 **********

 FCN=   8891.667     FROM HESSE     STATUS=OK           348 CALLS     2737 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3120        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4288        4.1636        .20289E-03   -1.5338    
   3  Prefactor     .10000E-03    4.9524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.358        14.377        .12452E-03   -1.5064    
   5  Prefactor     49.522        20.308        .56995E-04   -1.4299    
   6  Prefactor     8.5908        14.505        .13673E-03   -1.5122    
   7  Prefactor     7.0105        9.7380        .15145E-03   -1.5178    
   8  Prefactor     13.084        9.0415        .11073E-03   -1.4984    
   9  Prefactor     .10000E-03    289.26        .19692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7606        4.0913        .68384E-03   -1.5188    
  11  Prefactor     80.197        54.752        .22416E-03   -1.3915    
  12  norm          4.6451        3.6509        .14904E-03   -1.5277    
  13  Prefactor     .10000E-03    76.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5216        1.0022        .47576E-04   -1.5333    
  15  Prefactor     .10000E-03    7.7437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .26499        .85467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.426        14.168        .10549E-03   -1.4948    
  18  Prefactor     .10000E-03    2.5467        .14682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58867        21.315        .41866E-02   -1.5555    
  20  norm          18.931        10.814        .92059E-04   -1.4837    
  21  Normalizat    1.1131        .21065        .28691E-03   -.89332    
  22  Prefactor     .88888        .13615        .21580E-03   -.96531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73214e-09
Minuit parameter uncertainties:
  1  5.34724e-08
  2  4.16397
  3  3.74212e-06
  4  14.3819
  5  20.3104
  6  14.5112
  7  9.74024
  8  9.04241
  9  0.00219103
  10  4.09144
  11  54.7869
  12  3.65106
  13  0.000204076
  14  1.00217
  15  3.80585e-05
  16  5.82054e-06
  17  14.1716
  18  1.49566e-07
  19  7.08664
  20  10.8147
  21  0.210805
  22  0.136202
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  4.645e+00  3.651e+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:  8.889e-01  1.362e-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.113e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/414497/likelihoodResults_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.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) = 8890.66055112
delta logL = 1.00684992021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8890.64594317
delta logL = 1.02145786709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0568       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6442       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86341       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=   8890.646     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0572        2.6852        .50047E-02    .35333E-03
   2  alpha         1.6442        .32080        .33246       -.72162E-04
   3  Normalizat    1.1552        .16800        .63817E-01    .19399E-04
   4  Prefactor     .86344        .11532        .44537E-01    .95684E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05716
  alpha      = 1.64422
  Normalizat = 1.15522
  Prefactor  = 0.863441
 **********
 **   18 **HESSE 
 **********

 FCN=   8890.646     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0572        3.3612        .12014E-03   -1.5305    
   2  alpha         1.6442        .47109        .12544E-01   -.34938    
   3  Normalizat    1.1552        .19717        .28229E-03   -.87998    
   4  Prefactor     .86344        .13511        .21843E-03   -.97431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02549e-12
Minuit parameter uncertainties:
  1  3.36135
  2  0.474302
  3  0.197298
  4  0.135158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414497': 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) = 8890.64594312
delta logL = 1.02145791996

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  4.057e+00  3.361e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.644e+00  4.743e-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:  8.634e-01  1.352e-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.155e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 1.64 +/- 0.47
Photon Flux (Free Index): 3.89e-08 +/- 3.20e-08
Energy Flux (Free Index): 3.00e-05 +/- 2.38e-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/414497/cmap_HighResolution_671155201_671414401_4FGL_J2229.7-0832_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='3.00e-05', photon_flux_error='4.48e-08', dlogl='1.02e+00', energy_flux='1.51e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2022-04-12 00:49:16.948626', photon_index_error2='0.47', photon_index2='1.64', ts='2.08', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='2.38e-05', EG='1.11', time_epoch_completed='1649749756.95', return_code='0', job_id='414497', GAL2='0.86', EG2='1.16', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.20e-08', ts2='4.15', photon_index='2.47' WHERE bin_id='1666' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:49:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 414497: <4FGL_J2229.7-0832_daily_bin1666> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 12 00:35:38 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:35:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:35:39 2022
Terminated at Tue Apr 12 00:49:17 2022
Results reported at Tue Apr 12 00:49:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1666 337.426 -8.5447 671155201 671414401 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 :                                   746.53 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

