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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1653
RA = 337.426, Dec = -8.5447
tmin = 667785601, tmax = 668044801
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='889431', job_status='RUN', time_executed='2022-03-04 01:20:26.605452', time_epoch_executed='1646385626.61' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889431/ft1_4FGL_J2229.7-0832_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889431/ft1_4FGL_J2229.7-0832_daily_bin1653.fits outfile=/scratch/kocevski/889431/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1653.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=667785601.0 tmax=668044801.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.28
user 4.02
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.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/889431/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.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.54
user 0.33
sys 0.16
Number of photons that survived the gtmktime cut: 719

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889431/ltcube_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.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/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits
.....................!
real 12.18
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889431/ltcube_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.fits outfile=/scratch/kocevski/889431/expmap_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.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/889431/ltcube_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.fits
.....................!
real 192.44
user 185.45
sys 4.79

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/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.fits scfile=/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits outfile=/scratch/kocevski/889431/cmap_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.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/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.fits scfile=/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits outfile=/scratch/kocevski/889431/cmap_HighResolution_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.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/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889431/ft2_4FGL_J2229.7-0832_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889431/Model_4FGL_J2229.7-0832_daily_bin1653.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/889431/ft1_filtered_4FGL_J2229.7-0832_daily_bin1653.fits.....................!
real 73.95
user 71.81
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.019       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5119       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.918       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.561       1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3663       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1482       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=   7856.461     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2480 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2341        .10941E-06** at limit **
   2  Prefactor     .10000E-03    2.1002        .26578E-07** at limit **
   3  Prefactor     9.8127        9.6606       -.40933E-08   -.58874E-06
   4  Prefactor     .10000E-03    7.2288       -.49449E-06** at limit **
   5  Prefactor     .10000E-03    5.2415       -.49722E-07** at limit **
   6  Prefactor     14.556        13.645       -.70340E-07   -.12325E-04
   7  Prefactor     26.013        15.752        .13740E-06    .72268E-04
   8  Prefactor     18.292        14.129       -.44697E-06    .33714E-04
   9  Prefactor     .10000E-03    19.759       -.30728E-06** at limit **
  10  Prefactor     3.0743        5.6470        .14052E-05   -.24324E-04
  11  Prefactor     .10000E-03    20.623       -.26676E-07** at limit **
  12  norm          6.5122        3.9092       -.13768E-06   -.46932E-04
  13  Prefactor     45.921        61.731       -.65958E-06   -.75946E-05
  14  norm          2.8261        1.3948        .28350E-07    .43408E-03
  15  Prefactor     12.590        27.912       -.99118E-08    .10489E-03
  16  norm          .10000E-03    .70029       -.83165E-06** at limit **
  17  Prefactor     52.643        59.394        .52625E-06    .13471E-03
  18  Prefactor     19.904        20.759       -.64982E-07    .40875E-04
  19  Prefactor     .10000E-03    6.2618        .20367E-06** at limit **
  20  norm          .10000E-03    10.051        .41010E-06** at limit **
  21  Normalizat    1.3658        .24082        .92412E-07    .97938E-04
  22  Prefactor     1.1485        .14911       -.71467E-07    .16605E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.81275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5556
  Prefactor  = 26.0128
  Prefactor  = 18.2922
  Prefactor  = 0.0001
  Prefactor  = 3.07428
  Prefactor  = 0.0001
  norm       = 6.51222
  Prefactor  = 45.9209
  norm       = 2.82611
  Prefactor  = 12.5896
  norm       = 0.0001
  Prefactor  = 52.6429
  Prefactor  = 19.9038
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.36584
  Prefactor  = 1.14853
 **********
 **   18 **HESSE 
 **********

 FCN=   7856.461     FROM HESSE     STATUS=OK           340 CALLS     2820 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1240        .12542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8127        9.6654        .12792E-03   -1.5081    
   4  Prefactor     .10000E-03    7.2736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.556        13.648        .10499E-03   -1.4945    
   7  Prefactor     26.013        15.862        .78534E-04   -1.4687    
   8  Prefactor     18.292        14.168        .93634E-04   -1.4852    
   9  Prefactor     .10000E-03    19.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0743        5.6606        .11568E-02   -1.5357    
  11  Prefactor     .10000E-03    20.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5122        3.9105        .12964E-03   -1.5198    
  13  Prefactor     45.921        61.751        .59169E-04   -1.4352    
  14  norm          2.8261        1.3908        .67999E-04   -1.5372    
  15  Prefactor     12.590        27.806        .11302E-03   -1.4998    
  16  norm          .10000E-03    .70579        .14263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.643        59.160        .55276E-04   -1.4256    
  18  Prefactor     19.904        20.746        .89789E-04   -1.4815    
  19  Prefactor     .10000E-03    6.2877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3658        .28891        .32939E-03   -.81622    
  22  Prefactor     1.1485        .17895        .23345E-03   -.87930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40949e-10
Minuit parameter uncertainties:
  1  2.79245e-06
  2  1.12019e-06
  3  9.66691
  4  4.11335e-05
  5  3.86379e-06
  6  13.651
  7  15.8646
  8  14.1705
  9  3.8333e-05
  10  5.66156
  11  8.94672e-06
  12  3.9107
  13  61.8372
  14  1.39081
  15  27.8345
  16  2.72928e-06
  17  59.2258
  18  20.7536
  19  1.9298e-05
  20  2.70082e-05
  21  0.289256
  22  0.17904
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  6.512e+00  3.911e+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.149e+00  1.790e-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.366e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.76
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.99e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.27e-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) = 7856.07599546
delta logL = 0.384664196295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7856.03373677
delta logL = 0.426922879255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4771       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1356       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=   7856.034     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4809        3.2462        .42922E-02    .46933E-03
   2  alpha         1.9510        .39675        .36513       -.94492E-04
   3  Normalizat    1.3957        .22325        .73771E-01    .82239E-04
   4  Prefactor     1.1357        .14722        .53047E-01   -.26614E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48092
  alpha      = 1.95099
  Normalizat = 1.3957
  Prefactor  = 1.13574
 **********
 **   18 **HESSE 
 **********

 FCN=   7856.034     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4809        3.7456        .11888E-03   -1.5240    
   2  alpha         1.9510        .52361        .14094E-01   -.22141    
   3  Normalizat    1.3957        .26627        .32644E-03   -.80753    
   4  Prefactor     1.1357        .17537        .23454E-03   -.88332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70023e-10
Minuit parameter uncertainties:
  1  3.7458
  2  0.527716
  3  0.26654
  4  0.175459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889431': 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) = 7856.03373488
delta logL = 0.426924776266

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.481e+00  3.746e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.951e+00  5.277e-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.136e+00  1.755e-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.396e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 1.95 +/- 0.53
Photon Flux (Free Index): 5.46e-08 +/- 4.13e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.63e-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/889431/cmap_HighResolution_667785601_668044801_4FGL_J2229.7-0832_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.99e-08', energy_flux2='2.50e-05', photon_flux_error='4.80e-08', dlogl='4.27e-01', energy_flux='2.11e-05', photon_flux2='5.46e-08', job_status='DONE', time_completed='2022-03-04 01:30:59.877638', photon_index_error2='0.53', photon_index2='1.95', ts='5.76', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.37', time_epoch_completed='1646386259.88', return_code='0', job_id='889431', GAL2='1.14', EG2='1.40', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.13e-08', ts2='6.62', photon_index='2.47' WHERE bin_id='1653' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:30:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 889431: <4FGL_J2229.7-0832_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:47 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:33 2022
Terminated at Fri Mar  4 01:31:00 2022
Results reported at Fri Mar  4 01:31:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1653 337.426 -8.5447 667785601 668044801 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            913 sec.

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

