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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin786
RA = 154.473, Dec = 7.2638
tmin = 443059201, tmax = 443318401
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='782213', job_status='RUN', time_executed='2021-09-01 16:24:34.720843', time_epoch_executed='1630538674.72' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782213/ft1_4FGL_J1017.8+0715_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782213/ft2_4FGL_J1017.8+0715_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782213/ft1_4FGL_J1017.8+0715_daily_bin786.fits outfile=/scratch/kocevski/782213/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin786.fits ra=154.473 dec=7.2638 rad=12.0 tmin=443059201.0 tmax=443318401.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.84
user 3.56
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782213/ft1_filtered_4FGL_J1017.8+0715_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/782213/ft2_4FGL_J1017.8+0715_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/782213/ltcube_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.fits outfile=/scratch/kocevski/782213/expmap_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.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/782213/ltcube_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.fits
.....................!
real 194.03
user 188.54
sys 4.54

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/782213/ft1_filtered_4FGL_J1017.8+0715_daily_bin786.fits scfile=/scratch/kocevski/782213/ft2_4FGL_J1017.8+0715_daily_bin786.fits outfile=/scratch/kocevski/782213/cmap_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782213/ft1_filtered_4FGL_J1017.8+0715_daily_bin786.fits scfile=/scratch/kocevski/782213/ft2_4FGL_J1017.8+0715_daily_bin786.fits outfile=/scratch/kocevski/782213/cmap_HighResolution_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6463       1.0000         .10000E-03   10000.    
     2 'norm      '    .58065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41695E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.871       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .87624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15680E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4253       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .94907       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.035       1.0000         .10000E-03   10000.    
    17 'norm      '    .65541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35663E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83551       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2133       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=   5094.398     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2295 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6463        1.5774        .39900E-07   -.32200E-04
   2  norm          .58093        .63999        .71812E-08    .22286E-03
   3  Prefactor     1.5998        16.160       -.55607E-05   -.20700E-03
   4  Prefactor     .10002E-03    91.584        .13301E-04** at limit **
   5  Prefactor     .10000E-03    34.821        .12392E-05** at limit **
   6  norm          .10004E-03    55.028        .27497E-04** at limit **
   7  Prefactor     .10005E-03    7.5893       -.72573E-06** at limit **
   8  Prefactor     38.831        56.139       -.32017E-05   -.11403E-03
   9  Prefactor     .10000E-03    15.399        .49560E-06** at limit **
  10  Prefactor     .10000E-03    71.860       -.68273E-06** at limit **
  11  Prefactor     .10000E-03    9.4004        .56212E-06** at limit **
  12  norm          .87614        1.0265        .42443E-07    .36287E-04
  13  Prefactor     .10002E-03    6.1292        .42586E-05** at limit **
  14  Prefactor     5.4249        3.0854       -.15790E-07   -.16858E-03
  15  Prefactor     .95067        4.9751        .51211E-06    .71415E-04
  16  Prefactor     10.034        6.7229        .22618E-07    .12646E-04
  17  norm          .65533        .48970       -.86216E-08    .48318E-03
  18  Prefactor     .10005E-03    8.2135       -.63398E-05** at limit **
  19  Prefactor     .10000E-03    11.422        .20850E-06** at limit **
  20  Normalizat    .83590        .21085        .51477E-07   -.28766E-03
  21  Prefactor     1.2129        .17755       -.87433E-06   -.95256E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64626
  norm       = 0.580935
  Prefactor  = 1.59982
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.000100037
  Prefactor  = 0.000100047
  Prefactor  = 38.8306
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.87614
  Prefactor  = 0.000100021
  Prefactor  = 5.42492
  Prefactor  = 0.950669
  Prefactor  = 10.0341
  norm       = 0.655335
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Normalizat = 0.835897
  Prefactor  = 1.21288
 **********
 **   18 **HESSE 
 **********

 FCN=   5094.398     FROM HESSE     STATUS=OK           325 CALLS     2620 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6463        1.5769        .56446E-04   -1.5326    
   2  norm          .58093        .61036        .57183E-03   -1.5556    
   3  Prefactor     1.5998        15.836        .33407E-03   -1.5455    
   4  Prefactor     .10002E-03    92.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10004E-03    65.295        .47774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    19.300        .36051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.831        56.712        .64288E-04   -1.4461    
   9  Prefactor     .10000E-03    15.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    72.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .87614        .99582        .75468E-04   -1.5521    
  13  Prefactor     .10002E-03    14.825        .31504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4249        3.0847        .90919E-04   -1.5242    
  15  Prefactor     .95067        15.373        .29291E-02   -1.5513    
  16  Prefactor     10.034        6.7140        .12649E-03   -1.5074    
  17  norm          .65533        .47784        .40969E-04   -1.5546    
  18  Prefactor     .10005E-03    36.676        .31168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .83590        .24617        .28343E-03   -.98751    
  21  Prefactor     1.2129        .20992        .21699E-03   -.85936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0143e-09
Minuit parameter uncertainties:
  1  1.57695
  2  0.610365
  3  10.0698
  4  0.00267726
  5  0.000169422
  6  0.00312996
  7  0.00191135
  8  56.7911
  9  5.69626e-05
  10  0.00102656
  11  3.33074e-05
  12  0.99584
  13  0.0011198
  14  3.0848
  15  7.64772
  16  6.71447
  17  0.477838
  18  0.00280838
  19  3.76285e-05
  20  0.2465
  21  0.210065
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.883e+01  5.679e+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:  1.213e+00  2.101e-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:  8.359e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/782213/likelihoodResults_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.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) = 5093.48809601
delta logL = 0.909846195203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5093.48542463
delta logL = 0.912517578116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8808       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9351       1.0000          .0000       10.000    
     3 'Normalizat'    .76499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2579       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=   5093.485     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      312 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8637        60.221        .51207E-02    .28932E-03
   2  Index         4.9381        3.7280        .14075        .10573E-03
   3  Normalizat    .76497        .66305E-01    .66639E-01    .18154E-04
   4  Prefactor     1.2578        .59864E-01    .48321E-01   -.85796E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86367
  Index      = 4.93806
  Normalizat = 0.764972
  Prefactor  = 1.25785
 **********
 **   18 **HESSE 
 **********

 FCN=   5093.485     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      343 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8637        106.08        .98952E-04   -1.5315    
   2  Index         4.9381        7.3864        .53553E-02   -.12389E-01
   3  Normalizat    .76497        .20841        .29484E-03   -1.0138    
   4  Prefactor     1.2578        .18603        .21360E-03   -.84569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.00835e-10
Minuit parameter uncertainties:
  1  40.5687
  2  6.50281
  3  0.208631
  4  0.186127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782213': 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): 102
logL (Free Index) = 5093.48542321
delta logL = 0.912518994127

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.864e+00  4.057e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  4.938e+00  6.503e+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.258e+00  1.861e-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:  7.650e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 154.473 7.264
Photon Index (Free Index): 4.94 +/- 6.50
Photon Flux (Free Index): 8.07e-08 +/- 6.29e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.19e-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/782213/cmap_HighResolution_443059201_443318401_4FGL_J1017.8+0715_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='9.13e-01', photon_flux2='8.07e-08', job_status='DONE', time_completed='2021-09-01 16:33:57.018391', photon_index_error2='6.50', photon_index2='4.94', ts='0.62', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.19e-05', EG='0.84', time_epoch_completed='1630539237.02', return_code='0', job_id='782213', GAL2='1.26', EG2='0.76', return_code2='102', photon_flux_error2='6.29e-08', ts2='2.63', photon_index='2.73' WHERE bin_id='786' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 782213: <4FGL_J1017.8+0715_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin786 154.473 7.2638 443059201 443318401 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 :                                   557.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             262.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            793 sec.

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

