/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 183 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2229.7-0832_daily_bin326
RA = 337.426, Dec = -8.5447
tmin = 323827201, tmax = 324086401
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='309809', job_status='RUN', time_executed='2021-09-28 11:54:15.140807', time_epoch_executed='1632855255.14' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309809/ft1_4FGL_J2229.7-0832_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309809/ft2_4FGL_J2229.7-0832_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309809/ft1_4FGL_J2229.7-0832_daily_bin326.fits outfile=/scratch/kocevski/309809/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin326.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=323827201.0 tmax=324086401.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.33
user 3.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309809/ft2_4FGL_J2229.7-0832_daily_bin326.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/309809/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/309809/ft1_filtered_4FGL_J2229.7-0832_daily_bin326.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/309809/ft1_filtered_4FGL_J2229.7-0832_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/309809/ft2_4FGL_J2229.7-0832_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/309809/ltcube_323827201_324086401_4FGL_J2229.7-0832_daily_bin326.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/309809/ft2_4FGL_J2229.7-0832_daily_bin326.fits
.....................!
real 12.20
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309809/ft1_filtered_4FGL_J2229.7-0832_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/309809/ft2_4FGL_J2229.7-0832_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/309809/ltcube_323827201_324086401_4FGL_J2229.7-0832_daily_bin326.fits outfile=/scratch/kocevski/309809/expmap_323827201_324086401_4FGL_J2229.7-0832_daily_bin326.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/309809/ltcube_323827201_324086401_4FGL_J2229.7-0832_daily_bin326.fits
.....................!
real 190.86
user 186.51
sys 4.02

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/309809/ft1_filtered_4FGL_J2229.7-0832_daily_bin326.fits scfile=/scratch/kocevski/309809/ft2_4FGL_J2229.7-0832_daily_bin326.fits outfile=/scratch/kocevski/309809/cmap_323827201_324086401_4FGL_J2229.7-0832_daily_bin326.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.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/309809/ft1_filtered_4FGL_J2229.7-0832_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/309809/ft2_4FGL_J2229.7-0832_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309809/Model_4FGL_J2229.7-0832_daily_bin326.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/309809/ft1_filtered_4FGL_J2229.7-0832_daily_bin326.fits.....................!
real 63.08
user 61.88
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81866       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.1126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7760       1.0000         .10000E-03   10000.    
    14 'norm      '    .24921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1022       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12482E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15802E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84252       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85636       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=   7019.010     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2907 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9235        .13349E-07** at limit **
   2  Prefactor     6.9497        5.5283        .11113E-05    .83825E-03
   3  Prefactor     2.9177        7.9558       -.18880E-05   -.30811E-04
   4  Prefactor     25.031        14.631       -.31566E-06   -.20058E-05
   5  Prefactor     .81044        15.914       -.41110E-05    .35700E-03
   6  Prefactor     .10000E-03    12.347       -.17855E-06** at limit **
   7  Prefactor     5.9419        8.3329        .24237E-06    .41762E-04
   8  Prefactor     .85915        4.3970        .45323E-06   -.14440E-04
   9  Prefactor     53.624        75.563       -.53942E-05   -.47182E-04
  10  Prefactor     2.4289        3.5137       -.76890E-07    .87298E-05
  11  Prefactor     .10000E-03    29.092       -.18194E-06** at limit **
  12  norm          8.1106        3.9126        .40746E-06    .48018E-03
  13  Prefactor     2.0917        724.99        .37256E-05    .16485E-05
  14  norm          .24905        .60153        .23101E-06    .33999E-04
  15  Prefactor     .10000E-03    2.8256       -.19845E-07** at limit **
  16  norm          .10000E-03    .21511       -.13840E-08** at limit **
  17  Prefactor     .10000E-03    11.036        .10194E-06** at limit **
  18  Prefactor     2.1024        4.5047        .14569E-06    .59030E-04
  19  Prefactor     .10000E-03    4.0716        .26575E-07** at limit **
  20  norm          .10000E-03    7.1305       -.37645E-06** at limit **
  21  Normalizat    .84264        .17215       -.11946E-06    .16858E-03
  22  Prefactor     .85633        .11124        .18496E-06    .21971E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.94974
  Prefactor  = 2.91772
  Prefactor  = 25.0307
  Prefactor  = 0.810444
  Prefactor  = 0.0001
  Prefactor  = 5.94186
  Prefactor  = 0.859153
  Prefactor  = 53.6241
  Prefactor  = 2.42888
  Prefactor  = 0.0001
  norm       = 8.11056
  Prefactor  = 2.09169
  norm       = 0.249049
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.10244
  Prefactor  = 0.0001
  norm       = 0.000100003
  Normalizat = 0.842637
  Prefactor  = 0.85633
 **********
 **   18 **HESSE 
 **********

 FCN=   7019.010     FROM HESSE     STATUS=OK           358 CALLS     3265 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9335        .13990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9497        5.8139        .76085E-03   -1.5181    
   3  Prefactor     2.9177        7.9901        .23788E-03   -1.5366    
   4  Prefactor     25.031        14.621        .80067E-04   -1.4707    
   5  Prefactor     .81044        37.065        .47082E-02   -1.5528    
   6  Prefactor     .10000E-03    12.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9419        8.3128        .16471E-03   -1.5220    
   8  Prefactor     .85915        14.384        .31034E-02   -1.5523    
   9  Prefactor     53.624        76.009        .54854E-04   -1.4242    
  10  Prefactor     2.4289        3.4275        .16625E-03   -1.5396    
  11  Prefactor     .10000E-03    29.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.1106        3.9135        .50358E-03   -1.5138    
  13  Prefactor     2.0917        704.67        .31412E-03   -1.5419    
  14  norm          .24905        .73906        .92634E-03   -1.5608    
  15  Prefactor     .10000E-03    2.8325        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .21516        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    91.468        .53044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1024        4.4706        .25332E-03   -1.5418    
  19  Prefactor     .10000E-03    15.470        .32617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    53.654        .42512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84264        .19626        .26696E-03   -.98506    
  22  Prefactor     .85633        .13220        .18220E-03   -.97684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26534e-08
Minuit parameter uncertainties:
  1  6.5547e-07
  2  5.81432
  3  7.99299
  4  14.623
  5  10.9682
  6  3.364e-05
  7  8.31438
  8  7.03245
  9  76.1469
  10  3.42781
  11  3.14959e-05
  12  3.91366
  13  77.7227
  14  0.739084
  15  2.53373e-06
  16  5.39583e-08
  17  0.000966918
  18  4.4713
  19  3.63006e-05
  20  0.000837338
  21  0.196427
  22  0.132247
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.111e+00  3.914e+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:  8.563e-01  1.322e-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:  8.426e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.73
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 9.95e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.27e-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) = 7018.49630492
delta logL = 0.513628461001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7018.48291465
delta logL = 0.52701873202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3093       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1673       1.0000          .0000       5.0000    
     3 'Normalizat'    .78057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88751       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=   7018.483     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3090        4.2066        .84763E-04    .21769E-02
   2  alpha         3.1673        .82894        .16967E-01    .10395E-03
   3  Normalizat    .78056        .20010        .27621E-03   -.69643E-04
   4  Prefactor     .88751        .13452        .17930E-03   -.57763E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30905
  alpha      = 3.16734
  Normalizat = 0.780561
  Prefactor  = 0.887513
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.483     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3090        3.9836        .33905E-05   -1.5167    
   2  alpha         3.1673        .78583        .67869E-03    .27021    
   3  Normalizat    .78056        .19983        .11048E-04   -1.0079    
   4  Prefactor     .88751        .13427        .71720E-05   -.96579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5979e-10
Minuit parameter uncertainties:
  1  3.98374
  2  0.800471
  3  0.200018
  4  0.134315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309809': 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) = 7018.48291464
delta logL = 0.527018735817

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  7.309e+00  3.984e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  3.167e+00  8.005e-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:  8.875e-01  1.343e-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.806e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 3.17 +/- 0.80
Photon Flux (Free Index): 1.39e-07 +/- 6.33e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/309809/cmap_HighResolution_323827201_324086401_4FGL_J2229.7-0832_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.95e-08', energy_flux2='2.58e-05', photon_flux_error='4.80e-08', dlogl='5.27e-01', energy_flux='2.63e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-28 12:04:48.498282', photon_index_error2='0.80', photon_index2='3.17', ts='8.73', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.84', time_epoch_completed='1632855888.5', return_code='0', job_id='309809', GAL2='0.89', EG2='0.78', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.33e-08', ts2='10.05', photon_index='2.47' WHERE bin_id='326' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:04:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 309809: <4FGL_J2229.7-0832_daily_bin326> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin326> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:50:59 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:51: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 11:51:01 2021
Terminated at Tue Sep 28 12:04:49 2021
Results reported at Tue Sep 28 12:04:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin326 337.426 -8.5447 323827201 324086401 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 :                                   633.00 sec.
    Max Memory :                                 1002 MB
    Average Memory :                             281.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

