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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin855
RA = 154.617, Dec = 5.4702
tmin = 460944001, tmax = 461203201
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='806426', job_status='RUN', time_executed='2021-09-01 17:38:29.535616', time_epoch_executed='1630543109.54' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806426

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806426/ft1_4FGL_J1018.4+0528_daily_bin855.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806426/ft1_4FGL_J1018.4+0528_daily_bin855.fits outfile=/scratch/kocevski/806426/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin855.fits ra=154.617 dec=5.4702 rad=12.0 tmin=460944001.0 tmax=461203201.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.47
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.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/806426/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin855.fits evtable="EVENTS" outfile="/scratch/kocevski/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.fits" evtable="EVENTS" scfile=/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits sctable="SC_DATA" outfile=/scratch/kocevski/806426/ltcube_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.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/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits
.....................!
real 17.01
user 16.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits sctable="SC_DATA" expcube=/scratch/kocevski/806426/ltcube_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.fits outfile=/scratch/kocevski/806426/expmap_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.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/806426/ltcube_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.fits
.....................!
real 193.15
user 187.89
sys 4.75

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/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.fits scfile=/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits outfile=/scratch/kocevski/806426/cmap_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.fits scfile=/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits outfile=/scratch/kocevski/806426/cmap_HighResolution_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.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.61
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.fits', '/scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits', expMap='/scratch/kocevski/806426/expmap_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.fits', expCube='/scratch/kocevski/806426/ltcube_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806426/Model_4FGL_J1018.4+0528_daily_bin855.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/806426/ft1_filtered_4FGL_J1018.4+0528_daily_bin855.fits
Spacecraft file(s): /scratch/kocevski/806426/ft2_4FGL_J1018.4+0528_daily_bin855.fits
Exposure map: /scratch/kocevski/806426/expmap_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.fits
Exposure cube: /scratch/kocevski/806426/ltcube_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806426/Model_4FGL_J1018.4+0528_daily_bin855.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) = 5495.74764752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8693       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35304E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.574       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .96781       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91095E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6880       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50174E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1483       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=   5495.737     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2089 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8695        1.3474        .53141E-07   -.17138E-03
   2  norm          .10000E-03    .17991        .33516E-07** at limit **
   3  Prefactor     .10000E-03    5.7754        .42235E-07** at limit **
   4  Prefactor     46.917        52.131        .34648E-05   -.20506E-05
   5  Prefactor     .10000E-03    34.621        .53147E-06** at limit **
   6  norm          10.198        13.469        .53799E-06   -.30115E-04
   7  Prefactor     .10000E-03    15.906        .39180E-06** at limit **
   8  Prefactor     .10000E-03    25.471       -.23837E-08** at limit **
   9  Prefactor     33.569        45.876       -.40923E-05   -.21167E-04
  10  Prefactor     .10000E-03    11.606        .25627E-06** at limit **
  11  norm          .96791        1.4604       -.20536E-06   -.10490E-02
  12  Prefactor     .10000E-03    6.9552        .15649E-06** at limit **
  13  Prefactor     .10000E-03    1.6105       -.12913E-06** at limit **
  14  Prefactor     .10028E-03    5.8117       -.10343E-06** at limit **
  15  Prefactor     .10000E-03    3.5683       -.23912E-07** at limit **
  16  norm          1.6878        .92079        .18365E-06   -.62385E-03
  17  Prefactor     16.670        14.633       -.11265E-05   -.11672E-03
  18  Prefactor     .10001E-03    160.16        .48718E-04** at limit **
  19  Normalizat    1.0833        .20320       -.17656E-05   -.21917E-03
  20  Prefactor     1.1483        .17351        .38994E-06   -.34775E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9171
  Prefactor  = 0.0001
  norm       = 10.1981
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 33.5694
  Prefactor  = 0.0001
  norm       = 0.967912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010028
  Prefactor  = 0.0001
  norm       = 1.68777
  Prefactor  = 16.6695
  Prefactor  = 0.00010001
  Normalizat = 1.08334
  Prefactor  = 1.14834
 **********
 **   18 **HESSE 
 **********

 FCN=   5495.737     FROM HESSE     STATUS=OK           301 CALLS     2390 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8695        1.3492        .69661E-04   -1.5435    
   2  norm          .10000E-03    .18624        .61345E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7961        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.917        52.228        .58541E-04   -1.4337    
   5  Prefactor     .10000E-03    34.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.198        13.457        .12545E-03   -1.5069    
   7  Prefactor     .10000E-03    16.028        .42639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.569        45.221        .69157E-04   -1.4549    
  10  Prefactor     .10000E-03    11.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .96791        1.3407        .10491E-02   -1.5511    
  12  Prefactor     .10000E-03    7.1352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6264        .91802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10028E-03    11.105        .57612E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5811        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6878        .93566        .42723E-04   -1.5448    
  17  Prefactor     16.670        14.903        .98110E-04   -1.4891    
  18  Prefactor     .10001E-03    157.60        .42311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0833        .24180        .27112E-03   -.90288    
  20  Prefactor     1.1483        .20641        .23082E-03   -.87936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02215e-10
Minuit parameter uncertainties:
  1  1.34922
  2  3.18749e-07
  3  7.18946e-06
  4  52.2789
  5  3.35387e-05
  6  13.4606
  7  0.00036895
  8  4.49598e-05
  9  45.2676
  10  7.36243e-05
  11  1.34074
  12  8.57527e-06
  13  4.6134e-06
  14  0.00352623
  15  4.99457e-06
  16  0.935664
  17  14.9068
  18  0.00248422
  19  0.242047
  20  0.206551
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.357e+01  4.527e+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.148e+00  2.066e-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.083e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806426/likelihoodResults_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.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) = 5495.73658423
delta logL = 1.92886727746e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5495.73656416
delta logL = 3.93548707507e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.966       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2748       1.0000          .0000       10.000    
     3 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1483       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=   5495.737     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.973        71.639        .68758E-04    .94246E-05
   2  Index         2.2749        1.0855        .86864E-02    .30526E-03
   3  Normalizat    1.0836        .23571        .27110E-03    .29667E-03
   4  Prefactor     1.1482        .20523        .23083E-03    .39378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9731
  Index      = 2.27486
  Normalizat = 1.08359
  Prefactor  = 1.14821
 **********
 **   18 **HESSE 
 **********

 FCN=   5495.737     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.973        64.997        .27503E-05   -1.4542    
   2  Index         2.2749        .98567        .17373E-02   -.57642    
   3  Normalizat    1.0836        .23551        .54220E-04   -.90281    
   4  Prefactor     1.1482        .20519        .46166E-04   -.87940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96283e-10
Minuit parameter uncertainties:
  1  65.1327
  2  0.994983
  3  0.235734
  4  0.205328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806426': 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) = 5495.73656386
delta logL = 3.96558016291e-05

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.397e+01  6.513e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.275e+00  9.950e-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.148e+00  2.053e-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.084e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
Ra Dec: 154.617 5.470

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/806426/cmap_HighResolution_460944001_461203201_4FGL_J1018.4+0528_daily_bin855.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 17:47:48.212359', job_id='806426', GAL2='1.15', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630543668.21', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.97e-05', ts2='0.86', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='855' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:47:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 806426: <4FGL_J1018.4+0528_daily_bin855> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin855> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:46 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:36: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 17:36:37 2021
Terminated at Wed Sep  1 17:47:48 2021
Results reported at Wed Sep  1 17:47:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin855 154.617 5.4702 460944001 461203201 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 :                                   555.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            722 sec.

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

