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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1624
RA = 331.709, Dec = -0.5461
tmin = 660268801, tmax = 660528001
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='481580', job_status='RUN', time_executed='2021-12-08 08:23:37.886508', time_epoch_executed='1638980617.89' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481580/ft1_4FGL_J2206.8-0032_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481580/ft1_4FGL_J2206.8-0032_daily_bin1624.fits outfile=/scratch/kocevski/481580/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1624.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=660268801.0 tmax=660528001.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.89
user 3.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481580/ft1_filtered_4FGL_J2206.8-0032_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/481580/ltcube_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.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/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits
.....................!
real 14.47
user 14.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481580/ft1_filtered_4FGL_J2206.8-0032_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/481580/ltcube_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.fits outfile=/scratch/kocevski/481580/expmap_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.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/481580/ltcube_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.fits
.....................!
real 191.42
user 186.42
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 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/481580/ft1_filtered_4FGL_J2206.8-0032_daily_bin1624.fits scfile=/scratch/kocevski/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits outfile=/scratch/kocevski/481580/cmap_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481580/ft1_filtered_4FGL_J2206.8-0032_daily_bin1624.fits scfile=/scratch/kocevski/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits outfile=/scratch/kocevski/481580/cmap_HighResolution_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481580/ft1_filtered_4FGL_J2206.8-0032_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/481580/ft2_4FGL_J2206.8-0032_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481580/Model_4FGL_J2206.8-0032_daily_bin1624.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/481580/ft1_filtered_4FGL_J2206.8-0032_daily_bin1624.fits.....................!
real 58.56
user 57.16
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.550       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    91.903       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2708       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2475       1.0000         .10000E-03   10000.    
     8 'norm      '    .25364E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0889       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.993       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97381       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86885       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=   5834.915     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2409 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.548        48.315        .39024E-06   -.65168E-05
   2  Prefactor     5.2347        3.4581        .71648E-07    .11997E-03
   3  Prefactor     91.904        44.026        .44473E-06    .83377E-05
   4  Prefactor     28.694        42.634        .21812E-06   -.10464E-04
   5  Prefactor     .10000E-03    36.867        .21531E-06** at limit **
   6  Prefactor     1.1295        496.98        .15462E-04    .18595E-05
   7  norm          4.2492        2.4885        .29733E-06    .10283E-03
   8  norm          .10073E-03    30.622        .73216E-05** at limit **
   9  Prefactor     .10000E-03    7.8143       -.14238E-06** at limit **
  10  Prefactor     12.472        9.6726        .31532E-06    .28815E-04
  11  Prefactor     .10000E-03    30.874       -.15721E-05** at limit **
  12  Prefactor     2.0917        53.104        .43308E-05    .24610E-04
  13  Prefactor     35.990        21.534       -.23426E-06   -.17514E-03
  14  Prefactor     .10000E-03    50.397       -.12853E-05** at limit **
  15  Prefactor     .10000E-03    25.146       -.49158E-06** at limit **
  16  Prefactor     24.151        16.940        .74031E-06   -.43546E-04
  17  Prefactor     40.444        107.40        .41980E-05    .64908E-04
  18  Prefactor     .10000E-03    1.8430        .10568E-06** at limit **
  19  norm          .10000E-03    2.5799        .20304E-05** at limit **
  20  Prefactor     .10000E-03    51.697        .34842E-07** at limit **
  21  Normalizat    .97348        .27867       -.79070E-05   -.29107E-03
  22  Prefactor     .86912        .14356        .38498E-05   -.19574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5485
  Prefactor  = 5.23467
  Prefactor  = 91.9041
  Prefactor  = 28.694
  Prefactor  = 0.0001
  Prefactor  = 1.12953
  norm       = 4.24922
  norm       = 0.000100735
  Prefactor  = 0.0001
  Prefactor  = 12.472
  Prefactor  = 0.000100002
  Prefactor  = 2.0917
  Prefactor  = 35.9901
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 24.1515
  Prefactor  = 40.4443
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.973479
  Prefactor  = 0.869118
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.915     FROM HESSE     STATUS=OK           342 CALLS     2751 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.548        48.230        .79251E-04   -1.4697    
   2  Prefactor     5.2347        3.4458        .99682E-04   -1.5250    
   3  Prefactor     91.904        43.974        .41919E-04   -1.3788    
   4  Prefactor     28.694        42.614        .74822E-04   -1.4636    
   5  Prefactor     .10000E-03    36.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1295        470.15        .39466E-03   -1.5495    
   7  norm          4.2492        2.4694        .87924E-04   -1.5296    
   8  norm          .10073E-03    77.473        .54018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.472        9.6809        .11341E-03   -1.5002    
  11  Prefactor     .10000E-03    31.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0917        52.884        .28565E-03   -1.5419    
  13  Prefactor     35.990        21.514        .66800E-04   -1.4507    
  14  Prefactor     .10000E-03    51.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.151        16.998        .81513E-04   -1.4725    
  17  Prefactor     40.444        107.99        .31565E-03   -1.4435    
  18  Prefactor     .10000E-03    1.8496        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8302        .12403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97348        .30439        .32282E-03   -.93924    
  22  Prefactor     .86912        .15593        .19147E-03   -.97229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08663e-08
Minuit parameter uncertainties:
  1  48.3034
  2  3.44591
  3  43.9894
  4  42.6592
  5  0.000135661
  6  46.4586
  7  2.46942
  8  0.0151068
  9  6.99645e-05
  10  9.68211
  11  0.000463446
  12  21.0553
  13  21.519
  14  0.000454879
  15  0.000118929
  16  17.0014
  17  108.518
  18  7.3912e-06
  19  0.000167973
  20  3.56943e-05
  21  0.304937
  22  0.156007
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  3.599e+01  2.152e+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.691e-01  1.560e-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:  9.735e-01  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 331.709 -0.546
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 8.07e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 1.99e-05

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) = 5834.57063718
delta logL = 0.344694694857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.56376536
delta logL = 0.351566523686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.832       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7482       1.0000          .0000       10.000    
     3 'Normalizat'    .91068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89059       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=   5834.564     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      295 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.844        25.009        .83827E-04    .11488E-02
   2  Index         2.7475        .70322        .42910E-02    .55391E-03
   3  Normalizat    .91148        .28593        .33229E-03    .12716E-02
   4  Prefactor     .89021        .15673        .18936E-03    .29226E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8439
  Index      = 2.74754
  Normalizat = 0.91148
  Prefactor  = 0.890214
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.564     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.844        21.867        .16765E-04   -1.4752    
   2  Index         2.7475        .61426        .17164E-03   -.46732    
   3  Normalizat    .91148        .28391        .66459E-04   -.96058    
   4  Prefactor     .89021        .15612        .37871E-04   -.96484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80242e-09
Minuit parameter uncertainties:
  1  21.8746
  2  0.616215
  3  0.284379
  4  0.156198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481580': 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) = 5834.56376122
delta logL = 0.35157065865

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  2.284e+01  2.187e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.748e+00  6.162e-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.902e-01  1.562e-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:  9.115e-01  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.71
Ra Dec: 331.709 -0.546
Photon Index (Free Index): 2.75 +/- 0.62
Photon Flux (Free Index): 1.28e-07 +/- 8.30e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.56e-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/481580/cmap_HighResolution_660268801_660528001_4FGL_J2206.8-0032_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.07e-08', energy_flux2='2.97e-05', photon_flux_error='4.82e-08', dlogl='3.52e-01', energy_flux='3.33e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-12-08 08:33:05.364538', photon_index_error2='0.62', photon_index2='2.75', ts='5.96', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.97', time_epoch_completed='1638981185.36', return_code='0', job_id='481580', GAL2='0.89', EG2='0.91', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='8.30e-08', ts2='6.71', photon_index='2.25' WHERE bin_id='1624' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:33:05 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 481580: <4FGL_J2206.8-0032_daily_bin1624> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin1624> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:29 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:21:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:21:53 2021
Terminated at Wed Dec  8 08:33:06 2021
Results reported at Wed Dec  8 08:33:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1624 331.709 -0.5461 660268801 660528001 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 :                                   566.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            757 sec.

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

