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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1059
RA = 337.426, Dec = -8.5447
tmin = 513820801, tmax = 514080001
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='312986', job_status='RUN', time_executed='2021-09-28 12:03:20.189327', time_epoch_executed='1632855800.19' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312986/ft1_4FGL_J2229.7-0832_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312986/ft1_4FGL_J2229.7-0832_daily_bin1059.fits outfile=/scratch/kocevski/312986/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1059.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=513820801.0 tmax=514080001.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.71
user 3.51
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312986/ft1_filtered_4FGL_J2229.7-0832_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/312986/ltcube_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.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/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits
.....................!
real 14.11
user 13.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312986/ft1_filtered_4FGL_J2229.7-0832_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/312986/ltcube_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.fits outfile=/scratch/kocevski/312986/expmap_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.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/312986/ltcube_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.fits
.....................!
real 197.57
user 192.80
sys 4.45

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/312986/ft1_filtered_4FGL_J2229.7-0832_daily_bin1059.fits scfile=/scratch/kocevski/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits outfile=/scratch/kocevski/312986/cmap_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312986/ft1_filtered_4FGL_J2229.7-0832_daily_bin1059.fits scfile=/scratch/kocevski/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits outfile=/scratch/kocevski/312986/cmap_HighResolution_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312986/ft1_filtered_4FGL_J2229.7-0832_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/312986/ft2_4FGL_J2229.7-0832_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312986/Model_4FGL_J2229.7-0832_daily_bin1059.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/312986/ft1_filtered_4FGL_J2229.7-0832_daily_bin1059.fits.....................!
real 58.16
user 56.86
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0985       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.974       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.095       1.0000         .10000E-03   10000.    
    12 'norm      '    7.1352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15512       1.0000         .10000E-03   10000.    
    15 'Prefactor '    86.501       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0397       1.0000         .10000E-03   10000.    
    17 'Prefactor '    150.21       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4070       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4087       1.0000         .10000E-03   10000.    
    20 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78989       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1995       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=   6016.592     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2479 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0988        6.8137       -.66053E-07   -.15290E-04
   2  Prefactor     .10000E-03    4.7279        .37105E-06** at limit **
   3  Prefactor     2.7949        20.998        .21775E-05   -.29111E-06
   4  Prefactor     .10000E-03    18.814        .21864E-06** at limit **
   5  Prefactor     .10000E-03    17.140        .16848E-06** at limit **
   6  Prefactor     29.972        19.335        .20750E-06   -.22509E-04
   7  Prefactor     3.4990        13.580        .23762E-06   -.30741E-04
   8  Prefactor     .10000E-03    2.6311        .66955E-07** at limit **
   9  Prefactor     .10000E-03    188.19       -.35711E-06** at limit **
  10  Prefactor     .10000E-03    2.2961        .17290E-06** at limit **
  11  Prefactor     58.069        66.887       -.14916E-05   -.63898E-04
  12  norm          7.1342        4.4024       -.11353E-06   -.99144E-04
  13  Prefactor     .10000E-03    33.665        .13019E-06** at limit **
  14  norm          .15581        .82355        .17014E-05    .15744E-03
  15  Prefactor     86.583        73.554        .26394E-05   -.21352E-03
  16  norm          6.0338        5.4714       -.10788E-05   -.39645E-03
  17  Prefactor     150.04        78.969       -.39088E-07   -.16112E-03
  18  Prefactor     9.4088        10.850        .84728E-07   -.33038E-05
  19  Prefactor     6.4023        17.957        .97221E-07   -.16318E-04
  20  norm          .10000E-03    23.807        .22455E-06** at limit **
  21  Normalizat    .79040        .25145       -.42986E-06   -.17111E-03
  22  Prefactor     1.1991        .16148       -.12968E-05   -.17451E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.09885
  Prefactor  = 0.0001
  Prefactor  = 2.79495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9718
  Prefactor  = 3.49899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.0689
  norm       = 7.13424
  Prefactor  = 0.0001
  norm       = 0.155815
  Prefactor  = 86.5829
  norm       = 6.0338
  Prefactor  = 150.04
  Prefactor  = 9.40884
  Prefactor  = 6.40229
  norm       = 0.0001
  Normalizat = 0.790399
  Prefactor  = 1.19914
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.592     FROM HESSE     STATUS=OK           344 CALLS     2823 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0988        6.8155        .15056E-03   -1.5175    
   2  Prefactor     .10000E-03    13.677        .32368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7949        20.906        .24376E-03   -1.5374    
   4  Prefactor     .10000E-03    18.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.972        19.284        .73181E-04   -1.4612    
   7  Prefactor     3.4990        13.537        .21615E-03   -1.5334    
   8  Prefactor     .10000E-03    2.6339        .12288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    189.20        .21177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3309        .11479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.069        66.948        .52635E-04   -1.4182    
  12  norm          7.1342        4.4007        .12158E-03   -1.5174    
  13  Prefactor     .10000E-03    33.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15581        .82760        .13595E-03   -1.5629    
  15  Prefactor     86.583        74.641        .43196E-04   -1.3844    
  16  norm          6.0338        5.5570        .75234E-04   -1.5217    
  17  Prefactor     150.04        79.058        .16443E-03   -1.3252    
  18  Prefactor     9.4088        10.847        .13066E-03   -1.5094    
  19  Prefactor     6.4023        17.927        .15854E-03   -1.5202    
  20  norm          .10000E-03    24.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .79040        .28479        .37193E-03   -1.0043    
  22  Prefactor     1.1991        .18358        .20622E-03   -.86358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95651e-10
Minuit parameter uncertainties:
  1  6.81627
  2  8.66666e-05
  3  15.2953
  4  1.80952e-05
  5  1.8431e-05
  6  19.2881
  7  13.5489
  8  2.37197e-06
  9  0.000447256
  10  6.5319e-06
  11  67.0353
  12  4.40094
  13  5.71135e-05
  14  0.717983
  15  74.7221
  16  5.5575
  17  79.1141
  18  10.8491
  19  17.942
  20  4.31347e-05
  21  0.285332
  22  0.183677
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  7.134e+00  4.401e+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.199e+00  1.837e-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:  7.904e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.30
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.43e-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) = 6016.52145845
delta logL = 0.0702135501579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6016.50599111
delta logL = 0.0856808902536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6456       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9233       1.0000          .0000       5.0000    
     3 'Normalizat'    .74302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2196       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=   6016.506     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6513        105.31        .36257E-02   -.11554E-03
   2  alpha         2.9253        3.4614        .41923       -.14393E-04
   3  Normalizat    .74291        .30617        .86347E-01   -.16182E-03
   4  Prefactor     1.2198        .16458        .34184E-01   -.17025E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.65134
  alpha      = 2.92535
  Normalizat = 0.742913
  Prefactor  = 1.21982
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.506     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6513        4.3329        .11306E-03   -1.5155    
   2  alpha         2.9253        1.0385        .24412E-01    .17097    
   3  Normalizat    .74291        .29289        .38244E-03   -1.0222    
   4  Prefactor     1.2198        .18723        .20467E-03   -.85724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68744e-10
Minuit parameter uncertainties:
  1  4.33311
  2  1.07203
  3  0.293509
  4  0.187328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312986': 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) = 6016.50598445
delta logL = 0.0856875454911

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  7.651e+00  4.333e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.925e+00  1.072e+00  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.220e+00  1.873e-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:  7.429e-01  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.53
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.93 +/- 1.07
Photon Flux (Free Index): 1.23e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.51e-05 +/- 1.47e-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/312986/cmap_HighResolution_513820801_514080001_4FGL_J2229.7-0832_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='2.51e-05', photon_flux_error='5.40e-08', dlogl='8.57e-02', energy_flux='2.31e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-28 12:12:45.043392', photon_index_error2='1.07', photon_index2='2.93', ts='6.30', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.79', time_epoch_completed='1632856365.04', return_code='0', job_id='312986', GAL2='1.22', EG2='0.74', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='1.04e-07', ts2='6.53', photon_index='2.47' WHERE bin_id='1059' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 312986: <4FGL_J2229.7-0832_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1059 337.426 -8.5447 513820801 514080001 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 :                                   564.01 sec.
    Max Memory :                                 1049 MB
    Average Memory :                             293.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            705 sec.

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

