/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 133 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 = 6643
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin141
RA = 154.473, Dec = 7.2638
tmin = 275875201, tmax = 276134401
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='779110', job_status='RUN', time_executed='2021-09-01 16:15:47.324120', time_epoch_executed='1630538147.32' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779110

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779110/ft1_4FGL_J1017.8+0715_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779110/ft1_4FGL_J1017.8+0715_daily_bin141.fits outfile=/scratch/kocevski/779110/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin141.fits ra=154.473 dec=7.2638 rad=12.0 tmin=275875201.0 tmax=276134401.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.17
user 2.96
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.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/779110/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin141.fits evtable="EVENTS" outfile="/scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.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/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/779110/ltcube_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.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/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits
.....................!
real 12.84
user 12.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/779110/ltcube_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.fits outfile=/scratch/kocevski/779110/expmap_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.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/779110/ltcube_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.fits
.....................!
real 191.18
user 185.97
sys 4.72

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits scfile=/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits outfile=/scratch/kocevski/779110/cmap_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.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=154.473 yref=7.2638 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits scfile=/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits outfile=/scratch/kocevski/779110/cmap_HighResolution_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.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=154.473 yref=7.2638 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 3.69
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779110/Model_4FGL_J1017.8+0715_daily_bin141.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/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits.....................!
real 51.31
user 49.99
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits', '/scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits', expMap='/scratch/kocevski/779110/expmap_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.fits', expCube='/scratch/kocevski/779110/ltcube_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779110/Model_4FGL_J1017.8+0715_daily_bin141.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/779110/ft1_filtered_4FGL_J1017.8+0715_daily_bin141.fits
Spacecraft file(s): /scratch/kocevski/779110/ft2_4FGL_J1017.8+0715_daily_bin141.fits
Exposure map: /scratch/kocevski/779110/expmap_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.fits
Exposure cube: /scratch/kocevski/779110/ltcube_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779110/Model_4FGL_J1017.8+0715_daily_bin141.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) = 5078.72434052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2291       1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.083       1.0000         .10000E-03   10000.    
     6 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .70915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .81901       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6375       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33158E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .88231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.822       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92485       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5078.702     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2213 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2290        1.5518       -.17696E-07   -.71062E-03
   2  norm          .10000E-03    .25574        .19613E-06** at limit **
   3  Prefactor     18.769        14.448        .19871E-06    .27192E-04
   4  Prefactor     .10000E-03    10.833        .82283E-05** at limit **
   5  Prefactor     16.083        29.597       -.33538E-06    .39051E-04
   6  norm          .10000E-03    31.487       -.65945E-06** at limit **
   7  Prefactor     15.089        14.799        .37426E-05    .62675E-04
   8  Prefactor     .10000E-03    45.581       -.38422E-05** at limit **
   9  Prefactor     16.299        37.800       -.25835E-05   -.29713E-05
  10  Prefactor     38.996        60.985       -.18649E-04    .41763E-04
  11  Prefactor     .10000E-03    11.692       -.43310E-05** at limit **
  12  norm          .70968        1.0512        .11560E-07    .20508E-03
  13  Prefactor     .81927        6.2345       -.39935E-05    .30208E-03
  14  Prefactor     1.6401        3.5324       -.53770E-06   -.83267E-03
  15  Prefactor     14.870        10.289        .19145E-06   -.41079E-04
  16  Prefactor     .10020E-03    9.0229        .95551E-06** at limit **
  17  norm          .88257        .68695       -.19734E-06   -.49440E-03
  18  Prefactor     .10000E-03    10.097       -.24142E-05** at limit **
  19  Prefactor     25.832        36.404        .12146E-04   -.23153E-04
  20  Normalizat    .92475        .22095       -.70688E-07    .13947E-03
  21  Prefactor     1.0963        .17792        .53297E-06    .11200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22903
  norm       = 0.0001
  Prefactor  = 18.7689
  Prefactor  = 0.0001
  Prefactor  = 16.0828
  norm       = 0.0001
  Prefactor  = 15.0893
  Prefactor  = 0.0001
  Prefactor  = 16.2989
  Prefactor  = 38.996
  Prefactor  = 0.0001
  norm       = 0.70968
  Prefactor  = 0.819275
  Prefactor  = 1.64014
  Prefactor  = 14.8703
  Prefactor  = 0.000100203
  norm       = 0.882566
  Prefactor  = 0.0001
  Prefactor  = 25.8316
  Normalizat = 0.924755
  Prefactor  = 1.09627
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.702     FROM HESSE     STATUS=OK           325 CALLS     2538 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2290        1.5231        .92925E-04   -1.5486    
   2  norm          .10000E-03    .34043        .69625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.769        14.430        .92434E-04   -1.4841    
   4  Prefactor     .10000E-03    10.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.083        29.566        .99870E-04   -1.4906    
   6  norm          .10000E-03    32.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.089        14.804        .10310E-03   -1.4931    
   8  Prefactor     .10000E-03    45.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.299        37.807        .99202E-04   -1.4900    
  10  Prefactor     38.996        60.879        .64173E-04   -1.4458    
  11  Prefactor     .10000E-03    11.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .70968        1.0486        .48388E-04   -1.5539    
  13  Prefactor     .81927        12.240        .32927E-02   -1.5527    
  14  Prefactor     1.6401        3.4532        .18277E-03   -1.5452    
  15  Prefactor     14.870        10.283        .10387E-03   -1.4937    
  16  Prefactor     .10020E-03    41.986        .38770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88257        .66818        .49593E-04   -1.5520    
  18  Prefactor     .10000E-03    10.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.832        36.289        .78833E-04   -1.4691    
  20  Normalizat    .92475        .24841        .27932E-03   -.95596    
  21  Prefactor     1.0963        .20337        .22215E-03   -.89586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0966e-09
Minuit parameter uncertainties:
  1  1.52311
  2  4.63829e-06
  3  14.4331
  4  6.76714e-06
  5  29.5924
  6  0.00012543
  7  14.8071
  8  9.82062e-05
  9  37.8621
  10  60.9761
  11  8.58712e-05
  12  1.04866
  13  6.33457
  14  3.45362
  15  10.2847
  16  0.00584098
  17  0.668189
  18  3.03211e-05
  19  36.3197
  20  0.248723
  21  0.20351
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  9.821e-05  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.096e+00  2.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.248e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779110/likelihoodResults_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.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): 102
logL (Free Index) = 5078.70162278
delta logL = -0.000104351906884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5078.7015189
delta logL = -4.76311470266e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1961       1.0000          .0000       10.000    
     3 'Normalizat'    .92475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0963       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5078.702     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10495E-03    33.665        .18142E-01** at limit **
   2  Index         3.0793        6.2035        .50000        .67865E-05
   3  Normalizat    .92475        .50129E-02    .27932E-03    .23484E-04
   4  Prefactor     1.0963        .43248E-02    .22215E-03    .13920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104947
  Index      = 3.07932
  Normalizat = 0.924754
  Prefactor  = 1.09627
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.702     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10495E-03    185.37        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0793        5.6957        .50000       -.39427    
   3  Normalizat    .92475        .11775E-01    .11173E-04   -.95596    
   4  Prefactor     1.0963        .10159E-01    .88858E-05   -.89586    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24338e-09
Minuit parameter uncertainties:
  1  0.060755
  2  549.776
  3  0.0117749
  4  0.0101586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779110': 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): 102
logL (Free Index) = 5078.70151878
delta logL = -3.53026734956e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.049e-04  6.076e-02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.079e+00  5.498e+02  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.096e+00  1.016e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.248e-01  1.177e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.473 7.264

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/779110/cmap_HighResolution_275875201_276134401_4FGL_J1017.8+0715_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-01 16:24:42.061758', job_id='779110', GAL2='1.10', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630538682.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-3.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='141' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:24:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 779110: <4FGL_J1017.8+0715_daily_bin141> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin141> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:10:49 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:13:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:13:25 2021
Terminated at Wed Sep  1 16:24:42 2021
Results reported at Wed Sep  1 16:24:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin141 154.473 7.2638 275875201 276134401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1017.8+0715 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   532.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            833 sec.

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

