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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1282
RA = 331.709, Dec = -0.5461
tmin = 571622401, tmax = 571881601
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='178197', job_status='RUN', time_executed='2021-09-28 04:43:18.088006', time_epoch_executed='1632829398.09' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178197/ft1_4FGL_J2206.8-0032_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178197/ft2_4FGL_J2206.8-0032_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178197/ft1_4FGL_J2206.8-0032_daily_bin1282.fits outfile=/scratch/kocevski/178197/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1282.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.71
user 2.47
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178197/ft1_filtered_4FGL_J2206.8-0032_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/178197/ft2_4FGL_J2206.8-0032_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/178197/ltcube_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.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/178197/ft2_4FGL_J2206.8-0032_daily_bin1282.fits
.....................!
real 12.54
user 12.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178197/ft1_filtered_4FGL_J2206.8-0032_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/178197/ft2_4FGL_J2206.8-0032_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/178197/ltcube_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.fits outfile=/scratch/kocevski/178197/expmap_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.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/178197/ltcube_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.fits
.....................!
real 191.30
user 185.37
sys 5.61

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/178197/ft1_filtered_4FGL_J2206.8-0032_daily_bin1282.fits scfile=/scratch/kocevski/178197/ft2_4FGL_J2206.8-0032_daily_bin1282.fits outfile=/scratch/kocevski/178197/cmap_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.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.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178197/ft1_filtered_4FGL_J2206.8-0032_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/178197/ft2_4FGL_J2206.8-0032_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178197/Model_4FGL_J2206.8-0032_daily_bin1282.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/178197/ft1_filtered_4FGL_J2206.8-0032_daily_bin1282.fits.....................!
real 44.62
user 43.35
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    197.17       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13668E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.710       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13463E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .92461       1.0000         .10000E-03   10000.    
     8 'norm      '    6.7494       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11700E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.401       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48398       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87629       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=   3781.197     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2393 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     197.15        127.57        .30043E-06    .65046E-04
   2  Prefactor     .10000E-03    8.0001       -.34873E-05** at limit **
   3  Prefactor     16.611        80.080        .16296E-05    .26521E-04
   4  Prefactor     .10000E-03    470.04       -.31583E-05** at limit **
   5  Prefactor     .10000E-03    47.242       -.18650E-09** at limit **
   6  Prefactor     .10000E-03    114.05       -.34711E-05** at limit **
   7  norm          .90746        5.0479        .54668E-06    .92056E-04
   8  norm          6.8322        47.941       -.32578E-06   -.16228E-04
   9  Prefactor     11.592        12.102       -.48035E-06    .24370E-04
  10  Prefactor     93.346        95.475        .10928E-06   -.41888E-05
  11  Prefactor     .10000E-03    16.115       -.17332E-06** at limit **
  12  Prefactor     47.788        38.103        .16003E-06    .14469E-04
  13  Prefactor     .10000E-03    20.268        .25998E-07** at limit **
  14  Prefactor     30.723        33.131        .30941E-06    .17101E-04
  15  Prefactor     21.821        37.805        .53719E-06    .95723E-05
  16  Prefactor     77.207        32.343        .28319E-06    .15986E-04
  17  Prefactor     .10000E-03    187.08        .69194E-06** at limit **
  18  Prefactor     .10000E-03    5.9117        .12373E-06** at limit **
  19  norm          14.393        11.518        .25792E-06    .16310E-04
  20  Prefactor     .10000E-03    85.215        .37880E-06** at limit **
  21  Normalizat    .48439        .35507       -.38375E-05    .28244E-04
  22  Prefactor     .87622        .16381        .81056E-06    .27427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 197.147
  Prefactor  = 0.0001
  Prefactor  = 16.6111
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.907464
  norm       = 6.83217
  Prefactor  = 11.5921
  Prefactor  = 93.3464
  Prefactor  = 0.0001
  Prefactor  = 47.7879
  Prefactor  = 0.0001
  Prefactor  = 30.7228
  Prefactor  = 21.8207
  Prefactor  = 77.207
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 14.3929
  Prefactor  = 0.0001
  Normalizat = 0.48439
  Prefactor  = 0.876219
 **********
 **   18 **HESSE 
 **********

 FCN=   3781.197     FROM HESSE     STATUS=OK           342 CALLS     2735 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     197.15        127.85        .14386E-03   -1.2890    
   2  Prefactor     .10000E-03    7.9613        .33144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.611        81.071        .97980E-04   -1.4893    
   4  Prefactor     .10000E-03    472.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    113.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .90746        4.0241        .18989E-03   -1.5517    
   8  norm          6.8322        38.988        .15445E-03   -1.5185    
   9  Prefactor     11.592        12.023        .11765E-03   -1.5027    
  10  Prefactor     93.346        95.442        .20795E-03   -1.3773    
  11  Prefactor     .10000E-03    16.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.788        37.967        .57997E-04   -1.4324    
  13  Prefactor     .10000E-03    20.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.723        33.038        .72284E-04   -1.4599    
  15  Prefactor     21.821        37.769        .85733E-04   -1.4773    
  16  Prefactor     77.207        32.153        .45698E-04   -1.3948    
  17  Prefactor     .10000E-03    187.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9438        .14571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.393        11.502        .10555E-03   -1.4949    
  20  Prefactor     .10000E-03    85.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .48439        .37427        .44435E-03   -1.1314    
  22  Prefactor     .87622        .18189        .17499E-03   -.96977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73547e-11
Minuit parameter uncertainties:
  1  128.03
  2  4.40169e-05
  3  73.5551
  4  0.00113611
  5  1.26711e-05
  6  0.000299524
  7  3.82212
  8  32.6741
  9  12.0251
  10  95.5992
  11  9.46082e-06
  12  37.9867
  13  4.13082e-06
  14  33.0578
  15  37.8101
  16  32.1599
  17  0.00087213
  18  1.53995e-06
  19  11.5033
  20  0.000175723
  21  0.376237
  22  0.182014
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.131e-06  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.762e-01  1.820e-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:  4.844e-01  3.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 331.709 -0.546
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178197/likelihoodResults_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.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) = 3781.1972016
delta logL = -0.00023475239459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3781.19696651
delta logL = 3.43746251019e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5917       1.0000          .0000       10.000    
     3 'Normalizat'    .48439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87622       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=   3781.197     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.469        .90712E-02** at limit **
   2  Index         2.6003        6.2947        .50000       -.30243E-05
   3  Normalizat    .48439        .63187E-02    .10025        .27843E-04
   4  Prefactor     .87622        .33116E-02    .44701E-01    .35083E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60035
  Normalizat = 0.484389
  Prefactor  = 0.876219
 **********
 **   18 **HESSE 
 **********

 FCN=   3781.197     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 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     .10000E-03    121.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6003        6.3884        .50000       -.50058    
   3  Normalizat    .48439        .15722E-01    .44433E-03   -1.1314    
   4  Prefactor     .87622        .82642E-02    .17499E-03   -.96977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23754e-08
Minuit parameter uncertainties:
  1  3.36787e-05
  2  217.964
  3  0.0157226
  4  0.00826425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178197': 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) = 3781.19696644
delta logL = 4.09781932831e-07

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.368e-05  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.600e+00  2.180e+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:  8.762e-01  8.264e-03  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:  4.844e-01  1.572e-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/178197/cmap_HighResolution_571622401_571881601_4FGL_J2206.8-0032_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-28 04:51:49.128884', job_id='178197', GAL2='0.88', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1632829909.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1282' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 178197: <4FGL_J2206.8-0032_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1282 331.709 -0.5461 571622401 571881601 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 :                                   485.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            678 sec.

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

