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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin648
RA = 154.473, Dec = 7.2638
tmin = 407289601, tmax = 407548801
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='780840', job_status='RUN', time_executed='2021-09-01 16:18:25.666500', time_epoch_executed='1630538305.67' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780840/ft1_4FGL_J1017.8+0715_daily_bin648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780840/ft2_4FGL_J1017.8+0715_daily_bin648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780840/ft1_4FGL_J1017.8+0715_daily_bin648.fits outfile=/scratch/kocevski/780840/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin648.fits ra=154.473 dec=7.2638 rad=12.0 tmin=407289601.0 tmax=407548801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.69
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780840/ft1_filtered_4FGL_J1017.8+0715_daily_bin648.fits" evtable="EVENTS" scfile=/scratch/kocevski/780840/ft2_4FGL_J1017.8+0715_daily_bin648.fits sctable="SC_DATA" outfile=/scratch/kocevski/780840/ltcube_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.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/780840/ft2_4FGL_J1017.8+0715_daily_bin648.fits
.....................!
real 14.50
user 13.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780840/ft1_filtered_4FGL_J1017.8+0715_daily_bin648.fits evtable="EVENTS" scfile=/scratch/kocevski/780840/ft2_4FGL_J1017.8+0715_daily_bin648.fits sctable="SC_DATA" expcube=/scratch/kocevski/780840/ltcube_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.fits outfile=/scratch/kocevski/780840/expmap_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.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/780840/ltcube_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.fits
.....................!
real 191.50
user 185.94
sys 4.45

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/780840/ft1_filtered_4FGL_J1017.8+0715_daily_bin648.fits scfile=/scratch/kocevski/780840/ft2_4FGL_J1017.8+0715_daily_bin648.fits outfile=/scratch/kocevski/780840/cmap_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780840/ft1_filtered_4FGL_J1017.8+0715_daily_bin648.fits scfile=/scratch/kocevski/780840/ft2_4FGL_J1017.8+0715_daily_bin648.fits outfile=/scratch/kocevski/780840/cmap_HighResolution_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80724       1.0000         .10000E-03   10000.    
     2 'norm      '    .12141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62650E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2390       1.0000         .10000E-03   10000.    
    17 'norm      '    .34864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.529       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96544       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0409       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=   5850.418     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1946 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80701        1.1248       -.39876E-06   -.46144E-03
   2  norm          .12135        .31310       -.27207E-06    .95463E-03
   3  Prefactor     8.1658        10.657        .66497E-07    .24020E-03
   4  Prefactor     .10000E-03    75.386        .33443E-05** at limit **
   5  Prefactor     .10000E-03    17.662        .20060E-05** at limit **
   6  norm          9.8143        9.8502       -.16377E-07    .70325E-04
   7  Prefactor     .10000E-03    3.7550       -.30021E-07** at limit **
   8  Prefactor     .10000E-03    68.579       -.30459E-05** at limit **
   9  Prefactor     .10000E-03    17.027       -.18798E-05** at limit **
  10  Prefactor     .10000E-03    35.431       -.77981E-06** at limit **
  11  Prefactor     .10000E-03    8.9602       -.18940E-07** at limit **
  12  norm          .62300E-01    6.3093        .64062E-05   -.74568E-04
  13  Prefactor     2.3992        3.9473       -.12574E-06    .43040E-03
  14  Prefactor     1.8939        2.5683       -.11067E-06    .68018E-03
  15  Prefactor     .10000E-03    2.6338       -.12699E-06** at limit **
  16  Prefactor     5.2399        7.3513        .14356E-06    .39392E-03
  17  norm          .34863        .45270       -.62917E-07   -.31986E-03
  18  Prefactor     .10000E-03    7.1298        .41714E-07** at limit **
  19  Prefactor     18.529        19.770       -.96486E-08    .35913E-04
  20  Normalizat    .96546        .17445        .14063E-05    .46924E-03
  21  Prefactor     1.0409        .15324       -.69628E-06    .39435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.807013
  norm       = 0.121346
  Prefactor  = 8.1658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.81427
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0622999
  Prefactor  = 2.39924
  Prefactor  = 1.89389
  Prefactor  = 0.0001
  Prefactor  = 5.23992
  norm       = 0.348632
  Prefactor  = 0.0001
  Prefactor  = 18.5287
  Normalizat = 0.965457
  Prefactor  = 1.04091
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.418     FROM HESSE     STATUS=OK           323 CALLS     2269 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80701        1.0685        .93589E-03   -1.5528    
   2  norm          .12135        .30834        .68724E-03   -1.5638    
   3  Prefactor     8.1658        10.658        .14032E-03   -1.5136    
   4  Prefactor     .10000E-03    76.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8143        9.8502        .12792E-03   -1.5081    
   7  Prefactor     .10000E-03    3.7651        .14473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .62300E-01    6.3218        .11914E-02   -1.5658    
  13  Prefactor     2.3992        3.9302        .18871E-03   -1.5398    
  14  Prefactor     1.8939        2.5513        .13600E-03   -1.5433    
  15  Prefactor     .10000E-03    2.6553        .12125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2399        7.3208        .17561E-03   -1.5250    
  17  norm          .34863        .40996        .56551E-03   -1.5590    
  18  Prefactor     .10000E-03    7.2120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.529        19.767        .93046E-04   -1.4847    
  20  Normalizat    .96546        .20061        .25215E-03   -.94197    
  21  Prefactor     1.0409        .17567        .21483E-03   -.91378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27316e-08
Minuit parameter uncertainties:
  1  1.06856
  2  0.30834
  3  10.6603
  4  0.000339809
  5  0.000151543
  6  9.85185
  7  2.24006e-06
  8  0.00049581
  9  0.000172426
  10  0.000101277
  11  3.15138e-06
  12  1.25428
  13  3.93063
  14  2.55141
  15  1.09013e-05
  16  7.32208
  17  0.409967
  18  1.65075e-05
  19  19.7741
  20  0.20077
  21  0.175771
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  4.958e-04  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.041e+00  1.758e-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.655e-01  2.008e-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: 9.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780840/likelihoodResults_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.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) = 5850.41853374
delta logL = -6.86499151925e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5850.4184635
delta logL = 1.5823115973e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2939       1.0000          .0000       10.000    
     3 'Normalizat'    .96545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0409       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5850.407     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      337 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9757        95.185        .21028E-02    .36007E-03
   2  Index         3.9070        6.9481        .99488E-02    .22740E-05
   3  Normalizat    .95536        .20969        .25335E-03    .92439E-05
   4  Prefactor     1.0458        .17705        .21439E-03    .39082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97574
  Index      = 3.907
  Normalizat = 0.955364
  Prefactor  = 1.04578
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.407     FROM HESSE     STATUS=OK            27 CALLS      364 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9757        39.222        .42057E-03   -1.5427    
   2  Index         3.9070        3.5876        .39795E-03   -.22038    
   3  Normalizat    .95536        .20753        .10134E-04   -.94541    
   4  Prefactor     1.0458        .17682        .85755E-05   -.91219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10467e-12
Minuit parameter uncertainties:
  1  17.6187
  2  4.0307
  3  0.207702
  4  0.17692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780840': 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) = 5850.4074448
delta logL = 0.0110202868682

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.976e+00  1.762e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.907e+00  4.031e+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:  1.046e+00  1.769e-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.554e-01  2.077e-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/780840/cmap_HighResolution_407289601_407548801_4FGL_J1017.8+0715_daily_bin648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-09-01 16:27:54.394558', job_id='780840', GAL2='1.05', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1630538874.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.10e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='648' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:27:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 780840: <4FGL_J1017.8+0715_daily_bin648> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin648> 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) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:18:00 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:18:00 2021
Terminated at Wed Sep  1 16:27:55 2021
Results reported at Wed Sep  1 16:27:55 2021

Your job looked like:

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

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

