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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1369
RA = 151.693, Dec = -21.991
tmin = 594172801, tmax = 594432001
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='669510', job_status='RUN', time_executed='2021-09-01 10:33:11.697962', time_epoch_executed='1630517591.7' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669510

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669510/ft1_4FGL_J1006.7-2159_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669510/ft1_4FGL_J1006.7-2159_daily_bin1369.fits outfile=/scratch/kocevski/669510/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1369.fits ra=151.693 dec=-21.991 rad=12.0 tmin=594172801.0 tmax=594432001.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 3.90
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.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/669510/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1369.fits evtable="EVENTS" outfile="/scratch/kocevski/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.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 1.13
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/669510/ltcube_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.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/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits
.....................!
real 12.23
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/669510/ltcube_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.fits outfile=/scratch/kocevski/669510/expmap_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.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/669510/ltcube_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.fits
.....................!
real 193.35
user 185.05
sys 4.84

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/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits scfile=/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits outfile=/scratch/kocevski/669510/cmap_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.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.85
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits scfile=/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits outfile=/scratch/kocevski/669510/cmap_HighResolution_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.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.64
user 0.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669510/Model_4FGL_J1006.7-2159_daily_bin1369.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/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits.....................!
real 69.59
user 62.31
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits', '/scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits', expMap='/scratch/kocevski/669510/expmap_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.fits', expCube='/scratch/kocevski/669510/ltcube_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669510/Model_4FGL_J1006.7-2159_daily_bin1369.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/669510/ft1_filtered_4FGL_J1006.7-2159_daily_bin1369.fits
Spacecraft file(s): /scratch/kocevski/669510/ft2_4FGL_J1006.7-2159_daily_bin1369.fits
Exposure map: /scratch/kocevski/669510/expmap_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.fits
Exposure cube: /scratch/kocevski/669510/ltcube_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669510/Model_4FGL_J1006.7-2159_daily_bin1369.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) = 6249.10916133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.357       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10832E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    19.922       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .92026       1.0000         .10000E-03   10000.    
     9 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.115       1.0000         .10000E-03   10000.    
    12 'norm      '    6.8557       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2311       1.0000         .10000E-03   10000.    
    17 'norm      '    12.099       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50149       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6333       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88851       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=   6249.104     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2379 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.443        .17727E-05** at limit **
   2  Prefactor     .10000E-03    19.620        .79860E-06** at limit **
   3  Prefactor     14.355        16.152        .83587E-07   -.49321E-04
   4  norm          .10000E-03    2.1730        .32440E-07** at limit **
   5  norm          .10007E-03    6.9080        .11395E-05** at limit **
   6  norm          19.923        13.398        .29075E-07   -.77093E-05
   7  norm          .10000E-03    4.5065       -.17583E-07** at limit **
   8  norm          .92044        1.5709        .33987E-06    .54570E-04
   9  norm          .10000E-03    21.636       -.23259E-05** at limit **
  10  Prefactor     14.279        33.267        .80647E-06    .18047E-04
  11  Prefactor     10.116        14.925       -.28760E-06    .38866E-05
  12  norm          6.8561        8.9079        .15697E-05    .10903E-05
  13  norm          .10000E-03    4.0821       -.83276E-07** at limit **
  14  Prefactor     .10000E-03    4.3166        .81578E-07** at limit **
  15  Prefactor     .10000E-03    8.3071       -.24783E-08** at limit **
  16  Prefactor     1.1873        115.85       -.63936E-05   -.18683E-04
  17  norm          12.095        6.4414       -.24182E-06    .22159E-03
  18  Prefactor     .10000E-03    19.558        .76481E-06** at limit **
  19  Prefactor     .10000E-03    5.7734       -.64866E-06** at limit **
  20  Prefactor     .49817        8.3326        .44522E-06   -.33360E-04
  21  Normalizat    1.6332        .26102       -.85357E-06   -.10635E-03
  22  Prefactor     .88849        .13586       -.14300E-06   -.15139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3545
  norm       = 0.0001
  norm       = 0.000100067
  norm       = 19.9229
  norm       = 0.0001
  norm       = 0.920439
  norm       = 0.0001
  Prefactor  = 14.279
  Prefactor  = 10.1165
  norm       = 6.85611
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18729
  norm       = 12.0952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.498171
  Normalizat = 1.63323
  Prefactor  = 0.888488
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.104     FROM HESSE     STATUS=OK           346 CALLS     2725 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.355        16.145        .10571E-03   -1.4950    
   4  norm          .10000E-03    2.1821        .11381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10007E-03    40.973        .38603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.923        13.404        .89735E-04   -1.4815    
   7  norm          .10000E-03    4.5177        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .92044        1.5523        .12335E-03   -1.5516    
   9  norm          .10000E-03    22.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.279        33.389        .10601E-03   -1.4952    
  11  Prefactor     10.116        14.922        .12599E-03   -1.5072    
  12  norm          6.8561        9.1005        .76616E-03   -1.5184    
  13  norm          .10000E-03    4.0952        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3337        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1873        132.75        .40523E-02   -1.5490    
  17  norm          12.095        6.5458        .11517E-03   -1.5012    
  18  Prefactor     .10000E-03    19.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .49817        47.851        .43059E-02   -1.5567    
  21  Normalizat    1.6332        .31324        .30538E-03   -.74100    
  22  Prefactor     .88849        .16347        .21291E-03   -.96545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63106e-08
Minuit parameter uncertainties:
  1  0.00014856
  2  2.82426e-05
  3  16.1497
  4  1.10483e-06
  5  0.00330811
  6  13.4059
  7  4.61562e-07
  8  1.55241
  9  0.000100679
  10  33.4328
  11  14.9276
  12  9.10229
  13  3.54292e-07
  14  4.04158e-06
  15  8.2693e-06
  16  25.1652
  17  6.54615
  18  5.70011e-05
  19  5.06055e-05
  20  9.77193
  21  0.313617
  22  0.163563
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  9.204e-01  1.552e+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:  8.885e-01  1.636e-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:  1.633e+00  3.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 151.693 -21.991
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669510/likelihoodResults_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.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) = 6248.88681315
delta logL = 0.217258561811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.88625565
delta logL = 0.217816066609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94207       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9487       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89853       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=   6248.886     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94198        30.847        .12959E-01    .10218E-02
   2  alpha         2.9490        3.1683        .42022        .28420E-04
   3  Normalizat    1.6010        .72551E-01    .69581E-01    .47039E-05
   4  Prefactor     .89855        .40138E-01    .44986E-01    .85103E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.941978
  alpha      = 2.94896
  Normalizat = 1.60098
  Prefactor  = 0.898548
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.886     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94198        1.4500        .88839E-04   -1.5514    
   2  alpha         2.9490        1.0822        .23680E-01    .18056    
   3  Normalizat    1.6010        .30782        .30781E-03   -.74979    
   4  Prefactor     .89855        .16305        .21182E-03   -.96192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68605e-09
Minuit parameter uncertainties:
  1  1.45001
  2  1.12063
  3  0.30819
  4  0.163138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669510': 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) = 6248.88625562
delta logL = 0.21781609324

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  9.420e-01  1.450e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.949e+00  1.121e+00  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:  8.985e-01  1.631e-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:  1.601e+00  3.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
Ra Dec: 151.693 -21.991

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/669510/cmap_HighResolution_594172801_594432001_4FGL_J1006.7-2159_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-01 10:44:18.352560', job_id='669510', GAL2='0.90', fit_tolerance='1e-08', EG2='1.60', EG='1.63', time_epoch_completed='1630518258.35', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.18e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1369' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:44:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 669510: <4FGL_J1006.7-2159_daily_bin1369> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1369> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 10:31:05 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:31:07 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:31:07 2021
Terminated at Wed Sep  1 10:44:19 2021
Results reported at Wed Sep  1 10:44:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1369 151.693 -21.991 594172801 594432001 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 :                                   636.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

