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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin724
RA = 154.473, Dec = 7.2638
tmin = 426988801, tmax = 427248001
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='782115', job_status='RUN', time_executed='2021-09-01 16:24:13.318038', time_epoch_executed='1630538653.32' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782115/ft1_4FGL_J1017.8+0715_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782115/ft2_4FGL_J1017.8+0715_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782115/ft1_4FGL_J1017.8+0715_daily_bin724.fits outfile=/scratch/kocevski/782115/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin724.fits ra=154.473 dec=7.2638 rad=12.0 tmin=426988801.0 tmax=427248001.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 5.93
user 5.59
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782115/ft1_filtered_4FGL_J1017.8+0715_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/782115/ft2_4FGL_J1017.8+0715_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/782115/ltcube_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.fits outfile=/scratch/kocevski/782115/expmap_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.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/782115/ltcube_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.fits
.....................!
real 191.56
user 187.05
sys 4.07

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/782115/ft1_filtered_4FGL_J1017.8+0715_daily_bin724.fits scfile=/scratch/kocevski/782115/ft2_4FGL_J1017.8+0715_daily_bin724.fits outfile=/scratch/kocevski/782115/cmap_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.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.92
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782115/ft1_filtered_4FGL_J1017.8+0715_daily_bin724.fits scfile=/scratch/kocevski/782115/ft2_4FGL_J1017.8+0715_daily_bin724.fits outfile=/scratch/kocevski/782115/cmap_HighResolution_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86895       1.0000         .10000E-03   10000.    
     2 'norm      '    .62090E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.281       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14937E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38527E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11207E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1971       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.710       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2627       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99458       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=   5861.773     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     1961 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86809        1.3952        .34458E-07   -.19490E-03
   2  norm          .62390E-01    .37807       -.36553E-07   -.25762E-03
   3  Prefactor     11.790        8.7784       -.10832E-05   -.16828E-03
   4  Prefactor     30.361        28.584        .15359E-05    .76708E-04
   5  Prefactor     .10000E-03    40.155        .28081E-05** at limit **
   6  norm          .10000E-03    5.0013        .39354E-07** at limit **
   7  Prefactor     .10000E-03    2.9898        .10151E-07** at limit **
   8  Prefactor     14.018        26.190       -.75219E-06    .22828E-04
   9  Prefactor     .10000E-03    27.201        .65985E-06** at limit **
  10  Prefactor     .10000E-03    46.661       -.11653E-04** at limit **
  11  Prefactor     .10021E-03    9.6108       -.18638E-05** at limit **
  12  norm          .14619        .93828        .82722E-07   -.17976E-03
  13  Prefactor     5.1856        5.8457       -.93363E-06   -.23446E-03
  14  Prefactor     .10000E-03    .92385        .52267E-08** at limit **
  15  Prefactor     4.1147        4.2028        .58549E-06   -.10857E-02
  16  Prefactor     .10000E-03    5.3409        .18565E-08** at limit **
  17  norm          1.1973        .71852       -.34615E-08   -.38003E-04
  18  Prefactor     .10000E-03    6.2196       -.47225E-08** at limit **
  19  Prefactor     34.689        27.447        .16910E-05    .11128E-03
  20  Normalizat    1.2623        .20067        .11973E-06    .11824E-03
  21  Prefactor     .99477        .17101       -.15560E-06    .13963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.868087
  norm       = 0.0623903
  Prefactor  = 11.7904
  Prefactor  = 30.3605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0176
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100208
  norm       = 0.146188
  Prefactor  = 5.18563
  Prefactor  = 0.0001
  Prefactor  = 4.11474
  Prefactor  = 0.0001
  norm       = 1.19734
  Prefactor  = 0.0001
  Prefactor  = 34.6887
  Normalizat = 1.26234
  Prefactor  = 0.994772
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.773     FROM HESSE     STATUS=OK           317 CALLS     2278 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86809        1.3784        .10804E-03   -1.5522    
   2  norm          .62390E-01    .89080        .89692E-03   -1.5658    
   3  Prefactor     11.790        8.7939        .11667E-03   -1.5021    
   4  Prefactor     30.361        28.572        .72810E-04   -1.4605    
   5  Prefactor     .10000E-03    40.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0064        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9948        .12926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.018        26.124        .10702E-03   -1.4959    
   9  Prefactor     .10000E-03    27.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    47.145        .21126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10021E-03    46.758        .44223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .14619        1.8511        .14075E-02   -1.5632    
  13  Prefactor     5.1856        5.8428        .17653E-03   -1.5252    
  14  Prefactor     .10000E-03    .92845        .71850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1147        8.6263        .99521E-03   -1.5302    
  16  Prefactor     .10000E-03    5.3911        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1973        .70917        .48531E-04   -1.5489    
  18  Prefactor     .10000E-03    6.2497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.689        27.479        .68020E-04   -1.4529    
  20  Normalizat    1.2623        .24174        .25342E-03   -.84698    
  21  Prefactor     .99477        .20361        .24237E-03   -.92904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14707e-08
Minuit parameter uncertainties:
  1  1.37845
  2  0.471128
  3  8.79487
  4  28.5847
  5  0.000222761
  6  9.59062e-06
  7  6.53237e-06
  8  26.1453
  9  4.56857e-05
  10  0.000884705
  11  0.0062451
  12  1.04007
  13  5.84346
  14  2.97914e-08
  15  8.62887
  16  3.15841e-06
  17  0.709174
  18  1.62902e-06
  19  27.4892
  20  0.241955
  21  0.203769
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.402e+01  2.615e+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:  9.948e-01  2.038e-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.262e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782115/likelihoodResults_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.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) = 5861.50817032
delta logL = 0.265059977247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5861.50777443
delta logL = 0.265455869056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.262       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9260       1.0000          .0000       10.000    
     3 'Normalizat'    1.2692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98770       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=   5861.508     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      250 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.513        83.900        .18516E-02   -.57967E-04
   2  Index         1.9260        1.3342        .26233        .96890E-06
   3  Normalizat    1.2692        .19640        .57162E-01    .85811E-05
   4  Prefactor     .98765        .17039        .46113E-01   -.37808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5128
  Index      = 1.92596
  Normalizat = 1.26915
  Prefactor  = 0.987655
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.508     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.513        41.148        .74064E-04   -1.4621    
   2  Index         1.9260        .83839        .12569E-01   -.66214    
   3  Normalizat    1.2692        .23297        .25278E-03   -.84492    
   4  Prefactor     .98765        .20162        .24306E-03   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19593e-10
Minuit parameter uncertainties:
  1  41.1878
  2  0.844837
  3  0.23316
  4  0.201776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782115': 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) = 5861.50775578
delta logL = 0.265474511126

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.951e+01  4.119e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.926e+00  8.448e-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:  9.877e-01  2.018e-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.269e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/782115/cmap_HighResolution_426988801_427248001_4FGL_J1017.8+0715_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-01 16:33:52.111472', job_id='782115', GAL2='0.99', fit_tolerance='1e-08', EG2='1.27', EG='1.26', time_epoch_completed='1630539232.11', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.65e-01', ts2='0.98', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='724' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:33:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 782115: <4FGL_J1017.8+0715_daily_bin724> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin724> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:20:37 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:21:10 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:21:10 2021
Terminated at Wed Sep  1 16:33:53 2021
Results reported at Wed Sep  1 16:33:53 2021

Your job looked like:

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

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

