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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin284
RA = 332.474, Dec = -50.4702
tmin = 312940801, tmax = 313200001
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='206108', job_status='RUN', time_executed='2021-09-28 06:13:22.104609', time_epoch_executed='1632834802.1' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206108

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206108/ft1_4FGL_J2209.8-5028_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206108/ft2_4FGL_J2209.8-5028_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206108/ft1_4FGL_J2209.8-5028_daily_bin284.fits outfile=/scratch/kocevski/206108/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin284.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=312940801.0 tmax=313200001.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.50
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206108/ft1_filtered_4FGL_J2209.8-5028_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/206108/ft2_4FGL_J2209.8-5028_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/206108/ltcube_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.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/206108/ft2_4FGL_J2209.8-5028_daily_bin284.fits
.....................!
real 12.40
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206108/ft1_filtered_4FGL_J2209.8-5028_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/206108/ft2_4FGL_J2209.8-5028_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/206108/ltcube_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.fits outfile=/scratch/kocevski/206108/expmap_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.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/206108/ltcube_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.fits
.....................!
real 190.88
user 186.13
sys 4.42

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/206108/ft1_filtered_4FGL_J2209.8-5028_daily_bin284.fits scfile=/scratch/kocevski/206108/ft2_4FGL_J2209.8-5028_daily_bin284.fits outfile=/scratch/kocevski/206108/cmap_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206108/ft1_filtered_4FGL_J2209.8-5028_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/206108/ft2_4FGL_J2209.8-5028_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206108/Model_4FGL_J2209.8-5028_daily_bin284.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/206108/ft1_filtered_4FGL_J2209.8-5028_daily_bin284.fits.....................!
real 54.54
user 53.23
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    175.56       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.566       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1970       1.0000         .10000E-03   10000.    
     7 'norm      '    10.236       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14533E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.435       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.141       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91192       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1590       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7327.401     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2941 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3058         .0000    ** at limit **
   2  Prefactor     .10000E-03    61.233         .0000    ** at limit **
   3  Prefactor     10.953        9.3148         .0000        .99540E-04
   4  Prefactor     175.56        47.649         .0000       -.70665E-04
   5  Prefactor     27.566        25.089         .0000        .26980E-03
   6  Prefactor     1.1966        3.6788         .0000        .11363E-02
   7  norm          10.236        5.7797         .0000        .40483E-03
   8  Prefactor     .10000E-03    5.2643         .0000    ** at limit **
   9  Prefactor     1.7335        84.627         .0000        .27791E-03
  10  Prefactor     .10000E-03    3.8309         .0000    ** at limit **
  11  Prefactor     .76865        3.1834         .0000        .17172E-02
  12  Prefactor     .10001E-03    37.108         .0000    ** at limit **
  13  norm          2.4321        3.8759         .0000       -.63906E-02
  14  Prefactor     .54529        3.2300         .0000        .99812E-03
  15  Prefactor     24.432        53.284         .0000        .19811E-02
  16  Prefactor     .10000E-03    2.5205         .0000    ** at limit **
  17  Prefactor     19.620        32.842         .0000        .21624E-02
  18  Prefactor     1.2506        36.208         .0000        .10161E-01
  19  Prefactor     .10000E-03    36.844         .0000    ** at limit **
  20  Prefactor     8.0134        6.0392         .0000        .71228E-04
  21  Prefactor     .10000E-03    13.072         .0000    ** at limit **
  22  Prefactor     15.141        14.239         .0000        .38206E-04
  23  norm          .10000E-03    5.0015         .0000    ** at limit **
  24  Normalizat    .91182        .20208         .0000        .63717E-04
  25  Prefactor     1.1591        .15130         .0000        .53510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.9533
  Prefactor  = 175.556
  Prefactor  = 27.5658
  Prefactor  = 1.19659
  norm       = 10.2362
  Prefactor  = 0.0001
  Prefactor  = 1.73355
  Prefactor  = 0.000100005
  Prefactor  = 0.768649
  Prefactor  = 0.000100006
  norm       = 2.43213
  Prefactor  = 0.545288
  Prefactor  = 24.4321
  Prefactor  = 0.0001
  Prefactor  = 19.62
  Prefactor  = 1.25058
  Prefactor  = 0.0001
  Prefactor  = 8.01341
  Prefactor  = 0.000100004
  Prefactor  = 15.1415
  norm       = 0.0001
  Normalizat = 0.911815
  Prefactor  = 1.15906
 **********
 **   18 **HESSE 
 **********

 FCN=   7327.401     FROM HESSE     STATUS=OK           429 CALLS     3370 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    61.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.953        9.2955        .12106E-03   -1.5046    
   4  Prefactor     175.56        47.588        .30458E-04   -1.3050    
   5  Prefactor     27.566        25.069        .76303E-04   -1.4657    
   6  Prefactor     1.1966        3.6255        .27222E-03   -1.5489    
   7  norm          10.236        5.7753        .12524E-03   -1.5068    
   8  Prefactor     .10000E-03    5.2739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7335        83.378        .31813E-03   -1.5445    
  10  Prefactor     .10000E-03    16.519        .31155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .76865        5.5121        .27183E-02   -1.5533    
  12  Prefactor     .10001E-03    37.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4321        3.8551        .20724E-03   -1.5396    
  14  Prefactor     .54529        5.9176        .26751E-02   -1.5560    
  15  Prefactor     24.432        52.379        .81035E-04   -1.4719    
  16  Prefactor     .10000E-03    2.5563        .13261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.620        30.678        .90407E-04   -1.4822    
  18  Prefactor     1.2506        31.643        .20037E-02   -1.5484    
  19  Prefactor     .10000E-03    36.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0134        6.0373        .14164E-03   -1.5142    
  21  Prefactor     .10000E-03    13.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.141        14.253        .10293E-03   -1.4930    
  23  norm          .10000E-03    5.0456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91182        .23090        .29673E-03   -.96046    
  25  Prefactor     1.1591        .17622        .22085E-03   -.87601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31533e-07
Minuit parameter uncertainties:
  1  9.60856e-05
  2  0.000904889
  3  9.2967
  4  47.5984
  5  25.0787
  6  3.62614
  7  5.77558
  8  9.81239e-05
  9  24.0799
  10  0.000551757
  11  4.11701
  12  0.000952174
  13  3.85553
  14  3.59278
  15  52.4773
  16  1.12198e-06
  17  30.7031
  18  12.5882
  19  0.000125038
  20  6.03773
  21  0.000436891
  22  14.2558
  23  7.1323e-05
  24  0.23115
  25  0.176308
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.522e-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.159e+00  1.763e-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:  9.118e-01  2.311e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206108/likelihoodResults_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.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) = 7327.40075208
delta logL = -0.00012828173476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7327.40062418
delta logL = -3.81092831958e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7035       1.0000          .0000       10.000    
     3 'Normalizat'    .91181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1591       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=   7327.401     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    180.20        .18142E-02** at limit **
   2  Index         2.6563        7.5641        .50000        .64897E-05
   3  Normalizat    .91182        .11123E-01    .29673E-03   -.29386E-04
   4  Prefactor     1.1591        .92699E-02    .22085E-03   -.46689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101096
  Index      = 2.65626
  Normalizat = 0.911815
  Prefactor  = 1.15905
 **********
 **   18 **HESSE 
 **********

 FCN=   7327.401     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    780.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6563        6.9434        .50000       -.48787    
   3  Normalizat    .91182        .23911E-01    .11869E-04   -.96046    
   4  Prefactor     1.1591        .19928E-01    .88341E-05   -.87601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82846e-09
Minuit parameter uncertainties:
  1  0.0592768
  2  690.227
  3  0.0239113
  4  0.0199281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206108': 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) = 7327.40062411
delta logL = -3.12908923661e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.011e-04  5.928e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.656e+00  6.902e+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:  1.159e+00  1.993e-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:  9.118e-01  2.391e-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/206108/cmap_HighResolution_312940801_313200001_4FGL_J2209.8-5028_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-28 06:26:44.597895', job_id='206108', GAL2='1.16', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632835604.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-3.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='284' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:26:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 206108: <4FGL_J2209.8-5028_daily_bin284> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin284> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:53 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:10:55 2021
Terminated at Tue Sep 28 06:26:45 2021
Results reported at Tue Sep 28 06:26:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin284 332.474 -50.4702 312940801 313200001 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 :                                   792.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

