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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1150
RA = 337.426, Dec = -8.5447
tmin = 537408001, tmax = 537667201
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='313130', job_status='RUN', time_executed='2021-09-28 12:04:41.759092', time_epoch_executed='1632855881.76' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313130

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313130/ft1_4FGL_J2229.7-0832_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits


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

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

Done.
real 4.54
user 4.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.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/313130/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1150.fits evtable="EVENTS" outfile="/scratch/kocevski/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/313130/ltcube_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.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/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits
.....................!
real 11.63
user 11.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/313130/ltcube_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.fits outfile=/scratch/kocevski/313130/expmap_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.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/313130/ltcube_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.fits
.....................!
real 192.82
user 187.24
sys 5.28

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/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.fits scfile=/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits outfile=/scratch/kocevski/313130/cmap_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.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/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.fits scfile=/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits outfile=/scratch/kocevski/313130/cmap_HighResolution_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.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/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/313130/ft2_4FGL_J2229.7-0832_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313130/Model_4FGL_J2229.7-0832_daily_bin1150.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/313130/ft1_filtered_4FGL_J2229.7-0832_daily_bin1150.fits.....................!
real 55.53
user 54.19
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.076       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.061       1.0000         .10000E-03   10000.    
    14 'norm      '    .17703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    143.65       1.0000         .10000E-03   10000.    
    16 'norm      '    26.581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.544       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64388       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=   5620.985     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2467 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9942       -.32415E-06** at limit **
   2  Prefactor     15.078        10.688        .52690E-06   -.15229E-03
   3  Prefactor     .10000E-03    18.279       -.22541E-04** at limit **
   4  Prefactor     15.336        16.383       -.12784E-05   -.41017E-04
   5  Prefactor     .10000E-03    13.804        .11174E-04** at limit **
   6  Prefactor     26.386        24.671        .10039E-04   -.57567E-05
   7  Prefactor     4.6516        17.870        .10001E-04   -.69535E-04
   8  Prefactor     .10000E-03    14.568       -.42299E-05** at limit **
   9  Prefactor     86.839        105.73        .17360E-04   -.18967E-04
  10  Prefactor     1.5715        3.5749       -.28746E-05   -.91892E-03
  11  Prefactor     .10000E-03    45.484       -.18225E-04** at limit **
  12  norm          3.2701        3.6167       -.61873E-06   -.49724E-03
  13  Prefactor     11.119        100.85        .15758E-03    .12518E-04
  14  norm          .17629        .68994       -.34677E-07   -.11861E-02
  15  Prefactor     143.64        80.724       -.76890E-05   -.15438E-03
  16  norm          26.585        7.1468        .12890E-05   -.14968E-02
  17  Prefactor     .10000E-03    26.859        .31235E-04** at limit **
  18  Prefactor     .10000E-03    4.3071       -.21560E-07** at limit **
  19  Prefactor     15.547        14.580        .11732E-05   -.45976E-04
  20  norm          .10000E-03    5.0496        .35607E-06** at limit **
  21  Normalizat    1.0595        .24544       -.62979E-05    .12879E-03
  22  Prefactor     .64437        .14405       -.29438E-05    .66141E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.0782
  Prefactor  = 0.000100001
  Prefactor  = 15.3364
  Prefactor  = 0.0001
  Prefactor  = 26.3862
  Prefactor  = 4.65161
  Prefactor  = 0.0001
  Prefactor  = 86.8391
  Prefactor  = 1.57148
  Prefactor  = 0.0001
  norm       = 3.27009
  Prefactor  = 11.1195
  norm       = 0.176293
  Prefactor  = 143.639
  norm       = 26.5854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5473
  norm       = 0.0001
  Normalizat = 1.05949
  Prefactor  = 0.644367
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.985     FROM HESSE     STATUS=OK           344 CALLS     2811 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.078        10.707        .10315E-03   -1.4931    
   3  Prefactor     .10000E-03    18.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.336        16.375        .10226E-03   -1.4925    
   5  Prefactor     .10000E-03    13.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.386        24.703        .78003E-04   -1.4680    
   7  Prefactor     4.6516        17.882        .18696E-03   -1.5277    
   8  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     86.839        105.47        .43117E-04   -1.3842    
  10  Prefactor     1.5715        3.5397        .20378E-03   -1.5457    
  11  Prefactor     .10000E-03    45.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2701        3.6001        .14119E-03   -1.5346    
  13  Prefactor     11.119        100.64        .12046E-03   -1.5041    
  14  norm          .17629        .99616        .11629E-02   -1.5624    
  15  Prefactor     143.64        84.075        .33617E-04   -1.3305    
  16  norm          26.585        7.4464        .48894E-04   -1.4676    
  17  Prefactor     .10000E-03    26.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3096        .15196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.547        14.582        .10159E-03   -1.4919    
  20  norm          .10000E-03    5.0635        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0595        .29717        .30972E-03   -.91063    
  22  Prefactor     .64437        .17371        .24190E-03   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69265e-09
Minuit parameter uncertainties:
  1  2.15339e-05
  2  10.7089
  3  0.000199425
  4  16.3797
  5  0.000138868
  6  24.7125
  7  17.9022
  8  0.000111619
  9  105.702
  10  3.5402
  11  0.000101276
  12  3.60035
  13  67.0554
  14  0.837915
  15  84.1449
  16  7.44664
  17  7.24082e-05
  18  6.61693e-06
  19  14.5848
  20  2.18195e-05
  21  0.297641
  22  0.17386
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.270e+00  3.600e+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.444e-01  1.739e-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.059e+00  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/313130/likelihoodResults_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.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) = 5620.95240422
delta logL = 0.0323338028347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5620.95110999
delta logL = 0.0336280301462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1167       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2124       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64071       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=   5620.951     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1167        3.4136        .57417E-02   -.15699E-02
   2  alpha         2.2121        .78266        .41501       -.31140E-04
   3  Normalizat    1.0675        .22884        .69768E-01    .11328E-04
   4  Prefactor     .64056        .14313        .41606E-01    .13387E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11674
  alpha      = 2.21215
  Normalizat = 1.06754
  Prefactor  = 0.640565
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.951     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1167        3.4714        .13734E-03   -1.5355    
   2  alpha         2.2121        .93131        .22971E-01   -.11540    
   3  Normalizat    1.0675        .27371        .30869E-03   -.90801    
   4  Prefactor     .64056        .17100        .24253E-03   -1.0590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27499e-09
Minuit parameter uncertainties:
  1  3.47161
  2  0.954651
  3  0.274077
  4  0.171139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313130': 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) = 5620.9511096
delta logL = 0.0336284223413

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.117e+00  3.472e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.212e+00  9.547e-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.406e-01  1.711e-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.068e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.21 +/- 0.95
Photon Flux (Free Index): 3.38e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.25e-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/313130/cmap_HighResolution_537408001_537667201_4FGL_J2229.7-0832_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.13e-05', photon_flux_error='4.41e-08', dlogl='3.36e-02', energy_flux='1.06e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-28 12:14:33.328678', photon_index_error2='0.95', photon_index2='2.21', ts='1.50', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.25e-05', EG='1.06', time_epoch_completed='1632856473.33', return_code='0', job_id='313130', GAL2='0.64', EG2='1.07', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.31e-08', ts2='1.55', photon_index='2.47' WHERE bin_id='1150' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:14:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 313130: <4FGL_J2229.7-0832_daily_bin1150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1150 337.426 -8.5447 537408001 537667201 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 :                                   590.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

