/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 55 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7454
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1571
RA = 332.474, Dec = -50.4702
tmin = 646531201, tmax = 646790401
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='211995', job_status='RUN', time_executed='2021-09-28 06:31:47.646631', time_epoch_executed='1632835907.65' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211995/ft1_4FGL_J2209.8-5028_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211995/ft1_4FGL_J2209.8-5028_daily_bin1571.fits outfile=/scratch/kocevski/211995/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1571.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=646531201.0 tmax=646790401.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.64
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211995/ft1_filtered_4FGL_J2209.8-5028_daily_bin1571.fits" evtable="EVENTS" scfile=/scratch/kocevski/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits sctable="SC_DATA" outfile=/scratch/kocevski/211995/ltcube_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.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/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits
.....................!
real 11.97
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211995/ft1_filtered_4FGL_J2209.8-5028_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/211995/ltcube_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.fits outfile=/scratch/kocevski/211995/expmap_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.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/211995/ltcube_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.fits
.....................!
real 189.95
user 185.39
sys 4.23

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/211995/ft1_filtered_4FGL_J2209.8-5028_daily_bin1571.fits scfile=/scratch/kocevski/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits outfile=/scratch/kocevski/211995/cmap_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211995/ft1_filtered_4FGL_J2209.8-5028_daily_bin1571.fits scfile=/scratch/kocevski/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits outfile=/scratch/kocevski/211995/cmap_HighResolution_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211995/ft1_filtered_4FGL_J2209.8-5028_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/211995/ft2_4FGL_J2209.8-5028_daily_bin1571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211995/Model_4FGL_J2209.8-5028_daily_bin1571.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/211995/ft1_filtered_4FGL_J2209.8-5028_daily_bin1571.fits.....................!
real 42.12
user 40.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    114.09       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38247       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.548       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6089       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.955       1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14651E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12790E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.813       1.0000         .10000E-03   10000.    
    23 'norm      '    .10477E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5269       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59815       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=   5060.946     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     3379 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.462        .31503E-07** at limit **
   2  Prefactor     114.09        75.172        .19064E-06    .61323E-05
   3  Prefactor     .34697        5.0637       -.52523E-06    .24102E-03
   4  Prefactor     53.561        33.267       -.31914E-06    .15505E-03
   5  Prefactor     .10000E-03    15.058        .46545E-07** at limit **
   6  Prefactor     .10000E-03    2.7213        .52668E-07** at limit **
   7  norm          3.6090        3.8922        .11652E-07    .15123E-03
   8  Prefactor     .10000E-03    13.294        .25768E-06** at limit **
   9  Prefactor     22.679        51.596       -.31987E-05   -.24268E-03
  10  Prefactor     2.6843        24.944        .19111E-04   -.27652E-03
  11  Prefactor     5.8396        4.4729       -.22766E-06   -.25046E-03
  12  Prefactor     42.704        154.67       -.17822E-04   -.27600E-03
  13  norm          .10000E-03    2.4007       -.11169E-06** at limit **
  14  Prefactor     .10000E-03    3.1284       -.46045E-07** at limit **
  15  Prefactor     .10000E-03    52.429       -.65258E-07** at limit **
  16  Prefactor     2.5865        8.0888        .10344E-06   -.11113E-03
  17  Prefactor     .10000E-03    15.983       -.45438E-06** at limit **
  18  Prefactor     .10000E-03    4.7428       -.41400E-07** at limit **
  19  Prefactor     .10000E-03    34.877       -.97869E-08** at limit **
  20  Prefactor     5.7224        9.8027        .25524E-06   -.15302E-04
  21  Prefactor     .10000E-03    21.554        .20174E-06** at limit **
  22  Prefactor     21.814        17.245       -.53269E-08   -.67865E-06
  23  norm          .10000E-03    7.6562        .30707E-07** at limit **
  24  Normalizat    1.5268        .22097        .12121E-05   -.26650E-03
  25  Prefactor     .59820        .16150       -.25131E-05   -.30173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 114.089
  Prefactor  = 0.346971
  Prefactor  = 53.5606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60903
  Prefactor  = 0.0001
  Prefactor  = 22.6793
  Prefactor  = 2.68429
  Prefactor  = 5.83958
  Prefactor  = 42.7044
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7224
  Prefactor  = 0.0001
  Prefactor  = 21.8136
  norm       = 0.0001
  Normalizat = 1.52683
  Prefactor  = 0.598205
 **********
 **   18 **HESSE 
 **********

 FCN=   5060.946     FROM HESSE     STATUS=OK           419 CALLS     3798 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     114.09        75.228        .37665E-04   -1.3568    
   3  Prefactor     .34697        43.304        .30306E-02   -1.5590    
   4  Prefactor     53.561        33.225        .54812E-04   -1.4243    
   5  Prefactor     .10000E-03    15.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7541        .11454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6090        3.8877        .14007E-03   -1.5328    
   8  Prefactor     .10000E-03    13.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.679        51.728        .84020E-04   -1.4755    
  10  Prefactor     2.6843        25.699        .12462E-02   -1.5380    
  11  Prefactor     5.8396        4.4725        .12542E-03   -1.5225    
  12  Prefactor     42.704        154.08        .30583E-03   -1.4400    
  13  norm          .10000E-03    2.4014        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1748        .12279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5865        8.1472        .25365E-03   -1.5386    
  17  Prefactor     .10000E-03    16.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7634        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7224        9.8171        .16788E-03   -1.5229    
  21  Prefactor     .10000E-03    21.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.814        17.281        .85762E-04   -1.4774    
  23  norm          .10000E-03    7.8064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5268        .26201        .23223E-03   -.77027    
  25  Prefactor     .59820        .18959        .26801E-03   -1.0766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51962e-09
Minuit parameter uncertainties:
  1  5.39646e-06
  2  75.2908
  3  7.75711
  4  33.237
  5  1.44126e-05
  6  1.80369e-05
  7  3.88794
  8  4.13029e-05
  9  51.8306
  10  16.6204
  11  4.47278
  12  155.556
  13  3.25491e-07
  14  4.68034e-06
  15  0.000100348
  16  8.15069
  17  4.33306e-05
  18  2.73552e-06
  19  4.59045e-06
  20  9.81985
  21  6.93725e-05
  22  17.2852
  23  3.54978e-06
  24  0.26224
  25  0.189788
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.270e+01  1.556e+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:  5.982e-01  1.898e-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.527e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211995/likelihoodResults_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.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) = 5060.62780529
delta logL = 0.317832694904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5060.55755918
delta logL = 0.388078804715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33328       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1764       1.0000          .0000       10.000    
     3 'Normalizat'    1.4713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62869       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=   5060.558     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      302 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33356        7.0127        .10188E-01    .12456E-02
   2  Index         5.1770        2.8158        .10100        .56429E-04
   3  Normalizat    1.4714        .45043E-01    .53291E-01    .41897E-04
   4  Prefactor     .62862        .34430E-01    .59248E-01    .11903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.333564
  Index      = 5.17699
  Normalizat = 1.47138
  Prefactor  = 0.62862
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33356        21.622        .47100E-03   -1.5592    
   2  Index         5.1770        7.5052        .53229E-02    .35405E-01
   3  Normalizat    1.4714        .17247        .23562E-03   -.78586    
   4  Prefactor     .62862        .12967        .26207E-03   -1.0639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33611e-07
Minuit parameter uncertainties:
  1  5.37243
  2  6.73248
  3  0.172543
  4  0.129729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211995': 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) = 5060.55755663
delta logL = 0.388081348906

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.336e-01  5.372e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  5.177e+00  6.732e+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:  6.286e-01  1.297e-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.471e+00  1.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/211995/cmap_HighResolution_646531201_646790401_4FGL_J2209.8-5028_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-28 06:43:04.219328', job_id='211995', GAL2='0.63', fit_tolerance='1e-08', EG2='1.47', EG='1.53', time_epoch_completed='1632836584.22', return_code2='102', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='3.88e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1571' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 211995: <4FGL_J2209.8-5028_daily_bin1571> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1571 332.474 -50.4702 646531201 646790401 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 :                                   672.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            740 sec.

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

