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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin620
RA = 154.473, Dec = 7.2638
tmin = 400032001, tmax = 400291201
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='780802', job_status='RUN', time_executed='2021-09-01 16:20:51.369099', time_epoch_executed='1630538451.37' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780802/ft1_4FGL_J1017.8+0715_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780802/ft2_4FGL_J1017.8+0715_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780802/ft1_4FGL_J1017.8+0715_daily_bin620.fits outfile=/scratch/kocevski/780802/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin620.fits ra=154.473 dec=7.2638 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.45
user 4.16
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780802/ft1_filtered_4FGL_J1017.8+0715_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/780802/ft2_4FGL_J1017.8+0715_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/780802/ltcube_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.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/780802/ft2_4FGL_J1017.8+0715_daily_bin620.fits
.....................!
real 15.01
user 14.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780802/ft1_filtered_4FGL_J1017.8+0715_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/780802/ft2_4FGL_J1017.8+0715_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/780802/ltcube_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.fits outfile=/scratch/kocevski/780802/expmap_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.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/780802/ltcube_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.fits
.....................!
real 191.64
user 187.30
sys 3.81

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/780802/ft1_filtered_4FGL_J1017.8+0715_daily_bin620.fits scfile=/scratch/kocevski/780802/ft2_4FGL_J1017.8+0715_daily_bin620.fits outfile=/scratch/kocevski/780802/cmap_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.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/780802/ft1_filtered_4FGL_J1017.8+0715_daily_bin620.fits scfile=/scratch/kocevski/780802/ft2_4FGL_J1017.8+0715_daily_bin620.fits outfile=/scratch/kocevski/780802/cmap_HighResolution_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4217       1.0000         .10000E-03   10000.    
     2 'norm      '    .78988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.449       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9879       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21599       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40240E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.053       1.0000         .10000E-03   10000.    
    17 'norm      '    .86575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.704       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2104       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=   6989.067     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2311 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4217        1.4937       -.17175E-06   -.94920E-03
   2  norm          .78991        .50189       -.14784E-07   -.47771E-03
   3  Prefactor     .10000E-03    3.7738        .57998E-07** at limit **
   4  Prefactor     11.647        33.981       -.27863E-05   -.42851E-05
   5  Prefactor     .10000E-03    63.640        .58879E-05** at limit **
   6  norm          .10000E-03    4.8980        .24044E-07** at limit **
   7  Prefactor     .10000E-03    5.7355       -.10078E-07** at limit **
   8  Prefactor     77.644        54.074       -.26198E-05    .14171E-04
   9  Prefactor     .10000E-03    154.27       -.50090E-04** at limit **
  10  Prefactor     .10000E-03    37.693       -.21774E-05** at limit **
  11  Prefactor     20.448        16.680        .25958E-06    .22470E-04
  12  norm          1.9881        1.4893        .33393E-07   -.91251E-05
  13  Prefactor     .20383        6.6900       -.48126E-06   -.92961E-04
  14  Prefactor     1.7315        3.7974       -.65723E-06   -.90971E-03
  15  Prefactor     .10000E-03    6.4435       -.36750E-06** at limit **
  16  Prefactor     41.061        15.425       -.80432E-06    .45277E-04
  17  norm          .86704        .79234       -.35510E-07   -.75505E-03
  18  Prefactor     .10000E-03    24.147        .22283E-06** at limit **
  19  Prefactor     46.713        44.256        .75945E-05    .11234E-04
  20  Normalizat    1.0633        .21058        .38598E-06    .17521E-03
  21  Prefactor     1.2102        .17009       -.16324E-09    .24153E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42169
  norm       = 0.789906
  Prefactor  = 0.0001
  Prefactor  = 11.6466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.6444
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.4476
  norm       = 1.9881
  Prefactor  = 0.203832
  Prefactor  = 1.73145
  Prefactor  = 0.0001
  Prefactor  = 41.0611
  norm       = 0.867039
  Prefactor  = 0.0001
  Prefactor  = 46.713
  Normalizat = 1.06326
  Prefactor  = 1.21025
 **********
 **   18 **HESSE 
 **********

 FCN=   6989.067     FROM HESSE     STATUS=OK           325 CALLS     2636 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4217        1.4857        .97590E-04   -1.5469    
   2  norm          .78991        .48908        .45561E-03   -1.5530    
   3  Prefactor     .10000E-03    3.7846        .15860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.647        34.017        .11737E-03   -1.5025    
   5  Prefactor     .10000E-03    64.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.9013        .18069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     77.644        54.150        .45572E-04   -1.3943    
   9  Prefactor     .10000E-03    151.63        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.448        16.662        .88572E-04   -1.4803    
  12  norm          1.9881        1.4881        .83072E-04   -1.5426    
  13  Prefactor     .20383        78.905        .39749E-02   -1.5618    
  14  Prefactor     1.7315        3.8144        .22530E-03   -1.5445    
  15  Prefactor     .10000E-03    20.397        .40225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.061        15.158        .62563E-04   -1.4426    
  17  norm          .86704        .75508        .66221E-03   -1.5522    
  18  Prefactor     .10000E-03    24.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.713        43.955        .58671E-04   -1.4340    
  20  Normalizat    1.0633        .24831        .30070E-03   -.90940    
  21  Prefactor     1.2102        .20373        .24422E-03   -.86017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95915e-08
Minuit parameter uncertainties:
  1  1.48571
  2  0.48908
  3  2.6265e-06
  4  34.0736
  5  2.05033e-05
  6  5.28276e-06
  7  1.11626e-05
  8  54.184
  9  0.000952492
  10  3.91481e-05
  11  16.6655
  12  1.48814
  13  8.0295
  14  3.8149
  15  3.38711e-05
  16  15.1593
  17  0.755088
  18  3.55774e-06
  19  43.9854
  20  0.248577
  21  0.203865
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.764e+01  5.418e+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.210e+00  2.039e-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.063e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.08e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6987.24304986
delta logL = 1.82354991505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6987.10892819
delta logL = 1.95767158094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.35       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8222       1.0000          .0000       10.000    
     3 'Normalizat'    1.1049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1828       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=   6987.109     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      230 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.57        70.109        .96155E-03   -.93285E-05
   2  Index         1.8229        .33798        .17803       -.32821E-04
   3  Normalizat    1.1042        .19526        .66832E-01    .12057E-04
   4  Prefactor     1.1832        .16820        .55714E-01   -.54049E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.568
  Index      = 1.82295
  Normalizat = 1.10416
  Prefactor  = 1.18322
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.109     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.57        74.921        .38462E-04   -1.3611    
   2  Index         1.8229        .40243        .70634E-02   -.68854    
   3  Normalizat    1.1042        .23379        .29566E-03   -.89618    
   4  Prefactor     1.1832        .20139        .24635E-03   -.86849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65759e-12
Minuit parameter uncertainties:
  1  74.9855
  2  0.403166
  3  0.234009
  4  0.201521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780802': 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) = 6987.10891982
delta logL = 1.95767994805

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.096e+02  7.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.823e+00  4.032e-01  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.183e+00  2.015e-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.104e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.40
Ra Dec: 154.473 7.264
Photon Index (Free Index): 1.82 +/- 0.40
Photon Flux (Free Index): 3.69e-08 +/- 3.01e-08
Energy Flux (Free Index): 4.13e-05 +/- 3.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/780802/cmap_HighResolution_400032001_400291201_4FGL_J1017.8+0715_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='4.13e-05', photon_flux_error='4.58e-08', dlogl='1.96e+00', energy_flux='1.54e-05', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-09-01 16:30:31.107206', photon_index_error2='0.40', photon_index2='1.82', ts='4.48', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='3.83e-05', EG='1.06', time_epoch_completed='1630539031.11', return_code='0', job_id='780802', GAL2='1.18', EG2='1.10', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.01e-08', ts2='8.40', photon_index='2.73' WHERE bin_id='620' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 780802: <4FGL_J1017.8+0715_daily_bin620> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin620> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:44 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17: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:17:47 2021
Terminated at Wed Sep  1 16:30:32 2021
Results reported at Wed Sep  1 16:30:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin620 154.473 7.2638 400032001 400291201 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            888 sec.

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

