/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 223 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2206.8-0032_daily_bin315
RA = 331.709, Dec = -0.5461
tmin = 320976001, tmax = 321235201
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='172600', job_status='RUN', time_executed='2021-09-28 04:24:21.334458', time_epoch_executed='1632828261.33' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172600/ft1_4FGL_J2206.8-0032_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172600/ft2_4FGL_J2206.8-0032_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172600/ft1_4FGL_J2206.8-0032_daily_bin315.fits outfile=/scratch/kocevski/172600/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin315.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=320976001.0 tmax=321235201.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.47
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172600/ft1_filtered_4FGL_J2206.8-0032_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/172600/ft2_4FGL_J2206.8-0032_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/172600/ltcube_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.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/172600/ft2_4FGL_J2206.8-0032_daily_bin315.fits
.....................!
real 11.87
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172600/ft1_filtered_4FGL_J2206.8-0032_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/172600/ft2_4FGL_J2206.8-0032_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/172600/ltcube_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.fits outfile=/scratch/kocevski/172600/expmap_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.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/172600/ltcube_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.fits
.....................!
real 190.21
user 185.56
sys 4.29

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/172600/ft1_filtered_4FGL_J2206.8-0032_daily_bin315.fits scfile=/scratch/kocevski/172600/ft2_4FGL_J2206.8-0032_daily_bin315.fits outfile=/scratch/kocevski/172600/cmap_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172600/ft1_filtered_4FGL_J2206.8-0032_daily_bin315.fits scfile=/scratch/kocevski/172600/ft2_4FGL_J2206.8-0032_daily_bin315.fits outfile=/scratch/kocevski/172600/cmap_HighResolution_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10952E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11679E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4701       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    99.660       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0420       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=   5797.659     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2315 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.470       -.66107E-07** at limit **
   2  Prefactor     .10001E-03    5.5846        .49792E-05** at limit **
   3  Prefactor     33.690        32.472       -.38129E-05   -.71369E-03
   4  Prefactor     .10000E-03    17.541        .29626E-06** at limit **
   5  Prefactor     .10000E-03    39.965        .46870E-07** at limit **
   6  Prefactor     .10000E-03    15.255       -.60342E-06** at limit **
   7  norm          .10000E-03    1.7506       -.59180E-06** at limit **
   8  norm          17.749        19.150        .28203E-06    .15165E-03
   9  Prefactor     .10000E-03    3.3288       -.62410E-07** at limit **
  10  Prefactor     .10000E-03    2.0383       -.28528E-07** at limit **
  11  Prefactor     .10000E-03    8.3863        .76773E-07** at limit **
  12  Prefactor     .10000E-03    6.2293        .26199E-06** at limit **
  13  Prefactor     .10000E-03    7.9234       -.67602E-07** at limit **
  14  Prefactor     .10000E-03    19.312        .20871E-06** at limit **
  15  Prefactor     .10000E-03    9.2547       -.26262E-06** at limit **
  16  Prefactor     4.4688        9.0941        .40022E-06    .50816E-03
  17  Prefactor     .10000E-03    37.722       -.73969E-06** at limit **
  18  Prefactor     .10000E-03    2.1361        .10801E-06** at limit **
  19  norm          15.224        6.6874        .91667E-08    .37021E-03
  20  Prefactor     99.652        93.266        .64341E-06    .27158E-04
  21  Normalizat    1.2368        .26559       -.12293E-05   -.27956E-03
  22  Prefactor     1.0421        .14764        .14893E-05   -.17086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 33.6903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.46877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.224
  Prefactor  = 99.6517
  Normalizat = 1.23678
  Prefactor  = 1.04208
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.659     FROM HESSE     STATUS=OK           330 CALLS     2645 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    6.3329        .18570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.690        35.279        .69083E-04   -1.4546    
   4  Prefactor     .10000E-03    17.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0911        .19145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.749        18.927        .95067E-04   -1.4865    
   9  Prefactor     .10000E-03    3.3451        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0393        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4688        9.4410        .95223E-03   -1.5285    
  17  Prefactor     .10000E-03    37.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1539        .10866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.224        6.7015        .51324E-03   -1.4927    
  20  Prefactor     99.652        93.288        .20135E-03   -1.3708    
  21  Normalizat    1.2368        .31747        .32446E-03   -.85474    
  22  Prefactor     1.0421        .17779        .19872E-03   -.91340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69412e-09
Minuit parameter uncertainties:
  1  3.14635e-05
  2  0.000414057
  3  35.3008
  4  5.56981e-06
  5  8.16117e-07
  6  5.86854e-05
  7  3.96703e-05
  8  18.9336
  9  5.6287e-06
  10  2.99816e-06
  11  1.22664e-05
  12  6.36157e-06
  13  1.58733e-05
  14  5.22058e-05
  15  3.32019e-05
  16  9.44412
  17  0.000107071
  18  4.60992e-06
  19  6.70181
  20  93.4253
  21  0.317964
  22  0.177889
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.587e-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:  1.042e+00  1.779e-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.237e+00  3.180e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172600/likelihoodResults_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.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) = 5797.6591181
delta logL = -0.000599867013989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5797.65851853
delta logL = -3.01402906189e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2302       1.0000          .0000       10.000    
     3 'Normalizat'    1.2366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0422       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=   5797.659     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    97.827        .18142E-02** at limit **
   2  Index         2.1671        8.8785        .50000        .14495E-04
   3  Normalizat    1.2368        .22143E-01    .32446E-03    .19376E-04
   4  Prefactor     1.0421        .12653E-01    .19872E-03    .29406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101387
  Index      = 2.16708
  Normalizat = 1.23679
  Prefactor  = 1.04208
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.659     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10139E-03    409.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1671        6.0773        .50000       -.60235    
   3  Normalizat    1.2368        .47644E-01    .12978E-04   -.85474    
   4  Prefactor     1.0421        .27225E-01    .79487E-05   -.91340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15569e-08
Minuit parameter uncertainties:
  1  0.0480067
  2  832.078
  3  0.0476456
  4  0.0272251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172600': 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) = 5797.65851799
delta logL = 2.34081198869e-07

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.014e-04  4.801e-02  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.167e+00  8.321e+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.042e+00  2.723e-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.237e+00  4.765e-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/172600/cmap_HighResolution_320976001_321235201_4FGL_J2206.8-0032_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-28 04:34:14.681994', job_id='172600', GAL2='1.04', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632828854.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='315' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:34:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 172600: <4FGL_J2206.8-0032_daily_bin315> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin315> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 04:20:28 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:20:29 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:20:29 2021
Terminated at Tue Sep 28 04:34:15 2021
Results reported at Tue Sep 28 04:34:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin315 331.709 -0.5461 320976001 321235201 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 :                                   592.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

