/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 0 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin22
RA = 154.473, Dec = 7.2638
tmin = 245030401, tmax = 245289601
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='778935', job_status='RUN', time_executed='2021-09-01 16:12:06.322854', time_epoch_executed='1630537926.32' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778935/ft1_4FGL_J1017.8+0715_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778935/ft2_4FGL_J1017.8+0715_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778935/ft1_4FGL_J1017.8+0715_daily_bin22.fits outfile=/scratch/kocevski/778935/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin22.fits ra=154.473 dec=7.2638 rad=12.0 tmin=245030401.0 tmax=245289601.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.46
user 1.30
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778935/ft1_filtered_4FGL_J1017.8+0715_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/778935/ft2_4FGL_J1017.8+0715_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/778935/ltcube_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.fits outfile=/scratch/kocevski/778935/expmap_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.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/778935/ltcube_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.fits
.....................!
real 191.53
user 186.59
sys 4.34

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/778935/ft1_filtered_4FGL_J1017.8+0715_daily_bin22.fits scfile=/scratch/kocevski/778935/ft2_4FGL_J1017.8+0715_daily_bin22.fits outfile=/scratch/kocevski/778935/cmap_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778935/ft1_filtered_4FGL_J1017.8+0715_daily_bin22.fits scfile=/scratch/kocevski/778935/ft2_4FGL_J1017.8+0715_daily_bin22.fits outfile=/scratch/kocevski/778935/cmap_HighResolution_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.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.63
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    104.43       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6470       1.0000         .10000E-03   10000.    
     6 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    111.99       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.791       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5987       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23341E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7955       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1676       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.225       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9079       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82007       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=   5552.233     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2256 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47160        .24413E-07** at limit **
   2  norm          1.4527        .70246        .30980E-07   -.46327E-04
   3  Prefactor     6.9813        8.6631       -.53320E-08   -.69521E-05
   4  Prefactor     104.55        60.932       -.54010E-05   -.39026E-03
   5  Prefactor     4.3743        241.61        .27670E-04    .10482E-04
   6  norm          .10000E-03    9.6565       -.38371E-06** at limit **
   7  Prefactor     28.069        14.274       -.48458E-08   -.25579E-04
   8  Prefactor     111.99        72.907       -.76853E-07   -.70557E-05
   9  Prefactor     37.793        35.898       -.11330E-07   -.18263E-05
  10  Prefactor     .10000E-03    81.746       -.19620E-05** at limit **
  11  Prefactor     .10000E-03    13.092       -.65319E-06** at limit **
  12  norm          2.5986        1.6493        .27043E-06   -.41422E-03
  13  Prefactor     .18900E-03    11.409        .26863E-05** at limit **
  14  Prefactor     3.7952        3.6405        .14482E-06    .69442E-04
  15  Prefactor     .10000E-03    1.9293        .84547E-08** at limit **
  16  Prefactor     .10000E-03    1.8669        .32123E-08** at limit **
  17  norm          1.1675        1.0679        .57523E-07    .47762E-04
  18  Prefactor     16.226        15.571       -.31992E-07    .85641E-05
  19  Prefactor     6.9075        23.034        .20261E-06    .41986E-05
  20  Normalizat    1.0951        .20475        .55051E-06   -.30857E-03
  21  Prefactor     .82026        .16622       -.70675E-06   -.27448E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.4527
  Prefactor  = 6.98131
  Prefactor  = 104.545
  Prefactor  = 4.37434
  norm       = 0.0001
  Prefactor  = 28.0692
  Prefactor  = 111.988
  Prefactor  = 37.7933
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.59859
  Prefactor  = 0.000188998
  Prefactor  = 3.79525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1675
  Prefactor  = 16.2264
  Prefactor  = 6.90752
  Normalizat = 1.09506
  Prefactor  = 0.820259
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.233     FROM HESSE     STATUS=OK           325 CALLS     2581 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .61950        .98852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4527        .69417        .41391E-04   -1.5467    
   3  Prefactor     6.9813        8.6555        .15184E-03   -1.5179    
   4  Prefactor     104.55        61.003        .19674E-03   -1.3659    
   5  Prefactor     4.3743        247.03        .18670E-03   -1.5290    
   6  norm          .10000E-03    9.6654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.069        14.260        .75619E-04   -1.4648    
   8  Prefactor     111.99        73.153        .38012E-04   -1.3588    
   9  Prefactor     37.793        35.908        .65196E-04   -1.4478    
  10  Prefactor     .10000E-03    81.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5986        1.6470        .71609E-04   -1.5386    
  13  Prefactor     .18900E-03    13.002        .51482E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7952        3.6423        .13128E-03   -1.5318    
  15  Prefactor     .10000E-03    1.9379        .10107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8686        .99406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1675        1.0694        .54025E-04   -1.5492    
  18  Prefactor     16.226        15.856        .99432E-04   -1.4902    
  19  Prefactor     6.9075        23.038        .15265E-03   -1.5182    
  20  Normalizat    1.0951        .24152        .25478E-03   -.89911    
  21  Prefactor     .82026        .19517        .24794E-03   -.98986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36063e-09
Minuit parameter uncertainties:
  1  1.1305e-07
  2  0.694175
  3  8.65708
  4  61.0399
  5  66.0323
  6  2.59403e-05
  7  14.2621
  8  73.2123
  9  35.9287
  10  0.000406512
  11  5.37704e-05
  12  1.64707
  13  0.0680476
  14  3.64249
  15  7.96702e-08
  16  8.25427e-07
  17  1.06938
  18  15.8603
  19  23.068
  20  0.241762
  21  0.195335
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.120e+02  7.321e+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:  8.203e-01  1.953e-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.095e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.97
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 9.47e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/778935/likelihoodResults_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.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) = 5552.21648091
delta logL = 0.0169530225185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.20293295
delta logL = 0.0305009895283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.767       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8873       1.0000          .0000       10.000    
     3 'Normalizat'    1.0847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82724       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=   5552.203     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.737        88.340        .40450E-04    .93086E-03
   2  Index         2.8874        .68120        .59435E-02    .62812E-03
   3  Normalizat    1.0856        .23408        .25572E-03   -.10956E-02
   4  Prefactor     .82653        .19670        .24712E-03   -.12027E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.7374
  Index      = 2.88738
  Normalizat = 1.08559
  Prefactor  = 0.826529
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.203     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.737        83.476        .80899E-05   -1.3717    
   2  Index         2.8874        .64315        .23774E-03   -.43623    
   3  Normalizat    1.0856        .23419        .51143E-04   -.90216    
   4  Prefactor     .82653        .19674        .49424E-04   -.98758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12376e-09
Minuit parameter uncertainties:
  1  83.576
  2  0.645331
  3  0.234418
  4  0.196906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778935': 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) = 5552.20292529
delta logL = 0.0305086491344

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  9.874e+01  8.358e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.887e+00  6.453e-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:  8.265e-01  1.969e-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.086e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.89 +/- 0.65
Photon Flux (Free Index): 1.02e-07 +/- 6.59e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.33e-05

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/778935/cmap_HighResolution_245030401_245289601_4FGL_J1017.8+0715_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', photon_flux='9.47e-08', energy_flux2='2.15e-05', photon_flux_error='6.18e-08', dlogl='3.05e-02', energy_flux='2.22e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-01 16:21:35.165249', photon_index_error2='0.65', photon_index2='2.89', ts='3.97', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='1.33e-05', EG='1.10', time_epoch_completed='1630538495.17', return_code='0', job_id='778935', GAL2='0.83', EG2='1.09', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='6.59e-08', ts2='4.10', photon_index='2.73' WHERE bin_id='22' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:21:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 778935: <4FGL_J1017.8+0715_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin22 154.473 7.2638 245030401 245289601 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 :                                   568.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             335.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            658 sec.

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

