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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1410
RA = 337.426, Dec = -8.5447
tmin = 604800001, tmax = 605059201
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='314505', job_status='RUN', time_executed='2021-09-28 12:09:14.873638', time_epoch_executed='1632856154.87' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314505

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314505/ft1_4FGL_J2229.7-0832_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314505/ft1_4FGL_J2229.7-0832_daily_bin1410.fits outfile=/scratch/kocevski/314505/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1410.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.08
user 4.81
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314505/ft1_filtered_4FGL_J2229.7-0832_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/314505/ltcube_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.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/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits
.....................!
real 11.92
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314505/ft1_filtered_4FGL_J2229.7-0832_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/314505/ltcube_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.fits outfile=/scratch/kocevski/314505/expmap_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.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/314505/ltcube_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.fits
.....................!
real 192.08
user 185.93
sys 5.61

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/314505/ft1_filtered_4FGL_J2229.7-0832_daily_bin1410.fits scfile=/scratch/kocevski/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits outfile=/scratch/kocevski/314505/cmap_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314505/ft1_filtered_4FGL_J2229.7-0832_daily_bin1410.fits scfile=/scratch/kocevski/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits outfile=/scratch/kocevski/314505/cmap_HighResolution_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=337.426 yref=-8.5447 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314505/ft1_filtered_4FGL_J2229.7-0832_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/314505/ft2_4FGL_J2229.7-0832_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314505/Model_4FGL_J2229.7-0832_daily_bin1410.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/314505/ft1_filtered_4FGL_J2229.7-0832_daily_bin1410.fits.....................!
real 57.70
user 56.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11137E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12727E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5702       1.0000         .10000E-03   10000.    
    16 'norm      '    15.763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    125.21       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42661       1.0000         .10000E-03   10000.    
    20 'norm      '    17.096       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1629       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3624       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=   5780.014     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2728 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8557        6.8634       -.44641E-07   -.19317E-04
   2  Prefactor     4.9669        9.7407        .13377E-05    .51364E-03
   3  Prefactor     .10000E-03    9.2150        .48657E-07** at limit **
   4  Prefactor     .10000E-03    16.329        .42437E-06** at limit **
   5  Prefactor     .10000E-03    24.993       -.62332E-06** at limit **
   6  Prefactor     .10000E-03    6.3701        .98843E-08** at limit **
   7  Prefactor     .10000E-03    13.472        .47326E-07** at limit **
   8  Prefactor     .10000E-03    25.957        .41877E-06** at limit **
   9  Prefactor     .10000E-03    49.073        .28028E-05** at limit **
  10  Prefactor     .10000E-03    4.8471        .98832E-07** at limit **
  11  Prefactor     .10005E-03    157.43        .88438E-05** at limit **
  12  norm          9.6838        7.0071       -.11029E-06    .37764E-04
  13  Prefactor     .10003E-03    83.442       -.65448E-05** at limit **
  14  norm          .10000E-03    .74830        .31477E-06** at limit **
  15  Prefactor     6.6639        366.95        .11030E-04    .16508E-03
  16  norm          15.754        7.3217       -.47940E-06    .17038E-02
  17  Prefactor     125.02        119.27        .77386E-06    .34509E-03
  18  Prefactor     36.510        23.080       -.33223E-06   -.31037E-04
  19  Prefactor     .49382        46.615       -.99417E-05    .47170E-03
  20  norm          17.118        20.237        .12478E-06    .43563E-04
  21  Normalizat    1.1636        .32930        .48792E-05    .25506E-03
  22  Prefactor     1.3622        .20202       -.31068E-05   -.35046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.85568
  Prefactor  = 4.96691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  norm       = 9.68377
  Prefactor  = 0.000100027
  norm       = 0.000100001
  Prefactor  = 6.66394
  norm       = 15.754
  Prefactor  = 125.021
  Prefactor  = 36.5105
  Prefactor  = 0.493816
  norm       = 17.1179
  Normalizat = 1.16355
  Prefactor  = 1.36215
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.014     FROM HESSE     STATUS=OK           338 CALLS     3066 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8557        6.8679        .15323E-03   -1.5184    
   2  Prefactor     4.9669        9.9164        .90230E-03   -1.5262    
   3  Prefactor     .10000E-03    9.2594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9193        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    160.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6838        7.0086        .12877E-03   -1.5085    
  13  Prefactor     .10003E-03    85.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9507        .12177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6639        369.98        .15656E-03   -1.5192    
  16  norm          15.754        7.3924        .59525E-04   -1.4914    
  17  Prefactor     125.02        119.60        .17987E-03   -1.3467    
  18  Prefactor     36.510        23.071        .66326E-04   -1.4499    
  19  Prefactor     .49382        105.02        .53834E-02   -1.5567    
  20  norm          17.118        20.256        .96866E-04   -1.4880    
  21  Normalizat    1.1636        .36989        .38866E-03   -.87737    
  22  Prefactor     1.3622        .22919        .23539E-03   -.81477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2816e-08
Minuit parameter uncertainties:
  1  6.86872
  2  9.91969
  3  9.22775e-06
  4  8.86699e-05
  5  0.000129598
  6  1.88244e-06
  7  8.09242e-06
  8  0.000116448
  9  0.000984209
  10  1.33066e-05
  11  0.00553455
  12  7.00916
  13  0.00302033
  14  9.96721e-05
  15  99.9636
  16  7.39287
  17  119.831
  18  23.0771
  19  14.4273
  20  20.2643
  21  0.370718
  22  0.229359
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  9.684e+00  7.009e+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.362e+00  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.164e+00  3.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 8.59e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 2.27e-05

TS (Fixed Index): 2.74
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 2.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314505/likelihoodResults_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.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): 0
logL (Free Index) = 5780.00638054
delta logL = 0.00743668484574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5780.00574005
delta logL = 0.00807717423413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4828       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3815       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3577       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=   5780.006     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4798        7.8320        .32535E-02    .34991E-02
   2  alpha         2.3810        .63045        .41210       -.13292E-04
   3  Normalizat    1.1729        .29160        .87466E-01   -.63341E-04
   4  Prefactor     1.3581        .18879        .53309E-01   -.45712E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.47984
  alpha      = 2.38102
  Normalizat = 1.17285
  Prefactor  = 1.35813
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.006     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4798        7.1734        .65069E-03   -1.5092    
   2  alpha         2.3810        .70206        .16543E-01   -.47611E-01
   3  Normalizat    1.1729        .35341        .38734E-03   -.87446    
   4  Prefactor     1.3581        .22623        .23568E-03   -.81595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28033e-10
Minuit parameter uncertainties:
  1  7.17404
  2  0.711653
  3  0.35413
  4  0.226393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314505': 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) = 5780.00573623
delta logL = 0.00808099661208

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  9.480e+00  7.174e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.381e+00  7.117e-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.358e+00  2.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.173e+00  3.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.38 +/- 0.71
Photon Flux (Free Index): 1.11e-07 +/- 1.01e-07
Energy Flux (Free Index): 3.15e-05 +/- 2.31e-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/314505/cmap_HighResolution_604800001_605059201_4FGL_J2229.7-0832_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-05', comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='3.15e-05', photon_flux_error='8.59e-08', dlogl='8.08e-03', energy_flux='3.14e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-28 12:19:24.989565', photon_index_error2='0.71', photon_index2='2.38', ts='2.74', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='2.90e-07', energy_flux_error2='2.31e-05', EG='1.16', time_epoch_completed='1632856764.99', return_code='0', job_id='314505', GAL2='1.36', EG2='1.17', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='1.01e-07', ts2='2.73', photon_index='2.47' WHERE bin_id='1410' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:19:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 314505: <4FGL_J2229.7-0832_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1410 337.426 -8.5447 604800001 605059201 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 :                                   607.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

