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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin469
RA = 331.709, Dec = -0.5461
tmin = 360892801, tmax = 361152001
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='173994', job_status='RUN', time_executed='2021-09-28 04:29:15.096532', time_epoch_executed='1632828555.1' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173994

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173994/ft1_4FGL_J2206.8-0032_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173994/ft1_4FGL_J2206.8-0032_daily_bin469.fits outfile=/scratch/kocevski/173994/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin469.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=360892801.0 tmax=361152001.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.51
user 3.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.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/173994/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin469.fits evtable="EVENTS" outfile="/scratch/kocevski/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/173994/ltcube_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.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/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/173994/ltcube_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.fits outfile=/scratch/kocevski/173994/expmap_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.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/173994/ltcube_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.fits
.....................!
real 190.47
user 185.86
sys 4.25

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/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits scfile=/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits outfile=/scratch/kocevski/173994/cmap_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits scfile=/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits outfile=/scratch/kocevski/173994/cmap_HighResolution_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=331.709 yref=-0.5461 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/173994/ft2_4FGL_J2206.8-0032_daily_bin469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/173994/Model_4FGL_J2206.8-0032_daily_bin469.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/173994/ft1_filtered_4FGL_J2206.8-0032_daily_bin469.fits.....................!
real 89.31
user 87.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6425       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.314       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2080       1.0000         .10000E-03   10000.    
     8 'norm      '    .10844E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .88931E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41252E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9095       1.0000         .10000E-03   10000.    
    19 'norm      '    6.9071       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.465       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4064       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74994       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=   8930.151     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2361 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.992        .13369E-05** at limit **
   2  Prefactor     1.6428        1.7207        .99939E-08   -.46368E-03
   3  Prefactor     .10000E-03    7.4312        .65371E-07** at limit **
   4  Prefactor     .10000E-03    11.342       -.11678E-05** at limit **
   5  Prefactor     .10000E-03    53.363       -.12506E-05** at limit **
   6  Prefactor     28.305        34.445       -.59673E-05   -.39482E-03
   7  norm          1.2079        2.0895        .22814E-06   -.33482E-03
   8  norm          .10000E-03    19.162       -.27650E-05** at limit **
   9  Prefactor     .10000E-03    2.1472        .18176E-07** at limit **
  10  Prefactor     6.8399        5.2462        .19096E-06   -.87894E-03
  11  Prefactor     .10060E-03    5.5683        .18441E-05** at limit **
  12  Prefactor     .10000E-03    3.5507       -.78594E-08** at limit **
  13  Prefactor     .10000E-03    11.662        .89366E-06** at limit **
  14  Prefactor     .10001E-03    9.2345       -.71806E-06** at limit **
  15  Prefactor     .10000E-03    5.4615        .10653E-07** at limit **
  16  Prefactor     23.880        12.662        .85119E-07    .63643E-05
  17  Prefactor     .10000E-03    21.207        .12484E-05** at limit **
  18  Prefactor     3.9099        3.8314       -.11613E-06   -.13800E-03
  19  norm          6.9067        2.7480        .44691E-06   -.30005E-02
  20  Prefactor     46.462        56.716       -.21910E-05   -.72751E-04
  21  Normalizat    1.4065        .19260        .32481E-06   -.24190E-03
  22  Prefactor     .74986        .10483       -.92574E-07   -.23883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.64276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3047
  norm       = 1.20792
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.83994
  Prefactor  = 0.000100596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 23.8797
  Prefactor  = 0.0001
  Prefactor  = 3.90987
  norm       = 6.90665
  Prefactor  = 46.4623
  Normalizat = 1.40654
  Prefactor  = 0.749856
 **********
 **   18 **HESSE 
 **********

 FCN=   8930.151     FROM HESSE     STATUS=OK           340 CALLS     2701 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6428        1.7118        .12221E-03   -1.5452    
   3  Prefactor     .10000E-03    7.4410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.305        35.699        .75291E-04   -1.4643    
   7  norm          1.2079        2.0997        .17408E-03   -1.5488    
   8  norm          .10000E-03    19.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1553        .13524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8399        5.5256        .76704E-03   -1.5185    
  11  Prefactor     .10060E-03    53.401        .39507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5523        .17390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    60.321        .54276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.880        12.627        .81964E-04   -1.4730    
  17  Prefactor     .10000E-03    21.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9099        3.8091        .16481E-03   -1.5312    
  19  norm          6.9067        3.7901        .63878E-03   -1.5182    
  20  Prefactor     46.462        56.745        .58822E-04   -1.4344    
  21  Normalizat    1.4065        .23311        .27793E-03   -.80440    
  22  Prefactor     .74986        .12654        .20653E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38879e-08
Minuit parameter uncertainties:
  1  0.000146596
  2  1.71188
  3  7.31692e-06
  4  0.000115465
  5  0.000263354
  6  35.7264
  7  2.0998
  8  0.000227281
  9  1.32158e-05
  10  5.52606
  11  0.0112972
  12  1.26542e-06
  13  7.45031e-05
  14  0.00156453
  15  7.44124e-07
  16  12.6286
  17  0.000164182
  18  3.80929
  19  3.79023
  20  56.811
  21  0.23329
  22  0.126588
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  7.450e-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:  7.499e-01  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.407e+00  2.333e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/173994/likelihoodResults_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.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) = 8930.15095235
delta logL = -0.000405851162213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8930.15054625
delta logL = 2.46946001425e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3014       1.0000          .0000       10.000    
     3 'Normalizat'    1.4064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74992       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=   8930.151     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    1306.6        .18142E-02** at limit **
   2  Index         2.3706        6.6858        .50000       -.50401E-04
   3  Normalizat    1.4065        .46582E-01    .27793E-03   -.81975E-04
   4  Prefactor     .74986        .26325E-01    .20653E-03   -.63743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100046
  Index      = 2.37059
  Normalizat = 1.40654
  Prefactor  = 0.749856
 **********
 **   18 **HESSE 
 **********

 FCN=   8930.151     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    6747.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3706        6.9738        .50000       -.55375    
   3  Normalizat    1.4065        .16446        .11117E-04   -.80440    
   4  Prefactor     .74986        .92960E-01    .82613E-05   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9918e-09
Minuit parameter uncertainties:
  1  0.0271703
  2  65.5823
  3  0.164527
  4  0.0929797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173994': 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) = 8930.1505452
delta logL = 1.30181251734e-06

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.717e-02  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.371e+00  6.558e+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:  7.499e-01  9.298e-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:  1.407e+00  1.645e-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/173994/cmap_HighResolution_360892801_361152001_4FGL_J2206.8-0032_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-28 04:41:58.968186', job_id='173994', GAL2='0.75', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632829318.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='469' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:41:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 173994: <4FGL_J2206.8-0032_daily_bin469> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin469> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 04:25:25 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:25:26 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:25:26 2021
Terminated at Tue Sep 28 04:41:59 2021
Results reported at Tue Sep 28 04:41:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin469 331.709 -0.5461 360892801 361152001 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 :                                   763.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

