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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin518
RA = 337.426, Dec = -8.5447
tmin = 373593601, tmax = 373852801
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='311043', job_status='RUN', time_executed='2021-09-28 11:58:03.226387', time_epoch_executed='1632855483.23' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311043/ft1_4FGL_J2229.7-0832_daily_bin518.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311043/ft1_4FGL_J2229.7-0832_daily_bin518.fits outfile=/scratch/kocevski/311043/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin518.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=373593601.0 tmax=373852801.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.48
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.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/311043/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin518.fits evtable="EVENTS" outfile="/scratch/kocevski/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.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/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.fits" evtable="EVENTS" scfile=/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits sctable="SC_DATA" outfile=/scratch/kocevski/311043/ltcube_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.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/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits
.....................!
real 12.18
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits sctable="SC_DATA" expcube=/scratch/kocevski/311043/ltcube_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.fits outfile=/scratch/kocevski/311043/expmap_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.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/311043/ltcube_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.fits
.....................!
real 192.13
user 185.92
sys 5.90

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/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.fits scfile=/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits outfile=/scratch/kocevski/311043/cmap_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.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/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.fits scfile=/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits outfile=/scratch/kocevski/311043/cmap_HighResolution_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.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/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/311043/ft2_4FGL_J2229.7-0832_daily_bin518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311043/Model_4FGL_J2229.7-0832_daily_bin518.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/311043/ft1_filtered_4FGL_J2229.7-0832_daily_bin518.fits.....................!
real 63.03
user 61.61
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5297       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.051       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22613E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91168E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5907       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13876E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .73162E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3170       1.0000         .10000E-03   10000.    
    20 'norm      '    15.948       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .50469       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1158       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=   7094.772     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2129 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1960        .10522E-07** at limit **
   2  Prefactor     2.5321        5.3170        .33728E-06    .24019E-04
   3  Prefactor     .10000E-03    3.4896       -.71993E-08** at limit **
   4  Prefactor     9.6654        10.457        .10516E-06    .67837E-05
   5  Prefactor     10.400        9.1870       -.10167E-06    .32305E-04
   6  Prefactor     .10000E-03    6.1485       -.15963E-07** at limit **
   7  Prefactor     19.041        11.118       -.28341E-07    .29895E-04
   8  Prefactor     .10943E-03    5.2436       -.16942E-05** at limit **
   9  Prefactor     .10000E-03    33.491       -.25941E-05** at limit **
  10  Prefactor     .47966        2.0884        .69294E-06    .71353E-04
  11  Prefactor     .10000E-03    37.179        .27595E-05** at limit **
  12  norm          .10000E-03    .95508        .10678E-08** at limit **
  13  Prefactor     .10000E-03    164.91       -.19485E-04** at limit **
  14  norm          3.5912        .96068       -.51757E-08    .78026E-04
  15  Prefactor     .10000E-03    6.8729       -.82495E-06** at limit **
  16  norm          .73067E-01    .55209        .16544E-06    .79555E-04
  17  Prefactor     .10000E-03    15.189       -.28175E-07** at limit **
  18  Prefactor     15.529        8.7809       -.10752E-06    .16251E-04
  19  Prefactor     2.3182        4.8153        .41173E-05    .22881E-03
  20  norm          15.945        10.491        .17093E-06    .30165E-04
  21  Normalizat    .50461        .17859       -.61235E-06    .20339E-03
  22  Prefactor     1.1157        .12084        .12960E-06    .41109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.53206
  Prefactor  = 0.0001
  Prefactor  = 9.66536
  Prefactor  = 10.3996
  Prefactor  = 0.0001
  Prefactor  = 19.0409
  Prefactor  = 0.000109429
  Prefactor  = 0.0001
  Prefactor  = 0.479663
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.59116
  Prefactor  = 0.0001
  norm       = 0.0730668
  Prefactor  = 0.0001
  Prefactor  = 15.5292
  Prefactor  = 2.31816
  norm       = 15.9449
  Normalizat = 0.504606
  Prefactor  = 1.1157
 **********
 **   18 **HESSE 
 **********

 FCN=   7094.772     FROM HESSE     STATUS=OK           358 CALLS     2487 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1969        .12190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5321        5.2900        .25681E-03   -1.5390    
   3  Prefactor     .10000E-03    3.5002        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6654        10.448        .12889E-03   -1.5086    
   5  Prefactor     10.400        9.1880        .12425E-03   -1.5063    
   6  Prefactor     .10000E-03    6.1581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.041        11.113        .91763E-04   -1.4835    
   8  Prefactor     .10943E-03    10.761        .53177E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .47966        6.4463        .21076E-02   -1.5569    
  11  Prefactor     .10000E-03    37.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .96948        .80327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    165.22        .20822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5912        .95812        .40596E-04   -1.5329    
  15  Prefactor     .10000E-03    20.794        .35334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .73067E-01    .79296        .99880E-03   -1.5654    
  17  Prefactor     .10000E-03    15.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.529        8.7668        .10165E-03   -1.4920    
  19  Prefactor     2.3182        4.8296        .13037E-02   -1.5403    
  20  norm          15.945        10.487        .50146E-03   -1.4909    
  21  Normalizat    .50461        .19687        .34414E-03   -1.1220    
  22  Prefactor     1.1157        .13663        .17077E-03   -.88966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01191e-09
Minuit parameter uncertainties:
  1  1.25892e-07
  2  5.291
  3  1.70829e-07
  4  10.4502
  5  9.1892
  6  1.48134e-06
  7  11.1146
  8  0.0201491
  9  4.80075e-05
  10  3.51694
  11  3.96399e-05
  12  9.58824e-07
  13  0.00057859
  14  0.958128
  15  6.43973e-05
  16  0.481089
  17  1.65551e-06
  18  8.76752
  19  4.83046
  20  10.4881
  21  0.19714
  22  0.136675
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  9.588e-07  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.116e+00  1.367e-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:  5.046e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 5.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311043/likelihoodResults_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.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): 102
logL (Free Index) = 7094.77271397
delta logL = -0.00110570324523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7094.77161442
delta logL = -6.15852059127e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1569       1.0000          .0000       5.0000    
     3 'Normalizat'    .50461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1157       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7094.772     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      261 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    74.053        .75794E-02** at limit **
   2  alpha         2.6205        2.6963        .17243        .17735E-06
   3  Normalizat    .50460        .39157E-01    .34415E-03    .27673E-03
   4  Prefactor     1.1157        .28247E-01    .17077E-03    .68117E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.62052
  Normalizat = 0.504605
  Prefactor  = 1.1157
 **********
 **   18 **HESSE 
 **********

 FCN=   7094.772     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .98037        .80898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6205        3.5185        .68974E-02    .48229E-01
   3  Normalizat    .50460        .18812        .13766E-04   -1.1220    
   4  Prefactor     1.1157        .13609        .34155E-04   -.88966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71814e-10
Minuit parameter uncertainties:
  1  2.54818e-05
  2  143.509
  3  0.18836
  4  0.136134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311043': 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) = 7094.77160773
delta logL = 5.32497324457e-07

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  2.548e-05  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.621e+00  1.435e+02  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.116e+00  1.361e-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:  5.046e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.426 -8.545

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/311043/cmap_HighResolution_373593601_373852801_4FGL_J2229.7-0832_daily_bin518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-05', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-28 12:08:31.169163', job_id='311043', GAL2='1.12', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1632856111.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='518' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:08:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 311043: <4FGL_J2229.7-0832_daily_bin518> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin518> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:55:18 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:55:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:55:19 2021
Terminated at Tue Sep 28 12:08:31 2021
Results reported at Tue Sep 28 12:08:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin518 337.426 -8.5447 373593601 373852801 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 :                                   628.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

