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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin594
RA = 332.474, Dec = -50.4702
tmin = 393292801, tmax = 393552001
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='207638', job_status='RUN', time_executed='2021-09-28 06:16:01.164476', time_epoch_executed='1632834961.16' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207638/ft1_4FGL_J2209.8-5028_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207638/ft1_4FGL_J2209.8-5028_daily_bin594.fits outfile=/scratch/kocevski/207638/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin594.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=393292801.0 tmax=393552001.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.68
user 4.41
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.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/207638/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.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.57
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/207638/ltcube_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.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/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits
.....................!
real 12.14
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/207638/ltcube_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.fits outfile=/scratch/kocevski/207638/expmap_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.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/207638/ltcube_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.fits
.....................!
real 191.38
user 185.75
sys 5.15

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits scfile=/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits outfile=/scratch/kocevski/207638/cmap_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.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=332.474 yref=-50.4702 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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits scfile=/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits outfile=/scratch/kocevski/207638/cmap_HighResolution_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.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=332.474 yref=-50.4702 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207638/Model_4FGL_J2209.8-5028_daily_bin594.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/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits.....................!
real 52.93
user 51.51
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits', '/scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits', expMap='/scratch/kocevski/207638/expmap_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.fits', expCube='/scratch/kocevski/207638/ltcube_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207638/Model_4FGL_J2209.8-5028_daily_bin594.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/207638/ft1_filtered_4FGL_J2209.8-5028_daily_bin594.fits
Spacecraft file(s): /scratch/kocevski/207638/ft2_4FGL_J2209.8-5028_daily_bin594.fits
Exposure map: /scratch/kocevski/207638/expmap_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.fits
Exposure cube: /scratch/kocevski/207638/ltcube_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207638/Model_4FGL_J2209.8-5028_daily_bin594.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) = 7071.92574838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.911       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10616E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.106       1.0000         .10000E-03   10000.    
     7 'norm      '    .48555E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6217       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    112.42       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.820       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3911       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.346       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.313       1.0000         .10000E-03   10000.    
    23 'norm      '    3.7873       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80690       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7071.911     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3006 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7248        12.952       -.48927E-06   -.73492E-04
   2  Prefactor     38.914        39.142        .10575E-05    .81427E-04
   3  Prefactor     3.0369        5.8526       -.15762E-06   -.25988E-03
   4  Prefactor     .10000E-03    14.508        .54999E-06** at limit **
   5  Prefactor     4.2301        26.450        .10482E-06   -.98552E-05
   6  Prefactor     14.106        4.9560        .10060E-06    .72575E-04
   7  norm          .68366E-01    1.8508       -.16364E-06    .16150E-03
   8  Prefactor     .10000E-03    7.3822        .92118E-07** at limit **
   9  Prefactor     17.715        26.443       -.23814E-05   -.20369E-03
  10  Prefactor     2.6264        7.2700        .13685E-06   -.29175E-03
  11  Prefactor     .10000E-03    1.6180       -.14039E-06** at limit **
  12  Prefactor     112.41        105.48       -.37474E-05   -.10854E-03
  13  norm          3.7136        5.3239        .34470E-05   -.13486E-02
  14  Prefactor     .99110        2.3049        .43822E-06   -.15209E-03
  15  Prefactor     .10000E-03    23.203        .21235E-06** at limit **
  16  Prefactor     4.6560        4.0407       -.19959E-06   -.96070E-04
  17  Prefactor     26.847        27.808        .53080E-05    .54560E-03
  18  Prefactor     3.3487        12.365       -.38772E-05   -.19428E-03
  19  Prefactor     .10000E-03    22.780       -.46817E-06** at limit **
  20  Prefactor     5.3915        5.0577       -.36514E-06   -.26742E-03
  21  Prefactor     47.347        33.134        .19246E-07    .34930E-04
  22  Prefactor     23.314        14.954       -.31192E-06   -.77855E-04
  23  norm          3.7874        4.3743        .93338E-06    .57568E-03
  24  Normalizat    .80690        .17868       -.99928E-06    .55221E-04
  25  Prefactor     1.0534        .13997        .39927E-06   -.31232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.72483
  Prefactor  = 38.9144
  Prefactor  = 3.03694
  Prefactor  = 0.000100002
  Prefactor  = 4.23005
  Prefactor  = 14.1064
  norm       = 0.0683655
  Prefactor  = 0.0001
  Prefactor  = 17.7155
  Prefactor  = 2.62637
  Prefactor  = 0.0001
  Prefactor  = 112.413
  norm       = 3.71363
  Prefactor  = 0.991098
  Prefactor  = 0.0001
  Prefactor  = 4.65599
  Prefactor  = 26.8473
  Prefactor  = 3.34866
  Prefactor  = 0.0001
  Prefactor  = 5.39146
  Prefactor  = 47.3474
  Prefactor  = 23.3145
  norm       = 3.78743
  Normalizat = 0.806899
  Prefactor  = 1.05337
 **********
 **   18 **HESSE 
 **********

 FCN=   7071.911     FROM HESSE     STATUS=OK           439 CALLS     3445 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7248        12.965        .14428E-03   -1.5152    
   2  Prefactor     38.914        39.175        .64255E-04   -1.4460    
   3  Prefactor     3.0369        5.8366        .23275E-03   -1.5359    
   4  Prefactor     .10000E-03    89.101        .59496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2301        26.321        .19603E-03   -1.5297    
   6  Prefactor     14.106        4.9527        .10516E-03   -1.4957    
   7  norm          .68366E-01    22.892        .21353E-02   -1.5656    
   8  Prefactor     .10000E-03    7.4330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.715        26.541        .95117E-04   -1.4866    
  10  Prefactor     2.6264        7.1475        .25189E-03   -1.5384    
  11  Prefactor     .10000E-03    5.7205        .20388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     112.41        104.07        .37939E-04   -1.3583    
  13  norm          3.7136        5.8885        .10479E-02   -1.5323    
  14  Prefactor     .99110        2.1953        .18594E-02   -1.5509    
  15  Prefactor     .10000E-03    23.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6560        4.0388        .15082E-03   -1.5276    
  17  Prefactor     26.847        29.616        .77355E-04   -1.4671    
  18  Prefactor     3.3487        12.603        .22072E-03   -1.5342    
  19  Prefactor     .10000E-03    22.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3915        5.0622        .17308E-03   -1.5244    
  21  Prefactor     47.347        33.134        .58274E-04   -1.4331    
  22  Prefactor     23.314        14.974        .82960E-04   -1.4742    
  23  norm          3.7874        4.4071        .18592E-03   -1.5319    
  24  Normalizat    .80690        .20616        .28441E-03   -.99813    
  25  Prefactor     1.0534        .16492        .20668E-03   -.90971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40575e-08
Minuit parameter uncertainties:
  1  12.9701
  2  39.2007
  3  5.83771
  4  0.000787779
  5  21.117
  6  4.95286
  7  2.50113
  8  9.13272e-06
  9  26.5586
  10  7.14978
  11  2.10471e-05
  12  104.239
  13  5.88937
  14  2.19548
  15  3.14491e-05
  16  4.03905
  17  29.6318
  18  12.6128
  19  7.27883e-05
  20  5.06256
  21  33.1467
  22  14.9766
  23  4.40749
  24  0.206363
  25  0.164995
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.124e+02  1.042e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.053e+00  1.650e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.069e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.25e-05

TS (Fixed Index): 2.20
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207638/likelihoodResults_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.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) = 7071.77564102
delta logL = 0.135310905705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7071.75906225
delta logL = 0.151889683242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.865       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8087       1.0000          .0000       10.000    
     3 'Normalizat'    .78872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0635       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   7071.759     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      314 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.734        143.86        .50610E-04    .19184E-03
   2  Index         2.8102        1.2158        .57988E-02    .15953E-03
   3  Normalizat    .78780        .20054        .28745E-03    .15749E-03
   4  Prefactor     1.0641        .16259        .20576E-03   -.59990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.7337
  Index      = 2.81018
  Normalizat = 0.787801
  Prefactor  = 1.06406
 **********
 **   18 **HESSE 
 **********

 FCN=   7071.759     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.734        101.24        .10122E-04   -1.4122    
   2  Index         2.8102        .85758        .23195E-03   -.45333    
   3  Normalizat    .78780        .19889        .11498E-04   -1.0052    
   4  Prefactor     1.0641        .16158        .41151E-04   -.90624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78542e-09
Minuit parameter uncertainties:
  1  101.515
  2  0.862875
  3  0.199078
  4  0.161652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207638': 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) = 7071.75905009
delta logL = 0.151901834684

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.273e+01  1.015e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.810e+00  8.629e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.064e+00  1.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  7.878e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.81 +/- 0.86
Photon Flux (Free Index): 5.24e-08 +/- 4.30e-08
Energy Flux (Free Index): 1.16e-05 +/- 9.14e-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/207638/cmap_HighResolution_393292801_393552001_4FGL_J2209.8-5028_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.16e-05', photon_flux_error='3.66e-08', dlogl='1.52e-01', energy_flux='1.35e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-28 06:29:45.478201', photon_index_error2='0.86', photon_index2='2.81', ts='2.20', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='9.14e-06', EG='0.81', time_epoch_completed='1632835785.48', return_code='0', job_id='207638', GAL2='1.06', EG2='0.79', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.30e-08', ts2='2.54', photon_index='2.37' WHERE bin_id='594' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:29:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 207638: <4FGL_J2209.8-5028_daily_bin594> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin594> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:49 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:15:51 2021
Terminated at Tue Sep 28 06:29:46 2021
Results reported at Tue Sep 28 06:29:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin594 332.474 -50.4702 393292801 393552001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   805.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

