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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1391
RA = 332.474, Dec = -50.4702
tmin = 599875201, tmax = 600134401
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='211731', job_status='RUN', time_executed='2021-09-28 06:31:19.014026', time_epoch_executed='1632835879.01' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211731/ft1_4FGL_J2209.8-5028_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211731/ft1_4FGL_J2209.8-5028_daily_bin1391.fits outfile=/scratch/kocevski/211731/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1391.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=599875201.0 tmax=600134401.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 2.42
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.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/211731/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/211731/ltcube_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.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/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits
.....................!
real 12.28
user 11.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/211731/ltcube_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits outfile=/scratch/kocevski/211731/expmap_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.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/211731/ltcube_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits
.....................!
real 189.93
user 184.44
sys 4.88

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/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits scfile=/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits outfile=/scratch/kocevski/211731/cmap_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits scfile=/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits outfile=/scratch/kocevski/211731/cmap_HighResolution_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211731/Model_4FGL_J2209.8-5028_daily_bin1391.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/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits.....................!
real 40.40
user 39.03
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits', '/scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits', expMap='/scratch/kocevski/211731/expmap_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits', expCube='/scratch/kocevski/211731/ltcube_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211731/Model_4FGL_J2209.8-5028_daily_bin1391.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/211731/ft1_filtered_4FGL_J2209.8-5028_daily_bin1391.fits
Spacecraft file(s): /scratch/kocevski/211731/ft2_4FGL_J2209.8-5028_daily_bin1391.fits
Exposure map: /scratch/kocevski/211731/expmap_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits
Exposure cube: /scratch/kocevski/211731/ltcube_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211731/Model_4FGL_J2209.8-5028_daily_bin1391.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4953.34938238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7955       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    103.79       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.986       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5881       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92606       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=   4953.269     FROM MIGRAD    STATUS=CONVERGED    988 CALLS     3700 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.660        .18142E-02** at limit **
   2  Prefactor     .10000E-03    60.919        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.3474        .18142E-02** at limit **
   4  Prefactor     .10000E-03    17.948        .18142E-02** at limit **
   5  Prefactor     .10000E-03    20.472        .18142E-02** at limit **
   6  Prefactor     .10000E-03    2.0190        .97525E-03** at limit **
   7  norm          7.2130        5.1373        .13085E-03    .61078E-04
   8  Prefactor     .10000E-03    6.6892        .17772E-02** at limit **
   9  Prefactor     .10000E-03    112.16        .18142E-02** at limit **
  10  Prefactor     1.7598        104.98        .31206E-03   -.78035E-04
  11  Prefactor     7.3409        5.8218        .14304E-03   -.12534E-03
  12  Prefactor     103.99        323.49        .19734E-03   -.20797E-04
  13  norm          .10000E-03    2.8764        .11656E-02** at limit **
  14  Prefactor     .10000E-03    3.0755        .11981E-02** at limit **
  15  Prefactor     .10000E-03    16.696        .18142E-02** at limit **
  16  Prefactor     7.7786        10.312        .14380E-03   -.89813E-04
  17  Prefactor     .10000E-03    15.820        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.3534        .17285E-02** at limit **
  19  Prefactor     63.897        89.026        .25084E-03   -.32179E-04
  20  Prefactor     .10000E-03    3.2139        .12308E-02** at limit **
  21  Prefactor     .10000E-03    24.036        .18142E-02** at limit **
  22  Prefactor     .10000E-03    8.4266        .18142E-02** at limit **
  23  norm          .10000E-03    2.5894        .11060E-02** at limit **
  24  Normalizat    1.5879        .30315        .26205E-03   -.76304E-04
  25  Prefactor     .92620        .22862        .26170E-03   -.15074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.21302
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.75977
  Prefactor  = 7.34085
  Prefactor  = 103.989
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.77856
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 63.8973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.58787
  Prefactor  = 0.926197
 **********
 **   18 **HESSE 
 **********

 FCN=   4953.269     FROM HESSE     STATUS=OK           401 CALLS     4101 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0191        .19505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2130        5.1373        .52341E-05   -1.5171    
   8  Prefactor     .10000E-03    6.6894        .35545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    112.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7598        102.03        .12482E-04   -1.5443    
  11  Prefactor     7.3409        5.8218        .57216E-05   -1.5166    
  12  Prefactor     103.99        319.25        .78938E-05   -1.3665    
  13  norm          .10000E-03    2.8765        .23312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0760        .23962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7786        10.311        .57519E-05   -1.5150    
  17  Prefactor     .10000E-03    15.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3543        .34570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     63.897        89.031        .10034E-04   -1.4108    
  20  Prefactor     .10000E-03    3.2140        .24615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5894        .22121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5879        .30334        .52409E-04   -.75338    
  25  Prefactor     .92620        .22883        .10468E-04   -.95232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13284e-10
Minuit parameter uncertainties:
  1  1.64774e-05
  2  6.10966e-05
  3  3.62149e-06
  4  3.04392e-05
  5  2.46104e-06
  6  2.09413e-06
  7  5.13761
  8  2.62088e-06
  9  0.000649049
  10  26.8463
  11  5.82227
  12  324.774
  13  1.56293e-06
  14  2.67892e-06
  15  3.7956e-06
  16  10.3136
  17  9.7698e-05
  18  0.000154266
  19  89.2168
  20  1.1815e-06
  21  7.36607e-05
  22  1.59752e-05
  23  5.43371e-07
  24  0.303695
  25  0.229064
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.040e+02  3.248e+02  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:  9.262e-01  2.291e-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.588e+00  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211731/likelihoodResults_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.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): 0
logL (Free Index) = 4952.61580284
delta logL = 0.652952756182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4952.57485486
delta logL = 0.69390072814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.834       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5652       1.0000          .0000       10.000    
     3 'Normalizat'    1.5063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96396       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=   4952.575     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      319 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.855        790.07        .77336E-04    .66152E-05
   2  Index         3.5654        6.7239        .39899E-02    .24502E-04
   3  Normalizat    1.5041        .29821        .26750E-03   -.27880E-04
   4  Prefactor     .96550        .23493        .25680E-03    .24836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8545
  Index      = 3.56535
  Normalizat = 1.50415
  Prefactor  = 0.965502
 **********
 **   18 **HESSE 
 **********

 FCN=   4952.575     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.855        69.586        .30934E-05   -1.4671    
   2  Index         3.5654        1.1873        .15959E-03   -.29102    
   3  Normalizat    1.5041        .29607        .10700E-04   -.77662    
   4  Prefactor     .96550        .22873        .10272E-04   -.93888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75529e-11
Minuit parameter uncertainties:
  1  69.7978
  2  1.19981
  3  0.296412
  4  0.228955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211731': 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): 0
logL (Free Index) = 4952.57482702
delta logL = 0.693928575968

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.685e+01  6.980e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.565e+00  1.200e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.655e-01  2.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:  1.504e+00  2.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.57 +/- 1.20
Photon Flux (Free Index): 1.13e-07 +/- 9.56e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.54e-05

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/211731/cmap_HighResolution_599875201_600134401_4FGL_J2209.8-5028_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='6.94e-01', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-28 06:43:52.279003', photon_index_error2='1.20', photon_index2='3.57', ts='0.42', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.54e-05', EG='1.59', time_epoch_completed='1632836632.28', return_code='0', job_id='211731', GAL2='0.97', EG2='1.50', return_code2='0', photon_flux_error2='9.56e-08', ts2='1.90', photon_index='2.37' WHERE bin_id='1391' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 211731: <4FGL_J2209.8-5028_daily_bin1391> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1391> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:25 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:27 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:30:27 2021
Terminated at Tue Sep 28 06:43:53 2021
Results reported at Tue Sep 28 06:43:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1391 332.474 -50.4702 599875201 600134401 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 :                                   674.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

