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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1381
RA = 332.474, Dec = -50.4702
tmin = 597283201, tmax = 597542401
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='211716', job_status='RUN', time_executed='2021-09-28 06:32:28.608848', time_epoch_executed='1632835948.61' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211716/ft1_4FGL_J2209.8-5028_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211716/ft1_4FGL_J2209.8-5028_daily_bin1381.fits outfile=/scratch/kocevski/211716/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1381.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=597283201.0 tmax=597542401.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.57
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.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/211716/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1381.fits evtable="EVENTS" outfile="/scratch/kocevski/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/211716/ltcube_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.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/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits
.....................!
real 11.90
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/211716/ltcube_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.fits outfile=/scratch/kocevski/211716/expmap_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.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/211716/ltcube_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.fits
.....................!
real 190.39
user 185.56
sys 4.48

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/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits scfile=/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits outfile=/scratch/kocevski/211716/cmap_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits scfile=/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits outfile=/scratch/kocevski/211716/cmap_HighResolution_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.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/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/211716/ft2_4FGL_J2209.8-5028_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211716/Model_4FGL_J2209.8-5028_daily_bin1381.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/211716/ft1_filtered_4FGL_J2209.8-5028_daily_bin1381.fits.....................!
real 49.26
user 47.92
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11110E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .56095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9290       1.0000         .10000E-03   10000.    
    12 'Prefactor '    157.32       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6999       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8880       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6697       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91704       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0426       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=   6384.827     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2912 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3516        .13248E-05** at limit **
   2  Prefactor     .10000E-03    16.595        .80945E-05** at limit **
   3  Prefactor     24.594        11.064       -.53207E-06    .48508E-04
   4  Prefactor     .10000E-03    27.420        .82208E-06** at limit **
   5  Prefactor     18.681        27.016       -.47210E-05    .19667E-04
   6  Prefactor     .10002E-03    2.4869       -.40551E-06** at limit **
   7  norm          .55989        1.0230        .84998E-06   -.42953E-02
   8  Prefactor     .10000E-03    5.6114       -.30092E-07** at limit **
   9  Prefactor     .10000E-03    25.070       -.39316E-05** at limit **
  10  Prefactor     .10000E-03    6.3675        .94687E-07** at limit **
  11  Prefactor     1.9296        2.8017        .76709E-07    .60489E-04
  12  Prefactor     157.30        114.68       -.12428E-04    .17493E-04
  13  norm          .10000E-03    2.1412        .34184E-07** at limit **
  14  Prefactor     4.3038        3.0400        .75321E-06   -.25378E-05
  15  Prefactor     7.6556        32.554       -.69185E-04   -.39965E-04
  16  Prefactor     .10000E-03    3.0703        .10469E-07** at limit **
  17  Prefactor     .10000E-03    20.184       -.40785E-05** at limit **
  18  Prefactor     .10000E-03    2.7834        .90804E-08** at limit **
  19  Prefactor     .10000E-03    49.284        .94816E-05** at limit **
  20  Prefactor     6.8889        5.9589        .53973E-06    .74138E-04
  21  Prefactor     .10000E-03    10.474       -.25717E-05** at limit **
  22  Prefactor     4.6694        8.6632       -.47604E-06   -.93749E-05
  23  norm          .10000E-03    2.1635        .90053E-08** at limit **
  24  Normalizat    .91701        .17775        .28577E-05    .13447E-03
  25  Prefactor     1.0426        .14476        .93031E-06    .18632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5936
  Prefactor  = 0.0001
  Prefactor  = 18.6812
  Prefactor  = 0.000100024
  norm       = 0.559888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.92961
  Prefactor  = 157.297
  norm       = 0.0001
  Prefactor  = 4.30384
  Prefactor  = 7.65562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.88892
  Prefactor  = 0.0001
  Prefactor  = 4.6694
  norm       = 0.0001
  Normalizat = 0.917008
  Prefactor  = 1.04264
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.827     FROM HESSE     STATUS=OK           421 CALLS     3333 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.594        11.008        .40386E-03   -1.4716    
   4  Prefactor     .10000E-03    27.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.681        26.953        .92652E-04   -1.4843    
   6  Prefactor     .10002E-03    19.842        .23729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55989        5.9780        .18332E-02   -1.5558    
   8  Prefactor     .10000E-03    5.6258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9296        2.7766        .15462E-03   -1.5430    
  12  Prefactor     157.30        114.46        .32145E-04   -1.3193    
  13  norm          .10000E-03    2.1420        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3038        3.0433        .56190E-03   -1.5293    
  15  Prefactor     7.6556        32.652        .14451E-03   -1.5155    
  16  Prefactor     .10000E-03    3.1172        .13665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7886        .13018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8889        5.9592        .15287E-03   -1.5183    
  21  Prefactor     .10000E-03    10.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6694        8.6535        .18623E-03   -1.5276    
  23  norm          .10000E-03    2.1648        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91701        .20204        .26798E-03   -.95865    
  25  Prefactor     1.0426        .16627        .21010E-03   -.91321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43827e-08
Minuit parameter uncertainties:
  1  2.84214e-06
  2  3.17531e-05
  3  11.0086
  4  5.46628e-05
  5  26.971
  6  0.00138028
  7  3.6591
  8  9.28034e-06
  9  2.70709e-05
  10  0.000117643
  11  2.77679
  12  114.623
  13  3.02447e-06
  14  3.04342
  15  31.6501
  16  2.32209e-06
  17  2.14553e-05
  18  3.19181e-06
  19  2.71225e-05
  20  5.95974
  21  1.33643e-05
  22  8.65578
  23  3.78906e-07
  24  0.202203
  25  0.166353
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.573e+02  1.146e+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:  1.043e+00  1.664e-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.170e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/211716/likelihoodResults_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.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) = 6384.72493461
delta logL = 0.102413086246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6384.70711556
delta logL = 0.120232140314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.758       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7674       1.0000          .0000       10.000    
     3 'Normalizat'    .89318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0559       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=   6384.707     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      300 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.806        275.01        .41727E-04    .16909E-03
   2  Index         2.7669        1.6305        .51916E-02    .16297E-03
   3  Normalizat    .89222        .21697        .27125E-03   -.35756E-03
   4  Prefactor     1.0568        .17454        .20890E-03   -.31313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.8062
  Index      = 2.76691
  Normalizat = 0.892225
  Prefactor  = 1.05678
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.707     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.806        157.44        .83453E-05   -1.3778    
   2  Index         2.7669        .93759        .20766E-03   -.46298    
   3  Normalizat    .89222        .20641        .54251E-04   -.96734    
   4  Prefactor     1.0568        .16781        .41780E-04   -.90860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44575e-10
Minuit parameter uncertainties:
  1  158.161
  2  0.944591
  3  0.206593
  4  0.167896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211716': 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) = 6384.7071001
delta logL = 0.120247602978

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  9.281e+01  1.582e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.767e+00  9.446e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.057e+00  1.679e-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:  8.922e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.77 +/- 0.94
Photon Flux (Free Index): 7.09e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.21e-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/211716/cmap_HighResolution_597283201_597542401_4FGL_J2209.8-5028_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='1.62e-05', photon_flux_error='4.03e-08', dlogl='1.20e-01', energy_flux='1.88e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-28 06:45:14.834782', photon_index_error2='0.94', photon_index2='2.77', ts='2.60', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.21e-05', EG='0.92', time_epoch_completed='1632836714.83', return_code='0', job_id='211716', GAL2='1.06', EG2='0.89', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='5.48e-08', ts2='2.87', photon_index='2.37' WHERE bin_id='1381' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:45:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1381 332.474 -50.4702 597283201 597542401 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 :                                   740.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

