/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 194 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin56
RA = 154.607, Dec = 35.6802
tmin = 253843201, tmax = 254102401
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='809515', job_status='RUN', time_executed='2021-09-01 17:49:42.841014', time_epoch_executed='1630543782.84' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809515/ft1_4FGL_J1018.4+3540_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809515/ft1_4FGL_J1018.4+3540_daily_bin56.fits outfile=/scratch/kocevski/809515/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin56.fits ra=154.607 dec=35.6802 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.53
user 1.30
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.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/809515/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/809515/ltcube_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.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/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits
.....................!
real 17.11
user 16.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/809515/ltcube_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.fits outfile=/scratch/kocevski/809515/expmap_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.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/809515/ltcube_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.fits
.....................!
real 191.44
user 185.94
sys 4.72

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits scfile=/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits outfile=/scratch/kocevski/809515/cmap_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.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.607 yref=35.6802 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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits scfile=/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits outfile=/scratch/kocevski/809515/cmap_HighResolution_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.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.607 yref=35.6802 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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809515/Model_4FGL_J1018.4+3540_daily_bin56.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/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits.....................!
real 46.32
user 44.96
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits', '/scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits', expMap='/scratch/kocevski/809515/expmap_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.fits', expCube='/scratch/kocevski/809515/ltcube_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809515/Model_4FGL_J1018.4+3540_daily_bin56.xml', optimizer='MINUIT')

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

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809515/ft1_filtered_4FGL_J1018.4+3540_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/809515/ft2_4FGL_J1018.4+3540_daily_bin56.fits
Exposure map: /scratch/kocevski/809515/expmap_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.fits
Exposure cube: /scratch/kocevski/809515/ltcube_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809515/Model_4FGL_J1018.4+3540_daily_bin56.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) = 5007.26037335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10542E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .17458E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.148       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.565       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3067       1.0000         .10000E-03   10000.    
     9 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0183       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9965       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.017       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99975       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5007.213     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3308 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1350        .21046E-06** at limit **
   2  norm          .10000E-03    20.302       -.88382E-05** at limit **
   3  Prefactor     11.150        26.611        .14136E-05   -.24929E-04
   4  Prefactor     53.435        34.394       -.29400E-05    .11728E-03
   5  Prefactor     16.582        35.909        .15465E-04   -.79706E-04
   6  Prefactor     12.334        8.4120       -.10027E-06   -.24694E-04
   7  Prefactor     .10000E-03    3.3562       -.50535E-07** at limit **
   8  Prefactor     6.3076        3.2134        .43423E-08   -.10997E-03
   9  norm          .10000E-03    17.558       -.49478E-06** at limit **
  10  Prefactor     4.0517        4.3264        .30347E-06   -.18507E-03
  11  Prefactor     .10000E-03    9.9661       -.39637E-05** at limit **
  12  Prefactor     12.786        6.2334       -.57584E-06   -.20945E-02
  13  norm          .10000E-03    6.6203        .12251E-06** at limit **
  14  Prefactor     37.069        52.759       -.14011E-04    .11219E-03
  15  Prefactor     .10000E-03    9.1984        .24084E-05** at limit **
  16  Prefactor     1.0096        3.6413       -.15243E-05   -.87115E-03
  17  Prefactor     .10000E-03    1.4630        .51525E-07** at limit **
  18  Prefactor     .10000E-03    84.316       -.23960E-06** at limit **
  19  Prefactor     .10000E-03    17.045        .55034E-05** at limit **
  20  Prefactor     .10000E-03    27.901        .45350E-05** at limit **
  21  Prefactor     .10000E-03    5.1413       -.27384E-05** at limit **
  22  norm          1.9965        .40961       -.52309E-08    .39515E-04
  23  Prefactor     13.017        13.501       -.52531E-07   -.34833E-04
  24  Prefactor     .10000E-03    5.0474        .29541E-05** at limit **
  25  norm          .10000E-03    4.6780       -.46909E-06** at limit **
  26  Normalizat    .99924        .17391        .30764E-06    .52105E-04
  27  Prefactor     .68644        .19370        .27469E-06    .36959E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 11.1503
  Prefactor  = 53.4349
  Prefactor  = 16.5819
  Prefactor  = 12.334
  Prefactor  = 0.0001
  Prefactor  = 6.30764
  norm       = 0.0001
  Prefactor  = 4.05175
  Prefactor  = 0.0001
  Prefactor  = 12.7862
  norm       = 0.0001
  Prefactor  = 37.0688
  Prefactor  = 0.0001
  Prefactor  = 1.00965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9965
  Prefactor  = 13.0171
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.999242
  Prefactor  = 0.686444
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.213     FROM HESSE     STATUS=OK           484 CALLS     3792 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.003        .28009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.150        26.593        .11999E-03   -1.5040    
   4  Prefactor     53.435        34.280        .54870E-04   -1.4245    
   5  Prefactor     16.582        35.554        .98406E-04   -1.4893    
   6  Prefactor     12.334        8.4080        .11407E-03   -1.5005    
   7  Prefactor     .10000E-03    3.3655        .12659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3076        3.2136        .84955E-04   -1.5206    
   9  norm          .10000E-03    18.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0517        4.3171        .13299E-03   -1.5305    
  11  Prefactor     .10000E-03    9.9529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.786        6.3516        .54445E-03   -1.4993    
  13  norm          .10000E-03    6.6796        .17773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.069        52.450        .65816E-04   -1.4490    
  15  Prefactor     .10000E-03    9.1960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0096        3.6766        .24678E-03   -1.5507    
  17  Prefactor     .10000E-03    1.4662        .83573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    85.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1470        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9965        .41063        .19618E-04   -1.5425    
  23  Prefactor     13.017        13.517        .11102E-03   -1.4986    
  24  Prefactor     .10000E-03    5.0355        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.6806        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99924        .20585        .21627E-03   -.93056    
  27  Prefactor     .68644        .22692        .30201E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82546e-09
Minuit parameter uncertainties:
  1  0.0003288
  2  0.000163411
  3  26.6213
  4  34.2931
  5  35.5992
  6  8.40881
  7  1.43072e-06
  8  3.21364
  9  2.54088e-05
  10  4.31743
  11  7.13603e-05
  12  6.35189
  13  1.31707e-05
  14  52.5152
  15  3.58501e-05
  16  3.67743
  17  2.74815e-06
  18  0.000391967
  19  0.000125683
  20  0.000137383
  21  3.95862e-05
  22  0.410629
  23  13.5201
  24  3.85114e-05
  25  5.95722e-06
  26  0.206014
  27  0.227227
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.279e+01  6.352e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.864e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.992e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.51
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.38e-05

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) = 5007.0552706
delta logL = 0.158024558642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5007.04727975
delta logL = 0.166015400795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.181       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2283       1.0000          .0000       10.000    
     3 'Normalizat'    1.0392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   5007.047     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      274 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.181        7.1277        .10636E-03   -.60402E-03
   2  Index         2.2283        .61798        .79015E-02   -.10039E-03
   3  Normalizat    1.0392        .20306        .21271E-03    .75362E-04
   4  Prefactor     .65498        .22897        .30848E-03    .61362E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1815
  Index      = 2.22831
  Normalizat = 1.03924
  Prefactor  = 0.654982
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.047     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.181        7.1180        .42544E-05   -1.4955    
   2  Index         2.2283        .61550        .31606E-03   -.58757    
   3  Normalizat    1.0392        .20308        .85082E-05   -.91727    
   4  Prefactor     .65498        .22904        .12339E-04   -1.0532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90346e-10
Minuit parameter uncertainties:
  1  7.11844
  2  0.617769
  3  0.203234
  4  0.229371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809515': 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) = 5007.04727975
delta logL = 0.166015403288

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.418e+01  7.118e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.228e+00  6.178e-01  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.550e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.039e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.77
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.23 +/- 0.62
Photon Flux (Free Index): 7.62e-08 +/- 6.26e-08
Energy Flux (Free Index): 3.25e-05 +/- 2.18e-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/809515/cmap_HighResolution_253843201_254102401_4FGL_J1018.4+3540_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.25e-05', photon_flux_error='5.20e-08', dlogl='1.66e-01', energy_flux='2.77e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-09-01 18:00:25.717729', photon_index_error2='0.62', photon_index2='2.23', ts='11.51', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.00', time_epoch_completed='1630544425.72', return_code='0', job_id='809515', GAL2='0.65', EG2='1.04', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.26e-08', ts2='11.77', photon_index='2.59' WHERE bin_id='56' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 809515: <4FGL_J1018.4+3540_daily_bin56> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin56> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:28 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:46:20 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:46:20 2021
Terminated at Wed Sep  1 18:00:26 2021
Results reported at Wed Sep  1 18:00:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin56 154.607 35.6802 253843201 254102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            898 sec.

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

