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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin498
RA = 332.474, Dec = -50.4702
tmin = 368409601, tmax = 368668801
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='207485', job_status='RUN', time_executed='2021-09-28 06:17:00.838635', time_epoch_executed='1632835020.84' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207485/ft1_4FGL_J2209.8-5028_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207485/ft1_4FGL_J2209.8-5028_daily_bin498.fits outfile=/scratch/kocevski/207485/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin498.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=368409601.0 tmax=368668801.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.30
user 3.07
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.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/207485/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.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/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/207485/ltcube_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.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/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits
.....................!
real 12.02
user 11.62
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/207485/ltcube_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.fits outfile=/scratch/kocevski/207485/expmap_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.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/207485/ltcube_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.fits
.....................!
real 191.36
user 185.53
sys 5.47

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/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.fits scfile=/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits outfile=/scratch/kocevski/207485/cmap_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.fits scfile=/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits outfile=/scratch/kocevski/207485/cmap_HighResolution_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/207485/ft2_4FGL_J2209.8-5028_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207485/Model_4FGL_J2209.8-5028_daily_bin498.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/207485/ft1_filtered_4FGL_J2209.8-5028_daily_bin498.fits.....................!
real 48.12
user 46.67
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9896       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21525E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .84857       1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.327       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.944       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64634       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0532       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=   6279.009     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2901 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.244        29.055       -.45060E-06   -.10353E-04
   2  Prefactor     .10000E-03    65.505        .84604E-05** at limit **
   3  Prefactor     12.208        7.6124       -.27792E-06    .10335E-05
   4  Prefactor     .10000E-03    11.282       -.40015E-05** at limit **
   5  Prefactor     .10000E-03    82.147       -.70923E-05** at limit **
   6  Prefactor     4.9896        3.5821        .10058E-05    .59990E-04
   7  norm          4.4701        4.1410       -.16753E-06    .73245E-05
   8  Prefactor     .10000E-03    4.8212        .11452E-06** at limit **
   9  Prefactor     .10000E-03    12.704        .53000E-05** at limit **
  10  Prefactor     4.1618        6.6600        .80857E-05    .61142E-03
  11  Prefactor     .10000E-03    1.6913       -.43039E-06** at limit **
  12  Prefactor     .10007E-03    204.43       -.65362E-04** at limit **
  13  norm          1.1891        1.7776        .63150E-06   -.30641E-02
  14  Prefactor     .10000E-03    1.0113        .14011E-06** at limit **
  15  Prefactor     57.570        37.677       -.45256E-05   -.21464E-04
  16  Prefactor     .10010E-03    2.1973       -.10613E-05** at limit **
  17  Prefactor     2.7610        16.818       -.38126E-06   -.30169E-03
  18  Prefactor     .10000E-03    3.0779       -.89206E-08** at limit **
  19  Prefactor     20.227        41.528        .93511E-06    .94035E-05
  20  Prefactor     .85028        3.5623        .17235E-06   -.96185E-04
  21  Prefactor     58.340        34.300        .57416E-05    .10449E-03
  22  Prefactor     17.941        19.329       -.78766E-06    .23218E-04
  23  norm          .10000E-03    3.2547        .17971E-06** at limit **
  24  Normalizat    .64654        .16759       -.19286E-05    .33800E-03
  25  Prefactor     1.0532        .13546        .55557E-07    .31589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.2436
  Prefactor  = 0.0001
  Prefactor  = 12.2084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98957
  norm       = 4.47006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.16185
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  norm       = 1.18908
  Prefactor  = 0.0001
  Prefactor  = 57.5699
  Prefactor  = 0.0001001
  Prefactor  = 2.76103
  Prefactor  = 0.0001
  Prefactor  = 20.2275
  Prefactor  = 0.850283
  Prefactor  = 58.3396
  Prefactor  = 17.9411
  norm       = 0.0001
  Normalizat = 0.646536
  Prefactor  = 1.05318
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.009     FROM HESSE     STATUS=OK           425 CALLS     3326 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.244        29.062        .58960E-04   -1.4347    
   2  Prefactor     .10000E-03    65.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.208        7.6087        .11464E-03   -1.5009    
   4  Prefactor     .10000E-03    11.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    84.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9896        3.5742        .12188E-03   -1.5261    
   7  norm          4.4701        4.1367        .14948E-03   -1.5285    
   8  Prefactor     .10000E-03    4.8325        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1618        6.7459        .19735E-03   -1.5300    
  11  Prefactor     .10000E-03    1.7359        .20119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10007E-03    211.66        .21241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1891        4.6796        .16647E-02   -1.5490    
  14  Prefactor     .10000E-03    1.0182        .77785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.570        37.639        .52869E-04   -1.4189    
  16  Prefactor     .10010E-03    20.954        .22354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7610        17.220        .12247E-02   -1.5376    
  18  Prefactor     .10000E-03    3.0988        .13571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.227        41.513        .89059E-04   -1.4808    
  20  Prefactor     .85028        3.4539        .29049E-03   -1.5524    
  21  Prefactor     58.340        34.196        .26265E-03   -1.4179    
  22  Prefactor     17.941        19.438        .94549E-04   -1.4861    
  23  norm          .10000E-03    3.2592        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64654        .19292        .28454E-03   -1.0604    
  25  Prefactor     1.0532        .15819        .19124E-03   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31386e-08
Minuit parameter uncertainties:
  1  29.0712
  2  9.41173e-05
  3  7.60932
  4  4.33236e-06
  5  5.76782e-05
  6  3.57434
  7  4.137
  8  4.84755e-06
  9  7.34938e-05
  10  6.74717
  11  1.40851e-05
  12  0.0077645
  13  4.68109
  14  5.60271e-06
  15  37.6544
  16  0.00289153
  17  13.7963
  18  1.36802e-06
  19  41.5718
  20  3.42756
  21  34.2075
  22  19.4445
  23  2.55274e-06
  24  0.193123
  25  0.158255
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.001e-04  7.764e-03  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.053e+00  1.583e-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.465e-01  1.931e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207485/likelihoodResults_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.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) = 6279.00917504
delta logL = -2.23708702833e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6279.00915265
delta logL = 2.42898750002e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4016       1.0000          .0000       10.000    
     3 'Normalizat'    .64653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0532       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=   6279.009     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      250 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    9996.8        .90712E-02** at limit **
   2  Index         2.5016        5.1115        .50000       -.44074E-05
   3  Normalizat    .64653        .36963E-01    .64311E-01    .59494E-04
   4  Prefactor     1.0532        .31198E-01    .39727E-01    .93548E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100144
  Index      = 2.50164
  Normalizat = 0.646534
  Prefactor  = 1.05318
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.009     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    5134.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5016        7.2422        .50000       -.52322    
   3  Normalizat    .64653        .15242        .28455E-03   -1.0604    
   4  Prefactor     1.0532        .12893        .19124E-03   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1111e-07
Minuit parameter uncertainties:
  1  0.225946
  2  67.5354
  3  0.15252
  4  0.128969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207485': 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) = 6279.00915256
delta logL = 1.17512172437e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.001e-04  2.259e-01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.502e+00  6.754e+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:  1.053e+00  1.290e-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.465e-01  1.525e-01  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/207485/cmap_HighResolution_368409601_368668801_4FGL_J2209.8-5028_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-28 06:29:05.397779', job_id='207485', GAL2='1.05', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632835745.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='498' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:29:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 207485: <4FGL_J2209.8-5028_daily_bin498> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin498> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:31 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:33 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:15:33 2021
Terminated at Tue Sep 28 06:29:06 2021
Results reported at Tue Sep 28 06:29:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin498 332.474 -50.4702 368409601 368668801 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 :                                   717.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

