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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1549
RA = 332.474, Dec = -50.4702
tmin = 640828801, tmax = 641088001
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='211962', job_status='RUN', time_executed='2021-09-28 06:30:54.739756', time_epoch_executed='1632835854.74' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211962/ft1_4FGL_J2209.8-5028_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211962/ft1_4FGL_J2209.8-5028_daily_bin1549.fits outfile=/scratch/kocevski/211962/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1549.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=640828801.0 tmax=641088001.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.15
user 2.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.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/211962/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1549.fits evtable="EVENTS" outfile="/scratch/kocevski/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.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.59
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/211962/ltcube_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.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/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits
.....................!
real 12.38
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/211962/ltcube_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.fits outfile=/scratch/kocevski/211962/expmap_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.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/211962/ltcube_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.fits
.....................!
real 191.28
user 185.86
sys 5.03

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/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.fits scfile=/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits outfile=/scratch/kocevski/211962/cmap_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.fits scfile=/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits outfile=/scratch/kocevski/211962/cmap_HighResolution_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/211962/ft2_4FGL_J2209.8-5028_daily_bin1549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211962/Model_4FGL_J2209.8-5028_daily_bin1549.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/211962/ft1_filtered_4FGL_J2209.8-5028_daily_bin1549.fits.....................!
real 68.74
user 67.40
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14950E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12155E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.031       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8314       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    113.62       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .93042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13905E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14244E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.4487       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0067       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88137       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=   9796.624     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2979 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0413        12.928       -.10616E-06    .57060E-04
   2  Prefactor     .10002E-03    27.914       -.34245E-07** at limit **
   3  Prefactor     17.371        6.6575        .19779E-06   -.23008E-03
   4  Prefactor     .10000E-03    9.1904        .25220E-06** at limit **
   5  Prefactor     43.082        25.102       -.10916E-06    .11016E-03
   6  Prefactor     10.030        4.5056        .82014E-07   -.92472E-04
   7  norm          4.8306        3.1827       -.39507E-06    .16385E-02
   8  Prefactor     8.0958        7.3107       -.54063E-08    .42486E-04
   9  Prefactor     7.0420        25.469        .33520E-05   -.10907E-03
  10  Prefactor     .26113        53.936       -.98650E-05   -.94735E-05
  11  Prefactor     13.016        4.3452        .16964E-06   -.40723E-03
  12  Prefactor     113.76        99.361        .29499E-05   -.10469E-03
  13  norm          .10000E-03    1.3113       -.17041E-08** at limit **
  14  Prefactor     .92956        1.2913        .13320E-05    .14072E-02
  15  Prefactor     15.008        17.254        .43226E-06   -.94276E-04
  16  Prefactor     2.1062        4.2255       -.70160E-06    .48681E-03
  17  Prefactor     .10000E-03    32.241        .11931E-05** at limit **
  18  Prefactor     9.9224        8.4818        .89123E-07   -.70926E-05
  19  Prefactor     .10000E-03    23.126        .16158E-06** at limit **
  20  Prefactor     .10000E-03    3.0544       -.15499E-06** at limit **
  21  Prefactor     .10000E-03    6.4676        .41135E-07** at limit **
  22  Prefactor     .10000E-03    3.9330        .64932E-07** at limit **
  23  norm          2.4485        2.8388        .45468E-07   -.11502E-03
  24  Normalizat    1.0068        .15455       -.15821E-06    .45953E-04
  25  Prefactor     .88130        .11820       -.17057E-06    .14964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04133
  Prefactor  = 0.000100024
  Prefactor  = 17.3711
  Prefactor  = 0.0001
  Prefactor  = 43.0819
  Prefactor  = 10.0295
  norm       = 4.83062
  Prefactor  = 8.09581
  Prefactor  = 7.04196
  Prefactor  = 0.261127
  Prefactor  = 13.016
  Prefactor  = 113.765
  norm       = 0.0001
  Prefactor  = 0.929557
  Prefactor  = 15.008
  Prefactor  = 2.10617
  Prefactor  = 0.000100002
  Prefactor  = 9.9224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.44853
  Normalizat = 1.00684
  Prefactor  = 0.881302
 **********
 **   18 **HESSE 
 **********

 FCN=   9796.624     FROM HESSE     STATUS=OK           447 CALLS     3426 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0413        12.926        .17879E-03   -1.5259    
   2  Prefactor     .10002E-03    26.866        .14809       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.371        6.6524        .96113E-04   -1.4874    
   4  Prefactor     .10000E-03    9.2129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.082        25.093        .61049E-04   -1.4394    
   6  Prefactor     10.030        4.5014        .12652E-03   -1.5074    
   7  norm          4.8306        3.1676        .68758E-03   -1.5268    
   8  Prefactor     8.0958        7.3095        .14092E-03   -1.5139    
   9  Prefactor     7.0420        25.794        .15190E-03   -1.5177    
  10  Prefactor     .26113        65.193        .39629E-02   -1.5606    
  11  Prefactor     13.016        4.3508        .11103E-03   -1.4986    
  12  Prefactor     113.76        107.84        .18871E-03   -1.3571    
  13  norm          .10000E-03    1.3117        .11069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .92956        1.2866        .16758E-02   -1.5515    
  15  Prefactor     15.008        17.265        .10334E-03   -1.4933    
  16  Prefactor     2.1062        4.2238        .26996E-03   -1.5418    
  17  Prefactor     .10000E-03    32.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9224        8.4811        .12722E-03   -1.5078    
  19  Prefactor     .10000E-03    23.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.108        .33417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.4682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.4485        2.8392        .17538E-03   -1.5395    
  24  Normalizat    1.0068        .17860        .26453E-03   -.92802    
  25  Prefactor     .88130        .13700        .22524E-03   -.96798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25488e-07
Minuit parameter uncertainties:
  1  12.9327
  2  0.00160849
  3  6.65271
  4  3.63291e-05
  5  25.0994
  6  4.50156
  7  3.16773
  8  7.31028
  9  25.8344
  10  8.25947
  11  4.35094
  12  108.031
  13  2.10108e-07
  14  1.2866
  15  17.2703
  16  4.22435
  17  0.00050989
  18  8.48217
  19  5.59786e-05
  20  9.92567e-05
  21  4.75837e-06
  22  8.62043e-06
  23  2.83935
  24  0.178705
  25  0.137049
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.138e+02  1.080e+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:  8.813e-01  1.370e-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:  1.007e+00  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/211962/likelihoodResults_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.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) = 9796.61433258
delta logL = 0.00926254214028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9796.60326121
delta logL = 0.0203339187901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    132.53       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2366       1.0000          .0000       10.000    
     3 'Normalizat'    1.0115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87881       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=   9796.603     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      273 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     132.51        138.23        .34979E-04   -.49013E-04
   2  Index         2.2362        .69678        .69718E-02   -.84309E-04
   3  Normalizat    1.0119        .16882        .26396E-03   -.71581E-03
   4  Prefactor     .87847        .13454        .22556E-03   -.95295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 132.51
  Index      = 2.23619
  Normalizat = 1.0119
  Prefactor  = 0.878466
 **********
 **   18 **HESSE 
 **********

 FCN=   9796.603     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     132.51        129.88        .69957E-05   -1.3401    
   2  Index         2.2362        .65427        .27887E-03   -.58568    
   3  Normalizat    1.0119        .16867        .52791E-04   -.92633    
   4  Prefactor     .87847        .13451        .45112E-04   -.96898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0869e-10
Minuit parameter uncertainties:
  1  130.163
  2  0.656989
  3  0.168757
  4  0.134557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211962': 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) = 9796.60325735
delta logL = 0.0203377790076

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.325e+02  1.302e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.236e+00  6.570e-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:  8.785e-01  1.346e-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:  1.012e+00  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.24 +/- 0.66
Photon Flux (Free Index): 3.63e-08 +/- 3.34e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.47e-05

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/211962/cmap_HighResolution_640828801_641088001_4FGL_J2209.8-5028_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='1.53e-05', photon_flux_error='3.80e-08', dlogl='2.03e-02', energy_flux='1.36e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-28 06:47:16.991134', photon_index_error2='0.66', photon_index2='2.24', ts='2.57', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.47e-05', EG='1.01', time_epoch_completed='1632836836.99', return_code='0', job_id='211962', GAL2='0.88', EG2='1.01', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.34e-08', ts2='2.61', photon_index='2.37' WHERE bin_id='1549' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:47:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 211962: <4FGL_J2209.8-5028_daily_bin1549> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1549> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:40 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:43 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:30:43 2021
Terminated at Tue Sep 28 06:47:17 2021
Results reported at Tue Sep 28 06:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1549 332.474 -50.4702 640828801 641088001 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 :                                   976.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            997 sec.

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

