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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1020
RA = 332.474, Dec = -50.4702
tmin = 503712001, tmax = 503971201
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='210614', job_status='RUN', time_executed='2021-09-28 06:26:16.679387', time_epoch_executed='1632835576.68' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210614/ft1_4FGL_J2209.8-5028_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210614/ft1_4FGL_J2209.8-5028_daily_bin1020.fits outfile=/scratch/kocevski/210614/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1020.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=503712001.0 tmax=503971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.61
user 5.30
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210614/ft1_filtered_4FGL_J2209.8-5028_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/210614/ltcube_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.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/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210614/ft1_filtered_4FGL_J2209.8-5028_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/210614/ltcube_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.fits outfile=/scratch/kocevski/210614/expmap_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.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/210614/ltcube_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.fits
.....................!
real 190.92
user 185.65
sys 4.92

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/210614/ft1_filtered_4FGL_J2209.8-5028_daily_bin1020.fits scfile=/scratch/kocevski/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits outfile=/scratch/kocevski/210614/cmap_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210614/ft1_filtered_4FGL_J2209.8-5028_daily_bin1020.fits scfile=/scratch/kocevski/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits outfile=/scratch/kocevski/210614/cmap_HighResolution_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210614/ft1_filtered_4FGL_J2209.8-5028_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/210614/ft2_4FGL_J2209.8-5028_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210614/Model_4FGL_J2209.8-5028_daily_bin1020.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/210614/ft1_filtered_4FGL_J2209.8-5028_daily_bin1020.fits......................!
real 32.28
user 30.95
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.712       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12441E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.188       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6985       1.0000         .10000E-03   10000.    
     7 'norm      '    9.8451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    87.121       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.704       1.0000         .10000E-03   10000.    
    13 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51848E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25574E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.817       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97784       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90239       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=   3207.563     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3404 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.729        68.198        .78512E-06    .18896E-04
   2  Prefactor     .10000E-03    63.480        .27450E-06** at limit **
   3  Prefactor     .10000E-03    8.8762       -.18621E-07** at limit **
   4  Prefactor     .10000E-03    41.871        .21893E-06** at limit **
   5  Prefactor     45.192        59.575       -.62682E-06   -.44390E-04
   6  Prefactor     4.6993        5.6440       -.15626E-06   -.18817E-03
   7  norm          9.8443        5.6526        .63059E-07   -.10408E-03
   8  Prefactor     .10000E-03    23.944        .32374E-05** at limit **
   9  Prefactor     87.130        62.136       -.61916E-07    .17234E-04
  10  Prefactor     .10000E-03    14.014        .17453E-06** at limit **
  11  Prefactor     .10000E-03    3.0314       -.16392E-07** at limit **
  12  Prefactor     69.714        129.72        .54269E-06    .18431E-04
  13  norm          .10000E-03    7.9219        .14937E-07** at limit **
  14  Prefactor     .10002E-03    4.0362       -.85170E-06** at limit **
  15  Prefactor     .10000E-03    25.872       -.22251E-05** at limit **
  16  Prefactor     5.9347        8.2597        .35211E-05   -.33618E-03
  17  Prefactor     17.921        39.658       -.38931E-05   -.10020E-04
  18  Prefactor     .10001E-03    41.512       -.28103E-05** at limit **
  19  Prefactor     49.867        138.06        .58891E-05    .91328E-04
  20  Prefactor     .10000E-03    4.3745        .13079E-07** at limit **
  21  Prefactor     .10000E-03    18.921       -.56790E-06** at limit **
  22  Prefactor     .10000E-03    10.597       -.22164E-07** at limit **
  23  norm          .10000E-03    5.2200       -.42204E-08** at limit **
  24  Normalizat    .97756        .25876       -.16807E-06    .11670E-03
  25  Prefactor     .90239        .19420       -.52511E-06    .11171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.7289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.1923
  Prefactor  = 4.69931
  norm       = 9.84435
  Prefactor  = 0.000100004
  Prefactor  = 87.1299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.7137
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100002
  Prefactor  = 5.93468
  Prefactor  = 17.9207
  Prefactor  = 0.000100006
  Prefactor  = 49.8665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.977557
  Prefactor  = 0.902387
 **********
 **   18 **HESSE 
 **********

 FCN=   3207.563     FROM HESSE     STATUS=OK           423 CALLS     3827 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.729        68.180        .56316E-04   -1.4282    
   2  Prefactor     .10000E-03    63.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9330        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.680        .91161E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.192        59.671        .59643E-04   -1.4362    
   6  Prefactor     4.6993        5.6469        .14217E-03   -1.5274    
   7  norm          9.8443        5.6615        .93677E-04   -1.5080    
   8  Prefactor     .10000E-03    24.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.130        62.153        .43043E-04   -1.3838    
  10  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0388        .96283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     69.714        129.77        .48080E-04   -1.4036    
  13  norm          .10000E-03    7.9494        .15569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    24.642        .20786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9347        8.5056        .82398E-03   -1.5221    
  17  Prefactor     17.921        39.515        .94607E-04   -1.4861    
  18  Prefactor     .10001E-03    43.825        .42912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.867        142.65        .56817E-04   -1.4294    
  20  Prefactor     .10000E-03    4.4044        .11567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.605        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.2200        .12638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97756        .28894        .26987E-03   -.93786    
  25  Prefactor     .90239        .22165        .21913E-03   -.96058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72791e-09
Minuit parameter uncertainties:
  1  68.2851
  2  0.000122132
  3  4.14732e-06
  4  0.000498255
  5  59.7502
  6  5.64749
  7  5.66177
  8  0.000598698
  9  62.199
  10  2.10326e-05
  11  1.28402e-06
  12  130.302
  13  7.35344e-08
  14  0.00136428
  15  0.000471938
  16  8.50729
  17  39.5723
  18  0.00099529
  19  143.648
  20  2.25649e-06
  21  0.000108775
  22  4.6467e-06
  23  5.03463e-07
  24  0.289401
  25  0.221874
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.971e+01  1.303e+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.024e-01  2.219e-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.776e-01  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210614/likelihoodResults_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.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) = 3206.50478784
delta logL = 1.05779083111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3206.31121766
delta logL = 1.25136101025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    173.32       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2776       1.0000          .0000       10.000    
     3 'Normalizat'    1.0000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88271       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=   3206.311     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      212 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     172.70        206.06       -.11534E-03    .31445E-03
   2  Index         1.2783        .55291       -.26064E-03   -.12853E-03
   3  Normalizat    1.0000        .24193       -.10799E-05    .67472E-03
   4  Prefactor     .88287        .19070        .48071E-05    .59018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 172.701
  Index      = 1.27826
  Normalizat = 1.00003
  Prefactor  = 0.882873
 **********
 **   18 **HESSE 
 **********

 FCN=   3206.311     FROM HESSE     STATUS=OK            27 CALLS      239 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     172.70        202.76        .15325E-03   -1.3072    
   2  Index         1.2783        .54383        .75025E-02   -.83956    
   3  Normalizat    1.0000        .27468        .26698E-03   -.93030    
   4  Prefactor     .88287        .21646        .22085E-03   -.96742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92076e-09
Minuit parameter uncertainties:
  1  203.586
  2  0.546266
  3  0.275069
  4  0.216669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210614': 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) = 3206.31120734
delta logL = 1.25137133313

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.727e+02  2.036e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.278e+00  5.463e-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:  8.829e-01  2.167e-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.000e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 1.28 +/- 0.55
Photon Flux (Free Index): 1.48e-08 +/- 1.82e-08
Energy Flux (Free Index): 9.71e-05 +/- 1.44e-04

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/210614/cmap_HighResolution_503712001_503971201_4FGL_J2209.8-5028_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='9.71e-05', dlogl='1.25e+00', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-28 06:37:59.009571', photon_index_error2='0.55', photon_index2='1.28', ts='0.43', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.44e-04', EG='0.98', time_epoch_completed='1632836279.01', return_code='0', job_id='210614', GAL2='0.88', EG2='1.00', return_code2='0', photon_flux_error2='1.82e-08', ts2='2.94', photon_index='2.37' WHERE bin_id='1020' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 210614: <4FGL_J2209.8-5028_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1020 332.474 -50.4702 503712001 503971201 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 :                                   542.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

