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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin674
RA = 337.426, Dec = -8.5447
tmin = 414028801, tmax = 414288001
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='311271', job_status='RUN', time_executed='2021-09-28 11:57:51.992135', time_epoch_executed='1632855471.99' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311271/ft1_4FGL_J2229.7-0832_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311271/ft1_4FGL_J2229.7-0832_daily_bin674.fits outfile=/scratch/kocevski/311271/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin674.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=414028801.0 tmax=414288001.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.20
user 4.96
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311271/ft1_filtered_4FGL_J2229.7-0832_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/311271/ltcube_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.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/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits
.....................!
real 12.52
user 12.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311271/ft1_filtered_4FGL_J2229.7-0832_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/311271/ltcube_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.fits outfile=/scratch/kocevski/311271/expmap_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.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/311271/ltcube_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.fits
.....................!
real 190.41
user 185.65
sys 4.42

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/311271/ft1_filtered_4FGL_J2229.7-0832_daily_bin674.fits scfile=/scratch/kocevski/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits outfile=/scratch/kocevski/311271/cmap_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311271/ft1_filtered_4FGL_J2229.7-0832_daily_bin674.fits scfile=/scratch/kocevski/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits outfile=/scratch/kocevski/311271/cmap_HighResolution_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.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/311271/ft1_filtered_4FGL_J2229.7-0832_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/311271/ft2_4FGL_J2229.7-0832_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311271/Model_4FGL_J2229.7-0832_daily_bin674.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/311271/ft1_filtered_4FGL_J2229.7-0832_daily_bin674.fits.....................!
real 46.08
user 44.74
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18149E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .94219       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.020       1.0000         .10000E-03   10000.    
    12 'norm      '    10.499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.548       1.0000         .10000E-03   10000.    
    14 'norm      '    .10659E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2275       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8323       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98341       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3915       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=   4080.342     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2344 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.535        16.359       -.42442E-07   -.63253E-06
   2  Prefactor     12.482        13.627       -.16963E-06   -.92930E-06
   3  Prefactor     .10000E-03    22.831       -.25806E-06** at limit **
   4  Prefactor     46.654        31.071        .13555E-06    .97009E-05
   5  Prefactor     .10000E-03    14.235        .18222E-07** at limit **
   6  Prefactor     .10000E-03    14.490       -.54363E-08** at limit **
   7  Prefactor     .10000E-03    12.193        .33677E-06** at limit **
   8  Prefactor     .10000E-03    11.515       -.15094E-06** at limit **
   9  Prefactor     .10000E-03    759.40        .16450E-04** at limit **
  10  Prefactor     .94285        12.749        .58226E-07    .16960E-04
  11  Prefactor     15.034        102.87        .45913E-06    .13373E-04
  12  norm          10.499        7.1865        .64429E-06   -.31453E-05
  13  Prefactor     70.570        83.044       -.42137E-06   -.21365E-05
  14  norm          .10000E-03    1.2699       -.38551E-06** at limit **
  15  Prefactor     .10000E-03    25.416        .38467E-06** at limit **
  16  norm          .10000E-03    1.2668       -.14717E-06** at limit **
  17  Prefactor     .10000E-03    22.039       -.32100E-06** at limit **
  18  Prefactor     17.788        16.992       -.11715E-06    .13134E-04
  19  Prefactor     1.2252        36.220       -.24469E-06    .26877E-05
  20  norm          4.8278        41.290       -.80139E-06    .78695E-06
  21  Normalizat    .98350        .34068        .22837E-05    .47339E-04
  22  Prefactor     1.3916        .21770       -.36443E-07    .14014E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.535
  Prefactor  = 12.4816
  Prefactor  = 0.0001
  Prefactor  = 46.6541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.942848
  Prefactor  = 15.0339
  norm       = 10.4992
  Prefactor  = 70.5705
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.788
  Prefactor  = 1.2252
  norm       = 4.8278
  Normalizat = 0.983496
  Prefactor  = 1.39158
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.342     FROM HESSE     STATUS=OK           346 CALLS     2690 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.535        16.385        .73722E-04   -1.4621    
   2  Prefactor     12.482        13.621        .11341E-03   -1.5001    
   3  Prefactor     .10000E-03    22.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.654        31.064        .58693E-04   -1.4341    
   5  Prefactor     .10000E-03    14.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    750.86        .20314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .94285        12.769        .21089E-02   -1.5514    
  11  Prefactor     15.034        101.49        .10335E-03   -1.4932    
  12  norm          10.499        7.1402        .12365E-03   -1.5060    
  13  Prefactor     70.570        83.102        .23897E-03   -1.4026    
  14  norm          .10000E-03    2.2834        .13661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9587        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.788        16.967        .94972E-04   -1.4864    
  19  Prefactor     1.2252        36.877        .40624E-03   -1.5487    
  20  norm          4.8278        41.447        .18300E-03   -1.5268    
  21  Normalizat    .98350        .39911        .38451E-03   -.93585    
  22  Prefactor     1.3916        .26078        .21767E-03   -.80623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35839e-11
Minuit parameter uncertainties:
  1  16.3871
  2  13.6241
  3  2.86051e-05
  4  31.075
  5  7.96594e-06
  6  7.64644e-06
  7  2.05682e-05
  8  2.19395e-05
  9  0.00103829
  10  6.94083
  11  78.3146
  12  7.14074
  13  83.2395
  14  6.81103e-06
  15  2.43389e-06
  16  8.78168e-06
  17  1.4995e-05
  18  16.9718
  19  13.452
  20  28.3172
  21  0.40033
  22  0.261025
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.050e+01  7.141e+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.392e+00  2.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:  9.835e-01  4.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.83
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 8.76e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 2.31e-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) = 4080.1700289
delta logL = 0.172435730394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4080.15629189
delta logL = 0.186172738447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6438       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0500       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3731       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=   4080.156     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6471        6.5860        .32261E-02    .10635E-02
   2  alpha         2.0505        .51393        .33805       -.21995E-04
   3  Normalizat    1.0200        .32509        .85461E-01    .27232E-05
   4  Prefactor     1.3729        .21492        .49507E-01   -.11062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.64714
  alpha      = 2.05054
  Normalizat = 1.02002
  Prefactor  = 1.37292
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.156     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6471        7.2172        .64521E-03   -1.5087    
   2  alpha         2.0505        .64392        .13068E-01   -.18077    
   3  Normalizat    1.0200        .39122        .37840E-03   -.92363    
   4  Prefactor     1.3729        .25843        .21886E-03   -.81164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08344e-10
Minuit parameter uncertainties:
  1  7.2178
  2  0.651518
  3  0.392329
  4  0.25867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311271': 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) = 4080.15629097
delta logL = 0.186173661411

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  9.647e+00  7.218e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.051e+00  6.515e-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.373e+00  2.587e-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.020e+00  3.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.05 +/- 0.65
Photon Flux (Free Index): 9.88e-08 +/- 8.42e-08
Energy Flux (Free Index): 3.95e-05 +/- 2.97e-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/311271/cmap_HighResolution_414028801_414288001_4FGL_J2229.7-0832_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='3.95e-05', photon_flux_error='8.76e-08', dlogl='1.86e-01', energy_flux='3.40e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-28 12:05:44.625930', photon_index_error2='0.65', photon_index2='2.05', ts='4.83', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='0.98', time_epoch_completed='1632855944.63', return_code='0', job_id='311271', GAL2='1.37', EG2='1.02', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='8.42e-08', ts2='5.19', photon_index='2.47' WHERE bin_id='674' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 311271: <4FGL_J2229.7-0832_daily_bin674> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:55:36 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:55:37 2021
Terminated at Tue Sep 28 12:05:45 2021
Results reported at Tue Sep 28 12:05:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin674 337.426 -8.5447 414028801 414288001 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 :                                   470.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            609 sec.

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

