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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin233
RA = 154.473, Dec = 7.2638
tmin = 299721601, tmax = 299980801
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='779230', job_status='RUN', time_executed='2021-09-01 16:16:46.985387', time_epoch_executed='1630538206.99' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779230/ft1_4FGL_J1017.8+0715_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779230/ft1_4FGL_J1017.8+0715_daily_bin233.fits outfile=/scratch/kocevski/779230/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin233.fits ra=154.473 dec=7.2638 rad=12.0 tmin=299721601.0 tmax=299980801.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.39
user 3.13
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.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/779230/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin233.fits evtable="EVENTS" outfile="/scratch/kocevski/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.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.60
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/779230/ltcube_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.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/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits
.....................!
real 14.54
user 14.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/779230/ltcube_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.fits outfile=/scratch/kocevski/779230/expmap_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.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/779230/ltcube_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.fits
.....................!
real 192.18
user 186.06
sys 5.44

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/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.fits scfile=/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits outfile=/scratch/kocevski/779230/cmap_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.fits scfile=/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits outfile=/scratch/kocevski/779230/cmap_HighResolution_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.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 0.59
user 0.40
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.fits', '/scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits', expMap='/scratch/kocevski/779230/expmap_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.fits', expCube='/scratch/kocevski/779230/ltcube_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779230/Model_4FGL_J1017.8+0715_daily_bin233.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/779230/ft1_filtered_4FGL_J1017.8+0715_daily_bin233.fits
Spacecraft file(s): /scratch/kocevski/779230/ft2_4FGL_J1017.8+0715_daily_bin233.fits
Exposure map: /scratch/kocevski/779230/expmap_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.fits
Exposure cube: /scratch/kocevski/779230/ltcube_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779230/Model_4FGL_J1017.8+0715_daily_bin233.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) = 5741.36851418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0696       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4987       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.543       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8924       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90535       1.0000         .10000E-03   10000.    
    17 'norm      '    .25927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.730       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98314       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1433       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=   5741.359     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2260 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0696        1.2201        .11075E-06   -.63876E-04
   2  norm          3.2636        .98313        .45134E-07   -.22295E-03
   3  Prefactor     .10000E-03    11.952        .13065E-05** at limit **
   4  Prefactor     .10000E-03    34.213        .70450E-07** at limit **
   5  Prefactor     9.4908        50.953        .13510E-05    .75808E-05
   6  norm          .10000E-03    4.6721       -.49928E-07** at limit **
   7  Prefactor     .10000E-03    2.3330        .68293E-07** at limit **
   8  Prefactor     .10000E-03    17.626       -.75596E-06** at limit **
   9  Prefactor     70.898        61.293        .34274E-05    .63576E-04
  10  Prefactor     48.550        35.140       -.10573E-05   -.94730E-04
  11  Prefactor     .10000E-03    7.2526        .57093E-06** at limit **
  12  norm          .10000E-03    .73841        .10600E-06** at limit **
  13  Prefactor     2.8926        8.6384        .55181E-05   -.22050E-03
  14  Prefactor     .10000E-03    2.6377        .15327E-06** at limit **
  15  Prefactor     1.0635        3.9049        .62711E-06    .39484E-05
  16  Prefactor     .90368        6.5214        .14097E-05    .30038E-04
  17  norm          .25949        .42845        .23568E-06    .20195E-02
  18  Prefactor     .10000E-03    10.381       -.70961E-06** at limit **
  19  Prefactor     31.729        22.236        .23695E-06    .32693E-05
  20  Normalizat    .98328        .20112       -.10025E-05   -.12170E-03
  21  Prefactor     1.1431        .17459       -.86896E-06   -.20032E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06956
  norm       = 3.26365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49075
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.8977
  Prefactor  = 48.55
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.89257
  Prefactor  = 0.0001
  Prefactor  = 1.0635
  Prefactor  = 0.903677
  norm       = 0.259488
  Prefactor  = 0.0001
  Prefactor  = 31.7286
  Normalizat = 0.983283
  Prefactor  = 1.14312
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.359     FROM HESSE     STATUS=OK           317 CALLS     2577 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0696        1.2209        .46999E-04   -1.5501    
   2  norm          3.2636        .98230        .39272E-04   -1.5347    
   3  Prefactor     .10000E-03    12.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4908        51.007        .13003E-03   -1.5092    
   6  norm          .10000E-03    4.6763        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3344        .11303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     70.898        61.330        .47669E-04   -1.4022    
  10  Prefactor     48.550        35.212        .57554E-04   -1.4313    
  11  Prefactor     .10000E-03    7.2868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1383        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8926        8.6666        .11947E-02   -1.5368    
  14  Prefactor     .10000E-03    2.7464        .23992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0635        3.8414        .27756E-03   -1.5502    
  16  Prefactor     .90368        6.4587        .36952E-03   -1.5518    
  17  norm          .25949        .39337        .62102E-03   -1.5606    
  18  Prefactor     .10000E-03    10.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.729        22.229        .71133E-04   -1.4581    
  20  Normalizat    .98328        .22962        .27340E-03   -.93593    
  21  Prefactor     1.1431        .19944        .22636E-03   -.88100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44365e-10
Minuit parameter uncertainties:
  1  1.22094
  2  0.982303
  3  2.51139e-05
  4  8.523e-05
  5  44.0628
  6  1.27105e-06
  7  5.87306e-06
  8  5.09609e-06
  9  61.3846
  10  35.2266
  11  7.1172e-05
  12  3.72103e-06
  13  8.67039
  14  1.31953e-05
  15  3.84225
  16  4.83227
  17  0.393371
  18  1.30499e-05
  19  22.2349
  20  0.229854
  21  0.199574
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.096e-06  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.143e+00  1.996e-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.833e-01  2.299e-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: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779230/likelihoodResults_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.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) = 5741.35925623
delta logL = -0.000270315275884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5741.35898858
delta logL = -2.66163988272e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7493       1.0000          .0000       10.000    
     3 'Normalizat'    .98327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1431       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=   5741.359     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    115.11        .18142E-01** at limit **
   2  Index         2.2654        8.6347        .50000       -.95497E-08
   3  Normalizat    .98328        .11994E-01    .27340E-03    .33931E-03
   4  Prefactor     1.1431        .10671E-01    .22636E-03    .41552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.26535
  Normalizat = 0.983283
  Prefactor  = 1.14312
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.359     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    761.23        .32608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2654        5.9938        .50000       -.57869    
   3  Normalizat    .98328        .32405E-01    .54680E-04   -.93593    
   4  Prefactor     1.1431        .28830E-01    .45271E-04   -.88100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.89985e-08
Minuit parameter uncertainties:
  1  0.00841112
  2  2159.41
  3  0.0324058
  4  0.0288303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779230': 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) = 5741.35898565
delta logL = 2.64496520685e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  8.411e-03  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.265e+00  2.159e+03  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.143e+00  2.883e-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.833e-01  3.241e-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/779230/cmap_HighResolution_299721601_299980801_4FGL_J1017.8+0715_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-01 16:26:24.761142', job_id='779230', GAL2='1.14', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630538784.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='233' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:26:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 779230: <4FGL_J1017.8+0715_daily_bin233> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin233> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:10:57 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:14:22 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:14:22 2021
Terminated at Wed Sep  1 16:26:25 2021
Results reported at Wed Sep  1 16:26:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin233 154.473 7.2638 299721601 299980801 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 :                                   577.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            928 sec.

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

