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


Performing analysis on: 4FGL_J1006.7-2159_daily_bin1310
RA = 151.693, Dec = -21.991
tmin = 578880001, tmax = 579139201
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='669435', job_status='RUN', time_executed='2021-09-01 10:33:11.915813', time_epoch_executed='1630517591.92' WHERE source_name='4FGL J1006.7-2159' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669435/ft1_4FGL_J1006.7-2159_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669435/ft1_4FGL_J1006.7-2159_daily_bin1310.fits outfile=/scratch/kocevski/669435/ft1_filteredMKT_4FGL_J1006.7-2159_daily_bin1310.fits ra=151.693 dec=-21.991 rad=12.0 tmin=578880001.0 tmax=579139201.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.69
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/669435/ltcube_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.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/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits
.....................!
real 11.75
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/669435/ltcube_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.fits outfile=/scratch/kocevski/669435/expmap_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.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/669435/ltcube_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.fits
.....................!
real 191.58
user 185.48
sys 5.02

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/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits scfile=/scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits outfile=/scratch/kocevski/669435/cmap_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.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.01
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669435/Model_4FGL_J1006.7-2159_daily_bin1310.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/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits.....................!
real 80.93
user 77.23
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits', '/scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits', expMap='/scratch/kocevski/669435/expmap_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.fits', expCube='/scratch/kocevski/669435/ltcube_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669435/Model_4FGL_J1006.7-2159_daily_bin1310.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/669435/ft1_filtered_4FGL_J1006.7-2159_daily_bin1310.fits
Spacecraft file(s): /scratch/kocevski/669435/ft2_4FGL_J1006.7-2159_daily_bin1310.fits
Exposure map: /scratch/kocevski/669435/expmap_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.fits
Exposure cube: /scratch/kocevski/669435/ltcube_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669435/Model_4FGL_J1006.7-2159_daily_bin1310.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8006.96319312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.366       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2595       1.0000         .10000E-03   10000.    
     4 'norm      '    .91284       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2526       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4606       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8833       1.0000         .10000E-03   10000.    
     9 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.188       1.0000         .10000E-03   10000.    
    12 'norm      '    14.811       1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3300       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77176       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2023       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=   8006.028     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2008 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.354        21.593       -.18225E-05   -.26111E-03
   2  Prefactor     .10000E-03    10.104       -.40707E-06** at limit **
   3  Prefactor     7.2603        8.0082        .24566E-06   -.52794E-04
   4  norm          .92020        4.8720        .11632E-05   -.34060E-03
   5  norm          1.2523        6.5837        .25958E-05   -.12553E-03
   6  norm          .10000E-03    7.1802        .25201E-06** at limit **
   7  norm          5.4610        6.8954       -.62159E-08   -.32421E-04
   8  norm          5.8834        1.8158        .43162E-07   -.26015E-04
   9  norm          .10000E-03    14.141        .20150E-06** at limit **
  10  Prefactor     .10000E-03    25.188        .20260E-06** at limit **
  11  Prefactor     20.190        14.003        .19253E-06    .49589E-04
  12  norm          14.801        11.885        .60989E-07   -.71278E-04
  13  norm          .10000E-03    9.2073        .21683E-06** at limit **
  14  Prefactor     7.1321        6.6287        .11763E-06   -.19573E-04
  15  Prefactor     2.8704        5.6934        .24775E-06   -.41874E-04
  16  Prefactor     .10000E-03    6.2183       -.45091E-06** at limit **
  17  norm          1.1089        2.5516        .65308E-06   -.10997E-03
  18  Prefactor     .10000E-03    5.8475        .21174E-06** at limit **
  19  Prefactor     .10000E-03    1.8241       -.23675E-07** at limit **
  20  Prefactor     5.3292        6.8751        .23041E-06   -.38515E-04
  21  Normalizat    .77166        .21778       -.47106E-06   -.14448E-03
  22  Prefactor     1.2024        .12206       -.37375E-06   -.25116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3536
  Prefactor  = 0.0001
  Prefactor  = 7.26028
  norm       = 0.920198
  norm       = 1.25226
  norm       = 0.0001
  norm       = 5.46097
  norm       = 5.88339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1899
  norm       = 14.8012
  norm       = 0.0001
  Prefactor  = 7.13206
  Prefactor  = 2.87044
  Prefactor  = 0.0001
  norm       = 1.1089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32922
  Normalizat = 0.771664
  Prefactor  = 1.20235
 **********
 **   18 **HESSE 
 **********

 FCN=   8006.028     FROM HESSE     STATUS=OK           346 CALLS     2354 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.354        22.849        .99002E-04   -1.4899    
   2  Prefactor     .10000E-03    10.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2603        8.0071        .74435E-03   -1.5169    
   4  norm          .92020        9.2387        .35480E-02   -1.5516    
   5  norm          1.2523        6.8512        .39935E-03   -1.5484    
   6  norm          .10000E-03    7.2557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4610        6.8888        .17195E-03   -1.5241    
   8  norm          5.8834        1.8158        .63464E-04   -1.5223    
   9  norm          .10000E-03    14.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.190        14.011        .89142E-04   -1.4809    
  12  norm          14.801        11.857        .10407E-03   -1.4938    
  13  norm          .10000E-03    9.3519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1321        6.6269        .15020E-03   -1.5174    
  15  Prefactor     2.8704        5.6702        .23989E-03   -1.5369    
  16  Prefactor     .10000E-03    6.2703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1089        2.5388        .21100E-03   -1.5497    
  18  Prefactor     .10000E-03    5.8809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8360        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3292        6.8728        .17408E-03   -1.5246    
  21  Normalizat    .77166        .24591        .37994E-03   -1.0113    
  22  Prefactor     1.2024        .13878        .17744E-03   -.86259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39213e-10
Minuit parameter uncertainties:
  1  22.8616
  2  5.32343e-05
  3  8.00827
  4  5.83228
  5  5.85895
  6  2.42906e-05
  7  6.88981
  8  1.81586
  9  1.9186e-05
  10  2.62026e-05
  11  14.0137
  12  11.8589
  13  3.17996e-05
  14  6.62763
  15  5.6713
  16  4.543e-05
  17  2.53905
  18  1.8573e-05
  19  1.43644e-06
  20  6.87381
  21  0.246262
  22  0.138826
Done.

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

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  5.883e+00  1.816e+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.202e+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.717e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.97
Ra Dec: 151.693 -21.991
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 5.48e-08
Energy Flux (Fixed Index): 6.23e-05 +/- 1.92e-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) = 8005.55714321
delta logL = 0.471157173647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8005.55490683
delta logL = 0.47339355322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0772       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0219       1.0000          .0000       5.0000    
     3 'Normalizat'    .81578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1849       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=   8005.555     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0759        2.0606        .40716E-02    .12051E-03
   2  alpha         2.0221        .27122        .21103       -.23546E-04
   3  Normalizat    .81603        .21209        .83660E-01    .32644E-04
   4  Prefactor     1.1847        .12024        .34999E-01   -.22515E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07585
  alpha      = 2.02211
  Normalizat = 0.816029
  Prefactor  = 1.18472
 **********
 **   18 **HESSE 
 **********

 FCN=   8005.555     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0759        1.9213        .66449E-04   -1.5215    
   2  alpha         2.0221        .26791        .88070E-02   -.19234    
   3  Normalizat    .81603        .24342        .37044E-03   -.99477    
   4  Prefactor     1.1847        .13783        .17855E-03   -.86803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05949e-10
Minuit parameter uncertainties:
  1  1.92133
  2  0.268441
  3  0.243743
  4  0.137868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669435': 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) = 8005.55490572
delta logL = 0.473394661992

Extracting fit parameters...

4FGL J1006.7-2159
   Spectrum: LogParabola
268         norm:  6.076e+00  1.921e+00  1.000e-04  1.000e+04 ( 1.000e-11)
269        alpha:  2.022e+00  2.684e-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.185e+00  1.379e-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:  8.160e-01  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.81
Ra Dec: 151.693 -21.991
Photon Index (Free Index): 2.02 +/- 0.27
Photon Flux (Free Index): 1.49e-07 +/- 5.61e-08
Energy Flux (Free Index): 7.97e-05 +/- 3.42e-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/669435/cmap_HighResolution_578880001_579139201_4FGL_J1006.7-2159_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='7.97e-05', photon_flux_error='5.48e-08', dlogl='4.73e-01', energy_flux='6.23e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-01 10:43:48.021519', photon_index_error2='0.27', photon_index2='2.02', ts='24.97', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='3.42e-05', EG='0.77', time_epoch_completed='1630518228.02', return_code='0', job_id='669435', GAL2='1.18', EG2='0.82', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='5.61e-08', ts2='25.81', photon_index='2.29' WHERE bin_id='1310' AND source_name='4FGL J1006.7-2159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:43:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 669435: <4FGL_J1006.7-2159_daily_bin1310> in cluster <slac> Done

Job <4FGL_J1006.7-2159_daily_bin1310> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 10:30:59 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:31:01 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:01 2021
Terminated at Wed Sep  1 10:43:48 2021
Results reported at Wed Sep  1 10:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1006.7-2159_daily_bin1310 151.693 -21.991 578880001 579139201 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 :                                   628.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

