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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin550
RA = 151.693, Dec = -21.991
tmin = 381888001, tmax = 382147201
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='666100', job_status='RUN', time_executed='2021-09-01 10:23:13.411986', time_epoch_executed='1630516993.41' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666100/ft1_4FGL_J1006.7-2159_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666100/ft1_4FGL_J1006.7-2159_daily_bin550.fits outfile=/scratch/kocevski/666100/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin550.fits ra=151.693 dec=-21.991 rad=12.0 tmin=381888001.0 tmax=382147201.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.77
user 4.52
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666100/ft1_filtered_4FGL_J1006.7-2159_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/666100/ltcube_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.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/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits
.....................!
real 12.07
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666100/ft1_filtered_4FGL_J1006.7-2159_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/666100/ltcube_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.fits outfile=/scratch/kocevski/666100/expmap_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.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/666100/ltcube_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.fits
.....................!
real 190.56
user 185.97
sys 4.24

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/666100/ft1_filtered_4FGL_J1006.7-2159_daily_bin550.fits scfile=/scratch/kocevski/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits outfile=/scratch/kocevski/666100/cmap_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666100/ft1_filtered_4FGL_J1006.7-2159_daily_bin550.fits scfile=/scratch/kocevski/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits outfile=/scratch/kocevski/666100/cmap_HighResolution_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.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.67
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/666100/ft1_filtered_4FGL_J1006.7-2159_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/666100/ft2_4FGL_J1006.7-2159_daily_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666100/Model_4FGL_J1006.7-2159_daily_bin550.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/666100/ft1_filtered_4FGL_J1006.7-2159_daily_bin550.fits.....................!
real 77.11
user 73.52
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4288       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8676       1.0000         .10000E-03   10000.    
     5 'norm      '    .70896E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9922       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58199       1.0000         .10000E-03   10000.    
     9 'norm      '    21.427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.031       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5504       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6804       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.429       1.0000         .10000E-03   10000.    
    17 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63141E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53085       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1944       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99875       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87665       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=   7508.528     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2070 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0547        7.5013        .63296E-07   -.24675E-02
   2  Prefactor     31.242        8.3237       -.61146E-07   -.97102E-02
   3  Prefactor     8.4364        5.4335       -.72928E-07   -.94593E-03
   4  norm          2.8651        4.3257        .45318E-06   -.15484E-03
   5  norm          .10001E-03    33.637       -.24593E-06** at limit **
   6  norm          2.9917        4.4556        .32274E-06    .97979E-03
   7  norm          .10000E-03    3.0324       -.26608E-06** at limit **
   8  norm          .58113        .77964        .25330E-06    .42709E-03
   9  norm          21.429        1.1456       -.77864E-08    .13181E-02
  10  Prefactor     .10000E-03    15.864        .62015E-07** at limit **
  11  Prefactor     12.028        1.1971       -.98313E-08    .10281E-03
  12  norm          4.5503        4.4179        .15271E-06    .23383E-02
  13  norm          2.1507        5.1450       -.56000E-06   -.70797E-03
  14  Prefactor     3.6769        6.6842        .55896E-06   -.98772E-03
  15  Prefactor     4.4625        6.1216        .17397E-06   -.20302E-02
  16  Prefactor     12.433        9.9824       -.12839E-06   -.47985E-02
  17  norm          .10000E-03    2.0452        .17511E-06** at limit **
  18  Prefactor     .10175E-03    463.02       -.12864E-04** at limit **
  19  Prefactor     .53102        2.6182       -.26212E-06   -.66056E-04
  20  Prefactor     5.1973        4.6043       -.50585E-06    .43597E-03
  21  Normalizat    .99855        .20869       -.12166E-05   -.31600E-03
  22  Prefactor     .87689        .11828       -.37485E-06   -.50149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05471
  Prefactor  = 31.2415
  Prefactor  = 8.43635
  norm       = 2.86514
  norm       = 0.000100015
  norm       = 2.99165
  norm       = 0.0001
  norm       = 0.581134
  norm       = 21.4288
  Prefactor  = 0.0001
  Prefactor  = 12.0276
  norm       = 4.55032
  norm       = 2.1507
  Prefactor  = 3.67693
  Prefactor  = 4.46253
  Prefactor  = 12.4333
  norm       = 0.0001
  Prefactor  = 0.000101748
  Prefactor  = 0.531019
  Prefactor  = 5.19733
  Normalizat = 0.998554
  Prefactor  = 0.876892
 **********
 **   18 **HESSE 
 **********

 FCN=   7508.528     FROM HESSE     STATUS=OK           410 CALLS     2480 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0547        25.316        .44618E-02   -1.5258    
   2  Prefactor     31.242        29.477        .17909E-02   -1.4589    
   3  Prefactor     8.4364        13.734        .34520E-02   -1.5127    
   4  norm          2.8651        4.3515        .60012E-02   -1.5369    
   5  norm          .10001E-03    5.2069        .58449E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9917        4.4894        .58669E-02   -1.5362    
   7  norm          .10000E-03    3.0272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .58113        .91700        .20385E-01   -1.5556    
   9  norm          21.429        9.8347        .21632E-02   -1.4782    
  10  Prefactor     .10000E-03    15.834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.028        10.850        .28873E-02   -1.5014    
  12  norm          4.5503        5.7811        .47179E-02   -1.5281    
  13  norm          2.1507        5.4409        .70248E-02   -1.5415    
  14  Prefactor     3.6769        6.9815        .52633E-02   -1.5324    
  15  Prefactor     4.4625        14.963        .47778E-02   -1.5285    
  16  Prefactor     12.433        14.569        .28405E-02   -1.5003    
  17  norm          .10000E-03    1.9922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10175E-03    10.734        .93340E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .53102        2.8056        .11396E-01   -1.5562    
  20  Prefactor     5.1973        6.3461        .44095E-02   -1.5252    
  21  Normalizat    .99855        .18326        .66661E-01   -.93079    
  22  Prefactor     .87689        .10054        .44707E-01   -.96953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48225e-07
Minuit parameter uncertainties:
  1  22.6396
  2  29.4907
  3  13.7388
  4  4.35196
  5  0.000549988
  6  4.48987
  7  1.03785e-05
  8  0.917024
  9  9.83545
  10  6.6399e-05
  11  10.852
  12  5.78177
  13  5.4422
  14  6.98301
  15  14.9751
  16  14.5733
  17  6.81856e-06
  18  0.00866535
  19  2.44114
  20  6.34697
  21  0.183377
  22  0.100558
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  5.811e-01  9.170e-01  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.769e-01  1.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  9.986e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 151.693 -21.991
Photon Flux Upper Limit: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666100/likelihoodResults_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.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) = 7508.42049892
delta logL = 0.107780653773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7508.41997065
delta logL = 0.108308921757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57490       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8979       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87454       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=   7508.420     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57502        2.1080        .19477E-01    .90161E-03
   2  alpha         1.8980        1.3868        .42772       -.36302E-04
   3  Normalizat    1.0050        .17557        .66465E-01    .35090E-04
   4  Prefactor     .87455        .10004        .44680E-01    .36085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.575022
  alpha      = 1.89799
  Normalizat = 1.00497
  Prefactor  = 0.874546
 **********
 **   18 **HESSE 
 **********

 FCN=   7508.420     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57502        .76940        .97105E-03   -1.5556    
   2  alpha         1.8980        .78585        .21442E-01   -.24320    
   3  Normalizat    1.0050        .20722        .29398E-03   -.92864    
   4  Prefactor     .87455        .11708        .17579E-03   -.97036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32224e-11
Minuit parameter uncertainties:
  1  0.769415
  2  0.800283
  3  0.207382
  4  0.117112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666100': 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) = 7508.41997064
delta logL = 0.108308936828

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  5.750e-01  7.694e-01  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  1.898e+00  8.003e-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:  8.745e-01  1.171e-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.005e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 1.90 +/- 0.80
Photon Flux (Free Index): 1.31e-08 +/- 2.00e-08
Energy Flux (Free Index): 8.97e-06 +/- 1.40e-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/666100/cmap_HighResolution_381888001_382147201_4FGL_J1006.7-2159_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', comment='SUCCESS', energy_flux2='8.97e-06', dlogl='1.08e-01', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-01 10:34:44.174342', photon_index_error2='0.80', photon_index2='1.90', ts='0.93', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='1.40e-05', EG='1.00', time_epoch_completed='1630517684.17', return_code='0', job_id='666100', GAL2='0.87', EG2='1.00', return_code2='0', photon_flux_error2='2.00e-08', ts2='1.14', photon_index='2.29' WHERE bin_id='550' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 666100: <4FGL_J1006.7-2159_daily_bin550> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin550 151.693 -21.991 381888001 382147201 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 :                                   688.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

