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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin684
RA = 154.617, Dec = 5.4702
tmin = 416620801, tmax = 416880001
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='805079', job_status='RUN', time_executed='2021-09-01 17:37:04.236765', time_epoch_executed='1630543024.24' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805079/ft1_4FGL_J1018.4+0528_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805079/ft1_4FGL_J1018.4+0528_daily_bin684.fits outfile=/scratch/kocevski/805079/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin684.fits ra=154.617 dec=5.4702 rad=12.0 tmin=416620801.0 tmax=416880001.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.32
user 5.04
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.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/805079/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.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/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/805079/ltcube_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.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/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits
.....................!
real 17.73
user 17.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/805079/ltcube_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.fits outfile=/scratch/kocevski/805079/expmap_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.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/805079/ltcube_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.fits
.....................!
real 193.09
user 187.90
sys 4.50

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits scfile=/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits outfile=/scratch/kocevski/805079/cmap_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.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.617 yref=5.4702 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits scfile=/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits outfile=/scratch/kocevski/805079/cmap_HighResolution_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.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.617 yref=5.4702 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805079/Model_4FGL_J1018.4+0528_daily_bin684.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/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits.....................!
real 50.19
user 48.68
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits', '/scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits', expMap='/scratch/kocevski/805079/expmap_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.fits', expCube='/scratch/kocevski/805079/ltcube_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805079/Model_4FGL_J1018.4+0528_daily_bin684.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/805079/ft1_filtered_4FGL_J1018.4+0528_daily_bin684.fits
Spacecraft file(s): /scratch/kocevski/805079/ft2_4FGL_J1018.4+0528_daily_bin684.fits
Exposure map: /scratch/kocevski/805079/expmap_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.fits
Exposure cube: /scratch/kocevski/805079/ltcube_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805079/Model_4FGL_J1018.4+0528_daily_bin684.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) = 4883.00856444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2164       1.0000         .10000E-03   10000.    
     6 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13390E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7057       1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.421       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88103       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0713       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=   4882.941     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2125 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79275        .56572E-06** at limit **
   2  norm          2.7659        .93265        .29191E-07    .81789E-03
   3  Prefactor     11.143        18.180        .10941E-06   -.47938E-06
   4  Prefactor     .10000E-03    63.072       -.30012E-05** at limit **
   5  Prefactor     5.2145        17.730       -.37480E-06    .77733E-04
   6  norm          .10000E-03    10.897       -.30407E-06** at limit **
   7  Prefactor     13.694        18.645       -.62109E-07   -.35132E-04
   8  Prefactor     54.615        51.160       -.32440E-06   -.19329E-04
   9  Prefactor     54.629        78.148        .26741E-06   -.21460E-04
  10  Prefactor     .10000E-03    17.792       -.75061E-06** at limit **
  11  norm          2.6314        1.6604        .56544E-07    .41546E-03
  12  Prefactor     .10000E-03    6.1340        .31570E-07** at limit **
  13  Prefactor     .10000E-03    21.056       -.12693E-04** at limit **
  14  Prefactor     3.2765        10.259       -.21399E-05    .60534E-04
  15  Prefactor     3.7133        11.709       -.16127E-05   -.38046E-03
  16  norm          .10000E-03    .41727        .13723E-06** at limit **
  17  Prefactor     29.446        16.897       -.73448E-06   -.11328E-02
  18  Prefactor     .10000E-03    54.957        .19015E-05** at limit **
  19  Normalizat    .88109        .22602       -.57350E-06   -.19429E-03
  20  Prefactor     1.0714        .17976        .46079E-06   -.11080E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.76587
  Prefactor  = 11.1429
  Prefactor  = 0.0001
  Prefactor  = 5.21451
  norm       = 0.0001
  Prefactor  = 13.6944
  Prefactor  = 54.615
  Prefactor  = 54.6288
  Prefactor  = 0.000100001
  norm       = 2.63135
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.27647
  Prefactor  = 3.71327
  norm       = 0.0001
  Prefactor  = 29.4456
  Prefactor  = 0.0001
  Normalizat = 0.881087
  Prefactor  = 1.07137
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.941     FROM HESSE     STATUS=OK           293 CALLS     2418 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6497        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7659        .93144        .37172E-04   -1.5375    
   3  Prefactor     11.143        18.133        .12000E-03   -1.5040    
   4  Prefactor     .10000E-03    63.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2145        17.737        .88000E-03   -1.5251    
   6  norm          .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.694        18.585        .10821E-03   -1.4968    
   8  Prefactor     54.615        51.184        .54275E-04   -1.4229    
   9  Prefactor     54.629        77.960        .54273E-04   -1.4228    
  10  Prefactor     .10000E-03    17.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6314        1.6562        .68496E-04   -1.5384    
  12  Prefactor     .10000E-03    6.2097        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.767        .19509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2765        10.217        .11184E-02   -1.5346    
  15  Prefactor     3.7133        11.375        .20979E-03   -1.5323    
  16  norm          .10000E-03    .53259        .79390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.446        15.668        .73865E-04   -1.4622    
  18  Prefactor     .10000E-03    55.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88109        .25808        .29230E-03   -.97128    
  20  Prefactor     1.0714        .20858        .22531E-03   -.90387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47632e-09
Minuit parameter uncertainties:
  1  7.4161e-05
  2  0.931443
  3  18.1419
  4  0.000112698
  5  17.7544
  6  8.16864e-05
  7  18.5931
  8  51.2249
  9  78.1063
  10  0.000284744
  11  1.65622
  12  8.99908e-07
  13  0.000481389
  14  10.2225
  15  11.3819
  16  4.82795e-06
  17  15.6702
  18  0.000308609
  19  0.258441
  20  0.208734
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.463e+01  7.811e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.071e+00  2.087e-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.811e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 2.10e-05

TS (Fixed Index): 1.18
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805079/likelihoodResults_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.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) = 4882.93029351
delta logL = 0.0105392153928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4882.92312263
delta logL = 0.0177101014015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1350       1.0000          .0000       10.000    
     3 'Normalizat'    .88705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0684       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=   4882.923     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.287        90.615        .50053E-04    .23031E-04
   2  Index         2.1351        .81198        .82403E-02    .26872E-03
   3  Normalizat    .88693        .24789        .29148E-03   -.11596E-03
   4  Prefactor     1.0685        .20797        .22558E-03   -.38453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.2868
  Index      = 2.13505
  Normalizat = 0.886926
  Prefactor  = 1.0685
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.923     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.287        87.419        .10011E-04   -1.4103    
   2  Index         2.1351        .78315        .16481E-02   -.61015    
   3  Normalizat    .88693        .24792        .11659E-04   -.96921    
   4  Prefactor     1.0685        .20809        .90233E-05   -.90480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07615e-11
Minuit parameter uncertainties:
  1  87.5945
  2  0.787997
  3  0.248238
  4  0.208247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805079': 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) = 4882.9231225
delta logL = 0.0177102283787

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  6.429e+01  8.759e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.135e+00  7.880e-01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.068e+00  2.082e-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.869e-01  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.14 +/- 0.79
Photon Flux (Free Index): 3.23e-08 +/- 4.86e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.21e-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/805079/cmap_HighResolution_416620801_416880001_4FGL_J1018.4+0528_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='1.65e-05', photon_flux_error='5.40e-08', dlogl='1.77e-02', energy_flux='1.47e-05', photon_flux2='3.23e-08', job_status='DONE', time_completed='2021-09-01 17:46:03.220185', photon_index_error2='0.79', photon_index2='2.14', ts='1.18', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='2.21e-05', EG='0.88', time_epoch_completed='1630543563.22', return_code='0', job_id='805079', GAL2='1.07', EG2='0.89', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='4.86e-08', ts2='1.23', photon_index='2.28' WHERE bin_id='684' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:46:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 805079: <4FGL_J1018.4+0528_daily_bin684> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin684> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:42 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:34:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:34:17 2021
Terminated at Wed Sep  1 17:46:03 2021
Results reported at Wed Sep  1 17:46:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin684 154.617 5.4702 416620801 416880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            921 sec.

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

