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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1052
RA = 337.426, Dec = -8.5447
tmin = 512006401, tmax = 512265601
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='312975', job_status='RUN', time_executed='2021-09-28 12:04:09.462493', time_epoch_executed='1632855849.46' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312975/ft1_4FGL_J2229.7-0832_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312975/ft1_4FGL_J2229.7-0832_daily_bin1052.fits outfile=/scratch/kocevski/312975/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1052.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=512006401.0 tmax=512265601.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.49
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.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/312975/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/312975/ltcube_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.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/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits
.....................!
real 12.96
user 12.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/312975/ltcube_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.fits outfile=/scratch/kocevski/312975/expmap_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.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/312975/ltcube_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.fits
.....................!
real 189.38
user 184.72
sys 4.35

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/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.fits scfile=/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits outfile=/scratch/kocevski/312975/cmap_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.fits scfile=/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits outfile=/scratch/kocevski/312975/cmap_HighResolution_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/312975/ft2_4FGL_J2229.7-0832_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312975/Model_4FGL_J2229.7-0832_daily_bin1052.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/312975/ft1_filtered_4FGL_J2229.7-0832_daily_bin1052.fits.....................!
real 86.81
user 85.40
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9228       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89400E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12771E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.293       1.0000         .10000E-03   10000.    
    12 'norm      '    11.668       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11575E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .51823       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.383       1.0000         .10000E-03   10000.    
    16 'norm      '    20.368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1770       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6571       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72214       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=   9565.853     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2097 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1386        4.3562       -.10155E-06    .11156E-04
   2  Prefactor     2.7649        5.1589        .45419E-06   -.33068E-04
   3  Prefactor     .10000E-03    19.666       -.16465E-06** at limit **
   4  Prefactor     .10000E-03    14.881       -.15669E-06** at limit **
   5  Prefactor     1.1902        30.386       -.13678E-06   -.15098E-04
   6  Prefactor     8.4181        19.100        .21000E-06   -.20763E-04
   7  Prefactor     5.9213        9.3932        .25984E-06   -.39119E-04
   8  Prefactor     .10008E-03    5.0197        .70995E-06** at limit **
   9  Prefactor     .10000E-03    43.360        .90937E-06** at limit **
  10  Prefactor     .10000E-03    2.0071        .23474E-08** at limit **
  11  Prefactor     15.278        24.346       -.47313E-06   -.60184E-05
  12  norm          11.664        4.6239        .74680E-07   -.18312E-03
  13  Prefactor     .10000E-03    27.879       -.86422E-06** at limit **
  14  norm          .51751        .57269        .32234E-06    .16689E-02
  15  Prefactor     25.345        40.463        .31076E-05   -.23470E-04
  16  norm          20.373        4.1555       -.32988E-06   -.43762E-03
  17  Prefactor     32.112        50.838       -.70761E-06   -.49810E-05
  18  Prefactor     .10000E-03    4.0927        .45099E-06** at limit **
  19  Prefactor     .10000E-03    2.7848        .17457E-06** at limit **
  20  norm          1.1773        20.237        .15797E-05   -.62465E-05
  21  Normalizat    1.6578        .22153       -.23106E-05   -.21143E-04
  22  Prefactor     .72171        .13606        .17266E-05   -.26296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13864
  Prefactor  = 2.76488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19019
  Prefactor  = 8.41812
  Prefactor  = 5.92132
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2779
  norm       = 11.6643
  Prefactor  = 0.0001
  norm       = 0.517505
  Prefactor  = 25.3447
  norm       = 20.3734
  Prefactor  = 32.1121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17732
  Normalizat = 1.6578
  Prefactor  = 0.721712
 **********
 **   18 **HESSE 
 **********

 FCN=   9565.853     FROM HESSE     STATUS=OK           354 CALLS     2451 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1386        4.3561        .19816E-03   -1.5301    
   2  Prefactor     2.7649        5.1791        .12235E-02   -1.5375    
   3  Prefactor     .10000E-03    20.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1902        29.430        .41603E-03   -1.5490    
   6  Prefactor     8.4181        18.628        .13822E-03   -1.5128    
   7  Prefactor     5.9213        9.4161        .82502E-03   -1.5221    
   8  Prefactor     .10008E-03    58.476        .39876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0821        .27017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.278        24.351        .10242E-03   -1.4926    
  12  norm          11.664        4.6261        .11728E-03   -1.5025    
  13  Prefactor     .10000E-03    27.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .51751        .54256        .81800E-03   -1.5564    
  15  Prefactor     25.345        39.649        .79511E-04   -1.4701    
  16  norm          20.373        4.1601        .47718E-04   -1.4805    
  17  Prefactor     32.112        50.663        .70632E-04   -1.4574    
  18  Prefactor     .10000E-03    4.1032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7884        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1773        20.324        .21098E-02   -1.5491    
  21  Normalizat    1.6578        .24009        .28311E-03   -.73436    
  22  Prefactor     .72171        .14618        .26337E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05867e-09
Minuit parameter uncertainties:
  1  4.35644
  2  5.17989
  3  4.2893e-05
  4  3.6521e-06
  5  11.8428
  6  18.6405
  7  9.41841
  8  0.00433518
  9  3.40895e-05
  10  2.29254e-06
  11  24.3665
  12  4.62626
  13  2.58734e-05
  14  0.542565
  15  39.6903
  16  4.16014
  17  50.7305
  18  7.1892e-06
  19  2.08746e-06
  20  9.78658
  21  0.240254
  22  0.146256
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.166e+01  4.626e+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:  7.217e-01  1.463e-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.658e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.57
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 1.50e-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) = 9565.40602262
delta logL = 0.44687033805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9565.40459687
delta logL = 0.448296089327

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.029       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9716       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75038       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=   9565.405     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.032        61.568        .30159E-02    .39975E-03
   2  alpha         2.9712        3.7944        .41344        .38375E-04
   3  Normalizat    1.5987        .11405        .64890E-01    .67429E-04
   4  Prefactor     .75044        .97030E-01    .43068E-01    .36317E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0321
  alpha      = 2.97119
  Normalizat = 1.59874
  Prefactor  = 0.750437
 **********
 **   18 **HESSE 
 **********

 FCN=   9565.405     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.032        4.8229        .11110E-03   -1.5044    
   2  alpha         2.9712        .58783        .16454E-01    .18961    
   3  Normalizat    1.5987        .23351        .28700E-03   -.75040    
   4  Prefactor     .75044        .14797        .25887E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6512e-11
Minuit parameter uncertainties:
  1  4.82312
  2  0.593598
  3  0.233668
  4  0.148051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312975': 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) = 9565.40459644
delta logL = 0.448296519467

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.103e+01  4.823e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.971e+00  5.936e-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:  7.504e-01  1.481e-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.599e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.50
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.97 +/- 0.59
Photon Flux (Free Index): 1.83e-07 +/- 7.39e-08
Energy Flux (Free Index): 3.66e-05 +/- 1.38e-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/312975/cmap_HighResolution_512006401_512265601_4FGL_J2229.7-0832_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='3.66e-05', photon_flux_error='5.67e-08', dlogl='4.48e-01', energy_flux='3.78e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-28 12:15:29.578295', photon_index_error2='0.59', photon_index2='2.97', ts='10.57', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.66', time_epoch_completed='1632856529.58', return_code='0', job_id='312975', GAL2='0.75', EG2='1.60', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.39e-08', ts2='11.50', photon_index='2.47' WHERE bin_id='1052' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:15:29 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1052 337.426 -8.5447 512006401 512265601 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

