/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 193 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 = 7406
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1408
RA = 337.426, Dec = -8.5447
tmin = 604281601, tmax = 604540801
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='314502', job_status='RUN', time_executed='2021-09-28 12:09:19.120508', time_epoch_executed='1632856159.12' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314502

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314502/ft1_4FGL_J2229.7-0832_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314502/ft1_4FGL_J2229.7-0832_daily_bin1408.fits outfile=/scratch/kocevski/314502/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1408.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=604281601.0 tmax=604540801.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.62
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314502/ft1_filtered_4FGL_J2229.7-0832_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/314502/ltcube_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.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/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits
.....................!
real 14.81
user 14.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314502/ft1_filtered_4FGL_J2229.7-0832_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/314502/ltcube_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.fits outfile=/scratch/kocevski/314502/expmap_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.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/314502/ltcube_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.fits
.....................!
real 190.94
user 185.06
sys 5.55

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/314502/ft1_filtered_4FGL_J2229.7-0832_daily_bin1408.fits scfile=/scratch/kocevski/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits outfile=/scratch/kocevski/314502/cmap_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314502/ft1_filtered_4FGL_J2229.7-0832_daily_bin1408.fits scfile=/scratch/kocevski/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits outfile=/scratch/kocevski/314502/cmap_HighResolution_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.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/314502/ft1_filtered_4FGL_J2229.7-0832_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/314502/ft2_4FGL_J2229.7-0832_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314502/Model_4FGL_J2229.7-0832_daily_bin1408.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/314502/ft1_filtered_4FGL_J2229.7-0832_daily_bin1408.fits.....................!
real 70.37
user 69.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.703       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   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      '    28.379       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1896       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    160.90       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23323E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4166       1.0000         .10000E-03   10000.    
    20 'norm      '    36.755       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55088       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5523       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=   7834.518     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2343 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.054        7.4293        .20736E-06    .62288E-04
   2  Prefactor     .10000E-03    4.5716        .62455E-07** at limit **
   3  Prefactor     .10000E-03    3.2576        .25726E-07** at limit **
   4  Prefactor     21.572        19.392       -.19731E-05    .17428E-04
   5  Prefactor     2.3300        25.980       -.12540E-05   -.86954E-04
   6  Prefactor     .10000E-03    8.8114        .36824E-07** at limit **
   7  Prefactor     10.698        12.751       -.11531E-05   -.11701E-02
   8  Prefactor     21.340        15.406        .21317E-06    .40673E-04
   9  Prefactor     .10000E-03    49.177       -.12155E-04** at limit **
  10  Prefactor     .10000E-03    1.4747        .93382E-08** at limit **
  11  Prefactor     .10000E-03    15.006        .12831E-06** at limit **
  12  norm          28.375        7.4580        .94426E-06    .17521E-03
  13  Prefactor     .10000E-03    46.350        .35806E-05** at limit **
  14  norm          2.1893        1.2869       -.16537E-07   -.96617E-04
  15  Prefactor     .10000E-03    31.633       -.10381E-04** at limit **
  16  norm          13.324        3.7100       -.17541E-05    .10170E-02
  17  Prefactor     160.92        83.291        .17242E-04   -.61998E-05
  18  Prefactor     .10001E-03    36.970        .16203E-04** at limit **
  19  Prefactor     3.4155        21.981       -.43460E-05   -.63003E-04
  20  norm          36.748        17.029       -.87576E-06    .31090E-04
  21  Normalizat    .55051        .28664       -.78447E-05   -.51628E-04
  22  Prefactor     1.5526        .18215        .23401E-05   -.14164E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5719
  Prefactor  = 2.33004
  Prefactor  = 0.0001
  Prefactor  = 10.698
  Prefactor  = 21.3402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.3748
  Prefactor  = 0.0001
  norm       = 2.18926
  Prefactor  = 0.0001
  norm       = 13.3243
  Prefactor  = 160.92
  Prefactor  = 0.000100005
  Prefactor  = 3.41548
  norm       = 36.7477
  Normalizat = 0.550509
  Prefactor  = 1.55264
 **********
 **   18 **HESSE 
 **********

 FCN=   7834.518     FROM HESSE     STATUS=OK           342 CALLS     2685 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.054        7.4317        .12050E-03   -1.5043    
   2  Prefactor     .10000E-03    4.6447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2590        .15602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.572        19.330        .86224E-04   -1.4779    
   5  Prefactor     2.3300        26.085        .26800E-03   -1.5403    
   6  Prefactor     .10000E-03    8.8217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.698        12.979        .61235E-03   -1.5054    
   8  Prefactor     21.340        15.342        .86692E-04   -1.4784    
   9  Prefactor     .10000E-03    49.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4781        .10490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.375        7.4395        .75205E-04   -1.4642    
  13  Prefactor     .10000E-03    46.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1893        1.2801        .73341E-04   -1.5412    
  15  Prefactor     .10000E-03    31.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.324        3.6939        .61782E-04   -1.4978    
  17  Prefactor     160.92        82.520        .31791E-04   -1.3164    
  18  Prefactor     .10001E-03    37.009        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4155        21.979        .21885E-03   -1.5338    
  20  norm          36.748        17.030        .66107E-04   -1.4495    
  21  Normalizat    .55051        .29837        .52405E-03   -1.1013    
  22  Prefactor     1.5526        .19670        .22252E-03   -.76076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53368e-09
Minuit parameter uncertainties:
  1  7.4323
  2  2.76117e-05
  3  1.44405e-06
  4  19.3357
  5  15.6005
  6  1.19794e-05
  7  12.9826
  8  15.3446
  9  2.86151e-05
  10  2.09996e-06
  11  3.13799e-06
  12  7.43976
  13  3.97524e-05
  14  1.28007
  15  0.00018947
  16  3.69393
  17  82.5789
  18  0.000888666
  19  17.3377
  20  17.032
  21  0.299242
  22  0.196801
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  2.837e+01  7.440e+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:  1.553e+00  1.968e-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:  5.505e-01  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.14
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.48e-07 +/- 9.12e-08
Energy Flux (Fixed Index): 9.20e-05 +/- 2.41e-05

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) = 7833.69433603
delta logL = 0.823602357882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7833.69235487
delta logL = 0.825583519507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.952       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1222       1.0000          .0000       5.0000    
     3 'Normalizat'    .62309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5138       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=   7833.692     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.952        7.4913        .18944E-02   -.73339E-02
   2  alpha         2.1222        .24131        .19618       -.39367E-04
   3  Normalizat    .62308        .26082        .11165        .43918E-04
   4  Prefactor     1.5139        .17557        .50867E-01   -.13550E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 27.952
  alpha      = 2.12224
  Normalizat = 0.623078
  Prefactor  = 1.51385
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.692     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.952        7.7198        .75776E-04   -1.4650    
   2  alpha         2.1222        .25974        .83356E-02   -.15169    
   3  Normalizat    .62308        .28796        .49514E-03   -1.0701    
   4  Prefactor     1.5139        .19434        .22485E-03   -.77152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27611e-08
Minuit parameter uncertainties:
  1  7.72007
  2  0.260219
  3  0.288661
  4  0.194431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314502': 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) = 7833.69235485
delta logL = 0.825583539238

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  2.795e+01  7.720e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.122e+00  2.602e-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:  1.514e+00  1.944e-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:  6.231e-01  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.37
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.12 +/- 0.26
Photon Flux (Free Index): 2.93e-07 +/- 9.16e-08
Energy Flux (Free Index): 1.08e-04 +/- 3.24e-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/314502/cmap_HighResolution_604281601_604540801_4FGL_J2229.7-0832_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-07', energy_flux2='1.08e-04', photon_flux_error='9.12e-08', dlogl='8.26e-01', energy_flux='9.20e-05', photon_flux2='2.93e-07', job_status='DONE', time_completed='2021-09-28 12:19:34.932218', photon_index_error2='0.26', photon_index2='2.12', ts='34.14', fit_tolerance='1e-08', GAL='1.55', photon_index_error='0.00', energy_flux_error2='3.24e-05', EG='0.55', time_epoch_completed='1632856774.93', return_code='0', job_id='314502', GAL2='1.51', EG2='0.62', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='9.16e-08', ts2='35.37', photon_index='2.47' WHERE bin_id='1408' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:19:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 314502: <4FGL_J2229.7-0832_daily_bin1408> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1408> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:05:53 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:05:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 12:05:54 2021
Terminated at Tue Sep 28 12:19:35 2021
Results reported at Tue Sep 28 12:19:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1408 337.426 -8.5447 604281601 604540801 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 :                                   614.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

