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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin823
RA = 332.474, Dec = -50.4702
tmin = 452649601, tmax = 452908801
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='209105', job_status='RUN', time_executed='2021-09-28 06:21:19.194348', time_epoch_executed='1632835279.19' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209105/ft1_4FGL_J2209.8-5028_daily_bin823.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209105/ft1_4FGL_J2209.8-5028_daily_bin823.fits outfile=/scratch/kocevski/209105/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin823.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=452649601.0 tmax=452908801.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.43
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.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/209105/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin823.fits evtable="EVENTS" outfile="/scratch/kocevski/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.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/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.fits" evtable="EVENTS" scfile=/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits sctable="SC_DATA" outfile=/scratch/kocevski/209105/ltcube_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.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/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits
.....................!
real 11.98
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits sctable="SC_DATA" expcube=/scratch/kocevski/209105/ltcube_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.fits outfile=/scratch/kocevski/209105/expmap_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.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/209105/ltcube_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.fits
.....................!
real 189.95
user 185.65
sys 3.97

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/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.fits scfile=/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits outfile=/scratch/kocevski/209105/cmap_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.fits scfile=/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits outfile=/scratch/kocevski/209105/cmap_HighResolution_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.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/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/209105/ft2_4FGL_J2209.8-5028_daily_bin823.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209105/Model_4FGL_J2209.8-5028_daily_bin823.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/209105/ft1_filtered_4FGL_J2209.8-5028_daily_bin823.fits.....................!
real 53.42
user 52.15
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7119       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25024E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13802E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.5529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    97.322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.619       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6527       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11464E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.686       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49197       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3083       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=   7309.324     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2971 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.041        .36549E-06** at limit **
   2  Prefactor     8.4640        67.218       -.40060E-05    .44002E-04
   3  Prefactor     4.7136        7.0837        .38536E-06    .70580E-03
   4  Prefactor     .10006E-03    80.851        .26274E-04** at limit **
   5  Prefactor     .10000E-03    10.748        .15176E-06** at limit **
   6  Prefactor     .10001E-03    3.2144        .32810E-05** at limit **
   7  norm          6.5546        4.0330        .58209E-06    .12650E-02
   8  Prefactor     .10000E-03    3.3389       -.22502E-06** at limit **
   9  Prefactor     97.310        42.953        .40235E-06    .43504E-04
  10  Prefactor     .10000E-03    3.5473       -.12729E-07** at limit **
  11  Prefactor     .10000E-03    3.2238       -.28220E-06** at limit **
  12  Prefactor     48.642        66.821       -.20089E-05    .10343E-03
  13  norm          5.4008        5.9328        .10776E-06   -.58799E-04
  14  Prefactor     1.6523        2.7607       -.13595E-06    .52569E-03
  15  Prefactor     .10000E-03    25.930       -.99729E-07** at limit **
  16  Prefactor     4.1710        5.8112        .11041E-06    .42662E-03
  17  Prefactor     45.215        29.669        .13729E-05    .19366E-03
  18  Prefactor     .10001E-03    12.295        .73555E-05** at limit **
  19  Prefactor     .10000E-03    44.769        .23711E-06** at limit **
  20  Prefactor     .10000E-03    9.5429       -.80369E-06** at limit **
  21  Prefactor     34.690        31.027        .31243E-07   -.31339E-04
  22  Prefactor     .10000E-03    8.1333       -.27964E-06** at limit **
  23  norm          .10000E-03    3.1015       -.37261E-07** at limit **
  24  Normalizat    .49203        .18331        .97492E-06    .49556E-03
  25  Prefactor     1.3084        .14555        .83649E-06    .11475E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.46398
  Prefactor  = 4.71357
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 6.55459
  Prefactor  = 0.0001
  Prefactor  = 97.3099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6419
  norm       = 5.40084
  Prefactor  = 1.65228
  Prefactor  = 0.0001
  Prefactor  = 4.17098
  Prefactor  = 45.2152
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.6899
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.492031
  Prefactor  = 1.30837
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.324     FROM HESSE     STATUS=OK           423 CALLS     3394 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4640        66.865        .13792E-03   -1.5126    
   3  Prefactor     4.7136        6.9966        .18538E-03   -1.5274    
   4  Prefactor     .10006E-03    105.55        .60804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    17.226        .22858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5546        3.9788        .12780E-03   -1.5196    
   8  Prefactor     .10000E-03    3.3538        .15264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     97.310        42.774        .40746E-04   -1.3732    
  10  Prefactor     .10000E-03    3.5619        .15707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3425        .29984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.642        66.613        .57509E-04   -1.4312    
  13  norm          5.4008        5.9283        .17293E-03   -1.5243    
  14  Prefactor     1.6523        2.7388        .17432E-03   -1.5451    
  15  Prefactor     .10000E-03    26.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1710        5.8146        .19729E-03   -1.5299    
  17  Prefactor     45.215        29.852        .59671E-04   -1.4362    
  18  Prefactor     .10001E-03    31.393        .40107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.690        31.003        .68043E-04   -1.4529    
  22  Prefactor     .10000E-03    8.1844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1104        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .49203        .19857        .34682E-03   -1.1279    
  25  Prefactor     1.3084        .16112        .18725E-03   -.83058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10736e-09
Minuit parameter uncertainties:
  1  0.000105022
  2  47.6525
  3  6.99778
  4  0.00494337
  5  4.86683e-05
  6  0.000774409
  7  3.97892
  8  1.63336e-05
  9  42.788
  10  1.32579e-05
  11  5.30964e-05
  12  66.715
  13  5.92893
  14  2.73899
  15  0.000172414
  16  5.8154
  17  29.8623
  18  0.00109162
  19  0.000116499
  20  0.000210357
  21  31.0176
  22  7.56732e-05
  23  7.02101e-06
  24  0.198854
  25  0.161183
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.864e+01  6.672e+01  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.308e+00  1.612e-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:  4.920e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209105/likelihoodResults_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.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) = 7308.97451074
delta logL = 0.349713285277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7308.64984107
delta logL = 0.674382955454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4866       1.0000          .0000       10.000    
     3 'Normalizat'    .43367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3461       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=   7308.650     FROM MIGRAD    STATUS=CONVERGED    257 CALLS      820 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25847E-02    .33471E-03** at limit **
   2  Index         8.4859        2.1684        .16018        .16347E-03
   3  Normalizat    .43388        .38642E-01    .83078E-01    .80844E-04
   4  Prefactor     1.3462        .32493E-01    .31850E-01    .12121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.48595
  Normalizat = 0.433877
  Prefactor  = 1.34618
 **********
 **   18 **HESSE 
 **********

 FCN=   7308.650     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      861 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19100E-01    .16269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4859        7.7327        .62264E-02    .77147    
   3  Normalizat    .43388        .91180E-01    .36796E-03   -1.1559    
   4  Prefactor     1.3462        .77150E-01    .18496E-03   -.81944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00259e-09
Minuit parameter uncertainties:
  1  5.83849e-08
  2  4.22431
  3  0.091211
  4  0.0771563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209105': 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) = 7308.64982874
delta logL = 0.674395278271

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.838e-08  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  8.486e+00  4.224e+00  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.346e+00  7.716e-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:  4.339e-01  9.121e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 8.49 +/- 4.22
Photon Flux (Free Index): 5.43e-08 +/- 5.54e-07
Energy Flux (Free Index): 6.23e-06 +/- 6.34e-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/209105/cmap_HighResolution_452649601_452908801_4FGL_J2209.8-5028_daily_bin823.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', comment='SUCCESS', energy_flux2='6.23e-06', dlogl='6.74e-01', photon_flux2='5.43e-08', job_status='DONE', time_completed='2021-09-28 06:35:31.208917', photon_index_error2='4.22', photon_index2='8.49', ts='0.92', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='8.01e-08', energy_flux_error2='6.34e-05', EG='0.49', time_epoch_completed='1632836131.21', return_code='0', job_id='209105', GAL2='1.35', EG2='0.43', return_code2='102', photon_flux_error2='5.54e-07', ts2='2.39', photon_index='2.37' WHERE bin_id='823' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:35:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 209105: <4FGL_J2209.8-5028_daily_bin823> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin823> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:30 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:32 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:20:32 2021
Terminated at Tue Sep 28 06:35:31 2021
Results reported at Tue Sep 28 06:35:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin823 332.474 -50.4702 452649601 452908801 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 :                                   848.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

