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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1599
RA = 332.474, Dec = -50.4702
tmin = 653788801, tmax = 654048001
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='212035', job_status='RUN', time_executed='2021-09-28 06:30:58.349774', time_epoch_executed='1632835858.35' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212035

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212035/ft1_4FGL_J2209.8-5028_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212035/ft1_4FGL_J2209.8-5028_daily_bin1599.fits outfile=/scratch/kocevski/212035/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1599.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=653788801.0 tmax=654048001.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.86
user 3.66
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212035/ft1_filtered_4FGL_J2209.8-5028_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/212035/ltcube_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.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/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits
.....................!
real 11.74
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212035/ft1_filtered_4FGL_J2209.8-5028_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/212035/ltcube_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.fits outfile=/scratch/kocevski/212035/expmap_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.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/212035/ltcube_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.fits
.....................!
real 191.55
user 185.62
sys 5.61

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/212035/ft1_filtered_4FGL_J2209.8-5028_daily_bin1599.fits scfile=/scratch/kocevski/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits outfile=/scratch/kocevski/212035/cmap_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212035/ft1_filtered_4FGL_J2209.8-5028_daily_bin1599.fits scfile=/scratch/kocevski/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits outfile=/scratch/kocevski/212035/cmap_HighResolution_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212035/ft1_filtered_4FGL_J2209.8-5028_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/212035/ft2_4FGL_J2209.8-5028_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212035/Model_4FGL_J2209.8-5028_daily_bin1599.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/212035/ft1_filtered_4FGL_J2209.8-5028_daily_bin1599.fits.....................!
real 52.84
user 51.56
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42477       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7712       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61698E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11508E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.353       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12384E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0377       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59660       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1659       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=   7373.497     FROM MIGRAD    STATUS=CONVERGED   1091 CALLS     3877 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.377        .18142E-02** at limit **
   2  Prefactor     .10000E-03    51.743        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.3726        .36285E-02** at limit **
   4  Prefactor     .10000E-03    5.8692        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.886        .18142E-02** at limit **
   6  Prefactor     .42511        1.8488        .22998E-03   -.11577E-03
   7  norm          2.8566        2.6611        .13136E-03   -.50544E-04
   8  Prefactor     .10000E-03    9.8187        .18142E-02** at limit **
   9  Prefactor     59.079        35.199        .52195E-04   -.14755E-03
  10  Prefactor     12.255        7.9410        .11440E-03   -.84747E-03
  11  Prefactor     1.7719        2.9175        .17985E-03   -.22504E-04
  12  Prefactor     .10018E-03    57.403        .19761    ** at limit **
  13  norm          1.0078        3.2149        .27327E-03   -.58992E-04
  14  Prefactor     3.3086        3.2558        .14335E-03   -.23158E-03
  15  Prefactor     9.3604        33.107        .13102E-03   -.35403E-04
  16  Prefactor     .10000E-03    2.1892        .12328E-02** at limit **
  17  Prefactor     .10000E-03    13.728        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.5333        .18142E-02** at limit **
  19  Prefactor     49.218        68.961        .28541E-03   -.86357E-04
  20  Prefactor     .10001E-03    27.698        .32889E-02** at limit **
  21  Prefactor     4.0327        61.936        .20068E-03    .46398E-04
  22  Prefactor     .10000E-03    3.4887        .15652E-02** at limit **
  23  norm          .10000E-03    1.9737        .11780E-02** at limit **
  24  Normalizat    .59658        .17832        .29684E-03   -.91420E-04
  25  Prefactor     1.1659        .14572        .18381E-03   -.79658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.425108
  norm       = 2.8566
  Prefactor  = 0.0001
  Prefactor  = 59.0794
  Prefactor  = 12.2549
  Prefactor  = 1.77194
  Prefactor  = 0.000100176
  norm       = 1.00777
  Prefactor  = 3.3086
  Prefactor  = 9.36036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2178
  Prefactor  = 0.000100011
  Prefactor  = 4.03268
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.596582
  Prefactor  = 1.16592
 **********
 **   18 **HESSE 
 **********

 FCN=   7373.497     FROM HESSE     STATUS=OK           411 CALLS     4288 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4289        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42511        1.8483        .91992E-05   -1.5578    
   7  norm          2.8566        2.6611        .52543E-05   -1.5370    
   8  Prefactor     .10000E-03    9.8273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.079        35.197        .10439E-04   -1.4169    
  10  Prefactor     12.255        7.9399        .45761E-05   -1.5008    
  11  Prefactor     1.7719        2.9171        .71939E-05   -1.5442    
  12  Prefactor     .10018E-03    58.702        .19391       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0078        3.2148        .10931E-04   -1.5507    
  14  Prefactor     3.3086        3.2555        .57338E-05   -1.5344    
  15  Prefactor     9.3604        33.099        .52407E-05   -1.5096    
  16  Prefactor     .10000E-03    2.1896        .24657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.218        68.956        .11416E-04   -1.4304    
  20  Prefactor     .10001E-03    28.516        .13156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0327        61.939        .80270E-05   -1.5306    
  22  Prefactor     .10000E-03    3.4889        .31303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9737        .23561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .59658        .17837        .11874E-04   -1.0813    
  25  Prefactor     1.1659        .14580        .36763E-04   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04996e-09
Minuit parameter uncertainties:
  1  8.17769e-05
  2  0.000238951
  3  0.000120853
  4  1.97106e-05
  5  0.000171015
  6  1.77272
  7  2.66118
  8  7.03379e-05
  9  35.2099
  10  7.9406
  11  2.91729
  12  0.00644263
  13  3.2154
  14  3.25564
  15  33.1642
  16  3.94052e-05
  17  0.000115066
  18  3.23011e-06
  19  69.0684
  20  0.00111605
  21  31.6476
  22  1.11554e-05
  23  1.16864e-06
  24  0.17854
  25  0.145854
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.002e-04  6.443e-03  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.166e+00  1.459e-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:  5.966e-01  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212035/likelihoodResults_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7373.49712205
delta logL = -1.432332283e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7373.49712205
delta logL = -1.43217948789e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .59658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1659       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7373.493     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      368 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3695        134.81        .18142E-02    .72399E-04
   2  Index         2.9402        6.4681        .64255E-02    .73940E-05
   3  Normalizat    .59424        .17174        .29737E-03   -.12272E-04
   4  Prefactor     1.1666        .14421        .18376E-03   -.27903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36953
  Index      = 2.94021
  Normalizat = 0.594239
  Prefactor  = 1.16661
 **********
 **   18 **HESSE 
 **********

 FCN=   7373.493     FROM HESSE     STATUS=OK            27 CALLS      395 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3695        102.54        .36285E-03   -1.5400    
   2  Index         2.9402        6.4545        .12851E-02   -.42460    
   3  Normalizat    .59424        .17192        .11895E-04   -1.0823    
   4  Prefactor     1.1666        .14433        .73502E-05   -.87365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60492e-13
Minuit parameter uncertainties:
  1  31.2324
  2  4.71218
  3  0.172076
  4  0.144376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212035': 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) = 7373.49274986
delta logL = 0.00437075780792

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.370e+00  3.123e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.940e+00  4.712e+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:  1.167e+00  1.444e-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:  5.942e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/212035/cmap_HighResolution_653788801_654048001_4FGL_J2209.8-5028_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-28 06:46:03.019642', job_id='212035', GAL2='1.17', fit_tolerance='1e-08', EG2='0.59', EG='0.60', time_epoch_completed='1632836763.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.37e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1599' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:46:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 212035: <4FGL_J2209.8-5028_daily_bin1599> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1599> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:47 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:49 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:49 2021
Terminated at Tue Sep 28 06:46:03 2021
Results reported at Tue Sep 28 06:46:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1599 332.474 -50.4702 653788801 654048001 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 :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

