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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin969
RA = 154.473, Dec = 7.2638
tmin = 490492801, tmax = 490752001
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='782457', job_status='RUN', time_executed='2021-09-01 16:27:03.192293', time_epoch_executed='1630538823.19' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782457/ft1_4FGL_J1017.8+0715_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782457/ft2_4FGL_J1017.8+0715_daily_bin969.fits


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

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

Done.
real 4.79
user 4.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782457/ft1_filtered_4FGL_J1017.8+0715_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/782457/ft2_4FGL_J1017.8+0715_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/782457/ltcube_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.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/782457/ft2_4FGL_J1017.8+0715_daily_bin969.fits
.....................!
real 12.85
user 12.50
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782457/ft1_filtered_4FGL_J1017.8+0715_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/782457/ft2_4FGL_J1017.8+0715_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/782457/ltcube_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.fits outfile=/scratch/kocevski/782457/expmap_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.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/782457/ltcube_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.fits
.....................!
real 157.27
user 152.55
sys 4.05

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/782457/ft1_filtered_4FGL_J1017.8+0715_daily_bin969.fits scfile=/scratch/kocevski/782457/ft2_4FGL_J1017.8+0715_daily_bin969.fits outfile=/scratch/kocevski/782457/cmap_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.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 1.35
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782457/ft1_filtered_4FGL_J1017.8+0715_daily_bin969.fits scfile=/scratch/kocevski/782457/ft2_4FGL_J1017.8+0715_daily_bin969.fits outfile=/scratch/kocevski/782457/cmap_HighResolution_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.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 1.28
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6577       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.625       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.107       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11663E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26157E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8630       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3095       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83959       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2288       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=   5710.776     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2254 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6580        1.2525        .38619E-07   -.19176E-04
   2  norm          1.1604        .71037        .18688E-07    .59489E-05
   3  Prefactor     3.1502        6.5299        .59432E-06   -.53752E-04
   4  Prefactor     48.623        44.713        .37523E-06   -.21224E-04
   5  Prefactor     18.069        44.163       -.57028E-06   -.10798E-03
   6  norm          .10000E-03    13.097        .16170E-05** at limit **
   7  Prefactor     .10000E-03    13.272        .91891E-05** at limit **
   8  Prefactor     .10000E-03    46.362        .32752E-05** at limit **
   9  Prefactor     14.554        52.032        .53386E-06    .12740E-04
  10  Prefactor     16.490        49.148       -.53444E-05   -.91508E-04
  11  Prefactor     .10000E-03    23.765        .11326E-04** at limit **
  12  norm          1.4145        1.3386        .19875E-06    .12536E-03
  13  Prefactor     .10001E-03    3.7321       -.86738E-06** at limit **
  14  Prefactor     .10000E-03    .82093        .50365E-07** at limit **
  15  Prefactor     .10000E-03    12.978       -.28640E-06** at limit **
  16  Prefactor     2.8653        6.8061        .62908E-06   -.26448E-04
  17  norm          2.3589        .81564       -.39044E-08    .71622E-04
  18  Prefactor     .10000E-03    11.310       -.42339E-07** at limit **
  19  Prefactor     1.3059        61.751        .23035E-05   -.76659E-05
  20  Normalizat    .83934        .20325       -.17844E-05   -.37603E-04
  21  Prefactor     1.2289        .17265        .12032E-05   -.17484E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65799
  norm       = 1.16043
  Prefactor  = 3.15025
  Prefactor  = 48.6234
  Prefactor  = 18.0691
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5543
  Prefactor  = 16.4903
  Prefactor  = 0.0001
  norm       = 1.41447
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86529
  norm       = 2.35891
  Prefactor  = 0.0001
  Prefactor  = 1.30587
  Normalizat = 0.839339
  Prefactor  = 1.22891
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.776     FROM HESSE     STATUS=OK           317 CALLS     2571 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6580        1.2413        .70387E-04   -1.5450    
   2  norm          1.1604        .69644        .47384E-04   -1.5493    
   3  Prefactor     3.1502        6.5094        .22833E-03   -1.5353    
   4  Prefactor     48.623        44.573        .57506E-04   -1.4312    
   5  Prefactor     18.069        43.938        .94124E-04   -1.4858    
   6  norm          .10000E-03    13.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.554        52.021        .10501E-03   -1.4945    
  10  Prefactor     16.490        49.970        .98810E-04   -1.4896    
  11  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4145        1.3195        .80777E-04   -1.5470    
  13  Prefactor     .10001E-03    13.018        .27486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .82430        .66846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8653        6.7775        .24025E-03   -1.5369    
  17  norm          2.3589        .81380        .38572E-04   -1.5401    
  18  Prefactor     .10000E-03    11.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3059        62.873        .38539E-03   -1.5479    
  20  Normalizat    .83934        .23990        .29459E-03   -.98626    
  21  Prefactor     1.2289        .20546        .21776E-03   -.85446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25844e-09
Minuit parameter uncertainties:
  1  1.24133
  2  0.696446
  3  6.51091
  4  44.604
  5  44.0166
  6  4.86791e-06
  7  3.96381e-07
  8  0.000109194
  9  52.1838
  10  50.0973
  11  8.05507e-06
  12  1.31948
  13  0.000796565
  14  9.04202e-07
  15  2.00634e-05
  16  6.77926
  17  0.813801
  18  1.14405e-05
  19  18.1418
  20  0.240203
  21  0.205597
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.092e-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.229e+00  2.056e-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.393e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782457/likelihoodResults_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5710.7756171
delta logL = -0.000102626343505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5710.7755152
delta logL = -7.26484358893e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2341       1.0000          .0000       10.000    
     3 'Normalizat'    .83933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2289       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=   5710.776     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      276 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10404E-03    31.841        .18142E-01** at limit **
   2  Index         3.1226        8.3819        .50000        .54942E-05
   3  Normalizat    .83934        .45816E-02    .29460E-03    .21456E-04
   4  Prefactor     1.2289        .40391E-02    .21776E-03    .17124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104044
  Index      = 3.12259
  Normalizat = 0.839337
  Prefactor  = 1.22891
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.776     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10404E-03    205.81        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1226        6.0530        .50000       -.38492    
   3  Normalizat    .83934        .11656E-01    .11784E-04   -.98626    
   4  Prefactor     1.2289        .10276E-01    .87105E-05   -.85446    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46515e-09
Minuit parameter uncertainties:
  1  0.0579004
  2  643.067
  3  0.0116559
  4  0.0102757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782457': 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) = 5710.7755148
delta logL = -3.23138010572e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.040e-04  5.790e-02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.123e+00  6.431e+02  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.229e+00  1.028e-02  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.393e-01  1.166e-02  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/782457/cmap_HighResolution_490492801_490752001_4FGL_J1017.8+0715_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-01 16:34:55.809098', job_id='782457', GAL2='1.23', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630539295.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-3.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='969' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:34:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 782457: <4FGL_J1017.8+0715_daily_bin969> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin969> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:21:07 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:24:26 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:24:26 2021
Terminated at Wed Sep  1 16:34:56 2021
Results reported at Wed Sep  1 16:34:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin969 154.473 7.2638 490492801 490752001 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 :                                   469.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             222.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            829 sec.

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

