/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 5 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_bin788
RA = 337.426, Dec = -8.5447
tmin = 443577601, tmax = 443836801
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='312556', job_status='RUN', time_executed='2021-09-28 12:00:35.179081', time_epoch_executed='1632855635.18' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312556/ft1_4FGL_J2229.7-0832_daily_bin788.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312556/ft1_4FGL_J2229.7-0832_daily_bin788.fits outfile=/scratch/kocevski/312556/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin788.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=443577601.0 tmax=443836801.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.59
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312556/ft1_filtered_4FGL_J2229.7-0832_daily_bin788.fits" evtable="EVENTS" scfile=/scratch/kocevski/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits sctable="SC_DATA" outfile=/scratch/kocevski/312556/ltcube_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.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/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits
.....................!
real 12.04
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312556/ft1_filtered_4FGL_J2229.7-0832_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits sctable="SC_DATA" expcube=/scratch/kocevski/312556/ltcube_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.fits outfile=/scratch/kocevski/312556/expmap_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.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/312556/ltcube_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.fits
.....................!
real 191.61
user 186.19
sys 5.03

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/312556/ft1_filtered_4FGL_J2229.7-0832_daily_bin788.fits scfile=/scratch/kocevski/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits outfile=/scratch/kocevski/312556/cmap_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312556/ft1_filtered_4FGL_J2229.7-0832_daily_bin788.fits scfile=/scratch/kocevski/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits outfile=/scratch/kocevski/312556/cmap_HighResolution_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312556/ft1_filtered_4FGL_J2229.7-0832_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/312556/ft2_4FGL_J2229.7-0832_daily_bin788.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312556/Model_4FGL_J2229.7-0832_daily_bin788.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/312556/ft1_filtered_4FGL_J2229.7-0832_daily_bin788.fits.....................!
real 65.66
user 64.26
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46283E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12301E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64829E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .39898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2425       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.610       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96301       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1092       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=   7216.390     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2105 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6028        3.7975       -.11660E-05    .12086E-02
   2  Prefactor     14.472        7.0994        .14531E-05    .14841E-02
   3  Prefactor     .10009E-03    8.8463        .75354E-06** at limit **
   4  Prefactor     8.2986        14.623        .19089E-06    .72715E-05
   5  Prefactor     .10000E-03    33.126       -.64360E-06** at limit **
   6  Prefactor     8.6160        16.837        .18413E-05    .18478E-03
   7  Prefactor     .10000E-03    15.663        .46375E-06** at limit **
   8  Prefactor     .10000E-03    2.0612       -.19595E-07** at limit **
   9  Prefactor     .10002E-03    599.68       -.85252E-05** at limit **
  10  Prefactor     .10000E-03    2.1759       -.87506E-07** at limit **
  11  Prefactor     .10000E-03    21.506       -.17794E-05** at limit **
  12  norm          7.4193        3.9208        .99605E-06   -.17704E-02
  13  Prefactor     .10000E-03    24.337        .21807E-05** at limit **
  14  norm          .39905        .44802        .19940E-08    .86003E-04
  15  Prefactor     2.2310        8.0942        .12507E-05    .23036E-03
  16  norm          .10000E-03    .47170       -.10568E-06** at limit **
  17  Prefactor     .10000E-03    11.030        .38588E-07** at limit **
  18  Prefactor     7.6721        8.6646       -.31614E-09   -.46917E-04
  19  Prefactor     .10000E-03    4.3556       -.74810E-09** at limit **
  20  norm          15.613        12.933        .80122E-07   -.80366E-04
  21  Normalizat    .96298        .20028       -.19629E-05    .38848E-04
  22  Prefactor     1.1093        .13392        .69537E-07   -.87640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60278
  Prefactor  = 14.4723
  Prefactor  = 0.00010009
  Prefactor  = 8.29865
  Prefactor  = 0.000100001
  Prefactor  = 8.616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.41933
  Prefactor  = 0.000100002
  norm       = 0.399045
  Prefactor  = 2.23095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.67214
  Prefactor  = 0.0001
  norm       = 15.6126
  Normalizat = 0.962976
  Prefactor  = 1.10934
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.390     FROM HESSE     STATUS=OK           348 CALLS     2453 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6028        3.9700        .86677E-03   -1.5328    
   2  Prefactor     14.472        7.4588        .10529E-03   -1.4947    
   3  Prefactor     .10009E-03    73.599        .47964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2986        14.615        .13915E-03   -1.5132    
   5  Prefactor     .10000E-03    33.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6160        16.823        .13677E-03   -1.5121    
   7  Prefactor     .10000E-03    15.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0639        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    614.52        .18821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2267        .12230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4193        4.1111        .60219E-03   -1.5163    
  13  Prefactor     .10000E-03    24.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .39905        .42877        .58399E-03   -1.5582    
  15  Prefactor     2.2310        6.9958        .27444E-03   -1.5409    
  16  norm          .10000E-03    3.2379        .95684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6721        8.6579        .14476E-03   -1.5154    
  19  Prefactor     .10000E-03    4.3689        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.613        12.933        .10137E-03   -1.4918    
  21  Normalizat    .96298        .23335        .30287E-03   -.94281    
  22  Prefactor     1.1093        .15774        .19679E-03   -.89169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90232e-09
Minuit parameter uncertainties:
  1  3.97028
  2  7.45928
  3  0.00515694
  4  14.6218
  5  0.000379518
  6  16.8321
  7  3.72706e-05
  8  3.92169e-07
  9  0.00743411
  10  2.52054e-07
  11  0.000358074
  12  4.11129
  13  0.000495052
  14  0.428775
  15  6.99833
  16  6.41257e-05
  17  9.49939e-06
  18  8.65934
  19  4.1987e-06
  20  12.9353
  21  0.233598
  22  0.157806
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  7.419e+00  4.111e+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:  1.109e+00  1.578e-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:  9.630e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 9.10e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.33e-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) = 7216.24001219
delta logL = 0.150487672176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7216.2189655
delta logL = 0.171534357285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4609       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0774       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0926       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=   7216.219     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4579        3.7522        .39474E-02    .35109E-03
   2  alpha         2.0769        .42402        .39318       -.64847E-04
   3  Normalizat    1.0003        .19295        .67330E-01   -.43440E-05
   4  Prefactor     1.0926        .13309        .37874E-01   -.33217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45793
  alpha      = 2.07693
  Normalizat = 1.00031
  Prefactor  = 1.09256
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.219     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4579        4.5467        .11956E-03   -1.5200    
   2  alpha         2.0769        .62893        .14173E-01   -.17005    
   3  Normalizat    1.0003        .23291        .29782E-03   -.93020    
   4  Prefactor     1.0926        .15838        .19807E-03   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7694e-11
Minuit parameter uncertainties:
  1  4.54696
  2  0.635966
  3  0.233148
  4  0.158449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312556': 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) = 7216.21896502
delta logL = 0.171534833492

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  6.458e+00  4.547e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.077e+00  6.360e-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:  1.093e+00  1.584e-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.000e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.08 +/- 0.64
Photon Flux (Free Index): 6.67e-08 +/- 5.61e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.56e-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/312556/cmap_HighResolution_443577601_443836801_4FGL_J2229.7-0832_daily_bin788.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.10e-08', energy_flux2='2.58e-05', photon_flux_error='5.04e-08', dlogl='1.72e-01', energy_flux='2.40e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-28 12:10:09.460110', photon_index_error2='0.64', photon_index2='2.08', ts='5.11', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.96', time_epoch_completed='1632856209.46', return_code='0', job_id='312556', GAL2='1.09', EG2='1.00', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.61e-08', ts2='5.42', photon_index='2.47' WHERE bin_id='788' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 312556: <4FGL_J2229.7-0832_daily_bin788> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin788> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:00:20 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 12:00:21 2021
Terminated at Tue Sep 28 12:10:10 2021
Results reported at Tue Sep 28 12:10:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin788 337.426 -8.5447 443577601 443836801 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 :                                   572.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            590 sec.

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

