/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 164 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2229.7-0832_daily_bin315
RA = 337.426, Dec = -8.5447
tmin = 320976001, tmax = 321235201
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='312543', job_status='RUN', time_executed='2021-09-28 12:03:17.050403', time_epoch_executed='1632855797.05' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312543/ft1_4FGL_J2229.7-0832_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312543/ft1_4FGL_J2229.7-0832_daily_bin315.fits outfile=/scratch/kocevski/312543/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin315.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=320976001.0 tmax=321235201.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.50
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.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/312543/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/312543/ltcube_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.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/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits
.....................!
real 11.97
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/312543/ltcube_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.fits outfile=/scratch/kocevski/312543/expmap_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.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/312543/ltcube_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.fits
.....................!
real 191.59
user 186.00
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/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits scfile=/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits outfile=/scratch/kocevski/312543/cmap_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits scfile=/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits outfile=/scratch/kocevski/312543/cmap_HighResolution_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/312543/ft2_4FGL_J2229.7-0832_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312543/Model_4FGL_J2229.7-0832_daily_bin315.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/312543/ft1_filtered_4FGL_J2229.7-0832_daily_bin315.fits.....................!
real 53.16
user 51.74
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22731E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12206E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    93.291       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.681       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2736       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=   5291.541     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2315 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    7.2009       -.40005E-05** at limit **
   2  Prefactor     .10000E-03    2.5234       -.46991E-07** at limit **
   3  Prefactor     .10000E-03    4.7255        .15823E-06** at limit **
   4  Prefactor     34.663        23.455        .10318E-05    .76543E-05
   5  Prefactor     .10000E-03    6.2195        .66032E-06** at limit **
   6  Prefactor     .10000E-03    9.2137       -.58201E-06** at limit **
   7  Prefactor     .10000E-03    21.338       -.17893E-06** at limit **
   8  Prefactor     2.0562        9.1449        .90242E-05    .23559E-03
   9  Prefactor     .10000E-03    35.001        .11834E-05** at limit **
  10  Prefactor     .10000E-03    1.9180       -.10637E-06** at limit **
  11  Prefactor     .10000E-03    26.090       -.18395E-05** at limit **
  12  norm          14.351        6.6271       -.26861E-06   -.76229E-05
  13  Prefactor     93.210        91.293        .93169E-05   -.23120E-04
  14  norm          .10000E-03    .43778       -.22858E-07** at limit **
  15  Prefactor     .10000E-03    4.1437        .10026E-07** at limit **
  16  norm          .10000E-03    .33220        .58952E-07** at limit **
  17  Prefactor     .10000E-03    10.552        .32843E-06** at limit **
  18  Prefactor     11.290        17.224       -.80233E-06    .19319E-05
  19  Prefactor     .10000E-03    5.5449       -.53950E-06** at limit **
  20  norm          13.686        22.121       -.12697E-06    .11207E-06
  21  Normalizat    1.1239        .26673       -.33358E-06    .41250E-05
  22  Prefactor     1.2734        .17826       -.74385E-06    .89520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3507
  Prefactor  = 93.2098
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2904
  Prefactor  = 0.0001
  norm       = 13.6856
  Normalizat = 1.1239
  Prefactor  = 1.27343
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.541     FROM HESSE     STATUS=OK           336 CALLS     2651 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    18.166        .34400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5460        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7288        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.663        23.462        .68053E-04   -1.4530    
   5  Prefactor     .10000E-03    6.2235        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0562        9.5726        .14411E-02   -1.5421    
   9  Prefactor     .10000E-03    35.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9317        .98392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.351        6.6379        .10574E-03   -1.4950    
  13  Prefactor     93.210        91.446        .20804E-03   -1.3774    
  14  norm          .10000E-03    .45234        .93920E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1466        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .33475        .40926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.290        17.223        .11934E-03   -1.5036    
  19  Prefactor     .10000E-03    5.5592        .16729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.686        22.137        .10829E-03   -1.4968    
  21  Normalizat    1.1239        .32110        .33433E-03   -.88988    
  22  Prefactor     1.2734        .21502        .21324E-03   -.84100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81903e-09
Minuit parameter uncertainties:
  1  0.00144471
  2  2.11996e-06
  3  3.65368e-07
  4  23.4682
  5  3.17342e-06
  6  5.12297e-06
  7  4.35038e-05
  8  8.87526
  9  1.15971e-05
  10  1.28516e-05
  11  2.08573e-05
  12  6.63826
  13  91.5847
  14  7.96167e-07
  15  3.35442e-06
  16  1.021e-06
  17  1.07173e-05
  18  17.2305
  19  5.4327e-06
  20  22.1498
  21  0.321657
  22  0.21517
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.435e+01  6.638e+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.273e+00  2.152e-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.124e+00  3.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 8.14e-08
Energy Flux (Fixed Index): 4.65e-05 +/- 2.15e-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) = 5291.53371743
delta logL = 0.00708106716502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5291.53328947
delta logL = 0.00750902351319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.350       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4057       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2688       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=   5291.533     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.296        7.8668        .26433E-02    .41076E-03
   2  alpha         2.4052        .55878        .34000       -.34275E-04
   3  Normalizat    1.1335        .26595        .75273E-01   -.15438E-05
   4  Prefactor     1.2687        .17842        .48310E-01    .12697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2962
  alpha      = 2.4052
  Normalizat = 1.13349
  Prefactor  = 1.26868
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.533     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.296        6.5975        .10573E-03   -1.4952    
   2  alpha         2.4052        .54242        .13081E-01   -.37928E-01
   3  Normalizat    1.1335        .32745        .33314E-03   -.88684    
   4  Prefactor     1.2687        .21695        .21356E-03   -.84243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38629e-11
Minuit parameter uncertainties:
  1  6.59786
  2  0.546778
  3  0.328043
  4  0.217099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312543': 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) = 5291.53325598
delta logL = 0.00754251714443

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.430e+01  6.598e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.405e+00  5.468e-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.269e+00  2.171e-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.133e+00  3.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.56
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.41 +/- 0.55
Photon Flux (Free Index): 1.69e-07 +/- 9.44e-08
Energy Flux (Free Index): 4.72e-05 +/- 2.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/312543/cmap_HighResolution_320976001_321235201_4FGL_J2229.7-0832_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='4.72e-05', photon_flux_error='8.14e-08', dlogl='7.54e-03', energy_flux='4.65e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-28 12:11:46.888378', photon_index_error2='0.55', photon_index2='2.41', ts='7.54', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.12', time_epoch_completed='1632856306.89', return_code='0', job_id='312543', GAL2='1.27', EG2='1.13', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='9.44e-08', ts2='7.56', photon_index='2.47' WHERE bin_id='315' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 312543: <4FGL_J2229.7-0832_daily_bin315> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin315> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:00:18 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:00:20 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:20 2021
Terminated at Tue Sep 28 12:11:47 2021
Results reported at Tue Sep 28 12:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin315 337.426 -8.5447 320976001 321235201 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 :                                   510.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            689 sec.

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

