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


Performing analysis on: 4FGL_J2206.8-0032_daily_bin1120
RA = 331.709, Dec = -0.5461
tmin = 529632001, tmax = 529891201
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='176917', job_status='RUN', time_executed='2021-09-28 04:39:54.513671', time_epoch_executed='1632829194.51' WHERE source_name='4FGL J2206.8-0032' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176917/ft1_4FGL_J2206.8-0032_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176917/ft1_4FGL_J2206.8-0032_daily_bin1120.fits outfile=/scratch/kocevski/176917/ft1_filteredMKT_4FGL_J2206.8-0032_daily_bin1120.fits ra=331.709 dec=-0.5461 rad=12.0 tmin=529632001.0 tmax=529891201.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176917/ft1_filtered_4FGL_J2206.8-0032_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/176917/ltcube_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.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/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits
.....................!
real 11.69
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176917/ft1_filtered_4FGL_J2206.8-0032_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/176917/ltcube_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.fits outfile=/scratch/kocevski/176917/expmap_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.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/176917/ltcube_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.fits
.....................!
real 190.95
user 186.48
sys 4.16

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/176917/ft1_filtered_4FGL_J2206.8-0032_daily_bin1120.fits scfile=/scratch/kocevski/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits outfile=/scratch/kocevski/176917/cmap_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176917/ft1_filtered_4FGL_J2206.8-0032_daily_bin1120.fits scfile=/scratch/kocevski/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits outfile=/scratch/kocevski/176917/cmap_HighResolution_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176917/ft1_filtered_4FGL_J2206.8-0032_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/176917/ft2_4FGL_J2206.8-0032_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176917/Model_4FGL_J2206.8-0032_daily_bin1120.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/176917/ft1_filtered_4FGL_J2206.8-0032_daily_bin1120.fits.....................!
real 78.72
user 77.40
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5353       1.0000         .10000E-03   10000.    
     8 'norm      '    21.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7497       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34048       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.346       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8473       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1030       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8368       1.0000         .10000E-03   10000.    
    19 'norm      '    5.5632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93691       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84640       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=   8123.280     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2494 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.023        38.813        .17219E-06   -.54791E-04
   2  Prefactor     8.2042        2.9116        .26243E-07   -.84312E-04
   3  Prefactor     14.149        30.197        .19682E-06   -.29551E-04
   4  Prefactor     20.994        21.112        .49242E-07    .17676E-04
   5  Prefactor     .10001E-03    70.291       -.41178E-06** at limit **
   6  Prefactor     .10001E-03    74.035        .52900E-06** at limit **
   7  norm          2.5352        2.6114        .15031E-06   -.22199E-04
   8  norm          21.835        21.212       -.21347E-06   -.22356E-03
   9  Prefactor     6.2382        7.8438       -.37051E-06   -.35942E-03
  10  Prefactor     3.7486        4.9716        .26506E-05   -.18002E-03
  11  Prefactor     6.3759        7.7473        .30072E-07    .85500E-04
  12  Prefactor     .16531        14.490        .71369E-06   -.19724E-04
  13  Prefactor     13.346        10.905        .50172E-07   -.44153E-04
  14  Prefactor     .10000E-03    6.4992        .27940E-07** at limit **
  15  Prefactor     9.8846        29.000       -.10467E-05   -.15979E-04
  16  Prefactor     6.1026        6.5654        .91819E-07    .50814E-05
  17  Prefactor     .10000E-03    18.149       -.13548E-07** at limit **
  18  Prefactor     4.8359        3.7140        .11926E-06    .21251E-04
  19  norm          5.5628        3.3105        .11454E-06    .50462E-04
  20  Prefactor     .10000E-03    99.778       -.21888E-06** at limit **
  21  Normalizat    .93701        .19633       -.17139E-05   -.29163E-03
  22  Prefactor     .84643        .10620        .27387E-06   -.46428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.0227
  Prefactor  = 8.20416
  Prefactor  = 14.1487
  Prefactor  = 20.9936
  Prefactor  = 0.000100005
  Prefactor  = 0.00010001
  norm       = 2.53522
  norm       = 21.8349
  Prefactor  = 6.23821
  Prefactor  = 3.74856
  Prefactor  = 6.37587
  Prefactor  = 0.165313
  Prefactor  = 13.3463
  Prefactor  = 0.0001
  Prefactor  = 9.88457
  Prefactor  = 6.10265
  Prefactor  = 0.0001
  Prefactor  = 4.8359
  norm       = 5.5628
  Prefactor  = 0.000100001
  Normalizat = 0.937014
  Prefactor  = 0.846428
 **********
 **   18 **HESSE 
 **********

 FCN=   8123.280     FROM HESSE     STATUS=OK           358 CALLS     2852 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.023        38.842        .51362E-04   -1.4144    
   2  Prefactor     8.2042        2.9115        .81690E-04   -1.5135    
   3  Prefactor     14.149        30.174        .10646E-03   -1.4955    
   4  Prefactor     20.994        21.113        .87414E-04   -1.4791    
   5  Prefactor     .10001E-03    70.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    75.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5352        2.5914        .13678E-03   -1.5390    
   8  norm          21.835        21.140        .85731E-04   -1.4773    
   9  Prefactor     6.2382        7.8795        .16078E-03   -1.5208    
  10  Prefactor     3.7486        4.9680        .10425E-02   -1.5321    
  11  Prefactor     6.3759        7.7473        .15896E-03   -1.5203    
  12  Prefactor     .16531        21.177        .93176E-01   -1.5627    
  13  Prefactor     13.346        10.901        .10964E-03   -1.4977    
  14  Prefactor     .10000E-03    6.5218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8846        29.409        .12770E-03   -1.5079    
  16  Prefactor     6.1026        6.5515        .16252E-03   -1.5214    
  17  Prefactor     .10000E-03    18.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8359        3.7036        .13979E-03   -1.5268    
  19  norm          5.5628        3.3168        .11874E-03   -1.5236    
  20  Prefactor     .10000E-03    100.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93701        .23060        .31483E-03   -.95171    
  22  Prefactor     .84643        .12560        .18971E-03   -.98039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29582e-10
Minuit parameter uncertainties:
  1  38.8582
  2  2.91152
  3  30.2061
  4  21.1208
  5  0.00121282
  6  0.00171341
  7  2.59156
  8  21.1477
  9  7.88084
  10  4.96858
  11  7.74849
  12  3.74234
  13  10.9026
  14  5.97348e-06
  15  29.4519
  16  6.55223
  17  1.45675e-06
  18  3.70374
  19  3.31692
  20  0.000497099
  21  0.230844
  22  0.125647
Done.

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

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.335e+01  1.090e+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.464e-01  1.256e-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:  9.370e-01  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 331.709 -0.546
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.99e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.01e-05

TS (Fixed Index): 3.22
Ra Dec: 331.709 -0.546
Photon Flux Upper Limit: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/176917/likelihoodResults_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.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) = 8123.20617411
delta logL = 0.0736065872215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8123.20345511
delta logL = 0.0763255908369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.222       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0345       1.0000          .0000       10.000    
     3 'Normalizat'    .94214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84454       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=   8123.203     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      268 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.227        463.82        .24860E-02    .22238E-03
   2  Index         2.0348        5.7985        .17682        .69165E-04
   3  Normalizat    .94214        .11183        .70981E-01    .13307E-04
   4  Prefactor     .84453        .52882E-01    .44294E-01   -.44639E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2272
  Index      = 2.03476
  Normalizat = 0.942138
  Prefactor  = 0.84453
 **********
 **   18 **HESSE 
 **********

 FCN=   8123.203     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.227        14.626        .49720E-03   -1.4902    
   2  Index         2.0348        .53346        .88945E-02   -.63484    
   3  Normalizat    .94214        .21504        .31405E-03   -.94995    
   4  Prefactor     .84453        .12465        .18989E-03   -.98107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36958e-09
Minuit parameter uncertainties:
  1  14.629
  2  0.535033
  3  0.215241
  4  0.124695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176917': 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) = 8123.20345483
delta logL = 0.0763258689522

Extracting fit parameters...

4FGL J2206.8-0032
   Spectrum: PowerLaw
276    Prefactor:  1.623e+01  1.463e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.035e+00  5.350e-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.445e-01  1.247e-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:  9.421e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 331.709 -0.546
Photon Index (Free Index): 2.03 +/- 0.54
Photon Flux (Free Index): 2.57e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.89e-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/176917/cmap_HighResolution_529632001_529891201_4FGL_J2206.8-0032_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', comment='SUCCESS', photon_flux='2.99e-08', energy_flux2='1.63e-05', photon_flux_error='2.44e-08', dlogl='7.63e-02', energy_flux='1.23e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-28 04:52:08.651998', photon_index_error2='0.54', photon_index2='2.03', ts='3.22', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='8.93e-08', energy_flux_error2='1.89e-05', EG='0.94', time_epoch_completed='1632829928.65', return_code='0', job_id='176917', GAL2='0.84', EG2='0.94', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.36e-08', ts2='3.37', photon_index='2.25' WHERE bin_id='1120' AND source_name='4FGL J2206.8-0032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 04:52:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 176917: <4FGL_J2206.8-0032_daily_bin1120> in cluster <slac> Done

Job <4FGL_J2206.8-0032_daily_bin1120> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 04:35:58 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 04:35:59 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:59 2021
Terminated at Tue Sep 28 04:52:09 2021
Results reported at Tue Sep 28 04:52:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2206.8-0032_daily_bin1120 331.709 -0.5461 529632001 529891201 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 :                                   731.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

