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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin131
RA = 154.473, Dec = 7.2638
tmin = 273283201, tmax = 273542401
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='779096', job_status='RUN', time_executed='2021-09-01 16:15:34.134299', time_epoch_executed='1630538134.13' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779096/ft1_4FGL_J1017.8+0715_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779096/ft2_4FGL_J1017.8+0715_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779096/ft1_4FGL_J1017.8+0715_daily_bin131.fits outfile=/scratch/kocevski/779096/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin131.fits ra=154.473 dec=7.2638 rad=12.0 tmin=273283201.0 tmax=273542401.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 1.77
user 1.56
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779096/ft1_filtered_4FGL_J1017.8+0715_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/779096/ft2_4FGL_J1017.8+0715_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/779096/ltcube_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.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/779096/ft2_4FGL_J1017.8+0715_daily_bin131.fits
.....................!
real 16.04
user 15.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779096/ft1_filtered_4FGL_J1017.8+0715_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/779096/ft2_4FGL_J1017.8+0715_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/779096/ltcube_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.fits outfile=/scratch/kocevski/779096/expmap_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.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/779096/ltcube_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.fits
.....................!
real 192.35
user 187.52
sys 4.23

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/779096/ft1_filtered_4FGL_J1017.8+0715_daily_bin131.fits scfile=/scratch/kocevski/779096/ft2_4FGL_J1017.8+0715_daily_bin131.fits outfile=/scratch/kocevski/779096/cmap_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.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 1.28
user 0.40
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23159       1.0000         .10000E-03   10000.    
     2 'norm      '    .20581       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.635       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.399       1.0000         .10000E-03   10000.    
     6 'norm      '    15.031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18265E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2554       1.0000         .10000E-03   10000.    
    17 'norm      '    .59814E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.185       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .62473       1.0000         .10000E-01   10.000    
    21 'Prefactor '    2.0341       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=   8019.258     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2277 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23220        .90363       -.49106E-07   -.15279E-03
   2  norm          .20592        .40163        .68710E-08   -.16058E-03
   3  Prefactor     18.636        12.737        .28466E-07    .29208E-05
   4  Prefactor     .10000E-03    11.285        .29699E-07** at limit **
   5  Prefactor     14.393        38.776       -.93876E-05   -.11340E-04
   6  norm          15.032        14.798        .73678E-07    .10573E-05
   7  Prefactor     35.053        14.648        .16161E-06    .40871E-06
   8  Prefactor     23.867        62.706       -.37839E-05   -.22942E-05
   9  Prefactor     .10000E-03    45.228        .19768E-06** at limit **
  10  Prefactor     .10000E-03    24.802        .64430E-07** at limit **
  11  Prefactor     .10000E-03    6.1411        .14712E-07** at limit **
  12  norm          .10000E-03    .44995        .15457E-07** at limit **
  13  Prefactor     .10000E-03    3.4034        .12224E-06** at limit **
  14  Prefactor     6.6011        4.7371       -.10170E-06   -.34123E-04
  15  Prefactor     .10000E-03    13.765        .34187E-07** at limit **
  16  Prefactor     3.2554        3.2247        .94184E-07   -.74040E-03
  17  norm          .59374E-01    .46563       -.46311E-07   -.19071E-03
  18  Prefactor     12.300        10.221       -.30919E-07   -.69966E-04
  19  Prefactor     80.188        33.620        .15527E-05    .14588E-04
  20  Normalizat    .62460        .22168        .68842E-06   -.96001E-04
  21  Prefactor     2.0341        .18905        .34635E-07    .18727E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.232202
  norm       = 0.205919
  Prefactor  = 18.6357
  Prefactor  = 0.0001
  Prefactor  = 14.3931
  norm       = 15.0316
  Prefactor  = 35.0526
  Prefactor  = 23.8671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.60112
  Prefactor  = 0.0001
  Prefactor  = 3.25539
  norm       = 0.059374
  Prefactor  = 12.2997
  Prefactor  = 80.1876
  Normalizat = 0.6246
  Prefactor  = 2.03412
 **********
 **   18 **HESSE 
 **********

 FCN=   8019.258     FROM HESSE     STATUS=OK           333 CALLS     2610 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23220        1.7294        .15529E-02   -1.5612    
   2  norm          .20592        .35494        .76540E-03   -1.5617    
   3  Prefactor     18.636        12.730        .92781E-04   -1.4844    
   4  Prefactor     .10000E-03    11.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.393        38.800        .10555E-03   -1.4949    
   6  norm          15.032        14.791        .10331E-03   -1.4932    
   7  Prefactor     35.053        14.627        .67688E-04   -1.4523    
   8  Prefactor     23.867        62.603        .81989E-04   -1.4730    
   9  Prefactor     .10000E-03    45.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .67290        .11636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.4038        .31874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6011        4.7685        .15347E-03   -1.5194    
  15  Prefactor     .10000E-03    14.330        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2554        7.3823        .11223E-02   -1.5347    
  17  norm          .59374E-01    1.0206        .10114E-02   -1.5659    
  18  Prefactor     12.300        10.100        .57110E-03   -1.5006    
  19  Prefactor     80.188        33.735        .44851E-04   -1.3915    
  20  Normalizat    .62460        .24822        .20906E-02   -1.0695    
  21  Prefactor     2.0341        .22134        .23199E-03   -.63500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02328e-07
Minuit parameter uncertainties:
  1  1.26716
  2  0.354945
  3  12.7314
  4  1.63189e-05
  5  38.8681
  6  14.795
  7  14.6288
  8  62.7763
  9  8.91221e-06
  10  7.51016e-06
  11  1.34802e-06
  12  6.21156e-07
  13  2.42374e-05
  14  4.7688
  15  2.94488e-05
  16  7.38432
  17  0.491922
  18  10.101
  19  33.7426
  20  0.24866
  21  0.22145
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.387e+01  6.278e+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:  2.034e+00  2.215e-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:  6.246e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/779096/likelihoodResults_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.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) = 8019.25746828
delta logL = 0.000563464121115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8019.25737705
delta logL = 0.000654690934425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.139       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7833       1.0000          .0000       10.000    
     3 'Normalizat'    .62343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0347       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=   8019.257     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      279 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.115        64.807        .83270E-04    .16905E-03
   2  Index         2.7825        1.4076        .10737E-01    .85232E-04
   3  Normalizat    .62377        .23945        .41838E-03   -.87469E-04
   4  Prefactor     2.0346        .22019        .23196E-03    .35111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1152
  Index      = 2.78254
  Normalizat = 0.623774
  Prefactor  = 2.03464
 **********
 **   18 **HESSE 
 **********

 FCN=   8019.257     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.115        62.592        .16654E-04   -1.4746    
   2  Index         2.7825        1.3601        .42947E-03   -.45949    
   3  Normalizat    .62377        .23965        .16735E-04   -1.0698    
   4  Prefactor     2.0346        .22027        .46392E-04   -.63487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61786e-09
Minuit parameter uncertainties:
  1  62.7703
  2  1.38188
  3  0.240054
  4  0.220384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779096': 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) = 8019.25737441
delta logL = 0.000657340257021

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.312e+01  6.277e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.783e+00  1.382e+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:  2.035e+00  2.204e-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:  6.238e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 154.473 7.264

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/779096/cmap_HighResolution_273283201_273542401_4FGL_J1017.8+0715_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-01 16:26:51.669885', job_id='779096', GAL2='2.03', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1630538811.67', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='2.03', dlogl='6.57e-04', ts2='0.19', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='131' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:26:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 779096: <4FGL_J1017.8+0715_daily_bin131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin131 154.473 7.2638 273283201 273542401 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 :                                   676.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            964 sec.

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

