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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1659
RA = 331.709, Dec = -0.5461
tmin = 669340801, tmax = 669600001
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='908367', job_status='RUN', time_executed='2022-03-22 01:23:31.127654', time_epoch_executed='1647937411.13' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908367/ft1_4FGL_J2206.8-0032_daily_bin1659.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908367/ft1_4FGL_J2206.8-0032_daily_bin1659.fits outfile=/scratch/kocevski/908367/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1659.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=669340801.0 tmax=669600001.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.50
user 5.20
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.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/908367/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1659.fits evtable="EVENTS" outfile="/scratch/kocevski/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 523

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.fits" evtable="EVENTS" scfile=/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits sctable="SC_DATA" outfile=/scratch/kocevski/908367/ltcube_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.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/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits
.....................!
real 14.16
user 13.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.fits evtable="EVENTS" scfile=/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits sctable="SC_DATA" expcube=/scratch/kocevski/908367/ltcube_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.fits outfile=/scratch/kocevski/908367/expmap_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.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/908367/ltcube_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.fits
.....................!
real 191.53
user 186.36
sys 4.64

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/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.fits scfile=/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits outfile=/scratch/kocevski/908367/cmap_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.fits scfile=/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits outfile=/scratch/kocevski/908367/cmap_HighResolution_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.fits evtable="EVENTS" scfile=/scratch/kocevski/908367/ft2_4FGL_J2206.8-0032_daily_bin1659.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908367/Model_4FGL_J2206.8-0032_daily_bin1659.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/908367/ft1_filtered_4FGL_J2206.8-0032_daily_bin1659.fits.....................!
real 58.69
user 57.27
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.979       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15577E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12433E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.328       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35849E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.979       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.478       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89566       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98693       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=   5804.503     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2465 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.874        49.676       -.36357E-05    .13231E-03
   2  Prefactor     .18094        1.6352       -.37298E-07    .11645E-02
   3  Prefactor     55.460        37.843       -.14565E-05    .13809E-04
   4  Prefactor     .10000E-03    55.387        .10741E-05** at limit **
   5  Prefactor     .10002E-03    1027.7       -.10364E-04** at limit **
   6  Prefactor     .10000E-03    15.343        .12633E-07** at limit **
   7  norm          .10005E-03    1.0543        .18995E-06** at limit **
   8  norm          .10000E-03    24.685        .18297E-07** at limit **
   9  Prefactor     .10000E-03    2.6640        .13956E-07** at limit **
  10  Prefactor     4.5291        11.274        .60126E-06   -.12046E-04
  11  Prefactor     14.327        12.918       -.49415E-07   -.14830E-04
  12  Prefactor     .10000E-03    5.6685        .48349E-07** at limit **
  13  Prefactor     .10000E-03    77.337        .39667E-05** at limit **
  14  Prefactor     20.004        21.814       -.15837E-06   -.31125E-04
  15  Prefactor     .10000E-03    14.541        .35902E-07** at limit **
  16  Prefactor     17.487        13.882        .16868E-07   -.26535E-04
  17  Prefactor     51.189        143.52       -.40654E-05   -.21852E-04
  18  Prefactor     .10000E-03    2.0643       -.37555E-07** at limit **
  19  norm          12.476        6.8770        .11448E-05   -.14788E-03
  20  Prefactor     .10000E-03    41.427       -.45145E-07** at limit **
  21  Normalizat    .89603        .24639       -.16062E-05   -.29833E-04
  22  Prefactor     .98669        .12956       -.18000E-06   -.11490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.8736
  Prefactor  = 0.180942
  Prefactor  = 55.4598
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.000100045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.52907
  Prefactor  = 14.3271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0039
  Prefactor  = 0.0001
  Prefactor  = 17.4875
  Prefactor  = 51.1893
  Prefactor  = 0.0001
  norm       = 12.4759
  Prefactor  = 0.0001
  Normalizat = 0.896026
  Prefactor  = 0.986687
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.503     FROM HESSE     STATUS=OK           348 CALLS     2813 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.874        50.355        .59130E-04   -1.4352    
   2  Prefactor     .18094        7.9539        .17304E-02   -1.5623    
   3  Prefactor     55.460        38.033        .53871E-04   -1.4217    
   4  Prefactor     .10000E-03    55.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    1039.1        .18201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10005E-03    4.0924        .26024E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    25.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6792        .12144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5291        11.322        .18920E-03   -1.5282    
  11  Prefactor     14.327        12.912        .10581E-03   -1.4951    
  12  Prefactor     .10000E-03    5.6746        .17716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.586        .42626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.004        21.693        .89608E-04   -1.4813    
  15  Prefactor     .10000E-03    14.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.487        13.908        .95769E-04   -1.4871    
  17  Prefactor     51.189        143.10        .56009E-04   -1.4276    
  18  Prefactor     .10000E-03    2.0726        .10681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.476        6.8132        .56699E-03   -1.5001    
  20  Prefactor     .10000E-03    41.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89603        .29048        .34142E-03   -.96600    
  22  Prefactor     .98669        .15429        .18504E-03   -.93175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81269e-09
Minuit parameter uncertainties:
  1  50.4018
  2  2.39901
  3  38.0495
  4  0.000171887
  5  0.0102352
  6  1.43917e-05
  7  0.00085976
  8  6.08604e-05
  9  4.26558e-06
  10  11.3272
  11  12.9148
  12  3.78737e-06
  13  8.05981e-05
  14  21.7015
  15  1.50194e-05
  16  13.9102
  17  144.079
  18  1.67726e-06
  19  6.8136
  20  2.15401e-05
  21  0.290989
  22  0.15436
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  8.060e-05  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:  9.867e-01  1.544e-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:  8.960e-01  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 331.709 -0.546
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/908367/likelihoodResults_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.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) = 5804.50309174
delta logL = -5.9841352595e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5804.36901481
delta logL = 0.134017088701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2719       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6241       1.0000          .0000       10.000    
     3 'Normalizat'    .85459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99780       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5804.369     FROM MIGRAD    STATUS=FAILED        82 CALLS      312 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2715        217.34        .15650E-03   -.25710E-02
   2  Index         3.6246        5.0500        .89015E-02   -.37963E-03
   3  Normalizat    .85455        .23506        .34861E-03   -.64608E-03
   4  Prefactor     .99780        .13270        .18403E-03   -.95069E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5804.369     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      403 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2715        217.34        .28934E-03   -.25710E-02
   2  Index         3.6246        5.0500        .23324E-02   -.37963E-03
   3  Normalizat    .85455        .23506        .20956E-03   -.64608E-03
   4  Prefactor     .99780        .13270        .30790E-04   -.95069E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5804.369     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      435 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2712        9.1840        .62601E-05   -.25788E-04
   2  Index         3.6247        2.4104        .35606E-03   -.55557E-05
   3  Normalizat    .85455        .28050        .69723E-04    .41416E-04
   4  Prefactor     .99781        .15510        .36805E-04    .62766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27123
  Index      = 3.62472
  Normalizat = 0.854548
  Prefactor  = 0.997806
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.369     FROM HESSE     STATUS=OK            23 CALLS      458 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2712        8.4756        .12520E-05   -1.5482    
   2  Index         3.6247        2.3239        .14242E-04   -.27865    
   3  Normalizat    .85455        .28045        .13945E-04   -.98076    
   4  Prefactor     .99781        .15505        .73610E-05   -.92803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95707e-12
Minuit parameter uncertainties:
  1  6.566
  2  2.42554
  3  0.280931
  4  0.155118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908367': 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) = 5804.36901473
delta logL = 0.1340171695

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.271e+00  6.566e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  3.625e+00  2.426e+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:  9.978e-01  1.551e-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:  8.545e-01  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.709 -0.546

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/908367/cmap_HighResolution_669340801_669600001_4FGL_J2206.8-0032_daily_bin1659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2022-03-22 01:33:59.658717', job_id='908367', GAL2='1.00', fit_tolerance='1e-08', EG2='0.85', EG='0.90', time_epoch_completed='1647938039.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.34e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1659' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 22 01:33:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 908367: <4FGL_J2206.8-0032_daily_bin1659> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin1659> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 22 01:20:51 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 22 01:23:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 22 01:23:12 2022
Terminated at Tue Mar 22 01:34:00 2022
Results reported at Tue Mar 22 01:34:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1659 331.709 -0.5461 669340801 669600001 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 :                                   630.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             353.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            789 sec.

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

