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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin756
RA = 331.709, Dec = -0.5461
tmin = 435283201, tmax = 435542401
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='175286', job_status='RUN', time_executed='2021-09-28 04:34:38.826670', time_epoch_executed='1632828878.83' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175286/ft1_4FGL_J2206.8-0032_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175286/ft2_4FGL_J2206.8-0032_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175286/ft1_4FGL_J2206.8-0032_daily_bin756.fits outfile=/scratch/kocevski/175286/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin756.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=435283201.0 tmax=435542401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.17
user 4.92
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175286/ft2_4FGL_J2206.8-0032_daily_bin756.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/175286/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/175286/ft1_filtered_4FGL_J2206.8-0032_daily_bin756.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/175286/ft1_filtered_4FGL_J2206.8-0032_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/175286/ft2_4FGL_J2206.8-0032_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/175286/ltcube_435283201_435542401_4FGL_J2206.8-0032_daily_bin756.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/175286/ft2_4FGL_J2206.8-0032_daily_bin756.fits
.....................!
real 11.97
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175286/ft1_filtered_4FGL_J2206.8-0032_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/175286/ft2_4FGL_J2206.8-0032_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/175286/ltcube_435283201_435542401_4FGL_J2206.8-0032_daily_bin756.fits outfile=/scratch/kocevski/175286/expmap_435283201_435542401_4FGL_J2206.8-0032_daily_bin756.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/175286/ltcube_435283201_435542401_4FGL_J2206.8-0032_daily_bin756.fits
.....................!
real 192.79
user 187.78
sys 4.69

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/175286/ft1_filtered_4FGL_J2206.8-0032_daily_bin756.fits scfile=/scratch/kocevski/175286/ft2_4FGL_J2206.8-0032_daily_bin756.fits outfile=/scratch/kocevski/175286/cmap_435283201_435542401_4FGL_J2206.8-0032_daily_bin756.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.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175286/ft1_filtered_4FGL_J2206.8-0032_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/175286/ft2_4FGL_J2206.8-0032_daily_bin756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175286/Model_4FGL_J2206.8-0032_daily_bin756.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/175286/ft1_filtered_4FGL_J2206.8-0032_daily_bin756.fits.....................!
real 85.00
user 83.59
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    99.031       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5350       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7811       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8547       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3166       1.0000         .10000E-03   10000.    
    19 'norm      '    7.2207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    96.184       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79483       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=   8903.155     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2342 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.447        .20592E-05** at limit **
   2  Prefactor     1.2594        1.5146       -.44599E-06   -.64295E-03
   3  Prefactor     25.085        26.851        .39185E-05   -.35995E-04
   4  Prefactor     .10000E-03    14.329       -.25039E-06** at limit **
   5  Prefactor     .10000E-03    23.207        .91261E-06** at limit **
   6  Prefactor     99.044        43.269       -.75093E-06   -.20758E-04
   7  norm          1.5350        1.8476        .19286E-06    .21822E-04
   8  norm          .10000E-03    6.1924        .11784E-06** at limit **
   9  Prefactor     4.0258        4.3051        .71791E-07   -.18841E-04
  10  Prefactor     7.7828        6.8703        .77240E-07   -.30124E-04
  11  Prefactor     .10000E-03    4.0676       -.32933E-07** at limit **
  12  Prefactor     3.8536        14.504        .87793E-06   -.70427E-05
  13  Prefactor     15.640        12.293       -.84402E-07   -.86771E-04
  14  Prefactor     .10000E-03    10.315        .12610E-06** at limit **
  15  Prefactor     27.616        21.249        .32776E-06   -.21270E-04
  16  Prefactor     .39812        6.3395        .46459E-06   -.35528E-03
  17  Prefactor     .10000E-03    45.056       -.32169E-05** at limit **
  18  Prefactor     3.3262        4.6708        .19487E-05   -.19116E-03
  19  norm          7.2226        6.1631       -.23280E-06   -.12505E-03
  20  Prefactor     96.205        109.00       -.31546E-05   -.21909E-04
  21  Normalizat    1.1847        .20528       -.20993E-06   -.19894E-03
  22  Prefactor     .79506        .10430       -.87732E-06   -.32404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.25937
  Prefactor  = 25.0851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.0445
  norm       = 1.53495
  norm       = 0.0001
  Prefactor  = 4.0258
  Prefactor  = 7.78276
  Prefactor  = 0.0001
  Prefactor  = 3.85365
  Prefactor  = 15.6396
  Prefactor  = 0.0001
  Prefactor  = 27.6164
  Prefactor  = 0.398122
  Prefactor  = 0.0001
  Prefactor  = 3.32617
  norm       = 7.22264
  Prefactor  = 96.2055
  Normalizat = 1.18466
  Prefactor  = 0.795064
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.155     FROM HESSE     STATUS=OK           348 CALLS     2690 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2594        1.4906        .11885E-03   -1.5484    
   3  Prefactor     25.085        27.001        .79906E-04   -1.4706    
   4  Prefactor     .10000E-03    14.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     99.044        43.308        .40396E-04   -1.3714    
   7  norm          1.5350        1.8320        .13351E-03   -1.5460    
   8  norm          .10000E-03    6.2068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0258        4.2949        .19148E-03   -1.5307    
  10  Prefactor     7.7828        6.8927        .14375E-03   -1.5150    
  11  Prefactor     .10000E-03    4.0800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8536        14.489        .20554E-03   -1.5315    
  13  Prefactor     15.640        12.290        .10130E-03   -1.4917    
  14  Prefactor     .10000E-03    10.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.616        21.247        .76234E-04   -1.4656    
  16  Prefactor     .39812        82.340        .41891E-02   -1.5582    
  17  Prefactor     .10000E-03    44.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3262        5.0364        .11114E-02   -1.5343    
  19  norm          7.2226        6.1608        .14927E-03   -1.5170    
  20  Prefactor     96.205        108.86        .20492E-03   -1.3743    
  21  Normalizat    1.1847        .24747        .30619E-03   -.87078    
  22  Prefactor     .79506        .12534        .19902E-03   -.99911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0026e-09
Minuit parameter uncertainties:
  1  0.000136191
  2  1.4906
  3  27.0143
  4  9.87504e-06
  5  1.12381e-05
  6  43.3217
  7  1.83211
  8  9.94315e-06
  9  4.29519
  10  6.8934
  11  1.76194e-07
  12  14.5024
  13  12.2919
  14  1.05581e-05
  15  21.2523
  16  11.4656
  17  7.38649e-05
  18  5.03702
  19  6.1613
  20  109.091
  21  0.247713
  22  0.12539
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.564e+01  1.229e+01  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.951e-01  1.254e-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.185e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 331.709 -0.546
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.51e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.14e-05

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): 0
logL (Free Index) = 8902.99646315
delta logL = 0.158187004905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8902.99169088
delta logL = 0.162959266274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.863       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9039       1.0000          .0000       10.000    
     3 'Normalizat'    1.1964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79283       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.

 FCN=   8902.992     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.845        471.74        .24383E-02    .23956E-04
   2  Index         1.9031        5.6958        .26373        .11242E-04
   3  Normalizat    1.1968        .12726        .68892E-01    .68442E-04
   4  Prefactor     .79277        .45738E-01    .43624E-01    .95441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8454
  Index      = 1.90315
  Normalizat = 1.1968
  Prefactor  = 0.792767
 **********
 **   18 **HESSE 
 **********

 FCN=   8902.992     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.845        14.425        .97532E-04   -1.4887    
   2  Index         1.9031        .60925        .98237E-02   -.66794    
   3  Normalizat    1.1968        .22589        .30481E-03   -.86702    
   4  Prefactor     .79277        .12331        .19930E-03   -.99995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84134e-12
Minuit parameter uncertainties:
  1  14.4279
  2  0.611721
  3  0.226073
  4  0.123351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175286': 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) = 8902.99168569
delta logL = 0.162964463607

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.685e+01  1.443e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  1.903e+00  6.117e-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.928e-01  1.234e-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.197e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.46
Ra Dec: 331.709 -0.546
Photon Index (Free Index): 1.90 +/- 0.61
Photon Flux (Free Index): 2.20e-08 +/- 2.84e-08
Energy Flux (Free Index): 1.95e-05 +/- 2.15e-05

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/175286/cmap_HighResolution_435283201_435542401_4FGL_J2206.8-0032_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.51e-08', energy_flux2='1.95e-05', photon_flux_error='2.75e-08', dlogl='1.63e-01', energy_flux='1.45e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-28 04:45:59.468596', photon_index_error2='0.61', photon_index2='1.90', ts='5.14', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.15e-05', EG='1.18', time_epoch_completed='1632829559.47', return_code='0', job_id='175286', GAL2='0.79', EG2='1.20', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.84e-08', ts2='5.46', photon_index='2.25' WHERE bin_id='756' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 175286: <4FGL_J2206.8-0032_daily_bin756> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin756> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 04:30:37 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:30:40 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:30:40 2021
Terminated at Tue Sep 28 04:46:00 2021
Results reported at Tue Sep 28 04:46:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin756 331.709 -0.5461 435283201 435542401 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 :                                   679.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            923 sec.

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

