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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin942
RA = 332.474, Dec = -50.4702
tmin = 483494401, tmax = 483753601
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='210488', job_status='RUN', time_executed='2021-09-28 06:25:35.600133', time_epoch_executed='1632835535.6' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='942'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210488/ft1_4FGL_J2209.8-5028_daily_bin942.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210488/ft1_4FGL_J2209.8-5028_daily_bin942.fits outfile=/scratch/kocevski/210488/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin942.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=483494401.0 tmax=483753601.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 6.52
user 6.25
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.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/210488/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin942.fits evtable="EVENTS" outfile="/scratch/kocevski/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits" evtable="EVENTS" scfile=/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits sctable="SC_DATA" outfile=/scratch/kocevski/210488/ltcube_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.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/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits
.....................!
real 11.76
user 11.34
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits sctable="SC_DATA" expcube=/scratch/kocevski/210488/ltcube_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.fits outfile=/scratch/kocevski/210488/expmap_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.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/210488/ltcube_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.fits
.....................!
real 192.09
user 185.83
sys 5.84

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/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits scfile=/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits outfile=/scratch/kocevski/210488/cmap_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits scfile=/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits outfile=/scratch/kocevski/210488/cmap_HighResolution_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits evtable="EVENTS" scfile=/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210488/Model_4FGL_J2209.8-5028_daily_bin942.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/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits.....................!
real 38.23
user 36.78
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits', '/scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits', expMap='/scratch/kocevski/210488/expmap_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.fits', expCube='/scratch/kocevski/210488/ltcube_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210488/Model_4FGL_J2209.8-5028_daily_bin942.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/210488/ft1_filtered_4FGL_J2209.8-5028_daily_bin942.fits
Spacecraft file(s): /scratch/kocevski/210488/ft2_4FGL_J2209.8-5028_daily_bin942.fits
Exposure map: /scratch/kocevski/210488/expmap_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.fits
Exposure cube: /scratch/kocevski/210488/ltcube_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210488/Model_4FGL_J2209.8-5028_daily_bin942.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) = 4205.32735173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61928E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    14.308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8955       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53101E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12745E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2377       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.674       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7813       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.22       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.010       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92362       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93138       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=   4205.315     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2927 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.916        .35104E-05** at limit **
   2  Prefactor     .10000E-03    20.723        .22548E-05** at limit **
   3  Prefactor     3.8015        7.1827       -.16953E-05   -.32673E-03
   4  Prefactor     21.454        27.726       -.14583E-05   -.74247E-05
   5  Prefactor     .10000E-03    23.455       -.27357E-05** at limit **
   6  Prefactor     .10968E-03    2.8352        .12322E-05** at limit **
   7  norm          14.309        6.1195        .42627E-06    .15998E-05
   8  Prefactor     .10000E-03    4.4104        .70399E-08** at limit **
   9  Prefactor     .10000E-03    83.491       -.20649E-04** at limit **
  10  Prefactor     9.8868        9.7115       -.60077E-07    .17978E-04
  11  Prefactor     .10000E-03    3.0336       -.23954E-06** at limit **
  12  Prefactor     .10000E-03    85.237       -.14394E-04** at limit **
  13  norm          .10000E-03    2.6110        .45106E-07** at limit **
  14  Prefactor     .10000E-03    2.0508        .41716E-06** at limit **
  15  Prefactor     2.1294        168.74       -.50100E-04   -.14023E-04
  16  Prefactor     12.675        7.5333       -.21897E-06   -.29452E-04
  17  Prefactor     9.7750        24.171        .51508E-05    .17333E-05
  18  Prefactor     .10000E-03    6.7571        .30109E-06** at limit **
  19  Prefactor     101.18        111.88       -.38704E-04   -.28571E-05
  20  Prefactor     .19101        5.7267       -.64468E-06   -.82796E-04
  21  Prefactor     35.998        43.755       -.34886E-05    .23646E-05
  22  Prefactor     .10000E-03    17.231       -.65367E-06** at limit **
  23  norm          .10000E-03    3.0920       -.30756E-09** at limit **
  24  Normalizat    .92332        .21377        .13214E-05   -.30591E-04
  25  Prefactor     .93157        .16753        .11162E-05   -.62279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80154
  Prefactor  = 21.4535
  Prefactor  = 0.0001
  Prefactor  = 0.000109677
  norm       = 14.3088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.88684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12935
  Prefactor  = 12.675
  Prefactor  = 9.77498
  Prefactor  = 0.0001
  Prefactor  = 101.175
  Prefactor  = 0.191011
  Prefactor  = 35.9982
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.923315
  Prefactor  = 0.931567
 **********
 **   18 **HESSE 
 **********

 FCN=   4205.315     FROM HESSE     STATUS=OK           441 CALLS     3368 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8015        7.1779        .20707E-03   -1.5318    
   4  Prefactor     21.454        27.713        .86482E-04   -1.4781    
   5  Prefactor     .10000E-03    23.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10968E-03    7.3262        .35555E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.309        6.1187        .10014E-03   -1.4951    
   8  Prefactor     .10000E-03    4.4135        .13301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8868        9.7056        .12738E-03   -1.5079    
  11  Prefactor     .10000E-03    7.6444        .21810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6112        .10234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2893        .17968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1294        170.70        .27477E-03   -1.5416    
  16  Prefactor     12.675        7.5470        .11252E-03   -1.4996    
  17  Prefactor     9.7750        24.147        .12813E-03   -1.5083    
  18  Prefactor     .10000E-03    6.7837        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     101.18        111.62        .19980E-03   -1.3693    
  20  Prefactor     .19101        27.889        .30104E-02   -1.5621    
  21  Prefactor     35.998        43.755        .66785E-04   -1.4507    
  22  Prefactor     .10000E-03    17.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.0920        .11137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92332        .24917        .25704E-03   -.95646    
  25  Prefactor     .93157        .19627        .20685E-03   -.95047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59394e-08
Minuit parameter uncertainties:
  1  0.000128868
  2  1.77237e-05
  3  7.17954
  4  27.7292
  5  5.78718e-05
  6  0.0168416
  7  6.11896
  8  2.32321e-06
  9  7.18016e-05
  10  9.7071
  11  7.21778e-05
  12  3.47126e-05
  13  2.23638e-07
  14  8.01362e-05
  15  38.2433
  16  7.54754
  17  24.1714
  18  7.16073e-05
  19  111.856
  20  4.61706
  21  43.7938
  22  8.39239e-06
  23  1.51803e-07
  24  0.249479
  25  0.196419
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.471e-05  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:  9.316e-01  1.964e-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:  9.233e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210488/likelihoodResults_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.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) = 4205.31483681
delta logL = -5.57577150175e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4205.31478123
delta logL = -1.72321961145e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5913       1.0000          .0000       10.000    
     3 'Normalizat'    .92332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93157       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=   4205.315     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      295 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12059E-03    66.796        .18142E-01** at limit **
   2  Index         2.2583        8.8482        .50000        .29935E-05
   3  Normalizat    .92332        .43316E-02    .12852E-02   -.12101E-04
   4  Prefactor     .93157        .35193E-02    .20685E-03   -.18028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000120592
  Index      = 2.25831
  Normalizat = 0.923315
  Prefactor  = 0.931568
 **********
 **   18 **HESSE 
 **********

 FCN=   4205.315     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12059E-03    888.36        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2583        6.0838        .50000       -.58038    
   3  Normalizat    .92332        .16139E-01    .51408E-04   -.95646    
   4  Prefactor     .93157        .13113E-01    .82738E-05   -.95047    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66506e-08
Minuit parameter uncertainties:
  1  0.27468
  2  1711.01
  3  0.0161388
  4  0.0131126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210488': 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): 102
logL (Free Index) = 4205.31478109
delta logL = -3.3040123526e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.206e-04  2.747e-01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.258e+00  1.711e+03  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:  9.316e-01  1.311e-02  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:  9.233e-01  1.614e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

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/210488/cmap_HighResolution_483494401_483753601_4FGL_J2209.8-5028_daily_bin942.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-09-28 06:35:53.919385', job_id='210488', GAL2='0.93', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632836153.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-3.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='942' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:35:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 210488: <4FGL_J2209.8-5028_daily_bin942> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin942> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:17 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:19 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:25:19 2021
Terminated at Tue Sep 28 06:35:54 2021
Results reported at Tue Sep 28 06:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin942 332.474 -50.4702 483494401 483753601 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 :                                   614.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

