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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1022
RA = 337.426, Dec = -8.5447
tmin = 504230401, tmax = 504489601
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='312929', job_status='RUN', time_executed='2021-09-28 12:04:02.150153', time_epoch_executed='1632855842.15' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312929/ft1_4FGL_J2229.7-0832_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312929/ft2_4FGL_J2229.7-0832_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312929/ft1_4FGL_J2229.7-0832_daily_bin1022.fits outfile=/scratch/kocevski/312929/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1022.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=504230401.0 tmax=504489601.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312929/ft2_4FGL_J2229.7-0832_daily_bin1022.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/312929/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/312929/ft1_filtered_4FGL_J2229.7-0832_daily_bin1022.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312929/ft1_filtered_4FGL_J2229.7-0832_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/312929/ft2_4FGL_J2229.7-0832_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/312929/ltcube_504230401_504489601_4FGL_J2229.7-0832_daily_bin1022.fits outfile=/scratch/kocevski/312929/expmap_504230401_504489601_4FGL_J2229.7-0832_daily_bin1022.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/312929/ltcube_504230401_504489601_4FGL_J2229.7-0832_daily_bin1022.fits
.....................!
real 191.36
user 186.23
sys 4.83

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/312929/ft1_filtered_4FGL_J2229.7-0832_daily_bin1022.fits scfile=/scratch/kocevski/312929/ft2_4FGL_J2229.7-0832_daily_bin1022.fits outfile=/scratch/kocevski/312929/cmap_504230401_504489601_4FGL_J2229.7-0832_daily_bin1022.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312929/ft1_filtered_4FGL_J2229.7-0832_daily_bin1022.fits scfile=/scratch/kocevski/312929/ft2_4FGL_J2229.7-0832_daily_bin1022.fits outfile=/scratch/kocevski/312929/cmap_HighResolution_504230401_504489601_4FGL_J2229.7-0832_daily_bin1022.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4234       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26676E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.109       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12298E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.313       1.0000         .10000E-03   10000.    
    12 'norm      '    12.697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.061       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12964E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.070       1.0000         .10000E-03   10000.    
    17 'Prefactor '    211.55       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.779       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2125       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68387       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=   6368.807     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2425 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4232        5.6055        .14189E-04   -.27506E-03
   2  Prefactor     .10027E-03    3.2082        .10578E-05** at limit **
   3  Prefactor     12.603        12.656        .36474E-06   -.14098E-04
   4  Prefactor     1.4183        46.739        .53149E-05   -.25291E-04
   5  Prefactor     29.149        19.906        .29991E-06   -.30722E-04
   6  Prefactor     .10000E-03    13.184       -.19660E-06** at limit **
   7  Prefactor     34.101        18.111       -.81438E-06   -.10101E-02
   8  Prefactor     3.5729        10.940        .12191E-05   -.46893E-04
   9  Prefactor     .10000E-03    439.42        .45671E-04** at limit **
  10  Prefactor     .10000E-03    2.0490        .30342E-07** at limit **
  11  Prefactor     70.312        50.698        .83874E-07   -.73381E-04
  12  norm          12.698        5.9440       -.46601E-06   -.22425E-02
  13  Prefactor     74.065        112.19        .93714E-06   -.64238E-04
  14  norm          .10000E-03    .31057       -.13857E-07** at limit **
  15  Prefactor     .10000E-03    28.559        .77709E-06** at limit **
  16  norm          15.068        3.2984       -.58639E-07   -.16708E-02
  17  Prefactor     211.54        72.215        .31365E-06   -.26608E-03
  18  Prefactor     .10000E-03    6.8992       -.30592E-07** at limit **
  19  Prefactor     .10000E-03    11.726        .28903E-06** at limit **
  20  norm          18.780        13.293        .34424E-06   -.25912E-04
  21  Normalizat    1.2127        .23740       -.19353E-06   -.92919E-03
  22  Prefactor     .68369        .14178       -.23823E-05   -.10485E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42322
  Prefactor  = 0.000100266
  Prefactor  = 12.6035
  Prefactor  = 1.41825
  Prefactor  = 29.1492
  Prefactor  = 0.0001
  Prefactor  = 34.101
  Prefactor  = 3.57287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.3116
  norm       = 12.6976
  Prefactor  = 74.0651
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.068
  Prefactor  = 211.542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.78
  Normalizat = 1.21275
  Prefactor  = 0.683688
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.807     FROM HESSE     STATUS=OK           344 CALLS     2769 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4232        5.6085        .18122E-02   -1.5469    
   2  Prefactor     .10027E-03    5.1759        .49932E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.603        12.654        .11284E-03   -1.4998    
   4  Prefactor     1.4183        47.362        .37917E-03   -1.5470    
   5  Prefactor     29.149        19.901        .74206E-04   -1.4628    
   6  Prefactor     .10000E-03    13.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.101        18.217        .68615E-04   -1.4539    
   8  Prefactor     3.5729        10.921        .21383E-03   -1.5330    
   9  Prefactor     .10000E-03    439.48        .20620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0600        .11139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.312        50.713        .47873E-04   -1.4029    
  12  norm          12.698        5.9833        .56208E-03   -1.4995    
  13  Prefactor     74.065        112.18        .46654E-04   -1.3985    
  14  norm          .10000E-03    .31684        .43388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.068        3.3223        .50998E-04   -1.4931    
  17  Prefactor     211.54        73.187        .27797E-04   -1.2789    
  18  Prefactor     .10000E-03    6.9368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.780        13.337        .92423E-04   -1.4841    
  21  Normalizat    1.2127        .28424        .30206E-03   -.86210    
  22  Prefactor     .68369        .16775        .24582E-03   -1.0417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71383e-09
Minuit parameter uncertainties:
  1  5.6106
  2  0.0023453
  3  12.6565
  4  16.4051
  5  19.9051
  6  1.49702e-05
  7  18.2197
  8  10.9271
  9  0.000282127
  10  4.97851e-06
  11  50.7444
  12  5.98355
  13  112.501
  14  2.24869e-07
  15  3.07098e-05
  16  3.32231
  17  73.2185
  18  8.65e-07
  19  2.27157e-05
  20  13.3394
  21  0.284603
  22  0.167878
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.270e+01  5.984e+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:  6.837e-01  1.679e-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.213e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.40
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 7.34e-08
Energy Flux (Fixed Index): 4.12e-05 +/- 1.94e-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) = 6368.79762389
delta logL = 0.00984885566595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6368.79566745
delta logL = 0.0118052967991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.941       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69035       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=   6368.796     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.941        8.0117        .27837E-02    .29309E-02
   2  alpha         2.5687        .68611        .40993       -.22877E-04
   3  Normalizat    1.1977        .22956        .68622E-01    .10101E-04
   4  Prefactor     .69034        .14368        .42273E-01    .16858E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.941
  alpha      = 2.56873
  Normalizat = 1.19767
  Prefactor  = 0.690343
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.796     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.941        5.8033        .11135E-03   -1.4988    
   2  alpha         2.5687        .61756        .14819E-01    .27496E-01
   3  Normalizat    1.1977        .28154        .30361E-03   -.86675    
   4  Prefactor     .69034        .17049        .24475E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05065e-09
Minuit parameter uncertainties:
  1  5.80356
  2  0.624024
  3  0.281896
  4  0.170615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312929': 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) = 6368.79566744
delta logL = 0.0118053125425

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.294e+01  5.804e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.569e+00  6.240e-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:  6.903e-01  1.706e-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.198e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.34
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.57 +/- 0.62
Photon Flux (Free Index): 1.67e-07 +/- 1.02e-07
Energy Flux (Free Index): 4.13e-05 +/- 1.83e-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/312929/cmap_HighResolution_504230401_504489601_4FGL_J2229.7-0832_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='4.13e-05', photon_flux_error='7.34e-08', dlogl='1.18e-02', energy_flux='4.12e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-28 12:13:30.399723', photon_index_error2='0.62', photon_index2='2.57', ts='9.40', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.21', time_epoch_completed='1632856410.4', return_code='0', job_id='312929', GAL2='0.69', EG2='1.20', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='1.02e-07', ts2='9.34', photon_index='2.47' WHERE bin_id='1022' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:13:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 312929: <4FGL_J2229.7-0832_daily_bin1022> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1022> 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) <bullet0241>, 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:13:31 2021
Results reported at Tue Sep 28 12:13:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1022 337.426 -8.5447 504230401 504489601 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 :                                   568.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            756 sec.

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

