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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1087
RA = 337.426, Dec = -8.5447
tmin = 521078401, tmax = 521337601
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='313028', job_status='RUN', time_executed='2021-09-28 12:04:52.377994', time_epoch_executed='1632855892.38' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313028

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313028/ft1_4FGL_J2229.7-0832_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313028/ft1_4FGL_J2229.7-0832_daily_bin1087.fits outfile=/scratch/kocevski/313028/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1087.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.59
user 4.36
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313028/ft1_filtered_4FGL_J2229.7-0832_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/313028/ltcube_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.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/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits
.....................!
real 11.94
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313028/ft1_filtered_4FGL_J2229.7-0832_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/313028/ltcube_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.fits outfile=/scratch/kocevski/313028/expmap_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.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/313028/ltcube_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.fits
.....................!
real 190.17
user 185.49
sys 4.33

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/313028/ft1_filtered_4FGL_J2229.7-0832_daily_bin1087.fits scfile=/scratch/kocevski/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits outfile=/scratch/kocevski/313028/cmap_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313028/ft1_filtered_4FGL_J2229.7-0832_daily_bin1087.fits scfile=/scratch/kocevski/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits outfile=/scratch/kocevski/313028/cmap_HighResolution_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/313028/ft1_filtered_4FGL_J2229.7-0832_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/313028/ft2_4FGL_J2229.7-0832_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313028/Model_4FGL_J2229.7-0832_daily_bin1087.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/313028/ft1_filtered_4FGL_J2229.7-0832_daily_bin1087.fits.....................!
real 69.80
user 68.36
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16235E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99562       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.664       1.0000         .10000E-03   10000.    
    12 'norm      '    .10407E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .54202E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.845       1.0000         .10000E-03   10000.    
    16 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24134E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    23.767       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77470       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=   8039.305     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2644 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8616        3.1542        .19943E-07   -.72901E-04
   2  Prefactor     .26238E-01    87.900       -.15202E-04    .24231E-03
   3  Prefactor     .10000E-03    2.6171        .12661E-06** at limit **
   4  Prefactor     .28840        58.614        .16515E-04    .39342E-04
   5  Prefactor     .10000E-03    10.479        .70234E-06** at limit **
   6  Prefactor     .10000E-03    18.165        .11099E-05** at limit **
   7  Prefactor     .98345        13.902        .89767E-05   -.32942E-04
   8  Prefactor     15.400        8.6882        .14001E-06   -.39157E-03
   9  Prefactor     .10001E-03    286.57        .27711E-05** at limit **
  10  Prefactor     5.6077        3.4403       -.50681E-06   -.23299E-03
  11  Prefactor     47.707        42.685        .10418E-05    .33642E-04
  12  norm          .10000E-03    1.7844       -.12225E-06** at limit **
  13  Prefactor     .10000E-03    57.935        .47760E-06** at limit **
  14  norm          .61266E-02    2.3686        .99144E-06    .13093E-02
  15  Prefactor     54.845        13.636        .11469E-05   -.59539E-03
  16  norm          .10000E-03    .38578       -.10484E-05** at limit **
  17  Prefactor     .10000E-03    31.327       -.87526E-06** at limit **
  18  Prefactor     .10000E-03    6.3681        .28163E-06** at limit **
  19  Prefactor     .10003E-03    57.517       -.94035E-05** at limit **
  20  norm          23.767        11.199        .10430E-06    .41066E-04
  21  Normalizat    1.1442        .16857       -.40550E-06   -.74827E-04
  22  Prefactor     .77470        .10707       -.12039E-05   -.23181E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8616
  Prefactor  = 0.0262385
  Prefactor  = 0.0001
  Prefactor  = 0.288401
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.983454
  Prefactor  = 15.4
  Prefactor  = 0.000100012
  Prefactor  = 5.60771
  Prefactor  = 47.7071
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.00612662
  Prefactor  = 54.8453
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 23.7666
  Normalizat = 1.14417
  Prefactor  = 0.774705
 **********
 **   18 **HESSE 
 **********

 FCN=   8039.305     FROM HESSE     STATUS=OK           374 CALLS     3018 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8616        3.1579        .16328E-03   -1.5370    
   2  Prefactor     .26238E-01    4.4452        .40647E-01   -1.5676    
   3  Prefactor     .10000E-03    2.6214        .14169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28840        58.604        .40559E-02   -1.5601    
   5  Prefactor     .10000E-03    10.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .98345        14.334        .34146E-02   -1.5510    
   8  Prefactor     15.400        8.6951        .10205E-03   -1.4923    
   9  Prefactor     .10001E-03    290.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6077        3.4748        .62009E-03   -1.5234    
  11  Prefactor     47.707        43.007        .58080E-04   -1.4325    
  12  norm          .10000E-03    3.7691        .22951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .61266E-02    .58820        .16785E-01   -1.5692    
  15  Prefactor     54.845        14.713        .54163E-04   -1.4225    
  16  norm          .10000E-03    .61582        .10568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    9.4369        .67601E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.767        11.213        .82164E-04   -1.4733    
  21  Normalizat    1.1442        .19750        .25740E-03   -.88346    
  22  Prefactor     .77470        .12600        .20648E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62041e-08
Minuit parameter uncertainties:
  1  3.15808
  2  0.68179
  3  1.9894e-05
  4  8.229
  5  0.000156033
  6  0.000531182
  7  7.51081
  8  8.69578
  9  0.00376158
  10  3.47488
  11  43.0348
  12  0.000119423
  13  0.000211955
  14  0.119079
  15  14.7139
  16  2.8525e-05
  17  0.000656997
  18  7.55776e-05
  19  0.00113493
  20  11.2143
  21  0.197631
  22  0.126048
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  1.194e-04  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:  7.747e-01  1.260e-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.144e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/313028/likelihoodResults_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8039.30623007
delta logL = -0.00126289926175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8038.22783279
delta logL = 1.07713437761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83591       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81140       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=   8038.228     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      322 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83666        22.450        .12573E-01    .14814E-02
   2  alpha         5.0000        2.5006        .46268    ** at limit **
   3  Normalizat    1.0505        .18116        .60334E-01    .30028E-03
   4  Prefactor     .81135        .69493E-01    .43865E-01    .42535E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.836659
  alpha      = 5
  Normalizat = 1.0505
  Prefactor  = 0.811347
 **********
 **   18 **HESSE 
 **********

 FCN=   8038.228     FROM HESSE     STATUS=OK            31 CALLS      353 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83666        .64154        .58612E-03   -1.5525    
   2  alpha         5.0000        3.1820        .79665E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0505        .19397        .26683E-03   -.91357    
   4  Prefactor     .81135        .12724        .20210E-03   -.99311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27065e-11
Minuit parameter uncertainties:
  1  0.641548
  2  2.87567e-06
  3  0.194103
  4  0.127285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313028': 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) = 8038.22782155
delta logL = 1.07714561474

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.367e-01  6.415e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  5.000e+00  2.876e-06  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.113e-01  1.273e-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.050e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.64e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.03e-05 +/- 7.85e-06

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/313028/cmap_HighResolution_521078401_521337601_4FGL_J2229.7-0832_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-05', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='1.08e+00', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-28 12:17:08.041103', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.57e-08', energy_flux_error2='7.85e-06', EG='1.14', time_epoch_completed='1632856628.04', return_code='0', job_id='313028', GAL2='0.81', EG2='1.05', return_code2='0', photon_flux_error2='5.83e-08', ts2='2.33', photon_index='2.47' WHERE bin_id='1087' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 313028: <4FGL_J2229.7-0832_daily_bin1087> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1087> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:01:04 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:01:06 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:06 2021
Terminated at Tue Sep 28 12:17:08 2021
Results reported at Tue Sep 28 12:17:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1087 337.426 -8.5447 521078401 521337601 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 :                                   734.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

