/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 21 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 = 7551
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin645
RA = 154.473, Dec = 7.2638
tmin = 406512001, tmax = 406771201
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='780836', job_status='RUN', time_executed='2021-09-01 16:18:40.770779', time_epoch_executed='1630538320.77' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780836/ft1_4FGL_J1017.8+0715_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780836/ft2_4FGL_J1017.8+0715_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780836/ft1_4FGL_J1017.8+0715_daily_bin645.fits outfile=/scratch/kocevski/780836/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin645.fits ra=154.473 dec=7.2638 rad=12.0 tmin=406512001.0 tmax=406771201.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.08
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780836/ft1_filtered_4FGL_J1017.8+0715_daily_bin645.fits" evtable="EVENTS" scfile=/scratch/kocevski/780836/ft2_4FGL_J1017.8+0715_daily_bin645.fits sctable="SC_DATA" outfile=/scratch/kocevski/780836/ltcube_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.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/780836/ft2_4FGL_J1017.8+0715_daily_bin645.fits
.....................!
real 18.09
user 17.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780836/ft1_filtered_4FGL_J1017.8+0715_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/780836/ft2_4FGL_J1017.8+0715_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/780836/ltcube_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.fits outfile=/scratch/kocevski/780836/expmap_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.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/780836/ltcube_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.fits
.....................!
real 193.69
user 188.67
sys 4.16

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/780836/ft1_filtered_4FGL_J1017.8+0715_daily_bin645.fits scfile=/scratch/kocevski/780836/ft2_4FGL_J1017.8+0715_daily_bin645.fits outfile=/scratch/kocevski/780836/cmap_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780836/ft1_filtered_4FGL_J1017.8+0715_daily_bin645.fits scfile=/scratch/kocevski/780836/ft2_4FGL_J1017.8+0715_daily_bin645.fits outfile=/scratch/kocevski/780836/cmap_HighResolution_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67365       1.0000         .10000E-03   10000.    
     2 'norm      '    .81074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.462       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    29.995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8057       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.684       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .43699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.206       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99123       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75659       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=   5005.740     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2226 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67365        .85462        .71856E-08   -.32259E-03
   2  norm          .81064        .67978        .21408E-07   -.95166E-03
   3  Prefactor     16.084        13.260        .77113E-06   -.66153E-05
   4  Prefactor     38.451        41.260       -.36795E-05   -.11844E-03
   5  Prefactor     .10000E-03    66.236        .41983E-04** at limit **
   6  norm          29.994        19.933       -.28253E-05   -.14045E-05
   7  Prefactor     .10000E-03    8.6992       -.11596E-05** at limit **
   8  Prefactor     .10008E-03    225.85       -.37452E-04** at limit **
   9  Prefactor     .10000E-03    52.444       -.58198E-04** at limit **
  10  Prefactor     14.031        66.393        .41871E-04   -.48985E-04
  11  Prefactor     .10004E-03    47.631        .22795E-04** at limit **
  12  norm          2.8056        1.6387       -.89962E-07   -.60600E-03
  13  Prefactor     .10000E-03    2.5109        .15969E-07** at limit **
  14  Prefactor     3.2784        3.3791       -.23901E-06   -.42786E-03
  15  Prefactor     11.684        7.1352       -.62258E-06   -.76224E-04
  16  Prefactor     .10000E-03    5.8279        .85446E-07** at limit **
  17  norm          .43698        .36371        .11021E-07    .58970E-04
  18  Prefactor     .10000E-03    2.3081       -.16570E-07** at limit **
  19  Prefactor     11.206        11.087        .29399E-06    .24461E-04
  20  Normalizat    .99125        .18211       -.12852E-05    .34106E-04
  21  Prefactor     .75658        .15055       -.28634E-06   -.10147E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.673648
  norm       = 0.810641
  Prefactor  = 16.0844
  Prefactor  = 38.4514
  Prefactor  = 0.0001
  norm       = 29.9941
  Prefactor  = 0.000100003
  Prefactor  = 0.000100083
  Prefactor  = 0.0001
  Prefactor  = 14.0308
  Prefactor  = 0.000100042
  norm       = 2.80562
  Prefactor  = 0.0001
  Prefactor  = 3.27842
  Prefactor  = 11.6836
  Prefactor  = 0.0001
  norm       = 0.436979
  Prefactor  = 0.0001
  Prefactor  = 11.2058
  Normalizat = 0.991246
  Prefactor  = 0.756578
 **********
 **   18 **HESSE 
 **********

 FCN=   5005.740     FROM HESSE     STATUS=OK           323 CALLS     2549 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67365        .81681        .70620E-03   -1.5544    
   2  norm          .81064        .65948        .50476E-03   -1.5528    
   3  Prefactor     16.084        13.259        .99865E-04   -1.4906    
   4  Prefactor     38.451        41.334        .64628E-04   -1.4467    
   5  Prefactor     .10000E-03    66.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29.994        19.901        .73156E-04   -1.4612    
   7  Prefactor     .10000E-03    8.7308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    229.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.031        64.749        .10703E-03   -1.4959    
  11  Prefactor     .10004E-03    46.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8056        1.6341        .65786E-04   -1.5373    
  13  Prefactor     .10000E-03    2.5178        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2784        3.3764        .12428E-03   -1.5346    
  15  Prefactor     11.684        7.1476        .11720E-03   -1.5024    
  16  Prefactor     .10000E-03    5.9088        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .43698        .36172        .37911E-04   -1.5576    
  18  Prefactor     .10000E-03    2.3106        .10496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.206        11.091        .11968E-03   -1.5038    
  20  Normalizat    .99125        .21045        .23150E-03   -.93324    
  21  Prefactor     .75658        .17390        .22675E-03   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03491e-09
Minuit parameter uncertainties:
  1  0.816823
  2  0.659484
  3  13.2613
  4  41.3644
  5  0.000112875
  6  19.9051
  7  0.000344313
  8  0.00876697
  9  0.000189691
  10  60.3895
  11  0.00280715
  12  1.63408
  13  4.19497e-06
  14  3.37655
  15  7.14814
  16  1.24399e-05
  17  0.36172
  18  9.68295e-07
  19  11.0934
  20  0.210631
  21  0.174026
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.001e-04  8.767e-03  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.566e-01  1.740e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.912e-01  2.106e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780836/likelihoodResults_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.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) = 5005.74018414
delta logL = -2.05831320272e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5005.7401636
delta logL = -4.39276846009e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7025       1.0000          .0000       10.000    
     3 'Normalizat'    .99125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75658       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=   5005.740     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      284 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    5961.2        .36285E-02** at limit **
   2  Index         2.8300        6.1913        .50000       -.65213E-05
   3  Normalizat    .99124        .69075E-01    .23150E-03    .35701E-04
   4  Prefactor     .75658        .59534E-01    .22675E-03   -.17247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100037
  Index      = 2.83004
  Normalizat = 0.991245
  Prefactor  = 0.756579
 **********
 **   18 **HESSE 
 **********

 FCN=   5005.740     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    653.95        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8300        6.4134        .50000       -.44892    
   3  Normalizat    .99124        .19809        .92602E-05   -.93324    
   4  Prefactor     .75658        .17258        .90701E-05   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16589e-11
Minuit parameter uncertainties:
  1  0.00997201
  2  5.21827
  3  0.198238
  4  0.172702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780836': 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) = 5005.74016342
delta logL = 1.35567461257e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  9.972e-03  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.830e+00  5.218e+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:  7.566e-01  1.727e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.912e-01  1.982e-01  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/780836/cmap_HighResolution_406512001_406771201_4FGL_J1017.8+0715_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-01 16:27:52.545793', job_id='780836', GAL2='0.76', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630538872.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='645' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:27:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 780836: <4FGL_J1017.8+0715_daily_bin645> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin645 154.473 7.2638 406512001 406771201 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 :                                   547.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            727 sec.

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

