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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1080
RA = 337.426, Dec = -8.5447
tmin = 519264001, tmax = 519523201
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='313018', job_status='RUN', time_executed='2021-09-28 12:04:56.681481', time_epoch_executed='1632855896.68' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313018/ft1_4FGL_J2229.7-0832_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313018/ft1_4FGL_J2229.7-0832_daily_bin1080.fits outfile=/scratch/kocevski/313018/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1080.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=519264001.0 tmax=519523201.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.54
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313018/ft1_filtered_4FGL_J2229.7-0832_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/313018/ltcube_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.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/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313018/ft1_filtered_4FGL_J2229.7-0832_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/313018/ltcube_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.fits outfile=/scratch/kocevski/313018/expmap_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.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/313018/ltcube_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.fits
.....................!
real 192.87
user 187.17
sys 5.37

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/313018/ft1_filtered_4FGL_J2229.7-0832_daily_bin1080.fits scfile=/scratch/kocevski/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits outfile=/scratch/kocevski/313018/cmap_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313018/ft1_filtered_4FGL_J2229.7-0832_daily_bin1080.fits scfile=/scratch/kocevski/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits outfile=/scratch/kocevski/313018/cmap_HighResolution_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/313018/ft1_filtered_4FGL_J2229.7-0832_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/313018/ft2_4FGL_J2229.7-0832_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313018/Model_4FGL_J2229.7-0832_daily_bin1080.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/313018/ft1_filtered_4FGL_J2229.7-0832_daily_bin1080.fits.....................!
real 67.10
user 65.71
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2720       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    92.463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8964       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11664E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1301       1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.845       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2689       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6794       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65427       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=   7084.206     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2372 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6347       -.41779E-07** at limit **
   2  Prefactor     2.6543        3.6363        .82912E-07   -.96546E-04
   3  Prefactor     14.353        10.914       -.29469E-08   -.41841E-05
   4  Prefactor     6.2593        18.375       -.50367E-08   -.60970E-04
   5  Prefactor     15.599        13.914       -.64294E-07    .16731E-05
   6  Prefactor     .10000E-03    7.9175        .55217E-07** at limit **
   7  Prefactor     24.457        16.088       -.69417E-07    .14190E-04
   8  Prefactor     7.7224        8.1070        .19124E-05    .61186E-05
   9  Prefactor     92.430        83.328       -.65828E-06   -.95013E-04
  10  Prefactor     .10000E-03    2.1053       -.44337E-07** at limit **
  11  Prefactor     .10000E-03    16.547        .19058E-06** at limit **
  12  norm          3.8956        3.3241        .16661E-07   -.21900E-04
  13  Prefactor     .10000E-03    28.982        .50602E-08** at limit **
  14  norm          1.4123        .77448       -.42259E-08    .24516E-04
  15  Prefactor     .10000E-03    15.314       -.87156E-06** at limit **
  16  norm          1.1310        1.0688       -.26941E-07    .82122E-04
  17  Prefactor     83.834        41.083       -.44284E-06   -.72822E-04
  18  Prefactor     9.2685        9.9611        .12041E-05    .72710E-05
  19  Prefactor     .10000E-03    5.9663       -.67732E-08** at limit **
  20  norm          .10000E-03    4.5530        .73848E-07** at limit **
  21  Normalizat    1.6793        .22190        .99782E-06   -.50836E-04
  22  Prefactor     .65432        .13723       -.13204E-05    .56032E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.65431
  Prefactor  = 14.3534
  Prefactor  = 6.25928
  Prefactor  = 15.5993
  Prefactor  = 0.0001
  Prefactor  = 24.4574
  Prefactor  = 7.72238
  Prefactor  = 92.4298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89558
  Prefactor  = 0.0001
  norm       = 1.41228
  Prefactor  = 0.0001
  norm       = 1.13102
  Prefactor  = 83.8344
  Prefactor  = 9.26854
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.67931
  Prefactor  = 0.654316
 **********
 **   18 **HESSE 
 **********

 FCN=   7084.206     FROM HESSE     STATUS=OK           344 CALLS     2716 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6478        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6543        3.6237        .18222E-03   -1.5382    
   3  Prefactor     14.353        10.912        .10572E-03   -1.4950    
   4  Prefactor     6.2593        18.353        .16028E-03   -1.5208    
   5  Prefactor     15.599        13.913        .10141E-03   -1.4918    
   6  Prefactor     .10000E-03    7.9320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.457        16.164        .80999E-04   -1.4718    
   8  Prefactor     7.7224        8.1733        .72153E-03   -1.5152    
   9  Prefactor     92.430        83.301        .20896E-03   -1.3782    
  10  Prefactor     .10000E-03    2.1572        .23840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8956        3.3185        .13470E-03   -1.5313    
  13  Prefactor     .10000E-03    28.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4123        .77413        .53044E-04   -1.5470    
  15  Prefactor     .10000E-03    15.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1310        1.0673        .70670E-04   -1.5495    
  17  Prefactor     83.834        40.888        .43869E-04   -1.3874    
  18  Prefactor     9.2685        9.9680        .65819E-03   -1.5099    
  19  Prefactor     .10000E-03    6.0126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5659        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6793        .25842        .26512E-03   -.72857    
  22  Prefactor     .65432        .15727        .25456E-03   -1.0535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54596e-10
Minuit parameter uncertainties:
  1  9.16912e-07
  2  3.62396
  3  10.9139
  4  18.3693
  5  13.9154
  6  9.77042e-07
  7  16.1666
  8  8.17452
  9  83.4066
  10  7.27456e-06
  11  7.24286e-05
  12  3.31863
  13  6.92418e-06
  14  0.774139
  15  4.11061e-05
  16  1.06734
  17  40.902
  18  9.96977
  19  2.78774e-06
  20  5.97516e-07
  21  0.258625
  22  0.157373
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.896e+00  3.319e+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.543e-01  1.574e-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.679e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/313018/likelihoodResults_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.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) = 7083.50860032
delta logL = 0.697258639404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7083.45016002
delta logL = 0.755698944249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7896       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64111       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=   7083.450     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7869        2.3192        .60902E-02    .62745E-03
   2  alpha         1.6161        .39449        .37595       -.97468E-04
   3  Normalizat    1.7074        .20805        .59565E-01   -.61879E-04
   4  Prefactor     .64111        .13275        .41612E-01   -.14064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.78689
  alpha      = 1.61611
  Normalizat = 1.70739
  Prefactor  = 0.641112
 **********
 **   18 **HESSE 
 **********

 FCN=   7083.450     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7869        3.0320        .11195E-03   -1.5374    
   2  alpha         1.6161        .62048        .13760E-01   -.36137    
   3  Normalizat    1.7074        .24199        .26339E-03   -.72106    
   4  Prefactor     .64111        .15415        .25690E-03   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43257e-10
Minuit parameter uncertainties:
  1  3.03214
  2  0.628002
  3  0.242154
  4  0.154249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313018': 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) = 7083.45015874
delta logL = 0.755700220198

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  2.787e+00  3.032e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.616e+00  6.280e-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.411e-01  1.542e-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.707e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.43
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 1.62 +/- 0.63
Photon Flux (Free Index): 2.68e-08 +/- 2.86e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.21e-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/313018/cmap_HighResolution_519264001_519523201_4FGL_J2229.7-0832_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='2.18e-05', photon_flux_error='4.07e-08', dlogl='7.56e-01', energy_flux='1.26e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-09-28 12:15:47.176535', photon_index_error2='0.63', photon_index2='1.62', ts='2.90', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='2.21e-05', EG='1.68', time_epoch_completed='1632856547.18', return_code='0', job_id='313018', GAL2='0.64', EG2='1.71', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.86e-08', ts2='4.43', photon_index='2.47' WHERE bin_id='1080' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:15:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 313018: <4FGL_J2229.7-0832_daily_bin1080> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1080 337.426 -8.5447 519264001 519523201 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 :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

