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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1040
RA = 331.709, Dec = -0.5461
tmin = 508896001, tmax = 509155201
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='176819', job_status='RUN', time_executed='2021-09-28 04:39:35.391039', time_epoch_executed='1632829175.39' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176819

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176819/ft1_4FGL_J2206.8-0032_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176819/ft1_4FGL_J2206.8-0032_daily_bin1040.fits outfile=/scratch/kocevski/176819/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1040.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=508896001.0 tmax=509155201.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.68
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/176819/ltcube_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.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/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits
.....................!
real 11.57
user 11.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/176819/ltcube_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.fits outfile=/scratch/kocevski/176819/expmap_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.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/176819/ltcube_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.fits
.....................!
real 190.04
user 184.66
sys 5.02

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/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits scfile=/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits outfile=/scratch/kocevski/176819/cmap_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits scfile=/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits outfile=/scratch/kocevski/176819/cmap_HighResolution_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176819/Model_4FGL_J2206.8-0032_daily_bin1040.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/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits.....................!
real 71.99
user 70.58
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits', '/scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits', expMap='/scratch/kocevski/176819/expmap_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.fits', expCube='/scratch/kocevski/176819/ltcube_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/176819/Model_4FGL_J2206.8-0032_daily_bin1040.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/176819/ft1_filtered_4FGL_J2206.8-0032_daily_bin1040.fits
Spacecraft file(s): /scratch/kocevski/176819/ft2_4FGL_J2206.8-0032_daily_bin1040.fits
Exposure map: /scratch/kocevski/176819/expmap_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.fits
Exposure cube: /scratch/kocevski/176819/ltcube_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/176819/Model_4FGL_J2206.8-0032_daily_bin1040.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) = 7124.02181734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5562       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24576E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6707       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.800       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.569       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6732       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4379       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8498       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86959       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7123.986     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2707 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.770       -.27036E-05** at limit **
   2  Prefactor     1.5565        3.1563       -.38224E-06   -.10425E-02
   3  Prefactor     24.982        35.895       -.89026E-06    .14694E-05
   4  Prefactor     .10000E-03    35.460       -.63455E-07** at limit **
   5  Prefactor     .10000E-03    43.096       -.10375E-06** at limit **
   6  Prefactor     .10000E-03    198.56        .12698E-06** at limit **
   7  norm          2.6705        1.9789        .24504E-07   -.62059E-04
   8  norm          3.7182        8.7357       -.14654E-05   -.13129E-03
   9  Prefactor     .10000E-03    6.8471        .77294E-07** at limit **
  10  Prefactor     25.169        15.571       -.72833E-06   -.33988E-04
  11  Prefactor     .10000E-03    8.2578        .29725E-07** at limit **
  12  Prefactor     .10000E-03    8.1079        .65048E-07** at limit **
  13  Prefactor     19.807        21.721       -.29099E-05   -.14575E-04
  14  Prefactor     .10000E-03    10.425        .12165E-06** at limit **
  15  Prefactor     24.008        28.357        .73634E-06   -.70888E-05
  16  Prefactor     18.056        14.766       -.27391E-06   -.54852E-03
  17  Prefactor     19.618        230.13        .10030E-03    .21698E-05
  18  Prefactor     2.6733        4.6362       -.50213E-06   -.66279E-03
  19  norm          4.4382        3.9269       -.10865E-05   -.32352E-03
  20  Prefactor     .10000E-03    20.905        .28786E-05** at limit **
  21  Normalizat    1.8496        .27405       -.15510E-05    .70777E-04
  22  Prefactor     .86959        .14570        .57528E-06   -.81926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.55647
  Prefactor  = 24.9823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.6705
  norm       = 3.71816
  Prefactor  = 0.0001
  Prefactor  = 25.1689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8069
  Prefactor  = 0.0001
  Prefactor  = 24.0084
  Prefactor  = 18.0561
  Prefactor  = 19.6177
  Prefactor  = 2.67331
  norm       = 4.43818
  Prefactor  = 0.0001
  Normalizat = 1.8496
  Prefactor  = 0.869592
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.986     FROM HESSE     STATUS=OK           342 CALLS     3049 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5565        3.1438        .19642E-03   -1.5458    
   3  Prefactor     24.982        35.694        .80132E-04   -1.4708    
   4  Prefactor     .10000E-03    35.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    201.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6705        1.9769        .99178E-04   -1.5381    
   8  norm          3.7182        8.7327        .20938E-03   -1.5322    
   9  Prefactor     .10000E-03    6.9176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.169        15.680        .79858E-04   -1.4704    
  11  Prefactor     .10000E-03    8.2984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.807        21.729        .90012E-04   -1.4818    
  14  Prefactor     .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.008        28.370        .81746E-04   -1.4728    
  16  Prefactor     18.056        14.786        .47132E-03   -1.4858    
  17  Prefactor     19.618        224.80        .90541E-04   -1.4822    
  18  Prefactor     2.6733        4.6185        .22474E-03   -1.5381    
  19  norm          4.4382        3.9282        .15043E-03   -1.5287    
  20  Prefactor     .10000E-03    20.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8496        .33076        .31630E-03   -.68376    
  22  Prefactor     .86959        .17472        .23883E-03   -.97212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57807e-09
Minuit parameter uncertainties:
  1  2.84633e-05
  2  3.14413
  3  35.725
  4  3.7347e-05
  5  2.93446e-06
  6  0.000647752
  7  1.97691
  8  8.73567
  9  1.5797e-05
  10  15.6824
  11  2.80829e-05
  12  6.06116e-06
  13  21.7376
  14  3.48602e-05
  15  28.3859
  16  14.7886
  17  133.451
  18  4.61909
  19  3.92844
  20  1.61059e-06
  21  0.331162
  22  0.174831
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.981e+01  2.174e+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:  8.696e-01  1.748e-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.850e+00  3.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 331.709 -0.546
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 2.01e-05

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

Saving results to:
/scratch/kocevski/176819/likelihoodResults_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.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) = 7123.94288959
delta logL = 0.0435699560221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7123.94055393
delta logL = 0.0459056162799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.252       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0378       1.0000          .0000       10.000    
     3 'Normalizat'    1.8603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86480       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7123.941     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.253        28.425        .81341E-04   -.37289E-03
   2  Index         2.0376        .66760        .98501E-02   -.19388E-03
   3  Normalizat    1.8608        .31641        .31556E-03    .12392E-03
   4  Prefactor     .86450        .17416        .23943E-03    .27777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2534
  Index      = 2.0376
  Normalizat = 1.86084
  Prefactor  = 0.864498
 **********
 **   18 **HESSE 
 **********

 FCN=   7123.941     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.253        27.725        .16268E-04   -1.4723    
   2  Index         2.0376        .65125        .39400E-03   -.63413    
   3  Normalizat    1.8608        .31649        .63112E-04   -.68086    
   4  Prefactor     .86450        .17422        .95774E-05   -.97393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19639e-09
Minuit parameter uncertainties:
  1  27.7399
  2  0.654117
  3  0.316838
  4  0.174328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176819': 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): 0
logL (Free Index) = 7123.94055234
delta logL = 0.0459072022859

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  2.425e+01  2.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.038e+00  6.541e-01  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.645e-01  1.743e-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.861e+00  3.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 331.709 -0.546
Photon Index (Free Index): 2.04 +/- 0.65
Photon Flux (Free Index): 3.86e-08 +/- 4.78e-08
Energy Flux (Free Index): 2.44e-05 +/- 3.44e-05

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/176819/cmap_HighResolution_508896001_509155201_4FGL_J2206.8-0032_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='2.44e-05', photon_flux_error='4.87e-08', dlogl='4.59e-02', energy_flux='1.83e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-28 04:51:30.790177', photon_index_error2='0.65', photon_index2='2.04', ts='1.14', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='3.44e-05', EG='1.85', time_epoch_completed='1632829890.79', return_code='0', job_id='176819', GAL2='0.86', EG2='1.86', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='4.78e-08', ts2='1.23', photon_index='2.25' WHERE bin_id='1040' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 176819: <4FGL_J2206.8-0032_daily_bin1040> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin1040> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 04:35:48 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:35:50 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:35:50 2021
Terminated at Tue Sep 28 04:51:31 2021
Results reported at Tue Sep 28 04:51:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1040 331.709 -0.5461 508896001 509155201 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

