/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7356
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1296
RA = 332.474, Dec = -50.4702
tmin = 575251201, tmax = 575510401
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='211018', job_status='RUN', time_executed='2021-09-28 06:26:15.183130', time_epoch_executed='1632835575.18' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211018/ft1_4FGL_J2209.8-5028_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211018/ft1_4FGL_J2209.8-5028_daily_bin1296.fits outfile=/scratch/kocevski/211018/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1296.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=575251201.0 tmax=575510401.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.31
user 5.06
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211018/ft1_filtered_4FGL_J2209.8-5028_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/211018/ltcube_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.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/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits
.....................!
real 11.50
user 11.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211018/ft1_filtered_4FGL_J2209.8-5028_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/211018/ltcube_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.fits outfile=/scratch/kocevski/211018/expmap_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.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/211018/ltcube_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.fits
.....................!
real 190.63
user 185.51
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/211018/ft1_filtered_4FGL_J2209.8-5028_daily_bin1296.fits scfile=/scratch/kocevski/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits outfile=/scratch/kocevski/211018/cmap_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211018/ft1_filtered_4FGL_J2209.8-5028_daily_bin1296.fits scfile=/scratch/kocevski/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits outfile=/scratch/kocevski/211018/cmap_HighResolution_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211018/ft1_filtered_4FGL_J2209.8-5028_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/211018/ft2_4FGL_J2209.8-5028_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211018/Model_4FGL_J2209.8-5028_daily_bin1296.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/211018/ft1_filtered_4FGL_J2209.8-5028_daily_bin1296.fits.....................!
real 57.58
user 56.17
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38944E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2790       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.340       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.7341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31983E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6512       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17270E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2985       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.048       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96275       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=   7915.504     FROM MIGRAD    STATUS=CONVERGED   1045 CALLS     3369 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.103        .11057    ** at limit **
   2  Prefactor     .10000E-03    45.112        .18142E-02** at limit **
   3  Prefactor     2.2184        5.8442        .27609E-03    .20094E-04
   4  Prefactor     1.2718        37.916        .19630E-02    .33538E-04
   5  Prefactor     16.343        21.087        .49541E-03    .13156E-03
   6  Prefactor     .10000E-03    3.4095        .31492E-03** at limit **
   7  norm          4.7337        2.8788        .11344E-03   -.20746E-04
   8  Prefactor     5.0297        10.594        .17930E-03    .76089E-06
   9  Prefactor     .95476        183.06        .77095E-02   -.41355E-04
  10  Prefactor     6.2348        6.5181        .16067E-03   -.13656E-04
  11  Prefactor     .10000E-03    7.9473        .20857E-02** at limit **
  12  Prefactor     .10000E-03    103.24        .18142E-02** at limit **
  13  norm          .10000E-03    1.7526        .11497E-02** at limit **
  14  Prefactor     3.6509        2.5953        .11613E-03    .29075E-04
  15  Prefactor     .10000E-03    9.0301        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.1284        .92021E-03** at limit **
  17  Prefactor     .10000E-03    36.020        .18142E-02** at limit **
  18  Prefactor     3.2847        8.8397        .22292E-03   -.25805E-03
  19  Prefactor     31.665        60.480        .71264E-04   -.10561E-04
  20  Prefactor     .10000E-03    2.3728        .13336E-02** at limit **
  21  Prefactor     28.081        24.971        .75646E-04   -.49595E-05
  22  Prefactor     .10000E-03    15.321        .18142E-02** at limit **
  23  norm          .10000E-03    1.9611        .12166E-02** at limit **
  24  Normalizat    1.0529        .17937        .24791E-03    .42959E-03
  25  Prefactor     .96288        .14569        .21237E-03    .62476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.21845
  Prefactor  = 1.27177
  Prefactor  = 16.3434
  Prefactor  = 0.0001
  norm       = 4.7337
  Prefactor  = 5.0297
  Prefactor  = 0.954764
  Prefactor  = 6.23478
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 3.65092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.2847
  Prefactor  = 31.6646
  Prefactor  = 0.0001
  Prefactor  = 28.0805
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05286
  Prefactor  = 0.96288
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.504     FROM HESSE     STATUS=OK           415 CALLS     3784 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.934        .11426       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2184        5.8423        .11044E-04   -1.5410    
   4  Prefactor     1.2718        37.831        .78522E-04   -1.5482    
   5  Prefactor     16.343        21.082        .19816E-04   -1.4899    
   6  Prefactor     .10000E-03    3.4096        .62984E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7337        2.8775        .45375E-05   -1.5273    
   8  Prefactor     5.0297        10.591        .71718E-05   -1.5259    
   9  Prefactor     .95476        182.37        .30838E-03   -1.5513    
  10  Prefactor     6.2348        6.4538        .64268E-05   -1.5209    
  11  Prefactor     .10000E-03    8.0018        .41713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    103.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7527        .22993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6509        2.5952        .46452E-05   -1.5326    
  15  Prefactor     .10000E-03    9.0302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1284        .18404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2847        8.8358        .89169E-05   -1.5345    
  19  Prefactor     31.665        60.470        .14253E-04   -1.4582    
  20  Prefactor     .10000E-03    2.3731        .26672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.081        24.970        .30258E-05   -1.4648    
  22  Prefactor     .10000E-03    15.334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9611        .24332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0529        .17929        .49583E-04   -.91280    
  25  Prefactor     .96288        .14575        .42474E-04   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26431e-09
Minuit parameter uncertainties:
  1  0.000305313
  2  6.98385e-05
  3  5.84378
  4  13.8817
  5  21.0912
  6  4.06286e-05
  7  2.87755
  8  10.5949
  9  26.472
  10  6.45456
  11  0.000137029
  12  0.00110987
  13  1.12861e-06
  14  2.59527
  15  5.86688e-06
  16  4.66386e-06
  17  0.000607252
  18  8.83932
  19  60.5869
  20  5.90941e-06
  21  24.9796
  22  8.24073e-05
  23  9.26841e-07
  24  0.179394
  25  0.145809
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.110e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.629e-01  1.458e-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.053e+00  1.794e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211018/likelihoodResults_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.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) = 7915.5043241
delta logL = -4.60311939605e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7915.50427812
delta logL = -4.95374479215e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3300       1.0000          .0000       10.000    
     3 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96288       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=   7915.504     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6760.5        .90712E-02** at limit **
   2  Index         2.3787        5.1000        .50000       -.49772E-05
   3  Normalizat    1.0529        .25768E-01    .40369E-01    .13354E-04
   4  Prefactor     .96288        .21316E-01    .45801E-01    .43284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.37868
  Normalizat = 1.05286
  Prefactor  = 0.962879
 **********
 **   18 **HESSE 
 **********

 FCN=   7915.504     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9030.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3787        8.3048        .50000       -.55185    
   3  Normalizat    1.0529        .51772E-01    .24791E-03   -.91280    
   4  Prefactor     .96288        .42827E-01    .21237E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28438e-08
Minuit parameter uncertainties:
  1  0.0122494
  2  47.2236
  3  0.0517745
  4  0.0428283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211018': 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) = 7915.50427807
delta logL = 7.92169885244e-09

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.225e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.379e+00  4.722e+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:  9.629e-01  4.283e-02  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.053e+00  5.177e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/211018/cmap_HighResolution_575251201_575510401_4FGL_J2209.8-5028_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-28 06:41:10.005704', job_id='211018', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632836470.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.92e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1296' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 211018: <4FGL_J2209.8-5028_daily_bin1296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1296 332.474 -50.4702 575251201 575510401 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 :                                   890.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

