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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1293
RA = 332.474, Dec = -50.4702
tmin = 574473601, tmax = 574732801
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='211015', job_status='RUN', time_executed='2021-09-28 06:27:21.842696', time_epoch_executed='1632835641.84' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211015

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211015/ft1_4FGL_J2209.8-5028_daily_bin1293.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211015/ft1_4FGL_J2209.8-5028_daily_bin1293.fits outfile=/scratch/kocevski/211015/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1293.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=574473601.0 tmax=574732801.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 4.05
user 3.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.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/211015/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1293.fits evtable="EVENTS" outfile="/scratch/kocevski/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.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/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.fits" evtable="EVENTS" scfile=/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits sctable="SC_DATA" outfile=/scratch/kocevski/211015/ltcube_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.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/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits
.....................!
real 11.79
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits sctable="SC_DATA" expcube=/scratch/kocevski/211015/ltcube_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.fits outfile=/scratch/kocevski/211015/expmap_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.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/211015/ltcube_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.fits
.....................!
real 190.83
user 185.37
sys 5.16

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/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.fits scfile=/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits outfile=/scratch/kocevski/211015/cmap_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.fits scfile=/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits outfile=/scratch/kocevski/211015/cmap_HighResolution_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.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/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/211015/ft2_4FGL_J2209.8-5028_daily_bin1293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211015/Model_4FGL_J2209.8-5028_daily_bin1293.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/211015/ft1_filtered_4FGL_J2209.8-5028_daily_bin1293.fits.....................!
real 52.26
user 50.91
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22489E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8973       1.0000         .10000E-03   10000.    
     7 'norm      '    17.040       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14952E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13098E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40417E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.411       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0102       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61682       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2724       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=   7117.024     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2991 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.262       -.11531E-05** at limit **
   2  Prefactor     .10000E-03    50.483        .69850E-05** at limit **
   3  Prefactor     22.563        9.9890       -.19783E-05    .29244E-04
   4  Prefactor     .10000E-03    7.9005       -.93436E-07** at limit **
   5  Prefactor     .10162E-03    21.600        .12299E-05** at limit **
   6  Prefactor     1.9028        5.1437       -.28029E-05   -.11161E-02
   7  norm          17.040        5.9149        .33783E-06    .13747E-04
   8  Prefactor     .10000E-03    3.8719       -.65137E-06** at limit **
   9  Prefactor     44.778        35.661        .18770E-04    .11964E-04
  10  Prefactor     .10000E-03    3.9223        .11361E-06** at limit **
  11  Prefactor     10.384        5.0557       -.39085E-06   -.30139E-03
  12  Prefactor     .10000E-03    48.476       -.10479E-04** at limit **
  13  norm          .10006E-03    3.7149        .42264E-06** at limit **
  14  Prefactor     13.674        4.5028        .78116E-06   -.68290E-04
  15  Prefactor     10.406        16.054        .37611E-06   -.79316E-05
  16  Prefactor     8.1151        5.9120        .14051E-05   -.16405E-03
  17  Prefactor     .10000E-03    13.202        .99647E-06** at limit **
  18  Prefactor     .10000E-03    3.6840       -.68177E-07** at limit **
  19  Prefactor     .10000E-03    24.466        .38883E-06** at limit **
  20  Prefactor     .99292        3.9639        .11992E-06   -.53829E-03
  21  Prefactor     .14673        18.829       -.10565E-05   -.11109E-05
  22  Prefactor     .10000E-03    4.5700       -.12839E-06** at limit **
  23  norm          .10000E-03    1.8053        .14188E-07** at limit **
  24  Normalizat    .61737        .19077       -.48836E-05   -.64879E-05
  25  Prefactor     1.2721        .15008        .11339E-05   -.20323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5627
  Prefactor  = 0.0001
  Prefactor  = 0.000101623
  Prefactor  = 1.90277
  norm       = 17.04
  Prefactor  = 0.0001
  Prefactor  = 44.7779
  Prefactor  = 0.0001
  Prefactor  = 10.384
  Prefactor  = 0.0001
  norm       = 0.000100058
  Prefactor  = 13.6745
  Prefactor  = 10.4063
  Prefactor  = 8.11511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.992916
  Prefactor  = 0.146731
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.617374
  Prefactor  = 1.27213
 **********
 **   18 **HESSE 
 **********

 FCN=   7117.024     FROM HESSE     STATUS=OK           453 CALLS     3444 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.563        9.9334        .84293E-04   -1.4758    
   4  Prefactor     .10000E-03    7.9061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10162E-03    25.034        .10502       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9028        5.2342        .29569E-03   -1.5432    
   7  norm          17.040        5.9139        .97026E-04   -1.4882    
   8  Prefactor     .10000E-03    3.8758        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.778        35.393        .59901E-04   -1.4369    
  10  Prefactor     .10000E-03    3.9499        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.384        5.0659        .12352E-03   -1.5063    
  12  Prefactor     .10000E-03    48.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10006E-03    3.6564        .59258E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.674        4.4983        .97573E-04   -1.4968    
  15  Prefactor     10.406        16.049        .12418E-03   -1.5063    
  16  Prefactor     8.1151        5.9105        .14070E-03   -1.5138    
  17  Prefactor     .10000E-03    13.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6944        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .99292        13.310        .32047E-02   -1.5509    
  21  Prefactor     .14673        20.208        .12956       -1.5631    
  22  Prefactor     .10000E-03    4.5904        .17613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8054        .11070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .61737        .20961        .33558E-03   -1.0725    
  25  Prefactor     1.2721        .16729        .20251E-03   -.84140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5255e-09
Minuit parameter uncertainties:
  1  3.46037e-05
  2  0.000101483
  3  9.93417
  4  4.90551e-06
  5  0.0127532
  6  5.2355
  7  5.91415
  8  3.97755e-07
  9  35.41
  10  5.11603e-05
  11  5.0661
  12  0.000105325
  13  0.000922349
  14  4.49838
  15  16.0553
  16  5.91093
  17  1.55965e-05
  18  2.9745e-06
  19  3.48219e-06
  20  7.27234
  21  3.44389
  22  5.36814e-06
  23  1.96066e-07
  24  0.209877
  25  0.167364
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.053e-04  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.272e+00  1.674e-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:  6.174e-01  2.099e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211015/likelihoodResults_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.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) = 7117.02456219
delta logL = -9.80948834695e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7117.02446417
delta logL = -6.89924490871e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4332       1.0000          .0000       10.000    
     3 'Normalizat'    .61737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2721       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=   7117.024     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.054        .90712E-02** at limit **
   2  Index         2.4080        6.2009        .50000        .46563E-05
   3  Normalizat    .61737        .17462        .75799E-01    .41864E-04
   4  Prefactor     1.2721        .14724        .33114E-01    .31820E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40804
  Normalizat = 0.617372
  Prefactor  = 1.27213
 **********
 **   18 **HESSE 
 **********

 FCN=   7117.024     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4080        6.2040        .50000       -.54497    
   3  Normalizat    .61737        .19294        .33559E-03   -1.0725    
   4  Prefactor     1.2721        .16309        .20251E-03   -.84140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3272e-11
Minuit parameter uncertainties:
  1  0.000201337
  2  4.35583
  3  0.193153
  4  0.163159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211015': 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) = 7117.02446414
delta logL = -3.82779035135e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.013e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.408e+00  4.356e+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.272e+00  1.632e-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:  6.174e-01  1.932e-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/211015/cmap_HighResolution_574473601_574732801_4FGL_J2209.8-5028_daily_bin1293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-28 06:40:37.449559', job_id='211015', GAL2='1.27', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632836437.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='-3.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1293' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 211015: <4FGL_J2209.8-5028_daily_bin1293> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1293 332.474 -50.4702 574473601 574732801 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 :                                   793.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             275.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

