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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1055
RA = 331.709, Dec = -0.5461
tmin = 512784001, tmax = 513043201
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='176843', job_status='RUN', time_executed='2021-09-28 04:39:59.104123', time_epoch_executed='1632829199.1' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176843/ft1_4FGL_J2206.8-0032_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176843/ft2_4FGL_J2206.8-0032_daily_bin1055.fits


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

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

Done.
real 4.38
user 4.12
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176843/ft1_filtered_4FGL_J2206.8-0032_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/176843/ft2_4FGL_J2206.8-0032_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/176843/ltcube_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.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/176843/ft2_4FGL_J2206.8-0032_daily_bin1055.fits
.....................!
real 12.07
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176843/ft1_filtered_4FGL_J2206.8-0032_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/176843/ft2_4FGL_J2206.8-0032_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/176843/ltcube_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.fits outfile=/scratch/kocevski/176843/expmap_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.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/176843/ltcube_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.fits
.....................!
real 191.47
user 186.84
sys 4.24

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/176843/ft1_filtered_4FGL_J2206.8-0032_daily_bin1055.fits scfile=/scratch/kocevski/176843/ft2_4FGL_J2206.8-0032_daily_bin1055.fits outfile=/scratch/kocevski/176843/cmap_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=331.709 yref=-0.5461 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176843/ft1_filtered_4FGL_J2206.8-0032_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/176843/ft2_4FGL_J2206.8-0032_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176843/Model_4FGL_J2206.8-0032_daily_bin1055.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/176843/ft1_filtered_4FGL_J2206.8-0032_daily_bin1055.fits.....................!
real 77.67
user 76.29
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19604E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13657E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10759E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    96.043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7042       1.0000         .10000E-03   10000.    
     7 'norm      '    .21361       1.0000         .10000E-03   10000.    
     8 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30219E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41796E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11302E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.747       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2571       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24172E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11639       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83130       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=   7618.807     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     2307 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.066        .10123E-01** at limit **
   2  Prefactor     .89633        1.8386        .32243E-01    .10356E-02
   3  Prefactor     .10000E-03    31.216        .90912E-02** at limit **
   4  Prefactor     .10000E-03    13.664        .10357E-01** at limit **
   5  Prefactor     117.81        120.95        .10253E-02    .11309E-05
   6  Prefactor     4.2647        185.19        .52457E-02    .18990E-03
   7  norm          .10000E-03    1.3457        .59390E-01** at limit **
   8  norm          .10000E-03    7.9118        .90712E-02** at limit **
   9  Prefactor     .10000E-03    9.0076        .90712E-02** at limit **
  10  Prefactor     .10000E-03    4.7992        .63810E-01** at limit **
  11  Prefactor     .10000E-03    5.7310        .90712E-02** at limit **
  12  Prefactor     .10000E-03    31.967        .97197E-02** at limit **
  13  Prefactor     20.031        16.571        .22644E-02    .23125E-04
  14  Prefactor     .10000E-03    20.976        .90795E-02** at limit **
  15  Prefactor     94.116        56.599        .10113E-02    .10904E-05
  16  Prefactor     6.2421        9.4095        .40119E-02    .12435E-03
  17  Prefactor     .10000E-03    43.989        .10026E-01** at limit **
  18  Prefactor     .10000E-03    2.0443        .90712E-02** at limit **
  19  norm          1.6061        3.8292        .83184E-02    .11328E-02
  20  Prefactor     .10000E-03    121.42        .95891E-02** at limit **
  21  Normalizat    1.6782        .24892        .68627E-01   -.11834E-06
  22  Prefactor     .82926        .12862        .44123E-01    .11633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.896325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.809
  Prefactor  = 4.26466
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.031
  Prefactor  = 0.0001
  Prefactor  = 94.1164
  Prefactor  = 6.24213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60609
  Prefactor  = 0.0001
  Normalizat = 1.67819
  Prefactor  = 0.829262
 **********
 **   18 **HESSE 
 **********

 FCN=   7618.807     FROM HESSE     STATUS=OK           342 CALLS     2649 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.091        .20247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .89633        1.5301        .16133E-02   -1.5519    
   3  Prefactor     .10000E-03    31.305        .18182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.682        .20714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     117.81        109.53        .41014E-04   -1.3533    
   6  Prefactor     4.2647        184.12        .10491E-02   -1.5295    
   7  norm          .10000E-03    18.014        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.9256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.947        .36960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.172        .19439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.031        16.555        .90577E-04   -1.4813    
  14  Prefactor     .10000E-03    21.126        .18159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     94.116        56.826        .40454E-04   -1.3765    
  16  Prefactor     6.2421        9.4039        .16048E-03   -1.5208    
  17  Prefactor     .10000E-03    44.017        .20051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0758        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6061        3.8197        .25010E-03   -1.5455    
  20  Prefactor     .10000E-03    122.16        .19178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6782        .29973        .30357E-03   -.72887    
  22  Prefactor     .82926        .15536        .22497E-03   -.98659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51055e-09
Minuit parameter uncertainties:
  1  1.56063e-05
  2  1.53018
  3  2.52916e-05
  4  1.13569e-06
  5  109.719
  6  56.2285
  7  6.46448e-06
  8  4.52096e-07
  9  1.43063e-06
  10  8.58429e-06
  11  5.32236e-07
  12  3.31648e-05
  13  16.5592
  14  6.31081e-06
  15  56.859
  16  9.40608
  17  3.58251e-05
  18  7.91943e-08
  19  3.82026
  20  1.29631e-06
  21  0.300049
  22  0.155438
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  2.003e+01  1.656e+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:  8.293e-01  1.554e-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.678e+00  3.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 331.709 -0.546
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.53e-05

TS (Fixed Index): 2.58
Ra Dec: 331.709 -0.546
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/176843/likelihoodResults_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.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): 0
logL (Free Index) = 7618.78358714
delta logL = 0.0238697059776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7618.775604
delta logL = 0.0318528505941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.799       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3993       1.0000          .0000       10.000    
     3 'Normalizat'    1.6706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83140       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=   7618.776     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      260 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.797        18.561        .94935E-04    .89934E-04
   2  Index         2.3999        .64296        .80416E-02    .34862E-04
   3  Normalizat    1.6705        .28405        .30412E-03    .13284E-03
   4  Prefactor     .83149        .15489        .22470E-03    .15619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7966
  Index      = 2.3999
  Normalizat = 1.67054
  Prefactor  = 0.831487
 **********
 **   18 **HESSE 
 **********

 FCN=   7618.776     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.797        17.667        .37974E-05   -1.4864    
   2  Index         2.3999        .61181        .32167E-03   -.54688    
   3  Normalizat    1.6705        .28412        .60825E-04   -.73093    
   4  Prefactor     .83149        .15497        .89879E-05   -.98578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.726e-11
Minuit parameter uncertainties:
  1  17.6725
  2  0.613921
  3  0.284399
  4  0.155052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176843': 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) = 7618.77560307
delta logL = 0.0318537760495

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.780e+01  1.767e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.400e+00  6.139e-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:  8.315e-01  1.551e-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.671e+00  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 331.709 -0.546
Photon Index (Free Index): 2.40 +/- 0.61
Photon Flux (Free Index): 5.21e-08 +/- 4.98e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.46e-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/176843/cmap_HighResolution_512784001_513043201_4FGL_J2206.8-0032_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.71e-05', photon_flux_error='3.71e-08', dlogl='3.19e-02', energy_flux='1.85e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-28 04:51:44.058295', photon_index_error2='0.61', photon_index2='2.40', ts='2.58', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.46e-05', EG='1.68', time_epoch_completed='1632829904.06', return_code='0', job_id='176843', GAL2='0.83', EG2='1.67', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.98e-08', ts2='2.65', photon_index='2.25' WHERE bin_id='1055' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:51:44 PDT 2021


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

Job <4FGL_J2206.8-0032_daily_bin1055> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 04:35:50 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:35:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 04:35:52 2021
Terminated at Tue Sep 28 04:51:44 2021
Results reported at Tue Sep 28 04:51:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1055 331.709 -0.5461 512784001 513043201 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 :                                   703.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

