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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin758
RA = 154.473, Dec = 7.2638
tmin = 435801601, tmax = 436060801
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='782169', job_status='RUN', time_executed='2021-09-01 16:22:38.139052', time_epoch_executed='1630538558.14' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782169/ft1_4FGL_J1017.8+0715_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782169/ft2_4FGL_J1017.8+0715_daily_bin758.fits


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

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

Done.
real 5.67
user 5.36
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782169/ft1_filtered_4FGL_J1017.8+0715_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/782169/ft2_4FGL_J1017.8+0715_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/782169/ltcube_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.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/782169/ft2_4FGL_J1017.8+0715_daily_bin758.fits
.....................!
real 16.55
user 15.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782169/ft1_filtered_4FGL_J1017.8+0715_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/782169/ft2_4FGL_J1017.8+0715_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/782169/ltcube_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.fits outfile=/scratch/kocevski/782169/expmap_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.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/782169/ltcube_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.fits
.....................!
real 192.91
user 187.97
sys 4.35

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/782169/ft1_filtered_4FGL_J1017.8+0715_daily_bin758.fits scfile=/scratch/kocevski/782169/ft2_4FGL_J1017.8+0715_daily_bin758.fits outfile=/scratch/kocevski/782169/cmap_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782169/ft1_filtered_4FGL_J1017.8+0715_daily_bin758.fits scfile=/scratch/kocevski/782169/ft2_4FGL_J1017.8+0715_daily_bin758.fits outfile=/scratch/kocevski/782169/cmap_HighResolution_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.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.62
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6255       1.0000         .10000E-03   10000.    
     2 'norm      '    .12783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36770E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9118       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11282E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12926E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.495       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0879       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4551       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7466       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2989       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0574       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=   6375.801     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1918 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6254        1.4942        .32350E-07   -.19175E-04
   2  norm          .12783        .34542        .12699E-06   -.57758E-03
   3  Prefactor     .10000E-03    4.8700       -.30705E-07** at limit **
   4  Prefactor     .10000E-03    16.204        .31593E-06** at limit **
   5  Prefactor     .10000E-03    28.925       -.34900E-06** at limit **
   6  norm          .10000E-03    4.0157       -.22211E-07** at limit **
   7  Prefactor     4.8803        6.8925        .92788E-06    .23208E-04
   8  Prefactor     .10000E-03    13.291       -.28849E-06** at limit **
   9  Prefactor     .10000E-03    24.950       -.29049E-06** at limit **
  10  Prefactor     28.450        33.155       -.44683E-05   -.29750E-03
  11  Prefactor     .10000E-03    7.8011       -.54831E-06** at limit **
  12  norm          3.0878        1.3469       -.78382E-07   -.86097E-04
  13  Prefactor     7.2273        6.4629        .25313E-05   -.56380E-03
  14  Prefactor     .10000E-03    2.2563        .26310E-07** at limit **
  15  Prefactor     5.4784        6.3978        .26664E-07   -.47522E-04
  16  Prefactor     .10000E-03    12.972        .96042E-07** at limit **
  17  norm          2.7453        1.0084        .75737E-07   -.26036E-03
  18  Prefactor     7.1876        12.645       -.70927E-06   -.87323E-04
  19  Prefactor     6.2442        19.546        .16843E-05    .61166E-04
  20  Normalizat    1.0716        .19410       -.56571E-07   -.52940E-04
  21  Prefactor     1.0574        .16608       -.66916E-06   -.10123E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62543
  norm       = 0.127832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.88035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.45
  Prefactor  = 0.0001
  norm       = 3.08782
  Prefactor  = 7.22731
  Prefactor  = 0.0001
  Prefactor  = 5.47844
  Prefactor  = 0.0001
  norm       = 2.74533
  Prefactor  = 7.18759
  Prefactor  = 6.24418
  Normalizat = 1.07158
  Prefactor  = 1.05739
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.801     FROM HESSE     STATUS=OK           319 CALLS     2237 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6254        1.4954        .59955E-04   -1.5327    
   2  norm          .12783        .42104        .73354E-03   -1.5636    
   3  Prefactor     .10000E-03    4.8825        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.042        .19597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0169        .15627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8803        6.9280        .18148E-03   -1.5266    
   8  Prefactor     .10000E-03    13.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.450        35.160        .75053E-04   -1.4641    
  11  Prefactor     .10000E-03    7.8015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0878        1.3474        .58833E-04   -1.5357    
  13  Prefactor     7.2273        6.6839        .74661E-03   -1.5170    
  14  Prefactor     .10000E-03    2.3043        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4784        6.4038        .17204E-03   -1.5240    
  16  Prefactor     .10000E-03    13.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7453        1.0365        .40010E-04   -1.5377    
  18  Prefactor     7.1876        13.029        .14991E-03   -1.5172    
  19  Prefactor     6.2442        19.580        .15994E-03   -1.5208    
  20  Normalizat    1.0716        .22897        .27075E-03   -.90669    
  21  Prefactor     1.0574        .19589        .23600E-03   -.90840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09194e-08
Minuit parameter uncertainties:
  1  1.49537
  2  0.421052
  3  4.27764e-06
  4  3.17591e-05
  5  7.19138e-05
  6  1.58738e-06
  7  6.92919
  8  1.37215e-05
  9  4.45338e-05
  10  35.1857
  11  3.83829e-05
  12  1.34743
  13  6.6846
  14  4.37941e-06
  15  6.40455
  16  2.00975e-05
  17  1.03648
  18  13.0341
  19  19.6003
  20  0.229186
  21  0.196021
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.372e-05  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.057e+00  1.960e-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.072e+00  2.292e-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: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782169/likelihoodResults_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.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) = 6375.80093226
delta logL = -0.000357649768375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6375.80057461
delta logL = 3.00587998936e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7149       1.0000          .0000       10.000    
     3 'Normalizat'    1.0717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       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=   6375.801     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      258 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.999        .18142E-01** at limit **
   2  Index         2.0504        7.7276        .50000        .34402E-06
   3  Normalizat    1.0716        .10654E-01    .27075E-03   -.46483E-04
   4  Prefactor     1.0574        .92832E-02    .23600E-03   -.51978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05039
  Normalizat = 1.07158
  Prefactor  = 1.05739
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.801     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    467.15        .32968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0504        7.8593        .50000       -.63096    
   3  Normalizat    1.0716        .25285E-01    .10830E-04   -.90669    
   4  Prefactor     1.0574        .22032E-01    .94400E-05   -.90840    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05457e-08
Minuit parameter uncertainties:
  1  0.000177787
  2  1263.44
  3  0.0252855
  4  0.0220324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782169': 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) = 6375.80057365
delta logL = 9.63213096838e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.778e-04  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.050e+00  1.263e+03  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.057e+00  2.203e-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:  1.072e+00  2.529e-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/782169/cmap_HighResolution_435801601_436060801_4FGL_J1017.8+0715_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-01 16:32:33.704258', job_id='782169', GAL2='1.06', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630539153.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='758' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:32:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 782169: <4FGL_J1017.8+0715_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin758 154.473 7.2638 435801601 436060801 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 :                                   594.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            714 sec.

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

