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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1415
RA = 337.426, Dec = -8.5447
tmin = 606096001, tmax = 606355201
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='314513', job_status='RUN', time_executed='2021-09-28 12:06:05.588176', time_epoch_executed='1632855965.59' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314513

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314513/ft1_4FGL_J2229.7-0832_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314513/ft1_4FGL_J2229.7-0832_daily_bin1415.fits outfile=/scratch/kocevski/314513/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1415.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=606096001.0 tmax=606355201.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.67
user 3.43
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314513/ft1_filtered_4FGL_J2229.7-0832_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/314513/ltcube_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.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/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits
.....................!
real 11.79
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314513/ft1_filtered_4FGL_J2229.7-0832_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/314513/ltcube_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.fits outfile=/scratch/kocevski/314513/expmap_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.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/314513/ltcube_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.fits
.....................!
real 189.90
user 184.79
sys 4.70

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/314513/ft1_filtered_4FGL_J2229.7-0832_daily_bin1415.fits scfile=/scratch/kocevski/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits outfile=/scratch/kocevski/314513/cmap_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314513/ft1_filtered_4FGL_J2229.7-0832_daily_bin1415.fits scfile=/scratch/kocevski/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits outfile=/scratch/kocevski/314513/cmap_HighResolution_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.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/314513/ft1_filtered_4FGL_J2229.7-0832_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/314513/ft2_4FGL_J2229.7-0832_daily_bin1415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314513/Model_4FGL_J2229.7-0832_daily_bin1415.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/314513/ft1_filtered_4FGL_J2229.7-0832_daily_bin1415.fits.....................!
real 59.04
user 57.77
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73975E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.511       1.0000         .10000E-03   10000.    
    12 'norm      '    10.383       1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.734       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.930       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3925       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    69.083       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68495       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0222       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=   6184.848     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2370 TOTAL
                     EDM=   .72E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6826       -.20566E-09** at limit **
   2  Prefactor     .10000E-03    3.6836       -.72506E-07** at limit **
   3  Prefactor     .10000E-03    12.046       -.60250E-06** at limit **
   4  Prefactor     8.6136        19.854        .25471E-06    .52173E-07
   5  Prefactor     7.2336        14.200        .12464E-05    .44321E-04
   6  Prefactor     .10000E-03    8.5960       -.10872E-06** at limit **
   7  Prefactor     6.4018        12.124        .35558E-06    .35130E-05
   8  Prefactor     .10000E-03    7.3362        .20499E-06** at limit **
   9  Prefactor     .10000E-03    225.72       -.12988E-05** at limit **
  10  Prefactor     4.6404        5.4948        .13233E-05   -.26577E-04
  11  Prefactor     18.580        55.270       -.64133E-05    .17657E-05
  12  norm          10.382        5.2286       -.27984E-09    .11154E-04
  13  Prefactor     89.761        114.33       -.35120E-05    .17061E-05
  14  norm          1.7849        1.1880        .10970E-06    .12120E-03
  15  Prefactor     77.928        45.239        .58274E-07   -.13926E-05
  16  norm          8.3929        3.7697       -.54187E-08    .99011E-05
  17  Prefactor     .10000E-03    20.406        .22332E-08** at limit **
  18  Prefactor     4.2681        11.572        .20579E-06   -.10497E-05
  19  Prefactor     .10000E-03    23.468       -.21113E-06** at limit **
  20  norm          69.084        20.469       -.64697E-07    .26716E-05
  21  Normalizat    .68497        .24051       -.49642E-06    .41751E-04
  22  Prefactor     1.0221        .14827        .18889E-06    .85092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 8.61362
  Prefactor  = 7.2336
  Prefactor  = 0.0001
  Prefactor  = 6.40183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64041
  Prefactor  = 18.5796
  norm       = 10.3824
  Prefactor  = 89.7608
  norm       = 1.78488
  Prefactor  = 77.9283
  norm       = 8.39289
  Prefactor  = 0.0001
  Prefactor  = 4.26807
  Prefactor  = 0.0001
  norm       = 69.0837
  Normalizat = 0.684966
  Prefactor  = 1.02213
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.848     FROM HESSE     STATUS=OK           346 CALLS     2716 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6829        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7157        .14733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    101.79        .51479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6136        19.822        .13652E-03   -1.5121    
   5  Prefactor     7.2336        14.078        .14907E-03   -1.5170    
   6  Prefactor     .10000E-03    8.6091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4018        12.130        .15863E-03   -1.5202    
   8  Prefactor     .10000E-03    7.3814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    227.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6404        5.5009        .90687E-03   -1.5277    
  11  Prefactor     18.580        55.158        .93090E-04   -1.4846    
  12  norm          10.382        5.2279        .11633E-03   -1.5063    
  13  Prefactor     89.761        114.31        .42418E-04   -1.3810    
  14  norm          1.7849        1.1776        .65252E-04   -1.5441    
  15  Prefactor     77.928        47.472        .45490E-04   -1.3940    
  16  norm          8.3929        3.9474        .56610E-04   -1.5128    
  17  Prefactor     .10000E-03    20.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2681        11.551        .19499E-03   -1.5295    
  19  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          69.084        20.463        .48294E-04   -1.4044    
  21  Normalizat    .68497        .27501        .37355E-03   -1.0449    
  22  Prefactor     1.0221        .17153        .20373E-03   -.91996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30343e-10
Minuit parameter uncertainties:
  1  2.52278e-07
  2  3.7575e-06
  3  0.0010775
  4  19.8371
  5  14.0848
  6  1.19138e-05
  7  12.1343
  8  6.01962e-06
  9  7.29984e-05
  10  5.50153
  11  55.3101
  12  5.22811
  13  114.587
  14  1.1776
  15  47.4946
  16  3.94754
  17  3.42912e-06
  18  11.5569
  19  8.6508e-06
  20  20.465
  21  0.275569
  22  0.171627
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.038e+01  5.228e+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.022e+00  1.716e-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:  6.850e-01  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.99
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 6.41e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.69e-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) = 6183.90616442
delta logL = 0.941394638039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6183.8999596
delta logL = 0.947599457667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9016       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2984       1.0000          .0000       5.0000    
     3 'Normalizat'    .59004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0647       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=   6183.900     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9035        70.412        .31836E-02    .15293E-03
   2  alpha         3.2980        3.6699        .36886        .21293E-04
   3  Normalizat    .59010        .13392        .90178E-01    .38128E-04
   4  Prefactor     1.0647        .10337        .39114E-01    .33816E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.90348
  alpha      = 3.29804
  Normalizat = 0.590105
  Prefactor  = 1.0647
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.900     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9035        5.0959        .94324E-04   -1.5078    
   2  alpha         3.2980        .65923        .15757E-01    .32490    
   3  Normalizat    .59010        .26729        .39955E-03   -1.0841    
   4  Prefactor     1.0647        .17258        .19997E-03   -.90603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09222e-12
Minuit parameter uncertainties:
  1  5.09613
  2  0.668043
  3  0.267872
  4  0.172675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314513': 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) = 6183.89995945
delta logL = 0.947599604165

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  9.903e+00  5.096e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  3.298e+00  6.680e-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.065e+00  1.727e-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.901e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.20
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 3.30 +/- 0.67
Photon Flux (Free Index): 2.08e-07 +/- 9.39e-08
Energy Flux (Free Index): 3.70e-05 +/- 1.52e-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/314513/cmap_HighResolution_606096001_606355201_4FGL_J2229.7-0832_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='3.70e-05', photon_flux_error='6.41e-08', dlogl='9.48e-01', energy_flux='3.37e-05', photon_flux2='2.08e-07', job_status='DONE', time_completed='2021-09-28 12:15:15.104604', photon_index_error2='0.67', photon_index2='3.30', ts='7.99', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.68', time_epoch_completed='1632856515.1', return_code='0', job_id='314513', GAL2='1.06', EG2='0.59', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='9.39e-08', ts2='10.20', photon_index='2.47' WHERE bin_id='1415' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:15:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 314513: <4FGL_J2229.7-0832_daily_bin1415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1415 337.426 -8.5447 606096001 606355201 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            561 sec.

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

