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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin600
RA = 332.474, Dec = -50.4702
tmin = 394848001, tmax = 395107201
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='207648', job_status='RUN', time_executed='2021-09-28 06:18:11.253118', time_epoch_executed='1632835091.25' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207648

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207648/ft1_4FGL_J2209.8-5028_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207648/ft2_4FGL_J2209.8-5028_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207648/ft1_4FGL_J2209.8-5028_daily_bin600.fits outfile=/scratch/kocevski/207648/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin600.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.27
user 5.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207648/ft1_filtered_4FGL_J2209.8-5028_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/207648/ft2_4FGL_J2209.8-5028_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/207648/ltcube_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.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/207648/ft2_4FGL_J2209.8-5028_daily_bin600.fits
.....................!
real 11.62
user 11.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207648/ft1_filtered_4FGL_J2209.8-5028_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/207648/ft2_4FGL_J2209.8-5028_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/207648/ltcube_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.fits outfile=/scratch/kocevski/207648/expmap_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.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/207648/ltcube_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.fits
.....................!
real 190.81
user 184.75
sys 5.51

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/207648/ft1_filtered_4FGL_J2209.8-5028_daily_bin600.fits scfile=/scratch/kocevski/207648/ft2_4FGL_J2209.8-5028_daily_bin600.fits outfile=/scratch/kocevski/207648/cmap_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207648/ft1_filtered_4FGL_J2209.8-5028_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/207648/ft2_4FGL_J2209.8-5028_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207648/Model_4FGL_J2209.8-5028_daily_bin600.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/207648/ft1_filtered_4FGL_J2209.8-5028_daily_bin600.fits.....................!
real 44.62
user 38.54
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90628       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.586       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4712       1.0000         .10000E-03   10000.    
     7 'norm      '    .22287E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.943       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40076       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    92.043       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9856       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   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 '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3974       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68507       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=   4668.223     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3000 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94975        27.614       -.33593E-05    .17560E-04
   2  Prefactor     .10001E-03    58.430        .22621E-05** at limit **
   3  Prefactor     5.8214        11.740       -.10398E-06    .58144E-04
   4  Prefactor     13.850        36.750        .25379E-06   -.29864E-05
   5  Prefactor     48.582        32.093        .32627E-06    .98516E-04
   6  Prefactor     3.4729        5.8612       -.35505E-06    .12295E-03
   7  norm          .10183E-03    10.624        .35387E-05** at limit **
   8  Prefactor     10.944        11.294        .44734E-07   -.21911E-05
   9  Prefactor     .56118        112.07       -.11948E-04    .10815E-03
  10  Prefactor     .41450        18.674        .52705E-05    .48423E-03
  11  Prefactor     2.2146        5.2220       -.44275E-06    .20776E-03
  12  Prefactor     .10000E-03    35.483        .75248E-06** at limit **
  13  norm          1.3394        11.931       -.36441E-05   -.15499E-03
  14  Prefactor     .10000E-03    2.5914        .12093E-07** at limit **
  15  Prefactor     92.033        63.598        .56184E-06    .12660E-03
  16  Prefactor     6.7287        8.8690       -.26420E-06    .25790E-04
  17  Prefactor     6.0247        63.248        .23605E-05    .10106E-03
  18  Prefactor     .10000E-03    14.715        .94104E-06** at limit **
  19  Prefactor     .10000E-03    42.239       -.13878E-05** at limit **
  20  Prefactor     .10000E-03    5.6514       -.18603E-07** at limit **
  21  Prefactor     .10000E-03    25.674        .80711E-07** at limit **
  22  Prefactor     .10000E-03    9.4363       -.29621E-07** at limit **
  23  norm          .10000E-03    2.8012       -.22328E-08** at limit **
  24  Normalizat    1.3972        .22935       -.80585E-07    .33708E-03
  25  Prefactor     .68520        .16543        .11989E-05    .16908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.949751
  Prefactor  = 0.000100007
  Prefactor  = 5.8214
  Prefactor  = 13.8497
  Prefactor  = 48.5819
  Prefactor  = 3.47288
  norm       = 0.000101833
  Prefactor  = 10.9435
  Prefactor  = 0.561178
  Prefactor  = 0.414495
  Prefactor  = 2.21464
  Prefactor  = 0.000100001
  norm       = 1.33944
  Prefactor  = 0.0001
  Prefactor  = 92.0328
  Prefactor  = 6.72872
  Prefactor  = 6.02473
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39718
  Prefactor  = 0.6852
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.223     FROM HESSE     STATUS=OK           447 CALLS     3447 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94975        145.24        .62550E-02   -1.5513    
   2  Prefactor     .10001E-03    58.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8214        11.715        .16647E-03   -1.5225    
   4  Prefactor     13.850        36.795        .10761E-03   -1.4963    
   5  Prefactor     48.582        32.079        .57529E-04   -1.4313    
   6  Prefactor     3.4729        5.8422        .20000E-03   -1.5335    
   7  norm          .10183E-03    6.0792        .43473E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.944        11.296        .12111E-03   -1.5046    
   9  Prefactor     .56118        58.295        .12366       -1.5558    
  10  Prefactor     .41450        20.886        .33594E-02   -1.5579    
  11  Prefactor     2.2146        5.1874        .22096E-03   -1.5410    
  12  Prefactor     .10000E-03    35.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3394        11.822        .37812E-03   -1.5476    
  14  Prefactor     .10000E-03    2.6211        .10730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     92.033        63.720        .41887E-04   -1.3786    
  16  Prefactor     6.7287        8.8559        .15470E-03   -1.5189    
  17  Prefactor     6.0247        63.433        .16412E-03   -1.5217    
  18  Prefactor     .10000E-03    14.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7108        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8013        .11168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3972        .27044        .23672E-03   -.80710    
  25  Prefactor     .68520        .19067        .24658E-03   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71446e-09
Minuit parameter uncertainties:
  1  23.5468
  2  0.00128954
  3  11.7199
  4  36.855
  5  32.09
  6  5.8432
  7  0.00667649
  8  11.2986
  9  11.4496
  10  5.88609
  11  5.18842
  12  0.000311898
  13  7.96044
  14  6.16152e-06
  15  63.7669
  16  8.85762
  17  39.1512
  18  3.71192e-05
  19  0.000748593
  20  5.06093e-06
  21  1.86525e-06
  22  5.54546e-06
  23  1.14126e-07
  24  0.270714
  25  0.19085
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.119e-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:  6.852e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.397e+00  2.707e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207648/likelihoodResults_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.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) = 4668.22324834
delta logL = -0.000134000551043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4668.22311514
delta logL = -7.9277651821e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7290       1.0000          .0000       10.000    
     3 'Normalizat'    1.3972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68520       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=   4668.223     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10411E-03    15.920        .18142E-01** at limit **
   2  Index         2.6341        5.1252        .50000        .11849E-04
   3  Normalizat    1.3972        .42945E-02    .23672E-03   -.56757E-04
   4  Prefactor     .68520        .32712E-02    .24658E-03   -.54496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104105
  Index      = 2.6341
  Normalizat = 1.39718
  Prefactor  = 0.685202
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.223     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10411E-03    103.77        .33958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6341        5.8876        .50000       -.49290    
   3  Normalizat    1.3972        .11014E-01    .47344E-04   -.80710    
   4  Prefactor     .68520        .83894E-02    .98633E-05   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.0522e-09
Minuit parameter uncertainties:
  1  0.0413526
  2  306.568
  3  0.0110138
  4  0.0083894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207648': 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) = 4668.22311495
delta logL = -6.02058207733e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.041e-04  4.135e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.634e+00  3.066e+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:  6.852e-01  8.389e-03  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.397e+00  1.101e-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/207648/cmap_HighResolution_394848001_395107201_4FGL_J2209.8-5028_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-28 06:28:46.627633', job_id='207648', GAL2='0.69', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632835726.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-6.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='600' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:28:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 207648: <4FGL_J2209.8-5028_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin600 332.474 -50.4702 394848001 395107201 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 :                                   627.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             216.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

