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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1103
RA = 331.709, Dec = -0.5461
tmin = 525225601, tmax = 525484801
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='176900', job_status='RUN', time_executed='2021-09-28 04:38:12.277424', time_epoch_executed='1632829092.28' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176900/ft1_4FGL_J2206.8-0032_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176900/ft2_4FGL_J2206.8-0032_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176900/ft1_4FGL_J2206.8-0032_daily_bin1103.fits outfile=/scratch/kocevski/176900/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1103.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=525225601.0 tmax=525484801.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 4.13
user 3.87
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176900/ft1_filtered_4FGL_J2206.8-0032_daily_bin1103.fits" evtable="EVENTS" scfile=/scratch/kocevski/176900/ft2_4FGL_J2206.8-0032_daily_bin1103.fits sctable="SC_DATA" outfile=/scratch/kocevski/176900/ltcube_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.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/176900/ft2_4FGL_J2206.8-0032_daily_bin1103.fits
.....................!
real 11.92
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176900/ft1_filtered_4FGL_J2206.8-0032_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/176900/ft2_4FGL_J2206.8-0032_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/176900/ltcube_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.fits outfile=/scratch/kocevski/176900/expmap_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.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/176900/ltcube_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.fits
.....................!
real 191.25
user 185.09
sys 4.53

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/176900/ft1_filtered_4FGL_J2206.8-0032_daily_bin1103.fits scfile=/scratch/kocevski/176900/ft2_4FGL_J2206.8-0032_daily_bin1103.fits outfile=/scratch/kocevski/176900/cmap_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176900/ft1_filtered_4FGL_J2206.8-0032_daily_bin1103.fits scfile=/scratch/kocevski/176900/ft2_4FGL_J2206.8-0032_daily_bin1103.fits outfile=/scratch/kocevski/176900/cmap_HighResolution_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5467       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9576       1.0000         .10000E-03   10000.    
     8 'norm      '    33.565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12812E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18616E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2633       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.956       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75933       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0819       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=   8047.864     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2393 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.155        32.454        .72012E-06    .78061E-04
   2  Prefactor     .10000E-03    1.1501       -.43910E-06** at limit **
   3  Prefactor     28.239        34.974        .15057E-05    .13552E-03
   4  Prefactor     .10000E-03    8.3045       -.31519E-07** at limit **
   5  Prefactor     .10000E-03    47.954        .35890E-06** at limit **
   6  Prefactor     8.5781        40.403       -.43288E-06    .28562E-04
   7  norm          5.9586        3.2589        .12256E-05    .42038E-03
   8  norm          33.554        24.817       -.78637E-06   -.36386E-04
   9  Prefactor     .10000E-03    8.5075        .22166E-05** at limit **
  10  Prefactor     .10000E-03    2.9863       -.13452E-06** at limit **
  11  Prefactor     .10000E-03    8.5447        .21039E-06** at limit **
  12  Prefactor     .10000E-03    36.676        .15714E-06** at limit **
  13  Prefactor     .10070E-03    13.051       -.29777E-05** at limit **
  14  Prefactor     18.778        16.389        .20676E-06    .46007E-03
  15  Prefactor     .10000E-03    18.111       -.90883E-07** at limit **
  16  Prefactor     9.2641        8.0731        .24985E-07    .11877E-03
  17  Prefactor     .10000E-03    33.123       -.66583E-06** at limit **
  18  Prefactor     .10000E-03    2.3542        .38644E-06** at limit **
  19  norm          5.1202        3.3647        .23235E-05    .65301E-03
  20  Prefactor     50.059        60.808       -.39181E-06    .20372E-03
  21  Normalizat    .75971        .20855       -.17107E-05    .23133E-03
  22  Prefactor     1.0816        .11800       -.16455E-06    .38589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1546
  Prefactor  = 0.0001
  Prefactor  = 28.2385
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.57813
  norm       = 5.95858
  norm       = 33.5536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100699
  Prefactor  = 18.7784
  Prefactor  = 0.0001
  Prefactor  = 9.26413
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.12023
  Prefactor  = 50.0592
  Normalizat = 0.75971
  Prefactor  = 1.08164
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.864     FROM HESSE     STATUS=OK           338 CALLS     2731 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.155        31.752        .64043E-04   -1.4456    
   2  Prefactor     .10000E-03    1.7161        .17665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.239        34.443        .75406E-04   -1.4645    
   4  Prefactor     .10000E-03    8.3085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5781        39.850        .13712E-03   -1.5122    
   7  norm          5.9586        3.2580        .55097E-03   -1.5220    
   8  norm          33.554        24.759        .69166E-04   -1.4549    
   9  Prefactor     .10000E-03    8.6867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0296        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10070E-03    64.946        .55323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.778        15.388        .92424E-04   -1.4841    
  15  Prefactor     .10000E-03    18.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2641        8.0626        .13168E-03   -1.5099    
  17  Prefactor     .10000E-03    33.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4151        .26808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1202        3.3690        .62908E-03   -1.5255    
  20  Prefactor     50.059        60.487        .28369E-03   -1.4292    
  21  Normalizat    .75971        .24137        .35658E-03   -1.0158    
  22  Prefactor     1.0816        .13782        .17954E-03   -.90055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0998e-08
Minuit parameter uncertainties:
  1  31.7653
  2  1.74611e-05
  3  34.4671
  4  8.31047e-06
  5  0.000316858
  6  37.0181
  7  3.25813
  8  24.7668
  9  3.50465e-05
  10  4.14046e-06
  11  4.1491e-05
  12  0.000141346
  13  0.0134941
  14  15.3914
  15  2.41939e-05
  16  8.06356
  17  0.00026353
  18  5.31811e-06
  19  3.36913
  20  60.5613
  21  0.241705
  22  0.137866
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.007e-04  1.349e-02  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:  1.082e+00  1.379e-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:  7.597e-01  2.417e-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: 8.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/176900/likelihoodResults_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.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) = 8047.86425039
delta logL = -7.2305161666e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8047.86425037
delta logL = -7.22928116375e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96352E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2474       1.0000          .0000       10.000    
     3 'Normalizat'    .75971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8047.815     FROM MIGRAD    STATUS=FAILED       145 CALLS      312 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2381        129.38        .30892E-03   -.40445E-04
   2  Index         3.1108        6.0033        .10698E-01    .21708E-03
   3  Normalizat    .74711        .23479        .35933E-03    .36733E-04
   4  Prefactor     1.0840        .14064        .17936E-03    .44345E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8047.815     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      405 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2381        129.38        .28665E-03   -1.5485    
   2  Index         3.1108        6.0033        .23582E-02   -.38747    
   3  Normalizat    .74711        .23479        .16458E-03   -1.0206    
   4  Prefactor     1.0840        .14064        .77113E-04   -.89981    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8047.815     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      434 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2381        11.161        .12357E-04   -.26497E-04
   2  Index         3.1108        2.4024        .21395E-02   -.35124E-05
   3  Normalizat    .74711        .23408        .14373E-04    .34328E-04
   4  Prefactor     1.0840        .13775        .35871E-04    .41644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2381
  Index      = 3.11077
  Normalizat = 0.747106
  Prefactor  = 1.08395
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.815     FROM HESSE     STATUS=OK            23 CALLS      457 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2381        9.6681        .24713E-05   -1.5485    
   2  Index         3.1108        2.2503        .85580E-04   -.38747    
   3  Normalizat    .74711        .23404        .28746E-05   -1.0206    
   4  Prefactor     1.0840        .13771        .71743E-05   -.89981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07326e-12
Minuit parameter uncertainties:
  1  6.92082
  2  2.34993
  3  0.234353
  4  0.137751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176900': 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) = 8047.81522949
delta logL = 0.0489485950557

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.238e+00  6.921e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  3.111e+00  2.350e+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:  1.084e+00  1.378e-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:  7.471e-01  2.344e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/176900/cmap_HighResolution_525225601_525484801_4FGL_J2206.8-0032_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-28 04:50:30.133181', job_id='176900', GAL2='1.08', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1632829830.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.89e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1103' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 176900: <4FGL_J2206.8-0032_daily_bin1103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1103 331.709 -0.5461 525225601 525484801 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 :                                   725.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

