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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1615
RA = 151.693, Dec = -21.991
tmin = 657936001, tmax = 658195201
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='290398', job_status='RUN', time_executed='2021-12-07 20:45:34.014491', time_epoch_executed='1638938734.01' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290398/ft1_4FGL_J1006.7-2159_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290398/ft1_4FGL_J1006.7-2159_daily_bin1615.fits outfile=/scratch/kocevski/290398/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1615.fits ra=151.693 dec=-21.991 rad=12.0 tmin=657936001.0 tmax=658195201.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.09
user 3.83
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290398/ft1_filtered_4FGL_J1006.7-2159_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/290398/ltcube_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.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/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits
.....................!
real 13.57
user 13.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290398/ft1_filtered_4FGL_J1006.7-2159_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/290398/ltcube_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.fits outfile=/scratch/kocevski/290398/expmap_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.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/290398/ltcube_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.fits
.....................!
real 194.04
user 187.94
sys 5.73

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/290398/ft1_filtered_4FGL_J1006.7-2159_daily_bin1615.fits scfile=/scratch/kocevski/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits outfile=/scratch/kocevski/290398/cmap_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290398/ft1_filtered_4FGL_J1006.7-2159_daily_bin1615.fits scfile=/scratch/kocevski/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits outfile=/scratch/kocevski/290398/cmap_HighResolution_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290398/ft1_filtered_4FGL_J1006.7-2159_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/290398/ft2_4FGL_J1006.7-2159_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290398/Model_4FGL_J1006.7-2159_daily_bin1615.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/290398/ft1_filtered_4FGL_J1006.7-2159_daily_bin1615.fits.....................!
real 64.12
user 62.43
sys 1.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.207       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.387       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .16908E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    31.183       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7104       1.0000         .10000E-03   10000.    
     9 'norm      '    13.868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.171       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2121       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70599       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6037.957     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     1973 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.205        1.1939       -.18495E-06    .35558E-02
   2  Prefactor     7.0449        1.8920       -.15382E-05    .23483E-02
   3  Prefactor     21.390        1.2574        .41118E-06   -.19624E-02
   4  norm          .10000E-03    2.3814       -.13232E-06** at limit **
   5  norm          .10001E-03    5.3616        .40087E-05** at limit **
   6  norm          .10000E-03    2.9686        .22703E-06** at limit **
   7  norm          31.185        1.0113        .44323E-07   -.29768E-03
   8  norm          2.7103        1.5926        .33274E-07   -.45741E-04
   9  norm          13.866        1.0034       -.13750E-07    .44732E-05
  10  Prefactor     .10000E-03    23.160        .91090E-05** at limit **
  11  Prefactor     .10001E-03    6.1552       -.64792E-05** at limit **
  12  norm          29.170        1.0027        .32053E-07   -.14738E-03
  13  norm          .10000E-03    6.0324        .10512E-04** at limit **
  14  Prefactor     .10000E-03    3.6345        .67445E-06** at limit **
  15  Prefactor     13.532        1.0579       -.18895E-06    .60220E-03
  16  Prefactor     .10000E-03    6.0821       -.96586E-05** at limit **
  17  norm          3.3448        3.5022        .18462E-05    .11622E-03
  18  Prefactor     11.330        1.1282        .32532E-06   -.60184E-03
  19  Prefactor     5.2119        1.3847        .29755E-06   -.24598E-04
  20  Prefactor     .10000E-03    33.806       -.55459E-05** at limit **
  21  Normalizat    .70591        .27245       -.10068E-05   -.60435E-04
  22  Prefactor     1.1531        .15374       -.13053E-06   -.72599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.2053
  Prefactor  = 7.04493
  Prefactor  = 21.3903
  norm       = 0.0001
  norm       = 0.000100013
  norm       = 0.0001
  norm       = 31.1849
  norm       = 2.71032
  norm       = 13.8663
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  norm       = 29.1703
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 13.5325
  Prefactor  = 0.000100003
  norm       = 3.34483
  Prefactor  = 11.3304
  Prefactor  = 5.21193
  Prefactor  = 0.000100004
  Normalizat = 0.705915
  Prefactor  = 1.15314
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.957     FROM HESSE     STATUS=OK           394 CALLS     2367 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.205        55.786        .10817E-02   -1.3848    
   2  Prefactor     7.0449        43.567        .37769E-02   -1.5177    
   3  Prefactor     21.390        28.503        .21652E-02   -1.4783    
   4  norm          .10000E-03    2.3757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    9.2097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          31.185        17.308        .17938E-02   -1.4591    
   8  norm          2.7103        1.6010        .61851E-02   -1.5379    
   9  norm          13.866        13.021        .26889E-02   -1.4963    
  10  Prefactor     .10000E-03    23.187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    9.8046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.170        14.709        .18545E-02   -1.4627    
  13  norm          .10000E-03    6.6823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.532        18.279        .27220E-02   -1.4972    
  16  Prefactor     .10000E-03    6.4949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3448        3.8500        .55321E-02   -1.5342    
  18  Prefactor     11.330        16.342        .29757E-02   -1.5035    
  19  Prefactor     5.2119        5.1852        .44019E-02   -1.5251    
  20  Prefactor     .10000E-03    5.0824        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .70591        .26441        .90724E-01   -1.0366    
  22  Prefactor     1.1531        .13873        .35849E-01   -.87786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06721e-07
Minuit parameter uncertainties:
  1  55.8198
  2  35.0761
  3  28.5208
  4  1.45192e-05
  5  0.000685876
  6  5.50897e-06
  7  17.3105
  8  1.60101
  9  13.0238
  10  0.000302155
  11  0.000577817
  12  14.7104
  13  0.000339188
  14  2.98727e-06
  15  18.2862
  16  0.000297468
  17  3.85033
  18  16.348
  19  5.1856
  20  0.000301689
  21  0.26489
  22  0.138775
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  2.710e+00  1.601e+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.153e+00  1.388e-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:  7.059e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.43
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 8.18e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.70e-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) = 6037.76187769
delta logL = 0.195533555177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6037.7504173
delta logL = 0.206993948467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4988       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9690       1.0000          .0000       5.0000    
     3 'Normalizat'    .73065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1463       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=   6037.750     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4985        1.6219        .64634E-02    .13315E-03
   2  alpha         1.9688        .41592        .32063       -.24959E-04
   3  Normalizat    .73064        .24383        .89294E-01    .29110E-04
   4  Prefactor     1.1463        .13713        .36045E-01   -.25541E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49852
  alpha      = 1.96885
  Normalizat = 0.730636
  Prefactor  = 1.1463
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.750     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4985        1.7281        .74731E-04   -1.5392    
   2  alpha         1.9688        .50052        .12520E-01   -.21409    
   3  Normalizat    .73064        .27343        .39555E-03   -1.0270    
   4  Prefactor     1.1463        .15372        .18143E-03   -.88000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28121e-10
Minuit parameter uncertainties:
  1  1.72813
  2  0.504091
  3  0.273946
  4  0.153783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290398': 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) = 6037.75041725
delta logL = 0.206993998064

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  2.499e+00  1.728e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  1.969e+00  5.041e-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.146e+00  1.538e-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:  7.306e-01  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.81
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 1.97 +/- 0.50
Photon Flux (Free Index): 5.93e-08 +/- 5.14e-08
Energy Flux (Free Index): 3.51e-05 +/- 2.63e-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/290398/cmap_HighResolution_657936001_658195201_4FGL_J1006.7-2159_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.18e-08', energy_flux2='3.51e-05', photon_flux_error='4.83e-08', dlogl='2.07e-01', energy_flux='2.87e-05', photon_flux2='5.93e-08', job_status='DONE', time_completed='2021-12-07 20:54:58.722687', photon_index_error2='0.50', photon_index2='1.97', ts='7.43', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='0.71', time_epoch_completed='1638939298.72', return_code='0', job_id='290398', GAL2='1.15', EG2='0.73', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.14e-08', ts2='7.81', photon_index='2.29' WHERE bin_id='1615' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:54:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 290398: <4FGL_J1006.7-2159_daily_bin1615> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1615> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 20:40:26 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:43:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:43:43 2021
Terminated at Tue Dec  7 20:54:59 2021
Results reported at Tue Dec  7 20:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1615 151.693 -21.991 657936001 658195201 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 :                                   560.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            873 sec.

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

