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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1400
RA = 151.693, Dec = -21.991
tmin = 602208001, tmax = 602467201
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='669555', job_status='RUN', time_executed='2021-09-01 10:34:06.935688', time_epoch_executed='1630517646.94' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669555/ft1_4FGL_J1006.7-2159_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669555/ft2_4FGL_J1006.7-2159_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669555/ft1_4FGL_J1006.7-2159_daily_bin1400.fits outfile=/scratch/kocevski/669555/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1400.fits ra=151.693 dec=-21.991 rad=12.0 tmin=602208001.0 tmax=602467201.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.35
user 4.98
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669555/ft1_filtered_4FGL_J1006.7-2159_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/669555/ft2_4FGL_J1006.7-2159_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/669555/ltcube_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.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/669555/ft2_4FGL_J1006.7-2159_daily_bin1400.fits
.....................!
real 13.12
user 12.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669555/ft1_filtered_4FGL_J1006.7-2159_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/669555/ft2_4FGL_J1006.7-2159_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/669555/ltcube_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.fits outfile=/scratch/kocevski/669555/expmap_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.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/669555/ltcube_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.fits
.....................!
real 194.91
user 188.34
sys 4.01

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/669555/ft1_filtered_4FGL_J1006.7-2159_daily_bin1400.fits scfile=/scratch/kocevski/669555/ft2_4FGL_J1006.7-2159_daily_bin1400.fits outfile=/scratch/kocevski/669555/cmap_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.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 1.78
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669555/ft1_filtered_4FGL_J1006.7-2159_daily_bin1400.fits scfile=/scratch/kocevski/669555/ft2_4FGL_J1006.7-2159_daily_bin1400.fits outfile=/scratch/kocevski/669555/cmap_HighResolution_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.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 2.11
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.362       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0162       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0675       1.0000         .10000E-03   10000.    
     9 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17539E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18781E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    76.505       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.871       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64521       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2295       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=   5930.871     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2309 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9428        43.783        .31167E-04   -.10800E-04
   2  Prefactor     15.263        39.061        .56438E-04    .60853E-05
   3  Prefactor     .10000E-03    6.6376        .17778E-05** at limit **
   4  norm          .10000E-03    6.0487       -.18523E-05** at limit **
   5  norm          .10000E-03    3.4522       -.11464E-05** at limit **
   6  norm          11.365        9.8025       -.12835E-05    .26853E-04
   7  norm          4.0169        7.5098       -.56369E-06   -.15588E-03
   8  norm          5.0670        2.4066        .14593E-06   -.30972E-03
   9  norm          .10000E-03    3.3305        .51233E-06** at limit **
  10  Prefactor     .10000E-03    49.322       -.24769E-04** at limit **
  11  Prefactor     .10000E-03    7.3885        .84104E-06** at limit **
  12  norm          .10000E-03    9.4248       -.10833E-05** at limit **
  13  norm          4.8086        7.7623        .96539E-06   -.79563E-04
  14  Prefactor     11.194        11.045       -.97546E-06   -.76774E-04
  15  Prefactor     .10001E-03    45.300        .28231E-04** at limit **
  16  Prefactor     76.487        29.007       -.10335E-04   -.21458E-03
  17  norm          1.2966        3.2612        .24480E-05   -.35854E-03
  18  Prefactor     13.855        19.741       -.63453E-05   -.34526E-03
  19  Prefactor     .10000E-03    3.3859       -.36166E-07** at limit **
  20  Prefactor     .10000E-03    3.7455        .52754E-06** at limit **
  21  Normalizat    .64519        .26984       -.22785E-05   -.13915E-03
  22  Prefactor     1.2294        .14194       -.82634E-06   -.59208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.94276
  Prefactor  = 15.2625
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 11.3648
  norm       = 4.01693
  norm       = 5.06697
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.8086
  Prefactor  = 11.1939
  Prefactor  = 0.000100005
  Prefactor  = 76.4873
  norm       = 1.29659
  Prefactor  = 13.8554
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.645187
  Prefactor  = 1.22943
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.871     FROM HESSE     STATUS=OK           342 CALLS     2651 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9428        43.582        .13413E-03   -1.5110    
   2  Prefactor     15.263        38.931        .10262E-03   -1.4926    
   3  Prefactor     .10000E-03    6.6419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.1246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4677        .13986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.365        9.8043        .11885E-03   -1.5034    
   7  norm          4.0169        7.4957        .20123E-03   -1.5307    
   8  norm          5.0670        2.4034        .76342E-04   -1.5258    
   9  norm          .10000E-03    3.3323        .13726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.6309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8086        7.7458        .18346E-03   -1.5269    
  14  Prefactor     11.194        11.037        .11976E-03   -1.5039    
  15  Prefactor     .10001E-03    46.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     76.487        28.748        .45908E-04   -1.3957    
  17  norm          1.2966        3.1725        .20467E-03   -1.5480    
  18  Prefactor     13.855        19.741        .10754E-03   -1.4963    
  19  Prefactor     .10000E-03    3.4054        .13826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7643        .14556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64519        .29179        .43328E-03   -1.0610    
  22  Prefactor     1.2294        .15563        .17751E-03   -.85430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55675e-09
Minuit parameter uncertainties:
  1  39.53
  2  38.9959
  3  8.10774e-05
  4  3.11523e-05
  5  0.000159446
  6  9.80572
  7  7.49749
  8  2.40347
  9  4.91863e-06
  10  0.000555707
  11  1.57692e-05
  12  9.41613e-05
  13  7.74738
  14  11.0395
  15  0.000992487
  16  28.7535
  17  3.17288
  18  19.7505
  19  0.000102051
  20  2.14422e-05
  21  0.292488
  22  0.155692
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  5.067e+00  2.403e+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.229e+00  1.557e-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:  6.452e-01  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.70
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 7.25e-08
Energy Flux (Fixed Index): 5.37e-05 +/- 2.55e-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) = 5930.17676289
delta logL = 0.694168013544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5930.17020486
delta logL = 0.700726042074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0228       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0539       1.0000          .0000       5.0000    
     3 'Normalizat'    .50130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2828       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=   5930.170     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0206        20.884        .50264E-02    .32255E-03
   2  alpha         3.0545        4.0271        .26836        .55689E-04
   3  Normalizat    .50134        .13084        .10997        .44020E-04
   4  Prefactor     1.2828        .63560E-01    .32916E-01   -.25229E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02058
  alpha      = 3.05453
  Normalizat = 0.501338
  Prefactor  = 1.28282
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.170     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0206        3.5583        .56193E-04   -1.5307    
   2  alpha         3.0545        .93623        .11054E-01    .22367    
   3  Normalizat    .50134        .31717        .48756E-03   -1.1235    
   4  Prefactor     1.2828        .16743        .17425E-03   -.83819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10946e-11
Minuit parameter uncertainties:
  1  3.55846
  2  0.960928
  3  0.31832
  4  0.167497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669555': 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) = 5930.17020437
delta logL = 0.700726539827

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  4.021e+00  3.558e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  3.055e+00  9.609e-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.283e+00  1.675e-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:  5.013e-01  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.77
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 3.05 +/- 0.96
Photon Flux (Free Index): 2.60e-07 +/- 1.29e-07
Energy Flux (Free Index): 5.12e-05 +/- 2.16e-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/669555/cmap_HighResolution_602208001_602467201_4FGL_J1006.7-2159_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='5.12e-05', photon_flux_error='7.25e-08', dlogl='7.01e-01', energy_flux='5.37e-05', photon_flux2='2.60e-07', job_status='DONE', time_completed='2021-09-01 10:44:06.265649', photon_index_error2='0.96', photon_index2='3.05', ts='8.70', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='0.65', time_epoch_completed='1630518246.27', return_code='0', job_id='669555', GAL2='1.28', EG2='0.50', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='1.29e-07', ts2='10.77', photon_index='2.29' WHERE bin_id='1400' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:44:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 669555: <4FGL_J1006.7-2159_daily_bin1400> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1400> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 10:31:08 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:31:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:31:10 2021
Terminated at Wed Sep  1 10:44:07 2021
Results reported at Wed Sep  1 10:44:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1400 151.693 -21.991 602208001 602467201 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 :                                   578.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            779 sec.

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

