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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin682
RA = 332.474, Dec = -50.4702
tmin = 416102401, tmax = 416361601
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='208890', job_status='RUN', time_executed='2021-09-28 06:20:34.495076', time_epoch_executed='1632835234.5' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208890/ft1_4FGL_J2209.8-5028_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208890/ft2_4FGL_J2209.8-5028_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208890/ft1_4FGL_J2209.8-5028_daily_bin682.fits outfile=/scratch/kocevski/208890/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin682.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=416102401.0 tmax=416361601.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.49
user 6.17
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208890/ft2_4FGL_J2209.8-5028_daily_bin682.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/208890/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/208890/ft1_filtered_4FGL_J2209.8-5028_daily_bin682.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/208890/ft1_filtered_4FGL_J2209.8-5028_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/208890/ft2_4FGL_J2209.8-5028_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/208890/ltcube_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.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/208890/ft2_4FGL_J2209.8-5028_daily_bin682.fits
.....................!
real 11.93
user 11.46
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208890/ft1_filtered_4FGL_J2209.8-5028_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/208890/ft2_4FGL_J2209.8-5028_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/208890/ltcube_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.fits outfile=/scratch/kocevski/208890/expmap_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.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/208890/ltcube_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.fits
.....................!
real 191.44
user 185.64
sys 5.33

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/208890/ft1_filtered_4FGL_J2209.8-5028_daily_bin682.fits scfile=/scratch/kocevski/208890/ft2_4FGL_J2209.8-5028_daily_bin682.fits outfile=/scratch/kocevski/208890/cmap_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208890/ft1_filtered_4FGL_J2209.8-5028_daily_bin682.fits scfile=/scratch/kocevski/208890/ft2_4FGL_J2209.8-5028_daily_bin682.fits outfile=/scratch/kocevski/208890/cmap_HighResolution_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1247       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.970       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4888       1.0000         .10000E-03   10000.    
     7 'norm      '    9.1064       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8199       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.348       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.501       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.996       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2083       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.731       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.328       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68013       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2347       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=   4735.640     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2892 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.616        21.809       -.45210E-06   -.46811E-04
   2  Prefactor     .10001E-03    36.801       -.61033E-05** at limit **
   3  Prefactor     7.1251        8.3681        .16595E-06   -.37470E-04
   4  Prefactor     14.970        26.094        .38286E-06    .11041E-04
   5  Prefactor     .10000E-03    24.161       -.10746E-05** at limit **
   6  Prefactor     1.4882        4.4393        .57414E-07   -.34270E-03
   7  norm          9.1065        5.1689        .48727E-07    .89044E-05
   8  Prefactor     .10000E-03    4.4525        .25563E-07** at limit **
   9  Prefactor     .10000E-03    7.1605        .34195E-07** at limit **
  10  Prefactor     9.8192        7.2811       -.18585E-06   -.81528E-04
  11  Prefactor     5.9477        4.7117        .15929E-05   -.13050E-02
  12  Prefactor     .10000E-03    35.211        .24640E-05** at limit **
  13  norm          .10000E-03    6.1884       -.58988E-07** at limit **
  14  Prefactor     .10000E-03    1.4305        .17980E-07** at limit **
  15  Prefactor     33.354        59.973        .27748E-05    .76611E-04
  16  Prefactor     13.502        6.8169        .39415E-07    .23249E-04
  17  Prefactor     15.000        22.879        .11148E-05    .11515E-03
  18  Prefactor     .10000E-03    5.0995        .90508E-08** at limit **
  19  Prefactor     .10001E-03    33.247        .42919E-05** at limit **
  20  Prefactor     5.2091        8.7321        .34425E-06   -.92800E-05
  21  Prefactor     32.732        37.142        .25050E-06    .19953E-04
  22  Prefactor     19.332        25.619        .13974E-05    .99938E-04
  23  norm          .10000E-03    3.0021       -.39979E-08** at limit **
  24  Normalizat    .68002        .22992       -.24712E-05    .28128E-04
  25  Prefactor     1.2348        .17765        .44041E-06   -.36340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6155
  Prefactor  = 0.000100012
  Prefactor  = 7.12507
  Prefactor  = 14.9704
  Prefactor  = 0.0001
  Prefactor  = 1.48815
  norm       = 9.10652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.81925
  Prefactor  = 5.94772
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3543
  Prefactor  = 13.5017
  Prefactor  = 15.0004
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 5.20906
  Prefactor  = 32.7319
  Prefactor  = 19.3316
  norm       = 0.0001
  Normalizat = 0.680021
  Prefactor  = 1.23479
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.640     FROM HESSE     STATUS=OK           425 CALLS     3317 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.616        21.842        .12296E-03   -1.5056    
   2  Prefactor     .10001E-03    39.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1251        8.3538        .15028E-03   -1.5174    
   4  Prefactor     14.970        26.080        .10352E-03   -1.4934    
   5  Prefactor     .10000E-03    24.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4882        4.4902        .24003E-03   -1.5464    
   7  norm          9.1065        5.1667        .11287E-03   -1.5104    
   8  Prefactor     .10000E-03    4.4558        .14182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1611        .17986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8192        7.2815        .12788E-03   -1.5081    
  11  Prefactor     5.9477        5.1171        .67706E-03   -1.5220    
  12  Prefactor     .10000E-03    35.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.2373        .16720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4384        .80354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.354        60.238        .69390E-04   -1.4552    
  16  Prefactor     13.502        6.8207        .10901E-03   -1.4973    
  17  Prefactor     15.000        23.030        .10343E-03   -1.4933    
  18  Prefactor     .10000E-03    5.1089        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    34.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2091        8.7404        .17614E-03   -1.5251    
  21  Prefactor     32.732        37.138        .70039E-04   -1.4563    
  22  Prefactor     19.332        25.776        .91103E-04   -1.4828    
  23  norm          .10000E-03    3.0021        .11645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68002        .25707        .31577E-03   -1.0469    
  25  Prefactor     1.2348        .20052        .20163E-03   -.85267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61722e-09
Minuit parameter uncertainties:
  1  21.8588
  2  0.00140272
  3  8.35513
  4  26.0997
  5  0.000164397
  6  4.49119
  7  5.16693
  8  2.86013e-06
  9  5.00115e-06
  10  7.28215
  11  5.11749
  12  0.00055352
  13  8.24433e-06
  14  9.25629e-07
  15  60.3485
  16  6.82106
  17  23.0437
  18  1.05131e-05
  19  0.000937292
  20  8.74249
  21  37.1645
  22  25.7906
  23  9.70466e-07
  24  0.257522
  25  0.20064
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.535e-04  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.235e+00  2.006e-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:  6.800e-01  2.575e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208890/likelihoodResults_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.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) = 4735.6404029
delta logL = -0.000133173181894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4735.64027239
delta logL = -2.66519145953e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16239E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7755       1.0000          .0000       10.000    
     3 'Normalizat'    .68001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2348       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=   4735.640     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11242E-03    14.131        .18142E-01** at limit **
   2  Index         2.5822        7.5425        .50000        .13435E-04
   3  Normalizat    .68002        .38119E-02    .31577E-03   -.19010E-04
   4  Prefactor     1.2348        .32110E-02    .20163E-03   -.95186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112415
  Index      = 2.58215
  Normalizat = 0.680021
  Prefactor  = 1.23479
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.640     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11242E-03    142.40        .34723E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5822        7.6047        .50000       -.50473    
   3  Normalizat    .68002        .12177E-01    .12631E-04   -1.0469    
   4  Prefactor     1.2348        .10258E-01    .40327E-04   -.85267    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4352e-08
Minuit parameter uncertainties:
  1  0.0842931
  2  481.608
  3  0.0121773
  4  0.0102578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208890': 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) = 4735.64027043
delta logL = -7.032231224e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.124e-04  8.429e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.582e+00  4.816e+02  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.235e+00  1.026e-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:  6.800e-01  1.218e-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/208890/cmap_HighResolution_416102401_416361601_4FGL_J2209.8-5028_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-28 06:31:12.727858', job_id='208890', GAL2='1.23', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632835872.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-7.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='682' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 208890: <4FGL_J2209.8-5028_daily_bin682> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin682 332.474 -50.4702 416102401 416361601 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 :                                   636.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

