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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1527
RA = 151.693, Dec = -21.991
tmin = 635126401, tmax = 635385601
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='670791', job_status='RUN', time_executed='2021-09-01 10:39:44.020938', time_epoch_executed='1630517984.02' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670791/ft1_4FGL_J1006.7-2159_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670791/ft2_4FGL_J1006.7-2159_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670791/ft1_4FGL_J1006.7-2159_daily_bin1527.fits outfile=/scratch/kocevski/670791/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1527.fits ra=151.693 dec=-21.991 rad=12.0 tmin=635126401.0 tmax=635385601.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.15
user 2.77
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670791/ft1_filtered_4FGL_J1006.7-2159_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/670791/ft2_4FGL_J1006.7-2159_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/670791/ltcube_635126401_635385601_4FGL_J1006.7-2159_daily_bin1527.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/670791/ft2_4FGL_J1006.7-2159_daily_bin1527.fits
.....................!
real 13.01
user 12.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670791/ft1_filtered_4FGL_J1006.7-2159_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/670791/ft2_4FGL_J1006.7-2159_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/670791/ltcube_635126401_635385601_4FGL_J1006.7-2159_daily_bin1527.fits outfile=/scratch/kocevski/670791/expmap_635126401_635385601_4FGL_J1006.7-2159_daily_bin1527.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/670791/ltcube_635126401_635385601_4FGL_J1006.7-2159_daily_bin1527.fits
.....................!
real 191.36
user 186.51
sys 4.20

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/670791/ft1_filtered_4FGL_J1006.7-2159_daily_bin1527.fits scfile=/scratch/kocevski/670791/ft2_4FGL_J1006.7-2159_daily_bin1527.fits outfile=/scratch/kocevski/670791/cmap_635126401_635385601_4FGL_J1006.7-2159_daily_bin1527.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.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670791/ft1_filtered_4FGL_J1006.7-2159_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/670791/ft2_4FGL_J1006.7-2159_daily_bin1527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670791/Model_4FGL_J1006.7-2159_daily_bin1527.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/670791/ft1_filtered_4FGL_J1006.7-2159_daily_bin1527.fits......................!
real 53.13
user 51.44
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    97.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3347       1.0000         .10000E-03   10000.    
     9 'norm      '    22.119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.556       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2450       1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75051       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5362       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1229       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77725       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=   4329.964     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2367 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     97.941        73.224        .29983E-04    .37646E-04
   2  Prefactor     .10000E-03    19.274       -.98500E-05** at limit **
   3  Prefactor     .10000E-03    12.986       -.15994E-05** at limit **
   4  norm          .10000E-03    2.4996        .82060E-07** at limit **
   5  norm          .10000E-03    4.7479       -.82531E-07** at limit **
   6  norm          .10000E-03    5.0491        .16007E-06** at limit **
   7  norm          .10000E-03    30.485        .17064E-05** at limit **
   8  norm          6.3337        2.7758        .15866E-06   -.28444E-03
   9  norm          22.119        14.040        .10209E-05   -.58917E-04
  10  Prefactor     13.531        32.771       -.66188E-05   -.66786E-04
  11  Prefactor     .10000E-03    5.8396       -.46398E-07** at limit **
  12  norm          4.2459        6.0317       -.36021E-07   -.10382E-03
  13  norm          .10000E-03    3.0240        .47879E-07** at limit **
  14  Prefactor     4.5012        12.146        .18049E-05   -.33708E-04
  15  Prefactor     6.3078        18.458        .99981E-05   -.18178E-03
  16  Prefactor     .59484        26.929        .43495E-05   -.51363E-04
  17  norm          3.7287        4.0590        .30299E-06   -.11544E-02
  18  Prefactor     .10000E-03    17.618        .92649E-05** at limit **
  19  Prefactor     6.5631        7.2657       -.28390E-05   -.11564E-02
  20  Prefactor     1.1180        1.7784        .70877E-06   -.24997E-02
  21  Normalizat    1.1125        .29757       -.53940E-05   -.25528E-03
  22  Prefactor     .77727        .13920       -.38742E-06   -.56062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 97.9406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.33375
  norm       = 22.1186
  Prefactor  = 13.5308
  Prefactor  = 0.0001
  norm       = 4.24586
  norm       = 0.0001
  Prefactor  = 4.50121
  Prefactor  = 6.30782
  Prefactor  = 0.594837
  norm       = 3.72866
  Prefactor  = 0.0001
  Prefactor  = 6.56313
  Prefactor  = 1.11799
  Normalizat = 1.11252
  Prefactor  = 0.77727
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.964     FROM HESSE     STATUS=OK           344 CALLS     2711 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     97.941        73.190        .20314E-03   -1.3725    
   2  Prefactor     .10000E-03    19.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5082        .10159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.7490        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0593        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    31.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3337        2.7933        .67848E-04   -1.5205    
   9  norm          22.119        14.049        .85166E-04   -1.4767    
  10  Prefactor     13.531        32.859        .10879E-03   -1.4972    
  11  Prefactor     .10000E-03    5.8440        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2459        6.0196        .18550E-03   -1.5296    
  13  norm          .10000E-03    3.0300        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5012        12.215        .18970E-03   -1.5284    
  15  Prefactor     6.3078        18.379        .15972E-03   -1.5206    
  16  Prefactor     .59484        461.96        .49193E-02   -1.5554    
  17  norm          3.7287        4.3828        .11695E-03   -1.5322    
  18  Prefactor     .10000E-03    17.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5631        8.0780        .15103E-03   -1.5196    
  20  Prefactor     1.1180        11.786        .21374E-02   -1.5496    
  21  Normalizat    1.1125        .35754        .32335E-03   -.89351    
  22  Prefactor     .77727        .16741        .18971E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.909e-08
Minuit parameter uncertainties:
  1  73.2575
  2  4.39989e-05
  3  8.1469e-05
  4  7.26055e-06
  5  2.99084e-06
  6  5.93197e-06
  7  4.93682e-05
  8  2.79337
  9  14.051
  10  32.9028
  11  1.46334e-05
  12  6.02047
  13  7.3015e-06
  14  12.2217
  15  18.3953
  16  33.4126
  17  4.38313
  18  0.000138941
  19  8.07936
  20  7.26149
  21  0.358326
  22  0.167521
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  6.334e+00  2.793e+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:  7.773e-01  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:  1.113e+00  3.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.04
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.91e-07 +/- 8.43e-08
Energy Flux (Fixed Index): 6.71e-05 +/- 2.96e-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) = 4329.87250299
delta logL = 0.0917592843025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4329.86184234
delta logL = 0.102419935724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1074       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0844       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76092       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=   4329.862     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1048        2.8876        .40614E-02    .21029E-03
   2  alpha         2.0839        .40132        .24516       -.53596E-04
   3  Normalizat    1.1611        .28213        .71748E-01   -.15244E-04
   4  Prefactor     .76102        .13864        .43206E-01   -.15038E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.10483
  alpha      = 2.08385
  Normalizat = 1.16115
  Prefactor  = 0.761017
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.862     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1048        2.9565        .70301E-04   -1.5214    
   2  alpha         2.0839        .45343        .98395E-02   -.16724    
   3  Normalizat    1.1611        .34577        .31749E-03   -.87812    
   4  Prefactor     .76102        .16710        .19154E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82226e-11
Minuit parameter uncertainties:
  1  2.95656
  2  0.456031
  3  0.346451
  4  0.167213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670791': 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) = 4329.86183931
delta logL = 0.102422962667

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  6.105e+00  2.957e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.084e+00  4.560e-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:  7.610e-01  1.672e-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.161e+00  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.09
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 2.08 +/- 0.46
Photon Flux (Free Index): 1.56e-07 +/- 1.04e-07
Energy Flux (Free Index): 7.49e-05 +/- 4.09e-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/670791/cmap_HighResolution_635126401_635385601_4FGL_J1006.7-2159_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.91e-07', energy_flux2='7.49e-05', photon_flux_error='8.43e-08', dlogl='1.02e-01', energy_flux='6.71e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-01 10:48:04.901522', photon_index_error2='0.46', photon_index2='2.08', ts='13.04', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='4.09e-05', EG='1.11', time_epoch_completed='1630518484.9', return_code='0', job_id='670791', GAL2='0.76', EG2='1.16', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='1.04e-07', ts2='13.09', photon_index='2.29' WHERE bin_id='1527' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:48:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 670791: <4FGL_J1006.7-2159_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1527> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 10:35:36 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:35:38 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:35:38 2021
Terminated at Wed Sep  1 10:48:07 2021
Results reported at Wed Sep  1 10:48:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1527 151.693 -21.991 635126401 635385601 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 :                                   496.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            751 sec.

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

