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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1025
RA = 337.426, Dec = -8.5447
tmin = 505008001, tmax = 505267201
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='312934', job_status='RUN', time_executed='2021-09-28 12:02:41.982086', time_epoch_executed='1632855761.98' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312934/ft1_4FGL_J2229.7-0832_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312934/ft1_4FGL_J2229.7-0832_daily_bin1025.fits outfile=/scratch/kocevski/312934/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1025.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=505008001.0 tmax=505267201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.57
user 4.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312934/ft1_filtered_4FGL_J2229.7-0832_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/312934/ltcube_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.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/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits
.....................!
real 12.07
user 11.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312934/ft1_filtered_4FGL_J2229.7-0832_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/312934/ltcube_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.fits outfile=/scratch/kocevski/312934/expmap_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.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/312934/ltcube_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.fits
.....................!
real 192.41
user 187.27
sys 4.75

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/312934/ft1_filtered_4FGL_J2229.7-0832_daily_bin1025.fits scfile=/scratch/kocevski/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits outfile=/scratch/kocevski/312934/cmap_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312934/ft1_filtered_4FGL_J2229.7-0832_daily_bin1025.fits scfile=/scratch/kocevski/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits outfile=/scratch/kocevski/312934/cmap_HighResolution_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.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/312934/ft1_filtered_4FGL_J2229.7-0832_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/312934/ft2_4FGL_J2229.7-0832_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312934/Model_4FGL_J2229.7-0832_daily_bin1025.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/312934/ft1_filtered_4FGL_J2229.7-0832_daily_bin1025.fits.....................!
real 104.15
user 102.47
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    22.656       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6962       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.958       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    129.22       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .90912E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.576       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    36.049       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3081       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86256       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=   12321.46     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2371 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4362        .18400E-07** at limit **
   2  Prefactor     22.656        6.4463        .65097E-07   -.26013E-03
   3  Prefactor     1.9063        5.9112        .13830E-05   -.13329E-03
   4  Prefactor     .10000E-03    3.3036        .24914E-07** at limit **
   5  Prefactor     3.6959        6.7689        .32152E-06   -.11245E-03
   6  Prefactor     9.9699        9.9629       -.77564E-07   -.69702E-04
   7  Prefactor     24.957        9.8485       -.36378E-07   -.20094E-04
   8  Prefactor     .10000E-03    2.4531        .79246E-07** at limit **
   9  Prefactor     129.22        68.333       -.10453E-05    .12408E-03
  10  Prefactor     .10000E-03    1.0568        .29999E-06** at limit **
  11  Prefactor     .10000E-03    13.260       -.14519E-07** at limit **
  12  norm          13.630        3.8851       -.20342E-07    .60154E-04
  13  Prefactor     .10000E-03    47.120       -.43407E-07** at limit **
  14  norm          .89181E-01    .38515       -.27037E-06   -.28212E-02
  15  Prefactor     54.565        28.948       -.45409E-05   -.98469E-03
  16  norm          3.2699        2.2682        .21665E-05   -.24647E-02
  17  Prefactor     25.691        27.899       -.10072E-05   -.40070E-03
  18  Prefactor     4.6618        4.8931       -.21429E-07   -.61225E-04
  19  Prefactor     .10000E-03    5.1625       -.41250E-06** at limit **
  20  norm          36.048        10.509       -.14645E-06    .16645E-03
  21  Normalizat    1.3082        .17038        .15533E-05   -.12375E-03
  22  Prefactor     .86251        .10804       -.13366E-05   -.21465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 22.6559
  Prefactor  = 1.90629
  Prefactor  = 0.0001
  Prefactor  = 3.69591
  Prefactor  = 9.96991
  Prefactor  = 24.957
  Prefactor  = 0.0001
  Prefactor  = 129.224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6304
  Prefactor  = 0.0001
  norm       = 0.0891813
  Prefactor  = 54.5651
  norm       = 3.26988
  Prefactor  = 25.6905
  Prefactor  = 4.66179
  Prefactor  = 0.0001
  norm       = 36.048
  Normalizat = 1.30818
  Prefactor  = 0.862514
 **********
 **   18 **HESSE 
 **********

 FCN=   12321.46     FROM HESSE     STATUS=OK           346 CALLS     2717 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4363        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.656        6.4582        .84152E-04   -1.4756    
   3  Prefactor     1.9063        5.8903        .30115E-03   -1.5432    
   4  Prefactor     .10000E-03    3.3073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6959        6.7430        .21006E-03   -1.5323    
   6  Prefactor     9.9699        9.9460        .12690E-03   -1.5076    
   7  Prefactor     24.957        9.8738        .80184E-04   -1.4708    
   8  Prefactor     .10000E-03    2.4902        .16975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     129.22        68.335        .35418E-04   -1.3430    
  10  Prefactor     .10000E-03    3.5958        .22051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.630        3.8872        .10838E-03   -1.4969    
  13  Prefactor     .10000E-03    47.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89181E-01    .98752        .13201E-02   -1.5648    
  15  Prefactor     54.565        29.051        .54296E-04   -1.4229    
  16  norm          3.2699        2.2789        .36363E-03   -1.5346    
  17  Prefactor     25.691        27.863        .79025E-04   -1.4694    
  18  Prefactor     4.6618        4.8879        .18639E-03   -1.5276    
  19  Prefactor     .10000E-03    5.2228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          36.048        10.527        .66748E-04   -1.4506    
  21  Normalizat    1.3082        .20162        .29435E-03   -.83322    
  22  Prefactor     .86251        .12734        .23516E-03   -.97464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43131e-09
Minuit parameter uncertainties:
  1  1.31428e-06
  2  6.45838
  3  5.89214
  4  1.14914e-06
  5  6.7444
  6  9.94769
  7  9.8744
  8  2.7966e-06
  9  68.3764
  10  1.37225e-05
  11  1.51218e-06
  12  3.88729
  13  0.000124097
  14  0.593207
  15  29.0581
  16  2.27899
  17  27.8768
  18  4.88829
  19  2.45625e-05
  20  10.5274
  21  0.201739
  22  0.127384
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.363e+01  3.887e+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.625e-01  1.274e-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.308e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.67
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 4.77e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 1.26e-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) = 12321.4196595
delta logL = 0.0364136780372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12321.4180761
delta logL = 0.0379970297854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.629       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5628       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86812       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=   12321.42     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.611        5.4757        .27124E-02    .32622E-03
   2  alpha         2.5629        .43849        .31086       -.12317E-04
   3  Normalizat    1.2964        .16258        .66775E-01    .19661E-04
   4  Prefactor     .86811        .10767        .44597E-01    .16930E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6106
  alpha      = 2.56289
  Normalizat = 1.29638
  Prefactor  = 0.868114
 **********
 **   18 **HESSE 
 **********

 FCN=   12321.42     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.611        3.7894        .10668E-03   -1.4970    
   2  alpha         2.5629        .32835        .12746E-01    .25158E-01
   3  Normalizat    1.2964        .19407        .29541E-03   -.83674    
   4  Prefactor     .86811        .12669        .23449E-03   -.97264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83126e-11
Minuit parameter uncertainties:
  1  3.78948
  2  0.329305
  3  0.194181
  4  0.126736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312934': 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) = 12321.4180645
delta logL = 0.0380086306996

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.361e+01  3.789e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.563e+00  3.293e-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.681e-01  1.267e-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.296e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.67
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.56 +/- 0.33
Photon Flux (Free Index): 1.75e-07 +/- 5.55e-08
Energy Flux (Free Index): 4.35e-05 +/- 1.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/312934/cmap_HighResolution_505008001_505267201_4FGL_J2229.7-0832_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='4.35e-05', photon_flux_error='4.77e-08', dlogl='3.80e-02', energy_flux='4.42e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-28 12:16:28.104049', photon_index_error2='0.33', photon_index2='2.56', ts='24.67', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.31', time_epoch_completed='1632856588.1', return_code='0', job_id='312934', GAL2='0.87', EG2='1.30', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.55e-08', ts2='24.67', photon_index='2.47' WHERE bin_id='1025' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:16:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 312934: <4FGL_J2229.7-0832_daily_bin1025> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1025> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:00:55 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:00:57 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:00:57 2021
Terminated at Tue Sep 28 12:16:28 2021
Results reported at Tue Sep 28 12:16:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1025 337.426 -8.5447 505008001 505267201 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 :                                   823.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

