/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 44 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin135
RA = 332.474, Dec = -50.4702
tmin = 274320001, tmax = 274579201
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='205876', job_status='RUN', time_executed='2021-09-28 06:11:30.291971', time_epoch_executed='1632834690.29' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205876

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205876/ft1_4FGL_J2209.8-5028_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205876/ft1_4FGL_J2209.8-5028_daily_bin135.fits outfile=/scratch/kocevski/205876/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin135.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=274320001.0 tmax=274579201.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.69
user 3.45
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205876/ft1_filtered_4FGL_J2209.8-5028_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/205876/ltcube_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.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/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits
.....................!
real 11.89
user 11.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205876/ft1_filtered_4FGL_J2209.8-5028_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/205876/ltcube_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.fits outfile=/scratch/kocevski/205876/expmap_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.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/205876/ltcube_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.fits
.....................!
real 190.55
user 185.38
sys 4.74

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/205876/ft1_filtered_4FGL_J2209.8-5028_daily_bin135.fits scfile=/scratch/kocevski/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits outfile=/scratch/kocevski/205876/cmap_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205876/ft1_filtered_4FGL_J2209.8-5028_daily_bin135.fits scfile=/scratch/kocevski/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits outfile=/scratch/kocevski/205876/cmap_HighResolution_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205876/ft1_filtered_4FGL_J2209.8-5028_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/205876/ft2_4FGL_J2209.8-5028_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205876/Model_4FGL_J2209.8-5028_daily_bin135.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/205876/ft1_filtered_4FGL_J2209.8-5028_daily_bin135.fits.....................!
real 47.68
user 46.35
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    113.14       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7753       1.0000         .10000E-03   10000.    
     7 'norm      '    9.6529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.750       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0569       1.0000         .10000E-03   10000.    
    12 'Prefactor '    115.71       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11696E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    85.870       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.851       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57451       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4056       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=   6196.278     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2895 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.201        24.192       -.13649E-06   -.38608E-04
   2  Prefactor     .10000E-03    24.284       -.80019E-07** at limit **
   3  Prefactor     2.2502        7.0644        .79138E-05   -.17598E-03
   4  Prefactor     40.698        29.605       -.73031E-06   -.15583E-03
   5  Prefactor     113.14        38.795        .15637E-06   -.16853E-03
   6  Prefactor     1.7746        4.7689       -.21014E-06   -.10408E-03
   7  norm          9.6530        5.6791       -.84724E-07    .26971E-04
   8  Prefactor     12.748        12.763       -.34229E-07   -.90086E-05
   9  Prefactor     22.691        24.012        .25136E-07   -.11106E-03
  10  Prefactor     .10000E-03    11.287        .81774E-06** at limit **
  11  Prefactor     6.0562        4.0284        .13805E-06    .65629E-04
  12  Prefactor     115.72        116.08        .53297E-06    .56775E-04
  13  norm          .10000E-03    2.4187        .11456E-06** at limit **
  14  Prefactor     .10000E-03    2.3356        .40914E-06** at limit **
  15  Prefactor     29.144        67.012       -.23999E-07    .27009E-04
  16  Prefactor     7.8503        8.1933        .12965E-05    .23704E-03
  17  Prefactor     7.1861        89.789       -.13070E-04    .30933E-04
  18  Prefactor     15.061        18.970        .33077E-05    .27016E-03
  19  Prefactor     85.862        97.224        .57210E-06   -.66805E-05
  20  Prefactor     17.852        11.432        .10158E-06   -.49883E-04
  21  Prefactor     .10000E-03    37.776        .64806E-06** at limit **
  22  Prefactor     .10000E-03    15.496        .63711E-08** at limit **
  23  norm          .10000E-03    5.7088       -.11697E-07** at limit **
  24  Normalizat    .57419        .23832       -.37358E-05   -.30844E-04
  25  Prefactor     1.4058        .17859        .12891E-05    .20958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2011
  Prefactor  = 0.0001
  Prefactor  = 2.25018
  Prefactor  = 40.6983
  Prefactor  = 113.136
  Prefactor  = 1.77462
  norm       = 9.65305
  Prefactor  = 12.7481
  Prefactor  = 22.6915
  Prefactor  = 0.0001
  Prefactor  = 6.05624
  Prefactor  = 115.723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1439
  Prefactor  = 7.8503
  Prefactor  = 7.18613
  Prefactor  = 15.0605
  Prefactor  = 85.8616
  Prefactor  = 17.8522
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.574194
  Prefactor  = 1.40581
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.278     FROM HESSE     STATUS=OK           427 CALLS     3322 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.201        24.215        .10272E-03   -1.4928    
   2  Prefactor     .10000E-03    24.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2502        7.1098        .13693E-02   -1.5408    
   4  Prefactor     40.698        29.596        .62827E-04   -1.4431    
   5  Prefactor     113.14        38.718        .37820E-04   -1.3577    
   6  Prefactor     1.7746        4.7369        .26360E-03   -1.5442    
   7  norm          9.6530        5.6781        .12898E-03   -1.5086    
   8  Prefactor     12.748        12.763        .11218E-03   -1.4994    
   9  Prefactor     22.691        24.003        .42036E-03   -1.4755    
  10  Prefactor     .10000E-03    11.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0562        4.0227        .12318E-03   -1.5216    
  12  Prefactor     115.72        115.43        .37403E-04   -1.3552    
  13  norm          .10000E-03    2.4195        .11957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8668        .22526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.144        65.992        .74228E-04   -1.4628    
  16  Prefactor     7.8503        8.1870        .14312E-03   -1.5148    
  17  Prefactor     7.1861        89.796        .15007E-03   -1.5172    
  18  Prefactor     15.061        18.993        .10321E-03   -1.4932    
  19  Prefactor     85.862        97.203        .21676E-03   -1.3852    
  20  Prefactor     17.852        11.418        .94796E-04   -1.4863    
  21  Prefactor     .10000E-03    37.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.7300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .57419        .26281        .38353E-03   -1.0909    
  25  Prefactor     1.4058        .20298        .21041E-03   -.80213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46718e-10
Minuit parameter uncertainties:
  1  24.2302
  2  0.000134994
  3  7.11244
  4  29.6065
  5  38.727
  6  4.73787
  7  5.67837
  8  12.7652
  9  24.0127
  10  0.000120261
  11  4.02292
  12  115.654
  13  9.4814e-06
  14  5.88775e-05
  15  66.158
  16  8.18815
  17  50.8994
  18  19.0006
  19  97.384
  20  11.4196
  21  0.000378455
  22  5.38836e-05
  23  1.92963e-06
  24  0.263378
  25  0.203101
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.157e+02  1.157e+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.406e+00  2.031e-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.742e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/205876/likelihoodResults_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.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) = 6196.26959872
delta logL = 0.00862790230167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6196.26125432
delta logL = 0.0169723029712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    97.177       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5134       1.0000          .0000       10.000    
     3 'Normalizat'    .56875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4087       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=   6196.261     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     97.177        5891.1        .10194E-02    .18949E-03
   2  Index         2.5135        6.2529        .12552        .13091E-03
   3  Normalizat    .56859        .86700E-01    .86980E-01    .37677E-04
   4  Prefactor     1.4088        .63633E-01    .47557E-01   -.27256E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 97.1775
  Index      = 2.51346
  Normalizat = 0.568586
  Prefactor  = 1.40882
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.261     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     97.177        164.54        .40776E-04   -1.3733    
   2  Index         2.5135        .90733        .72298E-02   -.52049    
   3  Normalizat    .56859        .24032        .38530E-03   -1.0933    
   4  Prefactor     1.4088        .19718        .21022E-03   -.80126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41902e-09
Minuit parameter uncertainties:
  1  165.319
  2  0.914082
  3  0.240764
  4  0.197288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205876': 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) = 6196.26125407
delta logL = 0.016972556069

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  9.718e+01  1.653e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.513e+00  9.141e-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.409e+00  1.973e-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.686e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.51 +/- 0.91
Photon Flux (Free Index): 4.48e-08 +/- 4.64e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.47e-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/205876/cmap_HighResolution_274320001_274579201_4FGL_J2209.8-5028_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-03', comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='1.28e-05', photon_flux_error='4.06e-08', dlogl='1.70e-02', energy_flux='1.39e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-28 06:23:58.214964', photon_index_error2='0.91', photon_index2='2.51', ts='1.36', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.47e-05', EG='0.57', time_epoch_completed='1632835438.22', return_code='0', job_id='205876', GAL2='1.41', EG2='0.57', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.64e-08', ts2='1.40', photon_index='2.37' WHERE bin_id='135' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:23:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 205876: <4FGL_J2209.8-5028_daily_bin135> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin135> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:32 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:33 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:10:33 2021
Terminated at Tue Sep 28 06:23:58 2021
Results reported at Tue Sep 28 06:23:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin135 332.474 -50.4702 274320001 274579201 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 :                                   719.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

