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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1454
RA = 337.426, Dec = -8.5447
tmin = 616204801, tmax = 616464001
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='314579', job_status='RUN', time_executed='2021-09-28 12:08:58.936324', time_epoch_executed='1632856138.94' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314579/ft1_4FGL_J2229.7-0832_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314579/ft1_4FGL_J2229.7-0832_daily_bin1454.fits outfile=/scratch/kocevski/314579/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1454.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=616204801.0 tmax=616464001.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.98
user 3.75
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.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/314579/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/314579/ft1_filtered_4FGL_J2229.7-0832_daily_bin1454.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/314579/ft1_filtered_4FGL_J2229.7-0832_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/314579/ltcube_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.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/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.fits
.....................!
real 12.09
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314579/ft1_filtered_4FGL_J2229.7-0832_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/314579/ltcube_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.fits outfile=/scratch/kocevski/314579/expmap_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.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/314579/ltcube_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.fits
.....................!
real 190.75
user 185.76
sys 4.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/314579/ft1_filtered_4FGL_J2229.7-0832_daily_bin1454.fits scfile=/scratch/kocevski/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.fits outfile=/scratch/kocevski/314579/cmap_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.426 yref=-8.5447 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314579/ft1_filtered_4FGL_J2229.7-0832_daily_bin1454.fits scfile=/scratch/kocevski/314579/ft2_4FGL_J2229.7-0832_daily_bin1454.fits outfile=/scratch/kocevski/314579/cmap_HighResolution_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35980E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.245       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.428       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3124       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19913E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12762E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6347       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.734       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5255       1.0000         .10000E-03   10000.    
    20 'norm      '    43.932       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1514       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82743       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5587.317     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2235 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5453         .0000    ** at limit **
   2  Prefactor     15.819        9.0188         .0000        .96431E-03
   3  Prefactor     .10001E-03    7.1599         .0000    ** at limit **
   4  Prefactor     .10000E-03    9.8603         .0000    ** at limit **
   5  Prefactor     9.7015        28.575         .0000        .51285E-03
   6  Prefactor     49.516        37.728         .0000        .74223E-04
   7  Prefactor     11.239        13.351         .0000        .67853E-04
   8  Prefactor     16.268        11.800         .0000        .64023E-04
   9  Prefactor     105.63        99.578         .0000        .66524E-05
  10  Prefactor     .10000E-03    2.8491         .0000    ** at limit **
  11  Prefactor     30.247        71.213         .0000        .27164E-05
  12  norm          2.2501        2.8674         .0000        .16517E-03
  13  Prefactor     .10000E-03    47.522         .0000    ** at limit **
  14  norm          1.2003        .93374         .0000        .34350E-04
  15  Prefactor     .10000E-03    21.382         .0000    ** at limit **
  16  norm          3.6456        1.5817         .0000       -.99116E-04
  17  Prefactor     12.229        34.998         .0000        .16208E-04
  18  Prefactor     .10000E-03    3.7916         .0000    ** at limit **
  19  Prefactor     2.5405        6.7916         .0000        .83375E-02
  20  norm          43.577        17.530         .0000        .66717E-04
  21  Normalizat    1.1502        .23063         .0000       -.57974E-04
  22  Prefactor     .82683        .14632         .0000       -.87601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.8192
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 9.70146
  Prefactor  = 49.5156
  Prefactor  = 11.2391
  Prefactor  = 16.2679
  Prefactor  = 105.626
  Prefactor  = 0.0001
  Prefactor  = 30.2467
  norm       = 2.25013
  Prefactor  = 0.0001
  norm       = 1.20028
  Prefactor  = 0.0001
  norm       = 3.64556
  Prefactor  = 12.2293
  Prefactor  = 0.0001
  Prefactor  = 2.5405
  norm       = 43.5766
  Normalizat = 1.15017
  Prefactor  = 0.826833
 **********
 **   18 **HESSE 
 **********

 FCN=   5587.317     FROM HESSE     STATUS=OK           360 CALLS     2595 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5458        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.819        9.0326        .50342E-03   -1.4912    
   3  Prefactor     .10001E-03    9.8951        .75732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.8762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7015        28.366        .62592E-03   -1.5085    
   6  Prefactor     49.516        37.483        .28578E-03   -1.4299    
   7  Prefactor     11.239        13.373        .11878E-03   -1.5037    
   8  Prefactor     16.268        11.671        .10038E-03   -1.4901    
   9  Prefactor     105.63        99.507        .41972E-04   -1.3649    
  10  Prefactor     .10000E-03    5.5869        .24036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.247        71.095        .69308E-04   -1.4607    
  12  norm          2.2501        2.8452        .13610E-03   -1.5408    
  13  Prefactor     .10000E-03    47.549        .18244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2003        .92439        .60051E-04   -1.5489    
  15  Prefactor     .10000E-03    21.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6456        1.5941        .50592E-04   -1.5326    
  17  Prefactor     12.229        35.573        .11225E-03   -1.5008    
  18  Prefactor     .10000E-03    3.7958        .14214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5405        6.7653        .12852E-02   -1.5389    
  20  norm          43.577        17.565        .60486E-04   -1.4387    
  21  Normalizat    1.1502        .27183        .28837E-03   -.88157    
  22  Prefactor     .82683        .17144        .22261E-03   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38033e-10
Minuit parameter uncertainties:
  1  2.97115e-06
  2  9.03339
  3  0.000594371
  4  4.1532e-05
  5  28.4059
  6  37.5006
  7  13.3761
  8  11.6722
  9  99.6649
  10  2.39291e-05
  11  71.2949
  12  2.84539
  13  0.000117354
  14  0.924404
  15  2.82984e-05
  16  1.5941
  17  35.6352
  18  1.29168e-05
  19  6.76737
  20  17.5673
  21  0.272162
  22  0.171551
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.150e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 7.29e-06 +/- 9.22e-06

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

Saving results to:
/scratch/kocevski/314579/likelihoodResults_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.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) = 5587.00656226
delta logL = 0.310281636857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5586.94539005
delta logL = 0.371453847118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3487       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5443       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81866       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=   5586.945     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3490        1.5970        .94215E-02    .39218E-04
   2  alpha         1.5443        .52665        .45802       -.34247E-04
   3  Normalizat    1.1692        .21592        .64722E-01    .10114E-04
   4  Prefactor     .81865        .14454        .43960E-01    .10363E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34897
  alpha      = 1.54425
  Normalizat = 1.16923
  Prefactor  = 0.818648
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.945     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3490        2.1392        .98259E-04   -1.5476    
   2  alpha         1.5443        .87820        .16475E-01   -.39228    
   3  Normalizat    1.1692        .25197        .28630E-03   -.87559    
   4  Prefactor     .81865        .16873        .22352E-03   -.99045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98959e-12
Minuit parameter uncertainties:
  1  2.13927
  2  0.900862
  3  0.252227
  4  0.168835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314579': 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) = 5586.94539002
delta logL = 0.371453881998

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.349e+00  2.139e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.544e+00  9.009e-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.186e-01  1.688e-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.169e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 1.54 +/- 0.90
Photon Flux (Free Index): 1.30e-08 +/- 1.96e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.86e-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/314579/cmap_HighResolution_616204801_616464001_4FGL_J2229.7-0832_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.23e-05', photon_flux_error='3.49e-08', dlogl='3.71e-01', energy_flux='7.29e-06', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-28 12:18:32.349638', photon_index_error2='0.90', photon_index2='1.54', ts='1.06', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.86e-05', EG='1.15', time_epoch_completed='1632856712.35', return_code='0', job_id='314579', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='9.22e-06', photon_flux_error2='1.96e-08', ts2='1.81', photon_index='2.47' WHERE bin_id='1454' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:18:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 314579: <4FGL_J2229.7-0832_daily_bin1454> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1454> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:05:59 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:06: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:06:01 2021
Terminated at Tue Sep 28 12:18:33 2021
Results reported at Tue Sep 28 12:18:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1454 337.426 -8.5447 616204801 616464001 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 :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

