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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1539
RA = 332.474, Dec = -50.4702
tmin = 638236801, tmax = 638496001
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='211948', job_status='RUN', time_executed='2021-09-28 06:31:42.059120', time_epoch_executed='1632835902.06' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211948

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211948/ft1_4FGL_J2209.8-5028_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211948/ft1_4FGL_J2209.8-5028_daily_bin1539.fits outfile=/scratch/kocevski/211948/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1539.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=638236801.0 tmax=638496001.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.60
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.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/211948/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1539.fits evtable="EVENTS" outfile="/scratch/kocevski/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/211948/ltcube_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.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/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits
.....................!
real 12.39
user 12.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/211948/ltcube_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.fits outfile=/scratch/kocevski/211948/expmap_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.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/211948/ltcube_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.fits
.....................!
real 191.64
user 185.85
sys 5.42

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/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits scfile=/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits outfile=/scratch/kocevski/211948/cmap_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits scfile=/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits outfile=/scratch/kocevski/211948/cmap_HighResolution_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.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/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/211948/ft2_4FGL_J2209.8-5028_daily_bin1539.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211948/Model_4FGL_J2209.8-5028_daily_bin1539.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/211948/ft1_filtered_4FGL_J2209.8-5028_daily_bin1539.fits.....................!
real 49.88
user 48.52
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1579       1.0000         .10000E-03   10000.    
     7 'norm      '    6.9065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12956E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.59       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8034       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.260       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96426       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95158       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=   6544.564     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2915 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25107        14.697        .48163E-06   -.55166E-04
   2  Prefactor     .10000E-03    18.471       -.61585E-06** at limit **
   3  Prefactor     10.891        7.7188        .22969E-06   -.20813E-04
   4  Prefactor     .10000E-03    41.955        .40038E-05** at limit **
   5  Prefactor     7.8488        22.550        .13007E-05    .23145E-04
   6  Prefactor     6.1585        4.7823        .28805E-07   -.13496E-03
   7  norm          6.9050        4.6781        .21315E-06   -.73824E-04
   8  Prefactor     20.112        15.197        .23022E-06   -.52142E-05
   9  Prefactor     73.833        51.237       -.39516E-06    .13200E-04
  10  Prefactor     .10000E-03    13.136        .15139E-05** at limit **
  11  Prefactor     3.2096        3.5265        .35595E-07   -.15502E-03
  12  Prefactor     153.65        122.59        .82421E-05    .19212E-03
  13  norm          4.1419        4.8359       -.26788E-06   -.11200E-03
  14  Prefactor     4.3883        3.7378        .21561E-05   -.11532E-02
  15  Prefactor     .10000E-03    35.944       -.34716E-05** at limit **
  16  Prefactor     2.7983        7.2131       -.48054E-06   -.35593E-03
  17  Prefactor     1.7711        157.66        .21394E-05    .26102E-04
  18  Prefactor     14.022        14.156        .14174E-06   -.14617E-03
  19  Prefactor     .10000E-03    29.640       -.25156E-05** at limit **
  20  Prefactor     .10000E-03    4.2742       -.71197E-07** at limit **
  21  Prefactor     .10000E-03    24.493        .27576E-05** at limit **
  22  Prefactor     11.262        13.263        .34800E-06   -.34455E-05
  23  norm          .10000E-03    4.0149       -.19430E-07** at limit **
  24  Normalizat    .96365        .19844       -.18920E-05   -.50763E-04
  25  Prefactor     .95218        .14725        .83529E-07   -.14730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.251067
  Prefactor  = 0.0001
  Prefactor  = 10.8915
  Prefactor  = 0.000100002
  Prefactor  = 7.84881
  Prefactor  = 6.15854
  norm       = 6.90504
  Prefactor  = 20.1122
  Prefactor  = 73.833
  Prefactor  = 0.000100001
  Prefactor  = 3.2096
  Prefactor  = 153.655
  norm       = 4.14186
  Prefactor  = 4.38835
  Prefactor  = 0.000100002
  Prefactor  = 2.79826
  Prefactor  = 1.7711
  Prefactor  = 14.0219
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.262
  norm       = 0.0001
  Normalizat = 0.963652
  Prefactor  = 0.952179
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.564     FROM HESSE     STATUS=OK           439 CALLS     3354 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25107        17.056        .98752E-01   -1.5608    
   2  Prefactor     .10000E-03    18.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.891        7.7137        .12139E-03   -1.5048    
   4  Prefactor     .10000E-03    42.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8488        22.548        .14302E-03   -1.5148    
   6  Prefactor     6.1585        4.7789        .14738E-03   -1.5212    
   7  norm          6.9050        4.6697        .13818E-03   -1.5182    
   8  Prefactor     20.112        15.193        .89302E-04   -1.4811    
   9  Prefactor     73.833        51.330        .46727E-04   -1.3987    
  10  Prefactor     .10000E-03    13.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2096        3.5224        .15097E-03   -1.5350    
  12  Prefactor     153.65        126.45        .16263E-03   -1.3222    
  13  norm          4.1419        4.8383        .18730E-03   -1.5301    
  14  Prefactor     4.3883        3.9155        .71447E-03   -1.5289    
  15  Prefactor     .10000E-03    36.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7983        7.1239        .24297E-03   -1.5373    
  17  Prefactor     1.7711        136.01        .32066E-03   -1.5442    
  18  Prefactor     14.022        13.426        .10691E-03   -1.4959    
  19  Prefactor     .10000E-03    29.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3434        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.262        13.285        .11939E-03   -1.5037    
  23  norm          .10000E-03    4.0722        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96365        .22954        .27253E-03   -.94258    
  25  Prefactor     .95218        .17155        .22087E-03   -.94341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67434e-09
Minuit parameter uncertainties:
  1  4.13912
  2  7.15647e-05
  3  7.71437
  4  0.000637514
  5  22.5727
  6  4.77924
  7  4.66999
  8  15.1955
  9  51.3608
  10  0.000238703
  11  3.5226
  12  126.676
  13  4.83878
  14  3.91573
  15  0.000541033
  16  7.12609
  17  31.1138
  18  13.4291
  19  0.000374297
  20  1.37435e-06
  21  0.000374048
  22  13.2883
  23  4.33978e-07
  24  0.229779
  25  0.171645
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.537e+02  1.267e+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:  9.522e-01  1.716e-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.637e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.52e-05

TS (Fixed Index): 2.56
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211948/likelihoodResults_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.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) = 6544.05089512
delta logL = 0.513209994786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6544.02826269
delta logL = 0.535842428584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.177       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2014       1.0000          .0000       10.000    
     3 'Normalizat'    .91419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97868       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.

 FCN=   6544.028     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      286 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.866        530.45        .14443E-02    .13382E-04
   2  Index         3.2042        2.5335        .11144        .18130E-03
   3  Normalizat    .91388        .68867E-01    .45083E-01    .27717E-04
   4  Prefactor     .97905        .50867E-01    .46000E-01    .18173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.8661
  Index      = 3.20422
  Normalizat = 0.913879
  Prefactor  = 0.979051
 **********
 **   18 **HESSE 
 **********

 FCN=   6544.028     FROM HESSE     STATUS=OK            33 CALLS      319 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.866        9921.8        .57771E-04   -1.4323    
   2  Index         3.2042        8.2646        .40370E-02   -.36736    
   3  Normalizat    .91388        .70262        .27870E-03   -.95974    
   4  Prefactor     .97905        .55753        .21813E-03   -.93431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23932e-08
Minuit parameter uncertainties:
  1  2119.83
  2  21.8064
  3  0.709852
  4  0.560854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211948': 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) = 6544.02825515
delta logL = 0.535849965564

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.787e+01  2.120e+03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.204e+00  2.181e+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:  9.791e-01  5.609e-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.139e-01  7.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.20 +/- 21.81
Photon Flux (Free Index): 9.17e-08 +/- 2.47e-07
Energy Flux (Free Index): 1.68e-05 +/- 9.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/211948/cmap_HighResolution_638236801_638496001_4FGL_J2209.8-5028_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='1.68e-05', photon_flux_error='4.45e-08', dlogl='5.36e-01', energy_flux='1.84e-05', photon_flux2='9.17e-08', job_status='DONE', time_completed='2021-09-28 06:44:34.243119', photon_index_error2='21.81', photon_index2='3.20', ts='2.56', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='9.36e-05', EG='0.96', time_epoch_completed='1632836674.24', return_code='0', job_id='211948', GAL2='0.98', EG2='0.91', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.47e-07', ts2='3.75', photon_index='2.37' WHERE bin_id='1539' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:44:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 211948: <4FGL_J2209.8-5028_daily_bin1539> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1539> 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) <bullet0219>, 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:44:35 2021
Results reported at Tue Sep 28 06:44:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1539 332.474 -50.4702 638236801 638496001 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

