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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1359
RA = 331.709, Dec = -0.5461
tmin = 591580801, tmax = 591840001
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='178320', job_status='RUN', time_executed='2021-09-28 04:42:58.247548', time_epoch_executed='1632829378.25' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178320/ft1_4FGL_J2206.8-0032_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178320/ft1_4FGL_J2206.8-0032_daily_bin1359.fits outfile=/scratch/kocevski/178320/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1359.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=591580801.0 tmax=591840001.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.78
user 3.55
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.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/178320/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1359.fits evtable="EVENTS" outfile="/scratch/kocevski/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/178320/ltcube_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.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/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits
.....................!
real 11.94
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/178320/ltcube_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.fits outfile=/scratch/kocevski/178320/expmap_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.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/178320/ltcube_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.fits
.....................!
real 192.48
user 187.65
sys 4.51

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/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.fits scfile=/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits outfile=/scratch/kocevski/178320/cmap_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.fits scfile=/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits outfile=/scratch/kocevski/178320/cmap_HighResolution_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/178320/ft2_4FGL_J2206.8-0032_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178320/Model_4FGL_J2206.8-0032_daily_bin1359.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/178320/ft1_filtered_4FGL_J2206.8-0032_daily_bin1359.fits.....................!
real 36.63
user 35.29
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.048       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .94508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.937       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46268E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15106E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .96509       1.0000         .10000E-03   10000.    
    20 'Prefactor '    303.76       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .31760       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1805       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=   3055.712     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2401 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.056        50.426       -.20952E-06    .13437E-04
   2  Prefactor     .94259        2.7222        .54425E-06    .34981E-03
   3  Prefactor     27.987        45.909        .10838E-05    .76066E-04
   4  Prefactor     .10000E-03    24.269        .32679E-06** at limit **
   5  Prefactor     .10000E-03    53.191       -.51771E-06** at limit **
   6  Prefactor     42.911        69.278        .24213E-05    .76464E-04
   7  norm          .10000E-03    1.0270        .18728E-06** at limit **
   8  norm          .10000E-03    10.830        .43930E-06** at limit **
   9  Prefactor     .10000E-03    11.324        .15185E-05** at limit **
  10  Prefactor     .10000E-03    7.6664        .62274E-06** at limit **
  11  Prefactor     .10000E-03    27.664        .24709E-05** at limit **
  12  Prefactor     .10000E-03    19.549        .55340E-06** at limit **
  13  Prefactor     .10000E-03    14.655        .81910E-06** at limit **
  14  Prefactor     40.178        34.764        .10944E-05    .18982E-03
  15  Prefactor     .10000E-03    31.523        .97244E-06** at limit **
  16  Prefactor     30.051        23.920       -.33237E-06    .44493E-03
  17  Prefactor     .10006E-03    506.70        .96323E-05** at limit **
  18  Prefactor     .10005E-03    15.352       -.33460E-05** at limit **
  19  norm          .90638        26.713       -.24764E-05    .20669E-03
  20  Prefactor     304.23        251.23        .34586E-05    .10263E-03
  21  Normalizat    .31789        .41032       -.10971E-04    .73537E-04
  22  Prefactor     1.1806        .21633        .30488E-05    .48461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.056
  Prefactor  = 0.942595
  Prefactor  = 27.9872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9113
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1782
  Prefactor  = 0.0001
  Prefactor  = 30.0507
  Prefactor  = 0.000100057
  Prefactor  = 0.000100055
  norm       = 0.906383
  Prefactor  = 304.231
  Normalizat = 0.317893
  Prefactor  = 1.18057
 **********
 **   18 **HESSE 
 **********

 FCN=   3055.712     FROM HESSE     STATUS=OK           332 CALLS     2733 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.056        49.615        .60406E-04   -1.4379    
   2  Prefactor     .94259        2.6378        .14121E-03   -1.5514    
   3  Prefactor     27.987        45.449        .75711E-04   -1.4649    
   4  Prefactor     .10000E-03    24.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.911        68.864        .61180E-04   -1.4397    
   7  norm          .10000E-03    1.0310        .54727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.844        .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.331        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7509        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.178        34.894        .63223E-04   -1.4439    
  15  Prefactor     .10000E-03    31.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.051        22.806        .73174E-04   -1.4611    
  17  Prefactor     .10006E-03    515.77        .21195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    22.318        .30262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .90638        28.748        .25192E-02   -1.5518    
  20  Prefactor     304.23        258.21        .11654E-03   -1.2202    
  21  Normalizat    .31789        .39393        .52095E-03   -1.2179    
  22  Prefactor     1.1806        .21298        .16280E-03   -.86931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95722e-09
Minuit parameter uncertainties:
  1  49.662
  2  2.63808
  3  45.5054
  4  7.02167e-05
  5  0.000280435
  6  68.9919
  7  6.01836e-06
  8  3.14457e-05
  9  0.000152552
  10  5.88804e-05
  11  0.000435173
  12  3.69914e-05
  13  0.000105852
  14  34.9116
  15  0.000205798
  16  22.8127
  17  0.0109267
  18  0.00221663
  19  10.2139
  20  259.193
  21  0.397431
  22  0.213139
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.059e-04  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.181e+00  2.131e-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:  3.179e-01  3.974e-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.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178320/likelihoodResults_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.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) = 3055.71218389
delta logL = -0.000324545506828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3055.71186059
delta logL = -1.23901463667e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8272       1.0000          .0000       10.000    
     3 'Normalizat'    .31788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1806       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=   3055.712     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    94.177        .17805E-02** at limit **
   2  Index         2.7645        6.0000        .50000        .14918E-04
   3  Normalizat    .31790        .21670E-01    .52096E-03    .18309E-04
   4  Prefactor     1.1806        .12673E-01    .16279E-03    .33346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101596
  Index      = 2.76453
  Normalizat = 0.317898
  Prefactor  = 1.18057
 **********
 **   18 **HESSE 
 **********

 FCN=   3055.712     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10160E-03    419.20        .35610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7645        5.1281        .50000       -.46351    
   3  Normalizat    .31790        .47521E-01    .20838E-04   -1.2179    
   4  Prefactor     1.1806        .27788E-01    .65118E-05   -.86931    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.99719e-08
Minuit parameter uncertainties:
  1  0.0521009
  2  740.274
  3  0.0475273
  4  0.0277887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178320': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3055.71186043
delta logL = -1.08234735308e-06

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.016e-04  5.210e-02  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.765e+00  7.403e+02  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.181e+00  2.779e-02  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:  3.179e-01  4.753e-02  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/178320/cmap_HighResolution_591580801_591840001_4FGL_J2206.8-0032_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-28 04:51:17.031452', job_id='178320', GAL2='1.18', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1632829877.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1359' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 178320: <4FGL_J2206.8-0032_daily_bin1359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1359 331.709 -0.5461 591580801 591840001 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 :                                   461.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            636 sec.

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

