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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin999
RA = 151.693, Dec = -21.991
tmin = 498268801, tmax = 498528001
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='667849', job_status='RUN', time_executed='2021-09-01 10:26:05.439141', time_epoch_executed='1630517165.44' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667849

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667849/ft1_4FGL_J1006.7-2159_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667849/ft1_4FGL_J1006.7-2159_daily_bin999.fits outfile=/scratch/kocevski/667849/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin999.fits ra=151.693 dec=-21.991 rad=12.0 tmin=498268801.0 tmax=498528001.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 5.65
user 4.57
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667849/ft1_filtered_4FGL_J1006.7-2159_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/667849/ltcube_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.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/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits
.....................!
real 12.71
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667849/ft1_filtered_4FGL_J1006.7-2159_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/667849/ltcube_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.fits outfile=/scratch/kocevski/667849/expmap_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.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/667849/ltcube_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.fits
.....................!
real 194.01
user 185.72
sys 5.09

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/667849/ft1_filtered_4FGL_J1006.7-2159_daily_bin999.fits scfile=/scratch/kocevski/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits outfile=/scratch/kocevski/667849/cmap_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667849/ft1_filtered_4FGL_J1006.7-2159_daily_bin999.fits scfile=/scratch/kocevski/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits outfile=/scratch/kocevski/667849/cmap_HighResolution_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.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.68
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/667849/ft1_filtered_4FGL_J1006.7-2159_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/667849/ft2_4FGL_J1006.7-2159_daily_bin999.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667849/Model_4FGL_J1006.7-2159_daily_bin999.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/667849/ft1_filtered_4FGL_J1006.7-2159_daily_bin999.fits.....................!
real 48.38
user 44.59
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0337       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0677       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4953       1.0000         .10000E-03   10000.    
     9 'norm      '    30.532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    37.341       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77229E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.650       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6084       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0420       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=   3768.002     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2394 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    118.53       -.14222E-05** at limit **
   2  Prefactor     .10000E-03    16.392       -.23085E-06** at limit **
   3  Prefactor     .10000E-03    41.912        .22444E-06** at limit **
   4  norm          .10000E-03    7.2144       -.19143E-06** at limit **
   5  norm          2.0331        7.8971        .19337E-05   -.19264E-03
   6  norm          .10000E-03    22.206        .74410E-06** at limit **
   7  norm          5.0662        24.862        .45261E-06   -.78740E-05
   8  norm          4.4954        2.9626        .71752E-07   -.17969E-03
   9  norm          30.529        31.157       -.74930E-07    .49049E-04
  10  Prefactor     .10000E-03    32.132       -.12744E-05** at limit **
  11  Prefactor     .10000E-03    11.809       -.30116E-06** at limit **
  12  norm          37.326        40.702       -.42216E-06    .13997E-03
  13  norm          2.8181        79.839        .47793E-05    .40953E-04
  14  Prefactor     .10077E-03    17.884        .44042E-05** at limit **
  15  Prefactor     .10000E-03    12.172        .40702E-06** at limit **
  16  Prefactor     27.742        72.097       -.13778E-04    .11467E-03
  17  norm          1.5987        23.579        .11201E-04    .33209E-03
  18  Prefactor     .10000E-03    11.930       -.14112E-06** at limit **
  19  Prefactor     .10000E-03    4.3540        .28224E-06** at limit **
  20  Prefactor     .10000E-03    4.4925       -.58971E-07** at limit **
  21  Normalizat    1.1368        .33562       -.16111E-05   -.25104E-03
  22  Prefactor     1.0421        .17091        .74786E-06   -.41097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.03306
  norm       = 0.000100002
  norm       = 5.06624
  norm       = 4.49537
  norm       = 30.5293
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 37.3263
  norm       = 2.81808
  Prefactor  = 0.000100773
  Prefactor  = 0.0001
  Prefactor  = 27.7416
  norm       = 1.59866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13675
  Prefactor  = 1.04207
 **********
 **   18 **HESSE 
 **********

 FCN=   3768.002     FROM HESSE     STATUS=OK           334 CALLS     2728 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.3141        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0331        8.0906        .14503E-02   -1.5423    
   6  norm          .10000E-03    22.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0662        24.898        .17861E-03   -1.5258    
   8  norm          4.4954        2.9667        .80884E-04   -1.5284    
   9  norm          30.529        31.186        .72512E-04   -1.4602    
  10  Prefactor     .10000E-03    32.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.326        38.516        .65587E-04   -1.4485    
  13  norm          2.8181        71.495        .23956E-03   -1.5372    
  14  Prefactor     .10077E-03    83.360        .41305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.742        73.149        .76188E-04   -1.4654    
  17  norm          1.5987        24.404        .33405E-03   -1.5455    
  18  Prefactor     .10000E-03    11.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3615        .12496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5108        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1368        .39123        .34445E-03   -.88580    
  22  Prefactor     1.0421        .20158        .19188E-03   -.91340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.026e-08
Minuit parameter uncertainties:
  1  0.000780841
  2  0.000160126
  3  0.000307152
  4  1.18307e-05
  5  8.09494
  6  0.000393473
  7  22.4773
  8  2.96679
  9  31.2028
  10  0.00076246
  11  0.000122063
  12  38.5417
  13  28.4262
  14  0.0160788
  15  0.000144476
  16  73.3872
  17  12.4979
  18  3.207e-05
  19  9.45331e-06
  20  5.07297e-06
  21  0.392232
  22  0.201722
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  4.495e+00  2.967e+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.042e+00  2.017e-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.137e+00  3.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 8.95e-08
Energy Flux (Fixed Index): 4.76e-05 +/- 3.14e-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) = 3767.45351742
delta logL = 0.548289232531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3767.44747664
delta logL = 0.554330013385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5936       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0169       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0814       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3767.447     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5935        3.1061        .61764E-04    .11997E-02
   2  alpha         3.0170        .80910        .11740E-01    .59975E-04
   3  Normalizat    1.0314        .39340        .35920E-03   -.35321E-04
   4  Prefactor     1.0814        .20636        .18875E-03   -.12100E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.5935
  alpha      = 3.01697
  Normalizat = 1.03145
  Prefactor  = 1.08135
 **********
 **   18 **HESSE 
 **********

 FCN=   3767.447     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5935        2.9429        .24706E-05   -1.5329    
   2  alpha         3.0170        .76714        .46962E-03    .20829    
   3  Normalizat    1.0314        .39329        .14368E-04   -.91984    
   4  Prefactor     1.0814        .20621        .37751E-04   -.90065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13397e-10
Minuit parameter uncertainties:
  1  2.94298
  2  0.780314
  3  0.394409
  4  0.206361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667849': 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) = 3767.44747661
delta logL = 0.554330040826

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  3.594e+00  2.943e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  3.017e+00  7.803e-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.081e+00  2.064e-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.031e+00  3.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.31
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 3.02 +/- 0.78
Photon Flux (Free Index): 2.23e-07 +/- 1.43e-07
Energy Flux (Free Index): 4.46e-05 +/- 2.58e-05

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/667849/cmap_HighResolution_498268801_498528001_4FGL_J1006.7-2159_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='4.46e-05', photon_flux_error='8.95e-08', dlogl='5.54e-01', energy_flux='4.76e-05', photon_flux2='2.23e-07', job_status='DONE', time_completed='2021-09-01 10:34:20.693924', photon_index_error2='0.78', photon_index2='3.02', ts='4.05', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.14', time_epoch_completed='1630517660.69', return_code='0', job_id='667849', GAL2='1.08', EG2='1.03', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='1.43e-07', ts2='5.31', photon_index='2.29' WHERE bin_id='999' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:34:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 667849: <4FGL_J1006.7-2159_daily_bin999> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin999> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:25:44 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:25:46 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:46 2021
Terminated at Wed Sep  1 10:34:21 2021
Results reported at Wed Sep  1 10:34:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin999 151.693 -21.991 498268801 498528001 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 :                                   485.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            517 sec.

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

