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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin723
RA = 332.474, Dec = -50.4702
tmin = 426729601, tmax = 426988801
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='208962', job_status='RUN', time_executed='2021-09-28 06:21:31.566018', time_epoch_executed='1632835291.57' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208962/ft1_4FGL_J2209.8-5028_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208962/ft2_4FGL_J2209.8-5028_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208962/ft1_4FGL_J2209.8-5028_daily_bin723.fits outfile=/scratch/kocevski/208962/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin723.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=426729601.0 tmax=426988801.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.55
user 5.31
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208962/ft1_filtered_4FGL_J2209.8-5028_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/208962/ft2_4FGL_J2209.8-5028_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/208962/ltcube_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.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/208962/ft2_4FGL_J2209.8-5028_daily_bin723.fits
.....................!
real 12.49
user 12.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208962/ft1_filtered_4FGL_J2209.8-5028_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/208962/ft2_4FGL_J2209.8-5028_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/208962/ltcube_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.fits outfile=/scratch/kocevski/208962/expmap_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.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/208962/ltcube_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.fits
.....................!
real 191.76
user 185.33
sys 5.96

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/208962/ft1_filtered_4FGL_J2209.8-5028_daily_bin723.fits scfile=/scratch/kocevski/208962/ft2_4FGL_J2209.8-5028_daily_bin723.fits outfile=/scratch/kocevski/208962/cmap_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208962/ft1_filtered_4FGL_J2209.8-5028_daily_bin723.fits scfile=/scratch/kocevski/208962/ft2_4FGL_J2209.8-5028_daily_bin723.fits outfile=/scratch/kocevski/208962/cmap_HighResolution_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1221       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50066E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    9.5174       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.991       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44517E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.177       1.0000         .10000E-03   10000.    
    23 'norm      '    11.886       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2976       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91901       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=   4713.637     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2962 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1196        30.701       -.11029E-06   -.28115E-05
   2  Prefactor     .10000E-03    24.625       -.14678E-06** at limit **
   3  Prefactor     5.0565        10.878        .59147E-06   -.18496E-04
   4  Prefactor     25.097        33.100       -.32486E-06    .76302E-05
   5  Prefactor     .10000E-03    14.657       -.15906E-06** at limit **
   6  Prefactor     .60356E-01    3.7966       -.59784E-06   -.18415E-04
   7  norm          9.5192        6.4153       -.51604E-07   -.17115E-04
   8  Prefactor     .10000E-03    7.5799       -.76587E-07** at limit **
   9  Prefactor     42.961        55.641        .32912E-05   -.32115E-04
  10  Prefactor     .10001E-03    9.1718       -.82313E-06** at limit **
  11  Prefactor     .10000E-03    2.3380       -.95087E-07** at limit **
  12  Prefactor     .10000E-03    53.244       -.12233E-06** at limit **
  13  norm          .10000E-03    4.7832       -.17510E-07** at limit **
  14  Prefactor     10.851        8.9873        .88781E-07   -.35214E-04
  15  Prefactor     15.673        101.11       -.13431E-05    .18016E-04
  16  Prefactor     .10000E-03    2.6667       -.25882E-08** at limit **
  17  Prefactor     .10000E-03    24.868        .19695E-06** at limit **
  18  Prefactor     13.592        18.840        .75989E-07   -.57604E-05
  19  Prefactor     .10000E-03    173.74        .37882E-06** at limit **
  20  Prefactor     8.6056        17.154        .18659E-06   -.21690E-04
  21  Prefactor     .10000E-03    24.029        .37962E-07** at limit **
  22  Prefactor     22.204        47.812       -.28779E-06    .78311E-05
  23  norm          11.887        21.285        .27993E-07   -.21978E-05
  24  Normalizat    1.2968        .26834        .90047E-06    .39763E-04
  25  Prefactor     .91920        .17721        .77620E-06    .33546E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11958
  Prefactor  = 0.0001
  Prefactor  = 5.05655
  Prefactor  = 25.0971
  Prefactor  = 0.0001
  Prefactor  = 0.0603563
  norm       = 9.51924
  Prefactor  = 0.0001
  Prefactor  = 42.9612
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8514
  Prefactor  = 15.6732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5915
  Prefactor  = 0.0001
  Prefactor  = 8.60559
  Prefactor  = 0.0001
  Prefactor  = 22.2037
  norm       = 11.8874
  Normalizat = 1.29679
  Prefactor  = 0.919203
 **********
 **   18 **HESSE 
 **********

 FCN=   4713.637     FROM HESSE     STATUS=OK           437 CALLS     3399 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1196        30.689        .17764E-03   -1.5255    
   2  Prefactor     .10000E-03    24.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0565        10.836        .17871E-03   -1.5258    
   4  Prefactor     25.097        33.097        .79981E-04   -1.4706    
   5  Prefactor     .10000E-03    14.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .60356E-01    12.411        .38947E-01   -1.5659    
   7  norm          9.5192        6.4149        .12982E-03   -1.5091    
   8  Prefactor     .10000E-03    7.6173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.961        55.422        .61141E-04   -1.4396    
  10  Prefactor     .10001E-03    31.414        .39607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3509        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.7878        .14665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.851        9.0406        .12165E-03   -1.5049    
  15  Prefactor     15.673        99.283        .10163E-03   -1.4916    
  16  Prefactor     .10000E-03    2.6685        .10949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.592        18.883        .10870E-03   -1.4970    
  19  Prefactor     .10000E-03    173.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6056        17.167        .13664E-03   -1.5121    
  21  Prefactor     .10000E-03    24.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.204        48.054        .85055E-04   -1.4765    
  23  norm          11.887        21.276        .11619E-03   -1.5018    
  24  Normalizat    1.2968        .32567        .29010E-03   -.83662    
  25  Prefactor     .91920        .20853        .23581E-03   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53141e-10
Minuit parameter uncertainties:
  1  25.0883
  2  6.91259e-06
  3  10.84
  4  33.1211
  5  1.95059e-06
  6  1.72989
  7  6.41537
  8  6.1631e-06
  9  55.489
  10  0.000875383
  11  1.92249e-06
  12  9.12853e-06
  13  1.97832e-06
  14  9.04173
  15  79.0877
  16  2.74644e-06
  17  3.15096e-05
  18  18.8914
  19  0.000165116
  20  17.1763
  21  1.20326e-05
  22  48.138
  23  21.2892
  24  0.326182
  25  0.208708
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.129e-06  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.192e-01  2.087e-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.297e+00  3.262e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208962/likelihoodResults_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.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) = 4713.63663726
delta logL = -8.93329370228e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4713.63654851
delta logL = -5.82158463658e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8831       1.0000          .0000       10.000    
     3 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91921       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=   4713.637     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10361E-03    18.760        .18142E-01** at limit **
   2  Index         2.7853        5.9744        .50000        .60638E-05
   3  Normalizat    1.2968        .45378E-02    .29011E-03   -.19594E-06
   4  Prefactor     .91920        .31862E-02    .23581E-03   -.47247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103614
  Index      = 2.7853
  Normalizat = 1.29679
  Prefactor  = 0.919204
 **********
 **   18 **HESSE 
 **********

 FCN=   4713.637     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10361E-03    173.51        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7853        5.9577        .50000       -.45887    
   3  Normalizat    1.2968        .13881E-01    .11604E-04   -.83662    
   4  Prefactor     .91920        .97466E-02    .94325E-05   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.87737e-09
Minuit parameter uncertainties:
  1  0.0502319
  2  509.288
  3  0.0138811
  4  0.0097466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208962': 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): 102
logL (Free Index) = 4713.63654835
delta logL = -4.19766365667e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.036e-04  5.023e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.785e+00  5.093e+02  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:  9.192e-01  9.747e-03  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.297e+00  1.388e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/208962/cmap_HighResolution_426729601_426988801_4FGL_J2209.8-5028_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-28 06:31:59.562064', job_id='208962', GAL2='0.92', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632835919.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-4.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='723' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 208962: <4FGL_J2209.8-5028_daily_bin723> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:20 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:21 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:20:21 2021
Terminated at Tue Sep 28 06:32:00 2021
Results reported at Tue Sep 28 06:32:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin723 332.474 -50.4702 426729601 426988801 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 :                                   625.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

