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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin178
RA = 154.473, Dec = 7.2638
tmin = 285465601, tmax = 285724801
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='779165', job_status='RUN', time_executed='2021-09-01 16:16:35.765953', time_epoch_executed='1630538195.77' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779165/ft1_4FGL_J1017.8+0715_daily_bin178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779165/ft2_4FGL_J1017.8+0715_daily_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779165/ft1_4FGL_J1017.8+0715_daily_bin178.fits outfile=/scratch/kocevski/779165/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin178.fits ra=154.473 dec=7.2638 rad=12.0 tmin=285465601.0 tmax=285724801.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.54
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779165/ft1_filtered_4FGL_J1017.8+0715_daily_bin178.fits" evtable="EVENTS" scfile=/scratch/kocevski/779165/ft2_4FGL_J1017.8+0715_daily_bin178.fits sctable="SC_DATA" outfile=/scratch/kocevski/779165/ltcube_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.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/779165/ft2_4FGL_J1017.8+0715_daily_bin178.fits
.....................!
real 16.68
user 16.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779165/ft1_filtered_4FGL_J1017.8+0715_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/779165/ft2_4FGL_J1017.8+0715_daily_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/779165/ltcube_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.fits outfile=/scratch/kocevski/779165/expmap_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.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/779165/ltcube_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.fits
.....................!
real 192.53
user 186.74
sys 4.80

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/779165/ft1_filtered_4FGL_J1017.8+0715_daily_bin178.fits scfile=/scratch/kocevski/779165/ft2_4FGL_J1017.8+0715_daily_bin178.fits outfile=/scratch/kocevski/779165/cmap_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779165/ft1_filtered_4FGL_J1017.8+0715_daily_bin178.fits scfile=/scratch/kocevski/779165/ft2_4FGL_J1017.8+0715_daily_bin178.fits outfile=/scratch/kocevski/779165/cmap_HighResolution_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96073       1.0000         .10000E-03   10000.    
     2 'norm      '    .90479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12669E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .45777       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31104E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46252       1.0000         .10000E-03   10000.    
    17 'norm      '    .38756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4035       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4890       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72449       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=   5558.428     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2271 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96058        1.0923        .42432E-07    .63148E-04
   2  norm          .90475        .65011        .41371E-07    .14288E-03
   3  Prefactor     4.3089        15.737        .19219E-06    .89487E-04
   4  Prefactor     24.451        50.983        .81834E-06    .10369E-03
   5  Prefactor     .10000E-03    29.947        .10296E-05** at limit **
   6  norm          .10000E-03    68.178       -.15098E-05** at limit **
   7  Prefactor     .73785        12.157       -.28634E-05    .48879E-03
   8  Prefactor     .10000E-03    28.071       -.30892E-06** at limit **
   9  Prefactor     .10000E-03    22.873       -.54452E-06** at limit **
  10  Prefactor     .10000E-03    21.227        .19814E-06** at limit **
  11  Prefactor     .10000E-03    7.2125       -.86124E-07** at limit **
  12  norm          .45754        .81991        .80284E-06    .17411E-02
  13  Prefactor     12.000        8.9275       -.21193E-06   -.12809E-03
  14  Prefactor     .10004E-03    1.7098        .37172E-06** at limit **
  15  Prefactor     .10000E-03    2.6377        .24079E-07** at limit **
  16  Prefactor     .45126        5.1337        .47432E-06   -.27941E-03
  17  norm          .38734        .59403        .59372E-07   -.72157E-04
  18  Prefactor     11.241        11.448       -.74465E-07   -.53947E-04
  19  Prefactor     8.4041        15.339        .92785E-07   -.18838E-04
  20  Normalizat    1.4890        .20547       -.57461E-06   -.27944E-04
  21  Prefactor     .72448        .16764        .53766E-08   -.25359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.960581
  norm       = 0.904746
  Prefactor  = 4.3089
  Prefactor  = 24.4508
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.737855
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.457541
  Prefactor  = 11.9996
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.451264
  norm       = 0.387341
  Prefactor  = 11.241
  Prefactor  = 8.40407
  Normalizat = 1.48904
  Prefactor  = 0.724482
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.428     FROM HESSE     STATUS=OK           327 CALLS     2598 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96058        1.0667        .79546E-04   -1.5512    
   2  norm          .90475        .64063        .48778E-04   -1.5518    
   3  Prefactor     4.3089        15.358        .19431E-03   -1.5293    
   4  Prefactor     24.451        51.663        .81040E-04   -1.4719    
   5  Prefactor     .10000E-03    30.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    69.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73785        22.327        .39921E-02   -1.5536    
   8  Prefactor     .10000E-03    28.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .45754        .85337        .11132E-02   -1.5573    
  13  Prefactor     12.000        8.9470        .11564E-03   -1.5015    
  14  Prefactor     .10004E-03    19.758        .17916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6508        .11826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45126        33.121        .30481E-02   -1.5574    
  17  norm          .38734        .53486        .61187E-03   -1.5584    
  18  Prefactor     11.241        11.111        .11950E-03   -1.5037    
  19  Prefactor     8.4041        15.328        .13829E-03   -1.5128    
  20  Normalizat    1.4890        .24016        .23363E-03   -.78087    
  21  Prefactor     .72448        .19535        .26659E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55446e-09
Minuit parameter uncertainties:
  1  1.06671
  2  0.640635
  3  15.3718
  4  51.7581
  5  0.00029293
  6  0.000474545
  7  8.12036
  8  5.55437e-05
  9  0.000256099
  10  0.000204596
  11  3.04155e-05
  12  0.853391
  13  8.94797
  14  0.00181374
  15  4.87326e-06
  16  7.73565
  17  0.534863
  18  11.1127
  19  15.3352
  20  0.240346
  21  0.195534
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.554e-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:  7.245e-01  1.955e-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.489e+00  2.403e-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: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779165/likelihoodResults_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.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) = 5558.42793808
delta logL = -0.000169467124579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5558.42776983
delta logL = -1.21599259728e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2000       1.0000          .0000       10.000    
     3 'Normalizat'    1.4890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72449       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=   5558.428     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10784E-03    22.027        .18142E-01** at limit **
   2  Index         3.0475        7.0611        .50000        .13552E-04
   3  Normalizat    1.4890        .52237E-02    .23364E-03   -.55083E-05
   4  Prefactor     .72448        .43540E-02    .26659E-03    .13859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107838
  Index      = 3.0475
  Normalizat = 1.48904
  Prefactor  = 0.724482
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.428     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10784E-03    123.47        .33310E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0475        6.4670        .50000       -.40117    
   3  Normalizat    1.4890        .12403E-01    .46727E-04   -.78087    
   4  Prefactor     .72448        .10338E-01    .10664E-04   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.353e-08
Minuit parameter uncertainties:
  1  0.0623446
  2  469.112
  3  0.0124033
  4  0.0103384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779165': 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) = 5558.42776939
delta logL = -7.79071342549e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.078e-04  6.234e-02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.048e+00  4.691e+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:  7.245e-01  1.034e-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:  1.489e+00  1.240e-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/779165/cmap_HighResolution_285465601_285724801_4FGL_J1017.8+0715_daily_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-01 16:26:07.912978', job_id='779165', GAL2='0.72', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630538767.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-7.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='178' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 779165: <4FGL_J1017.8+0715_daily_bin178> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin178 154.473 7.2638 285465601 285724801 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 :                                   571.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            916 sec.

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

