/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 179 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2229.7-0832_daily_bin354
RA = 337.426, Dec = -8.5447
tmin = 331084801, tmax = 331344001
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='309856', job_status='RUN', time_executed='2021-09-28 11:54:14.082478', time_epoch_executed='1632855254.08' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309856/ft1_4FGL_J2229.7-0832_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309856/ft1_4FGL_J2229.7-0832_daily_bin354.fits outfile=/scratch/kocevski/309856/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin354.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=331084801.0 tmax=331344001.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.34
user 3.13
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.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/309856/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin354.fits evtable="EVENTS" outfile="/scratch/kocevski/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/309856/ltcube_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.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/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits
.....................!
real 11.70
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/309856/ltcube_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.fits outfile=/scratch/kocevski/309856/expmap_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.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/309856/ltcube_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.fits
.....................!
real 191.33
user 186.54
sys 4.47

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/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.fits scfile=/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits outfile=/scratch/kocevski/309856/cmap_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.426 yref=-8.5447 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.fits scfile=/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits outfile=/scratch/kocevski/309856/cmap_HighResolution_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.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/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/309856/ft2_4FGL_J2229.7-0832_daily_bin354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309856/Model_4FGL_J2229.7-0832_daily_bin354.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/309856/ft1_filtered_4FGL_J2229.7-0832_daily_bin354.fits.....................!
real 58.15
user 56.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.346       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.994       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5988       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.888       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.026       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7429       1.0000         .10000E-03   10000.    
    20 'norm      '    13.239       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2778       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6038.132     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2070 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7198        .78339E-06** at limit **
   2  Prefactor     17.344        2.7893        .20506E-05   -.16510E-02
   3  Prefactor     4.2300        6.3531        .18700E-05    .21396E-03
   4  Prefactor     18.993        2.2496       -.32571E-05    .21650E-02
   5  Prefactor     6.3371        5.4164        .87568E-05   -.18077E-02
   6  Prefactor     .10000E-03    8.7824       -.17547E-05** at limit **
   7  Prefactor     1.1114        37.769       -.16419E-04   -.53531E-04
   8  Prefactor     6.5279        7.6471        .17440E-04   -.21916E-03
   9  Prefactor     .10000E-03    6171.3       -.15942E-04** at limit **
  10  Prefactor     4.5984        4.2377       -.24559E-05   -.13279E-03
  11  Prefactor     82.873        2.4684        .11073E-08   -.94642E-03
  12  norm          3.8595        3.7121       -.22173E-06   -.98195E-03
  13  Prefactor     .10000E-03    74.980        .13790E-04** at limit **
  14  norm          1.7639        1.0424        .33863E-06   -.99418E-03
  15  Prefactor     .10003E-03    12.735       -.28399E-04** at limit **
  16  norm          .10000E-03    .75653       -.73448E-06** at limit **
  17  Prefactor     .10003E-03    12.691        .28298E-04** at limit **
  18  Prefactor     18.027        2.6491        .37006E-06   -.26931E-02
  19  Prefactor     3.7450        2.6605        .22801E-05   -.77838E-03
  20  norm          13.241        10.100        .15694E-04   -.20146E-03
  21  Normalizat    1.2776        .24070       -.12244E-05   -.65413E-03
  22  Prefactor     .69207        .14986       -.50394E-05   -.65395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 17.3444
  Prefactor  = 4.22998
  Prefactor  = 18.9934
  Prefactor  = 6.33707
  Prefactor  = 0.0001
  Prefactor  = 1.11142
  Prefactor  = 6.52791
  Prefactor  = 0.0001
  Prefactor  = 4.59843
  Prefactor  = 82.8734
  norm       = 3.85948
  Prefactor  = 0.0001
  norm       = 1.76395
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 18.0268
  Prefactor  = 3.74504
  norm       = 13.2406
  Normalizat = 1.27757
  Prefactor  = 0.692066
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.132     FROM HESSE     STATUS=OK           406 CALLS     2476 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.344        9.4121        .24042E-02   -1.4875    
   3  Prefactor     4.2300        6.3687        .48981E-02   -1.5297    
   4  Prefactor     18.993        17.717        .22975E-02   -1.4836    
   5  Prefactor     6.3371        9.3583        .39863E-02   -1.5204    
   6  Prefactor     .10000E-03    8.7509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1114        41.808        .11546E-01   -1.5497    
   8  Prefactor     6.5279        12.665        .39273E-02   -1.5197    
   9  Prefactor     .10000E-03    89.961        .16646       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5984        4.5675        .46924E-02   -1.5279    
  11  Prefactor     82.873        75.055        .11030E-02   -1.3885    
  12  norm          3.8595        3.7746        .51353E-02   -1.5315    
  13  Prefactor     .10000E-03    74.895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7639        1.0634        .78869E-02   -1.5442    
  15  Prefactor     .10003E-03    15.032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .46546        .21073E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    15.167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.027        10.218        .23584E-02   -1.4859    
  19  Prefactor     3.7450        10.208        .52175E-02   -1.5321    
  20  norm          13.241        12.782        .27522E-02   -1.4980    
  21  Normalizat    1.2776        .21231        .59055E-01   -.84238    
  22  Prefactor     .69207        .12858        .42294E-01   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13689e-06
Minuit parameter uncertainties:
  1  1.96546e-05
  2  9.41288
  3  6.36975
  4  17.7216
  5  9.36047
  6  2.5327e-05
  7  13.6429
  8  12.6701
  9  0.000233918
  10  4.56787
  11  75.1413
  12  3.77481
  13  0.000107442
  14  1.06346
  15  0.0012632
  16  2.85002e-06
  17  0.00130096
  18  10.2191
  19  10.2128
  20  12.7849
  21  0.212451
  22  0.128633
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.859e+00  3.775e+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.921e-01  1.286e-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.278e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.22e-05

TS (Fixed Index): 1.42
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/309856/likelihoodResults_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.txt

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) = 6038.13176014
delta logL = 0.000542729066183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.1317163
delta logL = 0.000586573742112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8594       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5070       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69275       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=   6038.132     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      188 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8460        8.5641        .51353E-02    .53036E-03
   2  alpha         2.5106        1.8124        .41152        .60924E-05
   3  Normalizat    1.2762        .19876        .59081E-01   -.15320E-03
   4  Prefactor     .69281        .13144        .42305E-01   -.33819E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84605
  alpha      = 2.51057
  Normalizat = 1.27623
  Prefactor  = 0.692809
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.132     FROM HESSE     STATUS=OK            29 CALLS      217 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8460        3.7537        .13910E-03   -1.5316    
   2  alpha         2.5106        1.0593        .26195E-01    .42268E-02
   3  Normalizat    1.2762        .23383        .26129E-03   -.84279    
   4  Prefactor     .69281        .15010        .22148E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81869e-10
Minuit parameter uncertainties:
  1  3.75396
  2  1.0939
  3  0.234021
  4  0.150184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309856': 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) = 6038.13170568
delta logL = 0.000597189116888

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.846e+00  3.754e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.511e+00  1.094e+00  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.928e-01  1.502e-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.276e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.51 +/- 1.09
Photon Flux (Free Index): 4.81e-08 +/- 5.02e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.27e-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/309856/cmap_HighResolution_331084801_331344001_4FGL_J2229.7-0832_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-05', comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='1.24e-05', photon_flux_error='4.63e-08', dlogl='5.97e-04', energy_flux='1.25e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2021-09-28 12:03:47.445681', photon_index_error2='1.09', photon_index2='2.51', ts='1.42', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.27e-05', EG='1.28', time_epoch_completed='1632855827.45', return_code='0', job_id='309856', GAL2='0.69', EG2='1.28', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.02e-08', ts2='1.42', photon_index='2.47' WHERE bin_id='354' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:03:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 309856: <4FGL_J2229.7-0832_daily_bin354> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin354> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:51:03 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:51:05 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:51:05 2021
Terminated at Tue Sep 28 12:03:50 2021
Results reported at Tue Sep 28 12:03:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin354 337.426 -8.5447 331084801 331344001 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 :                                   573.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            767 sec.

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

