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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1595
RA = 151.693, Dec = -21.991
tmin = 652752001, tmax = 653011201
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='51394', job_status='RUN', time_executed='2021-09-11 00:10:26.739739', time_epoch_executed='1631344226.74' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51394/ft1_4FGL_J1006.7-2159_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51394/ft1_4FGL_J1006.7-2159_daily_bin1595.fits outfile=/scratch/kocevski/51394/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1595.fits ra=151.693 dec=-21.991 rad=12.0 tmin=652752001.0 tmax=653011201.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.19
user 2.96
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.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/51394/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/51394/ft1_filtered_4FGL_J1006.7-2159_daily_bin1595.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51394/ft1_filtered_4FGL_J1006.7-2159_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/51394/ltcube_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.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/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.fits
.....................!
real 12.48
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51394/ft1_filtered_4FGL_J1006.7-2159_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/51394/ltcube_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.fits outfile=/scratch/kocevski/51394/expmap_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.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/51394/ltcube_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.fits
.....................!
real 190.27
user 185.17
sys 4.78

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/51394/ft1_filtered_4FGL_J1006.7-2159_daily_bin1595.fits scfile=/scratch/kocevski/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.fits outfile=/scratch/kocevski/51394/cmap_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51394/ft1_filtered_4FGL_J1006.7-2159_daily_bin1595.fits scfile=/scratch/kocevski/51394/ft2_4FGL_J1006.7-2159_daily_bin1595.fits outfile=/scratch/kocevski/51394/cmap_HighResolution_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .52757       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8007       1.0000         .10000E-03   10000.    
     7 'norm      '    28.896       1.0000         .10000E-03   10000.    
     8 'norm      '    .26497       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1717       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.5299       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .45261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .54520E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16201E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4651       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92097       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=   8276.286     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2086 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.205       -.29539E-05** at limit **
   2  Prefactor     .10000E-03    12.864       -.32899E-05** at limit **
   3  Prefactor     .10000E-03    9.0935        .27155E-05** at limit **
   4  norm          .52443        2.3834       -.39547E-06    .18565E-03
   5  norm          .10000E-03    4.5093        .15424E-07** at limit **
   6  norm          1.8009        3.4630        .50521E-07   -.17080E-03
   7  norm          28.893        15.025       -.11221E-05   -.26570E-03
   8  norm          .26489        1.0334       -.11595E-06    .10125E-03
   9  norm          2.2843        7.3400       -.52216E-07   -.84470E-04
  10  Prefactor     .10000E-03    21.732        .32293E-06** at limit **
  11  Prefactor     2.1733        6.8240       -.18502E-07   -.86280E-04
  12  norm          .10000E-03    2.2113        .41091E-07** at limit **
  13  norm          7.5296        6.5386       -.11274E-07   -.13111E-04
  14  Prefactor     .10000E-03    2.5723        .48541E-07** at limit **
  15  Prefactor     .10000E-03    8.7567        .17606E-05** at limit **
  16  Prefactor     .10000E-03    8.1473       -.29013E-05** at limit **
  17  norm          .44993        1.9625        .26084E-06    .44786E-04
  18  Prefactor     .10020E-03    9.5569       -.28378E-05** at limit **
  19  Prefactor     .10000E-03    1.2544       -.55007E-07** at limit **
  20  Prefactor     .10002E-03    3.6451        .10801E-05** at limit **
  21  Normalizat    1.4653        .21365        .40584E-06    .16575E-03
  22  Prefactor     .92087        .10858        .57471E-07    .25449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.524434
  norm       = 0.0001
  norm       = 1.80088
  norm       = 28.8931
  norm       = 0.264887
  norm       = 2.28428
  Prefactor  = 0.0001
  Prefactor  = 2.17328
  norm       = 0.0001
  norm       = 7.52961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.449931
  Prefactor  = 0.000100195
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Normalizat = 1.46531
  Prefactor  = 0.920874
 **********
 **   18 **HESSE 
 **********

 FCN=   8276.286     FROM HESSE     STATUS=OK           344 CALLS     2430 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .52443        7.6237        .26551E-02   -1.5563    
   5  norm          .10000E-03    4.5735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8009        5.2011        .15576E-02   -1.5440    
   7  norm          28.893        15.112        .74531E-04   -1.4632    
   8  norm          .26489        1.9442        .16631E-02   -1.5605    
   9  norm          2.2843        8.2849        .13581E-02   -1.5406    
  10  Prefactor     .10000E-03    21.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1733        7.5126        .13971E-02   -1.5413    
  12  norm          .10000E-03    2.2145        .13209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.5296        6.5490        .73074E-03   -1.5159    
  14  Prefactor     .10000E-03    2.5784        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44993        3.9396        .24164E-02   -1.5574    
  18  Prefactor     .10020E-03    38.241        .46268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2592        .99443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    16.372        .31564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4653        .25123        .30174E-03   -.78758    
  22  Prefactor     .92087        .13182        .19581E-03   -.95415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35346e-09
Minuit parameter uncertainties:
  1  0.000212177
  2  0.000231359
  3  0.000158078
  4  3.9993
  5  2.88901e-06
  6  5.20237
  7  15.1142
  8  1.43506
  9  8.28907
  10  2.17377e-05
  11  7.5159
  12  8.14986e-07
  13  6.54962
  14  1.33299e-06
  15  0.000113435
  16  0.000167405
  17  2.6627
  18  0.00546643
  19  1.53974e-06
  20  0.00126346
  21  0.251444
  22  0.131863
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  2.649e-01  1.435e+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:  9.209e-01  1.319e-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.465e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/51394/likelihoodResults_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.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) = 8275.16428936
delta logL = 1.12211781933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8275.1598559
delta logL = 1.12655128206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67519       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95961       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=   8275.160     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      250 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67604        6.5810        .11173E-01    .32292E-02
   2  alpha         3.7809        4.3905        .48020        .96007E-04
   3  Normalizat    1.3381        .53898E-01    .70812E-01    .32029E-03
   4  Prefactor     .95982        .28844E-01    .45760E-01    .18871E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.676035
  alpha      = 3.78095
  Normalizat = 1.33807
  Prefactor  = 0.959823
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.160     FROM HESSE     STATUS=OK            27 CALLS      277 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67604        .92025        .50605E-04   -1.5544    
   2  alpha         3.7809        .98513        .20800E-02    .53795    
   3  Normalizat    1.3381        .25805        .31332E-03   -.82437    
   4  Prefactor     .95982        .13229        .19216E-03   -.94081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59489e-10
Minuit parameter uncertainties:
  1  0.920268
  2  1.02346
  3  0.2583
  4  0.132334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51394': 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) = 8275.15985232
delta logL = 1.12655485726

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  6.760e-01  9.203e-01  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  3.781e+00  1.023e+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:  9.598e-01  1.323e-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.338e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 3.78 +/- 1.02
Photon Flux (Free Index): 1.04e-07 +/- 7.75e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.21e-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/51394/cmap_HighResolution_652752001_653011201_4FGL_J1006.7-2159_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='1.13e+00', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-11 00:22:23.050565', photon_index_error2='1.02', photon_index2='3.78', ts='0.04', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.21e-05', EG='1.47', time_epoch_completed='1631344943.05', return_code='0', job_id='51394', GAL2='0.96', EG2='1.34', return_code2='0', photon_flux_error2='7.75e-08', ts2='2.52', photon_index='2.29' WHERE bin_id='1595' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:22:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 51394: <4FGL_J1006.7-2159_daily_bin1595> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1595> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:06:33 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:06:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:06:34 2021
Terminated at Sat Sep 11 00:22:23 2021
Results reported at Sat Sep 11 00:22:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1595 151.693 -21.991 652752001 653011201 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

