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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin959
RA = 154.473, Dec = 7.2638
tmin = 487900801, tmax = 488160001
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='782441', job_status='RUN', time_executed='2021-09-01 16:25:47.659773', time_epoch_executed='1630538747.66' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782441/ft1_4FGL_J1017.8+0715_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782441/ft2_4FGL_J1017.8+0715_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782441/ft1_4FGL_J1017.8+0715_daily_bin959.fits outfile=/scratch/kocevski/782441/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin959.fits ra=154.473 dec=7.2638 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.10
user 5.76
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/782441/ft2_4FGL_J1017.8+0715_daily_bin959.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/782441/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/782441/ft1_filtered_4FGL_J1017.8+0715_daily_bin959.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782441/ft1_filtered_4FGL_J1017.8+0715_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/782441/ft2_4FGL_J1017.8+0715_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/782441/ltcube_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.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/782441/ft2_4FGL_J1017.8+0715_daily_bin959.fits
.....................!
real 13.92
user 13.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782441/ft1_filtered_4FGL_J1017.8+0715_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/782441/ft2_4FGL_J1017.8+0715_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/782441/ltcube_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.fits outfile=/scratch/kocevski/782441/expmap_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.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/782441/ltcube_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.fits
.....................!
real 190.29
user 185.47
sys 3.64

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/782441/ft1_filtered_4FGL_J1017.8+0715_daily_bin959.fits scfile=/scratch/kocevski/782441/ft2_4FGL_J1017.8+0715_daily_bin959.fits outfile=/scratch/kocevski/782441/cmap_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782441/ft1_filtered_4FGL_J1017.8+0715_daily_bin959.fits scfile=/scratch/kocevski/782441/ft2_4FGL_J1017.8+0715_daily_bin959.fits outfile=/scratch/kocevski/782441/cmap_HighResolution_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2329       1.0000         .10000E-03   10000.    
     2 'norm      '    .13712       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4470       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.364       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0869       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0028       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=   4649.702     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2189 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2329        1.3227        .21183E-06    .10402E-03
   2  norm          .13710        .61105        .57348E-06   -.59185E-03
   3  Prefactor     .10000E-03    8.1114        .64565E-06** at limit **
   4  Prefactor     .10000E-03    23.155       -.22212E-06** at limit **
   5  Prefactor     .10000E-03    49.000       -.41791E-06** at limit **
   6  norm          2.4283        26.938        .53729E-05    .47770E-04
   7  Prefactor     .10000E-03    7.1150        .48711E-06** at limit **
   8  Prefactor     33.951        64.669        .26112E-07    .39826E-04
   9  Prefactor     .10000E-03    20.591       -.14945E-06** at limit **
  10  Prefactor     .10000E-03    38.346        .17268E-05** at limit **
  11  Prefactor     .10000E-03    16.940        .14878E-05** at limit **
  12  norm          2.1605        1.6348       -.15811E-07   -.57429E-04
  13  Prefactor     11.364        9.6801        .14803E-05    .16228E-03
  14  Prefactor     1.0864        3.4130        .10985E-05    .13163E-03
  15  Prefactor     36.745        12.427        .31255E-06   -.27668E-04
  16  Prefactor     12.917        13.051        .18321E-05    .10276E-03
  17  norm          1.8478        1.0532       -.49269E-07   -.13432E-03
  18  Prefactor     12.302        12.299        .15364E-07   -.71037E-05
  19  Prefactor     .10000E-03    12.627       -.15347E-06** at limit **
  20  Normalizat    1.0997        .25311       -.61363E-05   -.80380E-04
  21  Prefactor     1.0031        .20204        .34645E-05   -.31297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23291
  norm       = 0.137104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42825
  Prefactor  = 0.0001
  Prefactor  = 33.9505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16048
  Prefactor  = 11.3642
  Prefactor  = 1.0864
  Prefactor  = 36.7449
  Prefactor  = 12.917
  norm       = 1.84779
  Prefactor  = 12.3018
  Prefactor  = 0.0001
  Normalizat = 1.09974
  Prefactor  = 1.00306
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.702     FROM HESSE     STATUS=OK           319 CALLS     2508 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2329        1.3019        .77101E-04   -1.5486    
   2  norm          .13710        1.0087        .95519E-03   -1.5634    
   3  Prefactor     .10000E-03    8.1564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4283        27.394        .26151E-03   -1.5396    
   7  Prefactor     .10000E-03    7.1251        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.951        64.476        .68870E-04   -1.4542    
   9  Prefactor     .10000E-03    20.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1605        1.6334        .72618E-04   -1.5414    
  13  Prefactor     11.364        9.7396        .59421E-03   -1.5034    
  14  Prefactor     1.0864        3.3156        .20548E-03   -1.5500    
  15  Prefactor     36.745        12.437        .66117E-04   -1.4495    
  16  Prefactor     12.917        12.831        .55734E-03   -1.4989    
  17  norm          1.8478        1.0590        .48174E-04   -1.5436    
  18  Prefactor     12.302        12.418        .57112E-03   -1.5006    
  19  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0997        .27184        .26848E-03   -.89760    
  21  Prefactor     1.0031        .22100        .23966E-03   -.92628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52701e-10
Minuit parameter uncertainties:
  1  1.30193
  2  0.743519
  3  1.5191e-05
  4  4.69776e-05
  5  0.000117555
  6  16.3209
  7  1.7493e-05
  8  64.6091
  9  2.12224e-05
  10  0.000179834
  11  7.45881e-05
  12  1.63341
  13  9.74095
  14  3.31616
  15  12.4376
  16  12.8337
  17  1.05902
  18  12.4204
  19  1.28666e-05
  20  0.272184
  21  0.221202
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.395e+01  6.461e+01  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.003e+00  2.212e-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:  1.100e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782441/likelihoodResults_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.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): 0
logL (Free Index) = 4649.70035593
delta logL = 0.0012899892954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4649.69951898
delta logL = 0.00212694228958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.139       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6425       1.0000          .0000       10.000    
     3 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0017       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.

 FCN=   4649.700     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      221 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.139        6219.8        .16441E-02    .23904E-04
   2  Index         2.6425        5.2789        .23064        .27568E-04
   3  Normalizat    1.1011        .73789E-01    .60673E-01   -.41180E-06
   4  Prefactor     1.0019        .65901E-01    .45093E-01   -.87676E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1391
  Index      = 2.64251
  Normalizat = 1.10107
  Prefactor  = 1.00189
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.700     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.139        87.213        .65765E-04   -1.4488    
   2  Index         2.6425        1.4312        .12399E-01   -.49099    
   3  Normalizat    1.1011        .25688        .26834E-03   -.89718    
   4  Prefactor     1.0019        .21841        .23978E-03   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60847e-11
Minuit parameter uncertainties:
  1  87.515
  2  1.4576
  3  0.257169
  4  0.218603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782441': 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) = 4649.69951842
delta logL = 0.00212749588809

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.714e+01  8.751e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.643e+00  1.458e+00  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.002e+00  2.186e-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:  1.101e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/782441/cmap_HighResolution_487900801_488160001_4FGL_J1017.8+0715_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-01 16:34:42.670541', job_id='782441', GAL2='1.00', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630539282.67', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.13e-03', ts2='0.36', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='959' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:34:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 782441: <4FGL_J1017.8+0715_daily_bin959> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin959> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:21:06 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:24:16 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:24:16 2021
Terminated at Wed Sep  1 16:34:43 2021
Results reported at Wed Sep  1 16:34:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin959 154.473 7.2638 487900801 488160001 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 :                                   526.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            817 sec.

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

