/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 9 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin271
RA = 332.474, Dec = -50.4702
tmin = 309571201, tmax = 309830401
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='206088', job_status='RUN', time_executed='2021-09-28 06:11:09.982744', time_epoch_executed='1632834669.98' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206088/ft1_4FGL_J2209.8-5028_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206088/ft2_4FGL_J2209.8-5028_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206088/ft1_4FGL_J2209.8-5028_daily_bin271.fits outfile=/scratch/kocevski/206088/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin271.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=309571201.0 tmax=309830401.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.31
user 6.05
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206088/ft1_filtered_4FGL_J2209.8-5028_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/206088/ft2_4FGL_J2209.8-5028_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/206088/ltcube_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.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/206088/ft2_4FGL_J2209.8-5028_daily_bin271.fits
.....................!
real 12.59
user 12.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206088/ft1_filtered_4FGL_J2209.8-5028_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/206088/ft2_4FGL_J2209.8-5028_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/206088/ltcube_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.fits outfile=/scratch/kocevski/206088/expmap_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.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/206088/ltcube_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.fits
.....................!
real 192.15
user 186.62
sys 5.17

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/206088/ft1_filtered_4FGL_J2209.8-5028_daily_bin271.fits scfile=/scratch/kocevski/206088/ft2_4FGL_J2209.8-5028_daily_bin271.fits outfile=/scratch/kocevski/206088/cmap_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206088/ft1_filtered_4FGL_J2209.8-5028_daily_bin271.fits scfile=/scratch/kocevski/206088/ft2_4FGL_J2209.8-5028_daily_bin271.fits outfile=/scratch/kocevski/206088/cmap_HighResolution_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27073       1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.254       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5582       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7018       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59670E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.921       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12777E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5121       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.372       1.0000         .10000E-03   10000.    
    23 'norm      '    .23007       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93755       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0048       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=   9030.889     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3114 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12276E-03    14.989       -.33387E-06** at limit **
   2  Prefactor     68.289        49.497        .22146E-06   -.57023E-04
   3  Prefactor     5.2107        6.0594        .29492E-06   -.87859E-03
   4  Prefactor     65.635        24.988       -.16291E-07   -.33997E-05
   5  Prefactor     10.424        12.154        .15236E-06    .22545E-03
   6  Prefactor     1.5577        3.2582        .55493E-07   -.18446E-03
   7  norm          1.3793        2.8049       -.61780E-08   -.16231E-03
   8  Prefactor     2.1734        6.5887        .13333E-05   -.11428E-02
   9  Prefactor     5.7815        26.750       -.64804E-07   -.30626E-04
  10  Prefactor     2.7003        3.9402        .62842E-06   -.21201E-02
  11  Prefactor     2.1574        2.1874        .26408E-07   -.22327E-03
  12  Prefactor     .10000E-03    38.342        .43367E-07** at limit **
  13  norm          6.1662        5.1876       -.55381E-07   -.18282E-03
  14  Prefactor     .10000E-03    1.1745        .37613E-07** at limit **
  15  Prefactor     .10000E-03    16.587       -.36476E-07** at limit **
  16  Prefactor     .20843E-01    2.4657        .90414E-06   -.28944E-03
  17  Prefactor     49.962        24.352       -.22931E-05   -.12019E-02
  18  Prefactor     .10000E-03    5.7091        .20300E-05** at limit **
  19  Prefactor     .10000E-03    69.864        .33975E-06** at limit **
  20  Prefactor     .10000E-03    4.4735       -.55086E-07** at limit **
  21  Prefactor     4.5135        29.820       -.15078E-06   -.91700E-04
  22  Prefactor     18.367        14.323        .17738E-06    .89185E-04
  23  norm          .23606        3.5601       -.21052E-06   -.46098E-04
  24  Normalizat    .93781        .16027       -.17301E-05   -.71809E-03
  25  Prefactor     1.0048        .12389        .91283E-06   -.55130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000122764
  Prefactor  = 68.2891
  Prefactor  = 5.21066
  Prefactor  = 65.6349
  Prefactor  = 10.4239
  Prefactor  = 1.55772
  norm       = 1.37932
  Prefactor  = 2.1734
  Prefactor  = 5.78154
  Prefactor  = 2.70033
  Prefactor  = 2.15744
  Prefactor  = 0.0001
  norm       = 6.16621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0208429
  Prefactor  = 49.9621
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51354
  Prefactor  = 18.3667
  norm       = 0.236062
  Normalizat = 0.937814
  Prefactor  = 1.00484
 **********
 **   18 **HESSE 
 **********

 FCN=   9030.889     FROM HESSE     STATUS=OK           449 CALLS     3563 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12276E-03    19.000        .10571       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.289        49.504        .48584E-04   -1.4053    
   3  Prefactor     5.2107        6.2118        .88027E-03   -1.5251    
   4  Prefactor     65.635        24.887        .49535E-04   -1.4086    
   5  Prefactor     10.424        12.124        .12409E-03   -1.5062    
   6  Prefactor     1.5577        3.2339        .23379E-03   -1.5458    
   7  norm          1.3793        2.7596        .21225E-03   -1.5473    
   8  Prefactor     2.1734        8.1792        .13953E-02   -1.5413    
   9  Prefactor     5.7815        26.799        .16691E-03   -1.5227    
  10  Prefactor     2.7003        4.6330        .12391E-02   -1.5379    
  11  Prefactor     2.1574        2.1772        .13644E-03   -1.5414    
  12  Prefactor     .10000E-03    38.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1662        5.1867        .16166E-03   -1.5211    
  14  Prefactor     .10000E-03    4.3959        .19710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20843E-01    6.6654        .42259E-01   -1.5679    
  17  Prefactor     49.962        27.235        .56758E-04   -1.4293    
  18  Prefactor     .10000E-03    31.914        .39518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    69.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5135        29.851        .18954E-03   -1.5283    
  22  Prefactor     18.367        14.286        .93442E-04   -1.4851    
  23  norm          .23606        16.801        .34868E-02   -1.5611    
  24  Normalizat    .93781        .17922        .26839E-03   -.95144    
  25  Prefactor     1.0048        .14026        .21327E-03   -.92569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47927e-08
Minuit parameter uncertainties:
  1  0.0416074
  2  49.5336
  3  6.21259
  4  24.8906
  5  12.1265
  6  3.23422
  7  2.75988
  8  8.18341
  9  24.9128
  10  4.63358
  11  2.17728
  12  9.71606e-06
  13  5.18713
  14  2.87846e-05
  15  2.14925e-06
  16  0.743751
  17  27.2413
  18  0.000597016
  19  5.83785e-05
  20  1.22498e-06
  21  23.2316
  22  14.2886
  23  3.9833
  24  0.179338
  25  0.140309
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.378e-01  1.793e-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: 4.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206088/likelihoodResults_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.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) = 9030.88936386
delta logL = -0.000123949930639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9030.88924016
delta logL = -2.53137841355e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12763E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3283       1.0000          .0000       10.000    
     3 'Normalizat'    .93783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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=   9030.889     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10704E-03    34.349        .18142E-01** at limit **
   2  Index         2.2034        7.7726        .50000        .72353E-05
   3  Normalizat    .93782        .30540E-02    .26839E-03   -.21857E-04
   4  Prefactor     1.0048        .25167E-02    .21327E-03    .13007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010704
  Index      = 2.20341
  Normalizat = 0.937817
  Prefactor  = 1.00483
 **********
 **   18 **HESSE 
 **********

 FCN=   9030.889     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10704E-03    216.85        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2034        5.0388        .50000       -.59356    
   3  Normalizat    .93782        .76946E-02    .10736E-04   -.95144    
   4  Prefactor     1.0048        .63409E-02    .85309E-05   -.92569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22065e-09
Minuit parameter uncertainties:
  1  0.0784317
  2  424.856
  3  0.00769463
  4  0.00634095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206088': 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) = 9030.88923963
delta logL = 2.747765393e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.070e-04  7.843e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.203e+00  4.249e+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.005e+00  6.341e-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:  9.378e-01  7.695e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/206088/cmap_HighResolution_309571201_309830401_4FGL_J2209.8-5028_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-28 06:27:04.085071', job_id='206088', GAL2='1.00', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632835624.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='271' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 206088: <4FGL_J2209.8-5028_daily_bin271> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin271> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:51 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:53 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:10:53 2021
Terminated at Tue Sep 28 06:27:04 2021
Results reported at Tue Sep 28 06:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin271 332.474 -50.4702 309571201 309830401 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 :                                   946.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

