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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin218
RA = 332.474, Dec = -50.4702
tmin = 295833601, tmax = 296092801
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='206003', job_status='RUN', time_executed='2021-09-28 06:13:17.468790', time_epoch_executed='1632834797.47' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206003/ft1_4FGL_J2209.8-5028_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206003/ft1_4FGL_J2209.8-5028_daily_bin218.fits outfile=/scratch/kocevski/206003/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin218.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.47
user 2.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.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/206003/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin218.fits evtable="EVENTS" outfile="/scratch/kocevski/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.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/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/206003/ltcube_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.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/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits
.....................!
real 12.01
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/206003/ltcube_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.fits outfile=/scratch/kocevski/206003/expmap_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.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/206003/ltcube_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.fits
.....................!
real 192.29
user 187.09
sys 4.83

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/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.fits scfile=/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits outfile=/scratch/kocevski/206003/cmap_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.fits scfile=/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits outfile=/scratch/kocevski/206003/cmap_HighResolution_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/206003/ft2_4FGL_J2209.8-5028_daily_bin218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206003/Model_4FGL_J2209.8-5028_daily_bin218.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/206003/ft1_filtered_4FGL_J2209.8-5028_daily_bin218.fits.....................!
real 57.43
user 56.02
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.299       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0897       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19398E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32688       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.806       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1286       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.194       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91240       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97268       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=   7939.976     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     2997 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.303        19.015        .35965E-06   -.20902E-04
   2  Prefactor     .10000E-03    14.370        .47225E-06** at limit **
   3  Prefactor     6.0251        6.4537        .18733E-06   -.18525E-04
   4  Prefactor     .10000E-03    58.859       -.69280E-09** at limit **
   5  Prefactor     1.1234        68.081       -.31872E-06   -.85908E-05
   6  Prefactor     7.0909        3.7937       -.19476E-07   -.12333E-03
   7  norm          4.4000        3.5788        .26137E-06    .31508E-04
   8  Prefactor     .10000E-03    2.5398        .10203E-06** at limit **
   9  Prefactor     19.816        30.244        .24895E-06   -.27916E-04
  10  Prefactor     3.8182        5.5228       -.31457E-06   -.11539E-03
  11  Prefactor     .10000E-03    1.7067        .53588E-07** at limit **
  12  Prefactor     .10000E-03    17.947       -.44462E-06** at limit **
  13  norm          .10000E-03    1.6117        .12560E-07** at limit **
  14  Prefactor     .17458E-01    1.5431        .60260E-06   -.58625E-03
  15  Prefactor     .10000E-03    10.481        .16123E-06** at limit **
  16  Prefactor     .10000E-03    2.1344        .62908E-07** at limit **
  17  Prefactor     17.247        21.102        .19908E-05    .83738E-04
  18  Prefactor     .38748        47.003       -.39734E-05   -.31630E-04
  19  Prefactor     34.792        39.651       -.19917E-06    .18316E-04
  20  Prefactor     2.1284        5.1811       -.40928E-06   -.13796E-03
  21  Prefactor     .10000E-03    11.942       -.14389E-06** at limit **
  22  Prefactor     10.204        17.020        .35773E-06   -.32639E-05
  23  norm          .10000E-03    3.0170       -.35423E-07** at limit **
  24  Normalizat    .91187        .17243        .10623E-05   -.25501E-03
  25  Prefactor     .97293        .13767       -.20388E-05   -.12012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3029
  Prefactor  = 0.0001
  Prefactor  = 6.02512
  Prefactor  = 0.0001
  Prefactor  = 1.12339
  Prefactor  = 7.09088
  norm       = 4.39997
  Prefactor  = 0.0001
  Prefactor  = 19.8164
  Prefactor  = 3.81821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0174577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2467
  Prefactor  = 0.387476
  Prefactor  = 34.7919
  Prefactor  = 2.12843
  Prefactor  = 0.0001
  Prefactor  = 10.2044
  norm       = 0.0001
  Normalizat = 0.911868
  Prefactor  = 0.972933
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.976     FROM HESSE     STATUS=OK           443 CALLS     3440 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.303        19.013        .10240E-03   -1.4925    
   2  Prefactor     .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0251        6.4594        .16363E-03   -1.5217    
   4  Prefactor     .10000E-03    59.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1234        70.325        .44416E-02   -1.5496    
   6  Prefactor     7.0909        3.7901        .12088E-03   -1.5175    
   7  norm          4.4000        3.5730        .14586E-03   -1.5288    
   8  Prefactor     .10000E-03    2.5433        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.816        30.225        .90009E-04   -1.4817    
  10  Prefactor     3.8182        5.4914        .20659E-03   -1.5317    
  11  Prefactor     .10000E-03    3.4536        .22439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6127        .11048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17458E-01    4.0019        .31777E-01   -1.5682    
  15  Prefactor     .10000E-03    10.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1760        .12737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.247        21.988        .96268E-04   -1.4877    
  18  Prefactor     .38748        49.157        .41414E-02   -1.5583    
  19  Prefactor     34.792        39.605        .67926E-04   -1.4528    
  20  Prefactor     2.1284        5.1411        .28261E-03   -1.5416    
  21  Prefactor     .10000E-03    11.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.204        17.098        .12550E-03   -1.5069    
  23  norm          .10000E-03    3.0207        .15112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91187        .19509        .25959E-03   -.96044    
  25  Prefactor     .97293        .14911        .20605E-03   -.93637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66728e-08
Minuit parameter uncertainties:
  1  19.0208
  2  4.2318e-06
  3  6.46016
  4  0.000326928
  5  17.7978
  6  3.79023
  7  3.57314
  8  2.41025e-06
  9  30.2485
  10  5.49209
  11  2.7827e-05
  12  8.7575e-06
  13  1.00167e-07
  14  0.527153
  15  2.88107e-06
  16  8.45531e-06
  17  21.9979
  18  8.73478
  19  39.6354
  20  5.14214
  21  2.39726e-06
  22  17.1057
  23  4.10015e-07
  24  0.195239
  25  0.149177
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.757e-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.729e-01  1.492e-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.119e-01  1.952e-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: 3.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206003/likelihoodResults_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.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) = 7939.97623453
delta logL = -0.000265303819106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7939.97596975
delta logL = -5.22827576788e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3396       1.0000          .0000       10.000    
     3 'Normalizat'    .91175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97297       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=   7939.976     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10423E-03    17.988        .18142E-01** at limit **
   2  Index         2.2424        7.7953        .50000        .12063E-04
   3  Normalizat    .91187        .35284E-02    .25959E-03    .21687E-03
   4  Prefactor     .97293        .28996E-02    .20605E-03    .23768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104234
  Index      = 2.24244
  Normalizat = 0.91187
  Prefactor  = 0.972932
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.976     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 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     .10423E-03    97.563        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2424        7.5448        .50000       -.58417    
   3  Normalizat    .91187        .82579E-02    .10384E-04   -.96044    
   4  Prefactor     .97293        .67862E-02    .41210E-04   -.93637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93419e-09
Minuit parameter uncertainties:
  1  0.0407165
  2  336.22
  3  0.00825792
  4  0.00678621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206003': 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) = 7939.97596891
delta logL = 3.1286617741e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.042e-04  4.072e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.242e+00  3.362e+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.729e-01  6.786e-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:  9.119e-01  8.258e-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/206003/cmap_HighResolution_295833601_296092801_4FGL_J2209.8-5028_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2021-09-28 06:27:18.989242', job_id='206003', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632835638.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='218' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:27:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 206003: <4FGL_J2209.8-5028_daily_bin218> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin218> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:44 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:46 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:46 2021
Terminated at Tue Sep 28 06:27:19 2021
Results reported at Tue Sep 28 06:27:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin218 332.474 -50.4702 295833601 296092801 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 :                                   832.14 sec.
    Max Memory :                                 1039 MB
    Average Memory :                             273.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

