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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1535
RA = 331.709, Dec = -0.5461
tmin = 637200001, tmax = 637459201
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='179637', job_status='RUN', time_executed='2021-09-28 04:47:57.732043', time_epoch_executed='1632829677.73' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179637/ft1_4FGL_J2206.8-0032_daily_bin1535.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179637/ft1_4FGL_J2206.8-0032_daily_bin1535.fits outfile=/scratch/kocevski/179637/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1535.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=637200001.0 tmax=637459201.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.39
user 5.10
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.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/179637/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1535.fits evtable="EVENTS" outfile="/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits" evtable="EVENTS" scfile=/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits sctable="SC_DATA" outfile=/scratch/kocevski/179637/ltcube_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.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/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits
.....................!
real 11.67
user 11.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits sctable="SC_DATA" expcube=/scratch/kocevski/179637/ltcube_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.fits outfile=/scratch/kocevski/179637/expmap_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.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/179637/ltcube_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.fits
.....................!
real 190.81
user 185.27
sys 5.12

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2206.8-0032 @ 331.709 -0.5461

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits scfile=/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits outfile=/scratch/kocevski/179637/cmap_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.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=331.709 yref=-0.5461 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits scfile=/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits outfile=/scratch/kocevski/179637/cmap_HighResolution_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.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=331.709 yref=-0.5461 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits evtable="EVENTS" scfile=/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179637/Model_4FGL_J2206.8-0032_daily_bin1535.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/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits....................!
real 57.71
user 56.34
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits', '/scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits', expMap='/scratch/kocevski/179637/expmap_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.fits', expCube='/scratch/kocevski/179637/ltcube_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/179637/Model_4FGL_J2206.8-0032_daily_bin1535.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2206.8-0032'

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  6.940e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.247e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.226e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/179637/ft1_filtered_4FGL_J2206.8-0032_daily_bin1535.fits
Spacecraft file(s): /scratch/kocevski/179637/ft2_4FGL_J2206.8-0032_daily_bin1535.fits
Exposure map: /scratch/kocevski/179637/expmap_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.fits
Exposure cube: /scratch/kocevski/179637/ltcube_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/179637/Model_4FGL_J2206.8-0032_daily_bin1535.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) = 5656.58922009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.25       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6729       1.0000         .10000E-03   10000.    
     8 'norm      '    11.650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2086       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.749       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    155.97       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19418E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.262       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14296E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5656.568     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     2035 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9.4646       -.14847E-04** at limit **
   2  Prefactor     .13805        4.8164       -.87444E-07   -.18932E-03
   3  Prefactor     105.28        11.122       -.11397E-05    .53919E-02
   4  Prefactor     .10000E-03    29.292       -.67934E-05** at limit **
   5  Prefactor     .10000E-03    44.087        .98541E-05** at limit **
   6  Prefactor     .10000E-03    12.586        .20410E-04** at limit **
   7  norm          3.6723        2.6819       -.38462E-06   -.34324E-03
   8  norm          11.673        13.384        .12990E-04    .22325E-03
   9  Prefactor     4.2041        6.1278       -.82000E-06   -.15688E-03
  10  Prefactor     12.399        2.4546        .24975E-05    .23462E-03
  11  Prefactor     .10000E-03    9.5585       -.65814E-06** at limit **
  12  Prefactor     .10000E-03    12.701        .45972E-05** at limit **
  13  Prefactor     14.782        17.341       -.10597E-05   -.40253E-04
  14  Prefactor     14.946        27.447        .22555E-04    .94790E-03
  15  Prefactor     .10000E-03    25.973        .73740E-05** at limit **
  16  Prefactor     .10001E-03    7.6606        .54783E-05** at limit **
  17  Prefactor     156.04        19.792        .35640E-05   -.70503E-02
  18  Prefactor     .10000E-03    14.689       -.17795E-04** at limit **
  19  norm          21.261        7.4284       -.33009E-05   -.20592E-03
  20  Prefactor     .10090E-03    1172.2       -.10283E-03** at limit **
  21  Normalizat    1.3449        .30189       -.64057E-05    .20002E-03
  22  Prefactor     .77886        .16091        .12912E-05    .49135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.138051
  Prefactor  = 105.282
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  norm       = 3.6723
  norm       = 11.6729
  Prefactor  = 4.2041
  Prefactor  = 12.3989
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 14.7819
  Prefactor  = 14.9462
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 156.037
  Prefactor  = 0.000100001
  norm       = 21.2612
  Prefactor  = 0.000100899
  Normalizat = 1.34488
  Prefactor  = 0.778861
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.568     FROM HESSE     STATUS=OK           396 CALLS     2431 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    13.573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13805        1.8368        .30992E-01   -1.5634    
   3  Prefactor     105.28        49.120        .97994E-03   -1.3652    
   4  Prefactor     .10000E-03    29.257        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6723        2.7161        .52689E-02   -1.5325    
   8  norm          11.673        17.421        .29342E-02   -1.5025    
   9  Prefactor     4.2041        6.1542        .49109E-02   -1.5298    
  10  Prefactor     12.399        14.137        .28444E-02   -1.5004    
  11  Prefactor     .10000E-03    9.5089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.782        20.999        .26073E-02   -1.4939    
  14  Prefactor     14.946        28.521        .25881E-02   -1.4935    
  15  Prefactor     .10000E-03    25.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    13.464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     156.04        164.65        .80703E-03   -1.3203    
  18  Prefactor     .10000E-03    4.1614        .47541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.261        7.7434        .21716E-02   -1.4785    
  20  Prefactor     .10090E-03    1214.5        .90943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3449        .26004        .68638E-01   -.82236    
  22  Prefactor     .77886        .13566        .43441E-01   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61091e-07
Minuit parameter uncertainties:
  1  0.000788538
  2  1.00679
  3  49.1387
  4  0.000331523
  5  0.000925828
  6  0.000525705
  7  2.7162
  8  17.4291
  9  6.15512
  10  14.1411
  11  0.000156009
  12  0.000166264
  13  21.0091
  14  28.547
  15  0.000129162
  16  0.000653538
  17  165.143
  18  0.000123725
  19  7.7438
  20  0.0675047
  21  0.26029
  22  0.135716
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.478e+01  2.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.247e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.226e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  7.789e-01  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.345e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 331.709 -0.546
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.94e-05

TS (Fixed Index): 1.01
Ra Dec: 331.709 -0.546
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/179637/likelihoodResults_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.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): 0
logL (Free Index) = 5655.44234006
delta logL = 1.12612365534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5655.38468496
delta logL = 1.18377875699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6171       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0490       1.0000          .0000       10.000    
     3 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5655.385     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      268 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6136        16.376        .83228E-02    .53069E-03
   2  Index         4.0503        2.4536        .97441E-01    .16555E-03
   3  Normalizat    1.2145        .77532E-01    .71545E-01    .90895E-05
   4  Prefactor     .82546        .41735E-01    .44045E-01    .67716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61358
  Index      = 4.05033
  Normalizat = 1.21454
  Prefactor  = 0.825464
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.385     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6136        31.137        .57614E-04   -1.5454    
   2  Index         4.0503        3.6960        .37206E-02   -.19110    
   3  Normalizat    1.2145        .28557        .31659E-03   -.86155    
   4  Prefactor     .82546        .15411        .20603E-03   -.98796    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.02071e-10
Minuit parameter uncertainties:
  1  14.1844
  2  4.18478
  3  0.285938
  4  0.154186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179637': 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) = 5655.38468206
delta logL = 1.18378165907

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.614e+00  1.418e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  4.050e+00  4.185e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.226e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  8.255e-01  1.542e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.215e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 331.709 -0.546
Photon Index (Free Index): 4.05 +/- 4.18
Photon Flux (Free Index): 1.36e-07 +/- 9.77e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/179637/cmap_HighResolution_637200001_637459201_4FGL_J2206.8-0032_daily_bin1535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.02e-05', photon_flux_error='4.71e-08', dlogl='1.18e+00', energy_flux='1.37e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-28 04:57:53.006368', photon_index_error2='4.18', photon_index2='4.05', ts='1.01', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.43e-05', EG='1.34', time_epoch_completed='1632830273.01', return_code='0', job_id='179637', GAL2='0.83', EG2='1.21', return_code2='102', energy_flux_error='1.94e-05', photon_flux_error2='9.77e-08', ts2='3.57', photon_index='2.25' WHERE bin_id='1535' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:57:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 179637: <4FGL_J2206.8-0032_daily_bin1535> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin1535> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 04:45:30 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 04:45:31 2021
Terminated at Tue Sep 28 04:57:53 2021
Results reported at Tue Sep 28 04:57:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1535 331.709 -0.5461 637200001 637459201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2206.8-0032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

