/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 16 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 = 7366
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1125
RA = 151.693, Dec = -21.991
tmin = 530928001, tmax = 531187201
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='668035', job_status='RUN', time_executed='2021-09-01 10:27:04.098497', time_epoch_executed='1630517224.1' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668035/ft1_4FGL_J1006.7-2159_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668035/ft1_4FGL_J1006.7-2159_daily_bin1125.fits outfile=/scratch/kocevski/668035/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1125.fits ra=151.693 dec=-21.991 rad=12.0 tmin=530928001.0 tmax=531187201.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.87
user 3.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.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/668035/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.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.78
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/668035/ltcube_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.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/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits
.....................!
real 11.75
user 11.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/668035/ltcube_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.fits outfile=/scratch/kocevski/668035/expmap_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.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/668035/ltcube_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.fits
.....................!
real 191.54
user 185.78
sys 4.60

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1006.7-2159 @ 151.693 -21.991

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits scfile=/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits outfile=/scratch/kocevski/668035/cmap_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.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=151.693 yref=-21.991 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.77
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits scfile=/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits outfile=/scratch/kocevski/668035/cmap_HighResolution_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.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=151.693 yref=-21.991 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.76
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668035/Model_4FGL_J1006.7-2159_daily_bin1125.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/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits.....................!
real 80.81
user 76.90
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits', '/scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits', expMap='/scratch/kocevski/668035/expmap_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.fits', expCube='/scratch/kocevski/668035/ltcube_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668035/Model_4FGL_J1006.7-2159_daily_bin1125.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1006.7-2159'

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  1.522e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.294e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  4.599e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/668035/ft1_filtered_4FGL_J1006.7-2159_daily_bin1125.fits
Spacecraft file(s): /scratch/kocevski/668035/ft2_4FGL_J1006.7-2159_daily_bin1125.fits
Exposure map: /scratch/kocevski/668035/expmap_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.fits
Exposure cube: /scratch/kocevski/668035/ltcube_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668035/Model_4FGL_J1006.7-2159_daily_bin1125.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) = 7677.97769869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4543       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13771E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.874       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4601       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.234       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2162       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.481       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4701       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.009       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17700E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.626       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95324       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0885       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7677.970     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2397 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.253        44.246       -.12810E-05    .56100E-04
   2  Prefactor     4.4477        54.683       -.16961E-04   -.17267E-04
   3  Prefactor     .10000E-03    3.4334        .83003E-06** at limit **
   4  norm          .10000E-03    4.0070       -.55382E-06** at limit **
   5  norm          .10001E-03    4.0216        .19050E-05** at limit **
   6  norm          10.873        9.0799        .11519E-07   -.20130E-04
   7  norm          .10000E-03    15.672        .16289E-05** at limit **
   8  norm          7.4601        2.1156        .91381E-07   -.30483E-03
   9  norm          .10000E-03    2.4850        .61715E-06** at limit **
  10  Prefactor     27.233        28.371       -.90628E-06    .10234E-03
  11  Prefactor     4.2157        9.4243       -.18649E-06   -.68907E-04
  12  norm          .10000E-03    2.5571       -.50173E-06** at limit **
  13  norm          13.481        9.1446       -.55163E-06    .22692E-03
  14  Prefactor     4.4700        4.3171        .52946E-07    .87323E-04
  15  Prefactor     5.5711        16.764        .10254E-05    .53686E-04
  16  Prefactor     14.021        16.555        .11811E-04   -.24090E-03
  17  norm          1.1299        2.5837       -.21730E-05   -.50337E-03
  18  Prefactor     .10000E-03    9.2550        .12679E-05** at limit **
  19  Prefactor     .10000E-03    3.9912       -.32400E-05** at limit **
  20  Prefactor     10.626        6.9760       -.48061E-07    .13687E-03
  21  Normalizat    .95322        .22541       -.10738E-05    .22271E-03
  22  Prefactor     1.0885        .12065        .18472E-06    .31555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.2527
  Prefactor  = 4.44767
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 10.8733
  norm       = 0.0001
  norm       = 7.4601
  norm       = 0.0001
  Prefactor  = 27.2332
  Prefactor  = 4.2157
  norm       = 0.0001
  norm       = 13.4814
  Prefactor  = 4.47003
  Prefactor  = 5.57109
  Prefactor  = 14.0207
  norm       = 1.12989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.6265
  Normalizat = 0.953217
  Prefactor  = 1.08854
 **********
 **   18 **HESSE 
 **********

 FCN=   7677.970     FROM HESSE     STATUS=OK           348 CALLS     2745 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.253        44.313        .60956E-04   -1.4392    
   2  Prefactor     4.4477        49.399        .19079E-03   -1.5286    
   3  Prefactor     .10000E-03    3.4332        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0497        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    16.567        .31663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.873        9.0805        .12150E-03   -1.5048    
   7  norm          .10000E-03    16.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4601        2.1195        .63747E-04   -1.5162    
   9  norm          .10000E-03    2.4847        .13486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.233        28.352        .76767E-04   -1.4664    
  11  Prefactor     4.2157        9.4143        .19625E-03   -1.5297    
  12  norm          .10000E-03    2.5585        .13680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.481        9.1369        .10909E-03   -1.4973    
  14  Prefactor     4.4700        4.3203        .17410E-03   -1.5285    
  15  Prefactor     5.5711        16.649        .17023E-03   -1.5236    
  16  Prefactor     14.021        16.539        .10701E-03   -1.4959    
  17  norm          1.1299        2.4950        .19673E-03   -1.5495    
  18  Prefactor     .10000E-03    9.2818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.443        .31945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.626        6.9760        .12291E-03   -1.5056    
  21  Normalizat    .95322        .25716        .35672E-03   -.94615    
  22  Prefactor     1.0885        .13925        .18784E-03   -.89834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03393e-09
Minuit parameter uncertainties:
  1  44.3465
  2  29.676
  3  2.45281e-05
  4  2.66509e-05
  5  0.000665731
  6  9.08167
  7  0.000115118
  8  2.1195
  9  1.84633e-05
  10  28.3662
  11  9.4176
  12  1.41475e-05
  13  9.13789
  14  4.32055
  15  16.6627
  16  16.5444
  17  2.49523
  18  9.07232e-05
  19  0.000264898
  20  6.97652
  21  0.257498
  22  0.139295
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  7.460e+00  2.120e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.294e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  4.599e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.089e+00  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  9.532e-01  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.99
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 6.40e-08
Energy Flux (Fixed Index): 7.90e-05 +/- 2.25e-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) = 7677.9701536
delta logL = 0.000312432434839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7677.97012258
delta logL = 0.000343458804309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4600       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3015       1.0000          .0000       5.0000    
     3 'Normalizat'    .95134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7677.970     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      197 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4575        2.9715        .36709E-02    .13837E-03
   2  alpha         2.3015        .38498        .21297       -.72222E-05
   3  Normalizat    .95146        .22100        .80650E-01   -.95257E-04
   4  Prefactor     1.0891        .12100        .38013E-01   -.10328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.45754
  alpha      = 2.30154
  Normalizat = 0.951463
  Prefactor  = 1.08914
 **********
 **   18 **HESSE 
 **********

 FCN=   7677.970     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4575        2.1122        .63597E-04   -1.5162    
   2  alpha         2.3015        .28890        .89108E-02   -.79467E-01
   3  Normalizat    .95146        .25715        .35700E-03   -.94675    
   4  Prefactor     1.0891        .13968        .18780E-03   -.89814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5594e-11
Minuit parameter uncertainties:
  1  2.11217
  2  0.289552
  3  0.257483
  4  0.139723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668035': 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) = 7677.97012185
delta logL = 0.000344188181771

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  7.458e+00  2.112e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.302e+00  2.896e-01  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  4.599e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  5.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.089e+00  1.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  9.515e-01  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.84
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 2.30 +/- 0.29
Photon Flux (Free Index): 2.27e-07 +/- 8.17e-08
Energy Flux (Free Index): 7.88e-05 +/- 2.47e-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/668035/cmap_HighResolution_530928001_531187201_4FGL_J1006.7-2159_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='7.88e-05', photon_flux_error='6.40e-08', dlogl='3.44e-04', energy_flux='7.90e-05', photon_flux2='2.27e-07', job_status='DONE', time_completed='2021-09-01 10:37:57.594624', photon_index_error2='0.29', photon_index2='2.30', ts='35.99', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='0.95', time_epoch_completed='1630517877.59', return_code='0', job_id='668035', GAL2='1.09', EG2='0.95', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='8.17e-08', ts2='35.84', photon_index='2.29' WHERE bin_id='1125' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:37:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 668035: <4FGL_J1006.7-2159_daily_bin1125> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1125> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:25:57 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:25:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:25:58 2021
Terminated at Wed Sep  1 10:37:58 2021
Results reported at Wed Sep  1 10:37:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1125 151.693 -21.991 530928001 531187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1006.7-2159 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

