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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1314
RA = 332.474, Dec = -50.4702
tmin = 579916801, tmax = 580176001
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='211615', job_status='RUN', time_executed='2021-09-28 06:32:06.565000', time_epoch_executed='1632835926.57' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211615/ft1_4FGL_J2209.8-5028_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211615/ft1_4FGL_J2209.8-5028_daily_bin1314.fits outfile=/scratch/kocevski/211615/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1314.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=579916801.0 tmax=580176001.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.48
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211615/ft1_filtered_4FGL_J2209.8-5028_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/211615/ltcube_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.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/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits
.....................!
real 12.54
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211615/ft1_filtered_4FGL_J2209.8-5028_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/211615/ltcube_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.fits outfile=/scratch/kocevski/211615/expmap_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.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/211615/ltcube_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.fits
.....................!
real 190.84
user 185.52
sys 4.77

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/211615/ft1_filtered_4FGL_J2209.8-5028_daily_bin1314.fits scfile=/scratch/kocevski/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits outfile=/scratch/kocevski/211615/cmap_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211615/ft1_filtered_4FGL_J2209.8-5028_daily_bin1314.fits scfile=/scratch/kocevski/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits outfile=/scratch/kocevski/211615/cmap_HighResolution_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211615/ft1_filtered_4FGL_J2209.8-5028_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/211615/ft2_4FGL_J2209.8-5028_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211615/Model_4FGL_J2209.8-5028_daily_bin1314.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/211615/ft1_filtered_4FGL_J2209.8-5028_daily_bin1314.fits.....................!
real 54.41
user 53.04
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12539E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.471       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49933E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .44207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5442       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.758       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1179       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4705       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80481       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91951       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=   7146.891     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2950 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8663       -.14100E-06** at limit **
   2  Prefactor     .10000E-03    20.719       -.22932E-06** at limit **
   3  Prefactor     6.3131        7.0608        .76687E-06    .66412E-03
   4  Prefactor     8.3570        27.083        .12612E-05    .16475E-03
   5  Prefactor     .10000E-03    33.156       -.77195E-06** at limit **
   6  Prefactor     .10000E-03    1.4697        .51917E-07** at limit **
   7  norm          10.473        4.6213        .59378E-07    .43631E-03
   8  Prefactor     .10000E-03    10.170        .10557E-06** at limit **
   9  Prefactor     33.110        21.670        .14028E-06    .51935E-04
  10  Prefactor     .32207E-02    5.0506       -.14573E-05    .30774E-03
  11  Prefactor     9.2656        4.4534        .98213E-07    .23451E-03
  12  Prefactor     .10000E-03    37.687       -.69017E-07** at limit **
  13  norm          .45436        13.417        .75792E-05   -.46415E-03
  14  Prefactor     7.5442        3.3015        .16459E-06    .26386E-03
  15  Prefactor     9.2499        19.279        .20521E-06    .24206E-04
  16  Prefactor     .10000E-03    1.8035        .62223E-06** at limit **
  17  Prefactor     26.743        26.376       -.12475E-05    .24851E-04
  18  Prefactor     3.5460        10.111        .29080E-05    .46632E-03
  19  Prefactor     .10000E-03    38.365        .70773E-07** at limit **
  20  Prefactor     .10000E-03    1.4417       -.56675E-07** at limit **
  21  Prefactor     3.0854        61.471        .52367E-05    .15886E-03
  22  Prefactor     3.4700        7.2000        .84341E-06    .26427E-03
  23  norm          .10000E-03    1.6827       -.39355E-08** at limit **
  24  Normalizat    .80477        .16101       -.26213E-05   -.13228E-04
  25  Prefactor     .91960        .12511        .13708E-05    .28877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.31311
  Prefactor  = 8.35696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.473
  Prefactor  = 0.0001
  Prefactor  = 33.1102
  Prefactor  = 0.00322067
  Prefactor  = 9.26561
  Prefactor  = 0.0001
  norm       = 0.454358
  Prefactor  = 7.5442
  Prefactor  = 9.24986
  Prefactor  = 0.0001
  Prefactor  = 26.7434
  Prefactor  = 3.54602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0854
  Prefactor  = 3.47002
  norm       = 0.0001
  Normalizat = 0.804771
  Prefactor  = 0.919605
 **********
 **   18 **HESSE 
 **********

 FCN=   7146.891     FROM HESSE     STATUS=OK           437 CALLS     3387 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3131        7.0980        .15976E-03   -1.5205    
   4  Prefactor     8.3570        27.020        .13850E-03   -1.5130    
   5  Prefactor     .10000E-03    33.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6913        .19691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.473        4.6090        .11011E-03   -1.5061    
   8  Prefactor     .10000E-03    10.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.110        21.671        .69652E-04   -1.4556    
  10  Prefactor     .32207E-02    5.3243        .52645E-01   -1.5697    
  11  Prefactor     9.2656        4.4603        .11551E-03   -1.5099    
  12  Prefactor     .10000E-03    37.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45436        15.649        .35712E-02   -1.5573    
  14  Prefactor     7.5442        3.3172        .96505E-04   -1.5159    
  15  Prefactor     9.2499        19.272        .13177E-03   -1.5100    
  16  Prefactor     .10000E-03    1.8474        .11153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.743        26.547        .77445E-04   -1.4673    
  18  Prefactor     3.5460        10.396        .21475E-03   -1.5331    
  19  Prefactor     .10000E-03    38.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4446        .99129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0854        63.279        .22962E-03   -1.5357    
  22  Prefactor     3.4700        7.2215        .21707E-03   -1.5335    
  23  norm          .10000E-03    1.6830        .10710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80477        .18810        .26165E-03   -.99892    
  25  Prefactor     .91960        .14628        .20087E-03   -.95459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6088e-09
Minuit parameter uncertainties:
  1  2.37268e-05
  2  5.58926e-05
  3  7.09896
  4  27.0595
  5  0.000209997
  6  1.33461e-05
  7  4.60913
  8  2.67547e-05
  9  21.6761
  10  0.257825
  11  4.46042
  12  6.53249e-05
  13  5.3339
  14  3.3173
  15  19.285
  16  4.77675e-05
  17  26.5587
  18  10.4015
  19  2.58743e-05
  20  3.50488e-06
  21  27.9791
  22  7.2233
  23  1.02199e-07
  24  0.188248
  25  0.146341
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.532e-05  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.196e-01  1.463e-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:  8.048e-01  1.882e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211615/likelihoodResults_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.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) = 7146.89071862
delta logL = -0.000126297919451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7146.89059302
delta logL = -6.98089024809e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5926       1.0000          .0000       10.000    
     3 'Normalizat'    .80477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91960       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=   7146.891     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10442E-03    13.996        .18142E-01** at limit **
   2  Index         2.4990        7.0916        .50000        .14729E-04
   3  Normalizat    .80477        .26274E-02    .26165E-03   -.98631E-05
   4  Prefactor     .91960        .21565E-02    .20086E-03   -.16980E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104421
  Index      = 2.49896
  Normalizat = 0.804773
  Prefactor  = 0.919603
 **********
 **   18 **HESSE 
 **********

 FCN=   7146.891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10442E-03    79.647        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4990        7.6044        .50000       -.52384    
   3  Normalizat    .80477        .62800E-02    .10466E-04   -.99892    
   4  Prefactor     .91960        .51544E-02    .80346E-05   -.95459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.01225e-10
Minuit parameter uncertainties:
  1  0.0375795
  2  185.677
  3  0.00628003
  4  0.00515435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211615': 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) = 7146.89059275
delta logL = -4.27788108937e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.044e-04  3.758e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.499e+00  1.857e+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.196e-01  5.154e-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:  8.048e-01  6.280e-03  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/211615/cmap_HighResolution_579916801_580176001_4FGL_J2209.8-5028_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-28 06:45:30.420341', job_id='211615', GAL2='0.92', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632836730.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-4.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1314' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:45:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 211615: <4FGL_J2209.8-5028_daily_bin1314> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1314> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:17 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:18 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:18 2021
Terminated at Tue Sep 28 06:45:31 2021
Results reported at Tue Sep 28 06:45:31 2021

Your job looked like:

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

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

