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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin452
RA = 154.617, Dec = 5.4702
tmin = 356486401, tmax = 356745601
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='803917', job_status='RUN', time_executed='2021-09-01 17:30:46.534630', time_epoch_executed='1630542646.53' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803917/ft1_4FGL_J1018.4+0528_daily_bin452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803917/ft2_4FGL_J1018.4+0528_daily_bin452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803917/ft1_4FGL_J1018.4+0528_daily_bin452.fits outfile=/scratch/kocevski/803917/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin452.fits ra=154.617 dec=5.4702 rad=12.0 tmin=356486401.0 tmax=356745601.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.54
user 3.29
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803917/ft2_4FGL_J1018.4+0528_daily_bin452.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/803917/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin452.fits evtable="EVENTS" outfile="/scratch/kocevski/803917/ft1_filtered_4FGL_J1018.4+0528_daily_bin452.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803917/ft1_filtered_4FGL_J1018.4+0528_daily_bin452.fits" evtable="EVENTS" scfile=/scratch/kocevski/803917/ft2_4FGL_J1018.4+0528_daily_bin452.fits sctable="SC_DATA" outfile=/scratch/kocevski/803917/ltcube_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.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/803917/ft2_4FGL_J1018.4+0528_daily_bin452.fits
.....................!
real 18.55
user 18.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803917/ft1_filtered_4FGL_J1018.4+0528_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/803917/ft2_4FGL_J1018.4+0528_daily_bin452.fits sctable="SC_DATA" expcube=/scratch/kocevski/803917/ltcube_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.fits outfile=/scratch/kocevski/803917/expmap_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.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/803917/ltcube_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.fits
.....................!
real 192.43
user 188.01
sys 3.85

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/803917/ft1_filtered_4FGL_J1018.4+0528_daily_bin452.fits scfile=/scratch/kocevski/803917/ft2_4FGL_J1018.4+0528_daily_bin452.fits outfile=/scratch/kocevski/803917/cmap_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.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/803917/ft1_filtered_4FGL_J1018.4+0528_daily_bin452.fits scfile=/scratch/kocevski/803917/ft2_4FGL_J1018.4+0528_daily_bin452.fits outfile=/scratch/kocevski/803917/cmap_HighResolution_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0251       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10654E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10951E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2227       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37487E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17400E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.287       1.0000         .10000E-03   10000.    
    16 'norm      '    .68683       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12430E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3603       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5768.124     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2036 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .71117        .25471E-01** at limit **
   2  norm          2.0252        .86807        .72690E-02    .35075E-03
   3  Prefactor     .10000E-03    4.2265        .90712E-02** at limit **
   4  Prefactor     .10000E-03    21.384        .90712E-02** at limit **
   5  Prefactor     .10001E-03    15.229        .90712E-02** at limit **
   6  norm          .10000E-03    4.1855        .90712E-02** at limit **
   7  Prefactor     .10000E-03    4.5859        .90712E-02** at limit **
   8  Prefactor     4.1949        51.868        .49024E-02    .65345E-03
   9  Prefactor     .10006E-03    164.02        .97869E-02** at limit **
  10  Prefactor     .10001E-03    14.823        .90712E-02** at limit **
  11  norm          .10000E-03    .56385        .90712E-02** at limit **
  12  Prefactor     .10000E-03    8.6883        .90712E-02** at limit **
  13  Prefactor     8.7715        3.9783        .33833E-02    .31779E-04
  14  Prefactor     .10000E-03    10.752        .90712E-02** at limit **
  15  Prefactor     13.281        9.5054        .27472E-02   -.22920E-03
  16  norm          .68723        .63939        .10908E-01    .20250E-03
  17  Prefactor     8.1410        12.114        .35119E-02    .20122E-02
  18  Prefactor     .10000E-03    29.734        .90712E-02** at limit **
  19  Normalizat    1.3602        .21152        .59027E-01   -.22736E-04
  20  Prefactor     .97465        .17460        .45951E-01   -.28959E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.02524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19485
  Prefactor  = 0.000100065
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.77154
  Prefactor  = 0.0001
  Prefactor  = 13.2807
  norm       = 0.687226
  Prefactor  = 8.14098
  Prefactor  = 0.0001
  Normalizat = 1.36023
  Prefactor  = 0.974648
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.124     FROM HESSE     STATUS=OK           287 CALLS     2323 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1029        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0252        .86467        .44161E-04   -1.5423    
   3  Prefactor     .10000E-03    4.2310        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    15.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.1859        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6007        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1949        51.969        .19610E-03   -1.5298    
   9  Prefactor     .10006E-03    169.34        .39147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    14.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .57120        .55655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7715        3.9793        .97321E-04   -1.5116    
  14  Prefactor     .10000E-03    10.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.281        9.4957        .10989E-03   -1.4979    
  16  norm          .68723        .63412        .49121E-04   -1.5542    
  17  Prefactor     8.1410        12.268        .70239E-03   -1.5137    
  18  Prefactor     .10000E-03    30.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3602        .24904        .26104E-03   -.81786    
  20  Prefactor     .97465        .20619        .25270E-03   -.93579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02581e-08
Minuit parameter uncertainties:
  1  2.57255e-07
  2  0.864675
  3  1.78431e-06
  4  0.000129253
  5  0.000824676
  6  7.33132e-06
  7  2.37008e-06
  8  29.5613
  9  0.00662995
  10  0.000786363
  11  9.59885e-07
  12  8.7772e-06
  13  3.97943
  14  3.12359e-06
  15  9.49681
  16  0.634127
  17  12.2721
  18  6.8876e-05
  19  0.249259
  20  0.206356
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.001e-04  6.630e-03  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:  9.746e-01  2.064e-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.360e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803917/likelihoodResults_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.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) = 5768.12371933
delta logL = -2.80322165054e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5768.12371933
delta logL = -2.80298554571e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2836       1.0000          .0000       10.000    
     3 'Normalizat'    1.3602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5767.963     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      305 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.701        6293.0        .90712E-02    .11168E-03
   2  Index         1.4630        5.5933        .36425        .17609E-04
   3  Normalizat    1.3653        .75838E-01    .58928E-01   -.24742E-04
   4  Prefactor     .96623        .56790E-01    .45949E-01    .84694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7012
  Index      = 1.46302
  Normalizat = 1.36531
  Prefactor  = 0.966232
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.963     FROM HESSE     STATUS=OK            33 CALLS      338 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.701        56.774        .36285E-03   -1.4674    
   2  Index         1.4630        .88998        .12937E-01   -.78581    
   3  Normalizat    1.3653        .24463        .26060E-03   -.81637    
   4  Prefactor     .96623        .20586        .25360E-03   -.93864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70206e-10
Minuit parameter uncertainties:
  1  56.8893
  2  0.899668
  3  0.244843
  4  0.206024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803917': 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) = 5767.96263554
delta logL = 0.161055756446

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  2.670e+01  5.689e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.463e+00  8.997e-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:  9.662e-01  2.060e-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.365e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/803917/cmap_HighResolution_356486401_356745601_4FGL_J1018.4+0528_daily_bin452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-01 17:40:12.494621', job_id='803917', GAL2='0.97', fit_tolerance='1e-08', EG2='1.37', EG='1.36', time_epoch_completed='1630543212.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.61e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='452' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 803917: <4FGL_J1018.4+0528_daily_bin452> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin452> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:58 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:27:55 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:27:55 2021
Terminated at Wed Sep  1 17:40:13 2021
Results reported at Wed Sep  1 17:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin452 154.617 5.4702 356486401 356745601 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 :                                   564.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            855 sec.

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

