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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin603
RA = 154.607, Dec = 35.6802
tmin = 395625601, tmax = 395884801
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='811410', job_status='RUN', time_executed='2021-09-01 17:51:54.382759', time_epoch_executed='1630543914.38' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811410/ft1_4FGL_J1018.4+3540_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811410/ft1_4FGL_J1018.4+3540_daily_bin603.fits outfile=/scratch/kocevski/811410/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin603.fits ra=154.607 dec=35.6802 rad=12.0 tmin=395625601.0 tmax=395884801.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 4.55
user 4.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811410/ft1_filtered_4FGL_J1018.4+3540_daily_bin603.fits" evtable="EVENTS" scfile=/scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits sctable="SC_DATA" outfile=/scratch/kocevski/811410/ltcube_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.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/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits
.....................!
real 15.47
user 15.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811410/ft1_filtered_4FGL_J1018.4+3540_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/811410/ltcube_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.fits outfile=/scratch/kocevski/811410/expmap_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.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/811410/ltcube_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.fits
.....................!
real 192.81
user 186.57
sys 4.49

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/811410/ft1_filtered_4FGL_J1018.4+3540_daily_bin603.fits scfile=/scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits outfile=/scratch/kocevski/811410/cmap_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811410/ft1_filtered_4FGL_J1018.4+3540_daily_bin603.fits scfile=/scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits outfile=/scratch/kocevski/811410/cmap_HighResolution_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/811410/ft1_filtered_4FGL_J1018.4+3540_daily_bin603.fits', '/scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits', expMap='/scratch/kocevski/811410/expmap_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.fits', expCube='/scratch/kocevski/811410/ltcube_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/811410/Model_4FGL_J1018.4+3540_daily_bin603.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/811410/ft1_filtered_4FGL_J1018.4+3540_daily_bin603.fits
Spacecraft file(s): /scratch/kocevski/811410/ft2_4FGL_J1018.4+3540_daily_bin603.fits
Exposure map: /scratch/kocevski/811410/expmap_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.fits
Exposure cube: /scratch/kocevski/811410/ltcube_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/811410/Model_4FGL_J1018.4+3540_daily_bin603.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) = 5831.23043407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1500       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.875       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27504       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0784       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9438       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1518       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2739       1.0000         .10000E-03   10000.    
    22 'norm      '    3.8055       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.405       1.0000         .10000E-03   10000.    
    25 'norm      '    14.921       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90490       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=   5831.143     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3338 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1525        8.3057        .82146E-05   -.23792E-04
   2  norm          6.1623        14.323       -.25205E-05    .20092E-04
   3  Prefactor     .10000E-03    23.134       -.23999E-05** at limit **
   4  Prefactor     35.820        39.442        .80218E-05   -.21941E-05
   5  Prefactor     37.052        44.792       -.39154E-05   -.16956E-04
   6  Prefactor     .10000E-03    3.7441       -.50580E-07** at limit **
   7  Prefactor     4.3532        6.8380        .26649E-06   -.27991E-04
   8  Prefactor     .27481        1.7800        .31780E-06   -.20730E-03
   9  norm          .10000E-03    3.6939        .10163E-06** at limit **
  10  Prefactor     1.0774        2.7693        .32846E-06   -.25871E-04
  11  Prefactor     60.135        33.441       -.12837E-05   -.27125E-04
  12  Prefactor     .10000E-03    1.2922        .38901E-07** at limit **
  13  norm          1.9417        10.382        .10105E-04   -.38316E-05
  14  Prefactor     34.953        59.714        .30158E-05   -.12129E-04
  15  Prefactor     .10000E-03    12.673       -.11217E-05** at limit **
  16  Prefactor     4.1513        4.4848        .93468E-06   -.93627E-04
  17  Prefactor     .10000E-03    5.5337        .30364E-06** at limit **
  18  Prefactor     .10000E-03    14.564        .21039E-05** at limit **
  19  Prefactor     41.947        29.380        .63214E-06   -.14231E-04
  20  Prefactor     .10000E-03    33.735        .11740E-05** at limit **
  21  Prefactor     5.2738        11.254        .54795E-06   -.52279E-05
  22  norm          3.8055        .56552        .50520E-08   -.22772E-03
  23  Prefactor     .10000E-03    18.681        .38580E-06** at limit **
  24  Prefactor     25.399        22.705        .51501E-06   -.29124E-04
  25  norm          14.917        16.273        .33169E-06   -.31398E-04
  26  Normalizat    1.0739        .19138       -.90506E-06   -.21501E-04
  27  Prefactor     .90515        .21674       -.26568E-05   -.17051E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15247
  norm       = 6.16226
  Prefactor  = 0.0001
  Prefactor  = 35.8199
  Prefactor  = 37.0519
  Prefactor  = 0.0001
  Prefactor  = 4.3532
  Prefactor  = 0.274809
  norm       = 0.0001
  Prefactor  = 1.07744
  Prefactor  = 60.135
  Prefactor  = 0.0001
  norm       = 1.94174
  Prefactor  = 34.9532
  Prefactor  = 0.0001
  Prefactor  = 4.15131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9468
  Prefactor  = 0.0001
  Prefactor  = 5.27383
  norm       = 3.80552
  Prefactor  = 0.0001
  Prefactor  = 25.3994
  norm       = 14.9167
  Normalizat = 1.07389
  Prefactor  = 0.905148
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.143     FROM HESSE     STATUS=OK           496 CALLS     3834 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1525        8.3259        .14051E-02   -1.5415    
   2  norm          6.1623        14.309        .16175E-03   -1.5211    
   3  Prefactor     .10000E-03    23.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.820        39.502        .66910E-04   -1.4510    
   5  Prefactor     37.052        44.817        .65858E-04   -1.4490    
   6  Prefactor     .10000E-03    3.7623        .14428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3532        6.8283        .19306E-03   -1.5291    
   8  Prefactor     .27481        3.2358        .19163E-02   -1.5603    
   9  norm          .10000E-03    3.7145        .14333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0774        2.7157        .19468E-03   -1.5500    
  11  Prefactor     60.135        33.430        .51740E-04   -1.4155    
  12  Prefactor     .10000E-03    1.2970        .84708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9417        10.351        .14887E-02   -1.5429    
  14  Prefactor     34.953        59.771        .67772E-04   -1.4525    
  15  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1513        4.4550        .78742E-03   -1.5300    
  17  Prefactor     .10000E-03    5.7726        .35050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.947        29.377        .61893E-04   -1.4412    
  20  Prefactor     .10000E-03    33.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2738        11.244        .17502E-03   -1.5249    
  22  norm          3.8055        .56993        .20428E-04   -1.5318    
  23  Prefactor     .10000E-03    18.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.399        22.844        .79476E-04   -1.4700    
  25  norm          14.917        16.259        .10369E-03   -1.4935    
  26  Normalizat    1.0739        .22531        .24238E-03   -.90595    
  27  Prefactor     .90515        .25544        .31179E-03   -.95961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91513e-08
Minuit parameter uncertainties:
  1  8.33041
  2  14.3174
  3  3.45577e-05
  4  39.5306
  5  44.858
  6  5.79788e-06
  7  6.82951
  8  1.88575
  9  5.24528e-06
  10  2.71602
  11  33.4404
  12  6.63112e-07
  13  8.96862
  14  59.8733
  15  2.44943e-06
  16  4.4554
  17  1.54633e-05
  18  5.76878e-06
  19  29.3875
  20  1.79585e-05
  21  11.2484
  22  0.569934
  23  4.53856e-05
  24  22.8519
  25  16.2634
  26  0.225514
  27  0.255775
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  6.631e-07  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:  9.051e-01  2.558e-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.074e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811410/likelihoodResults_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.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) = 5831.14687346
delta logL = -0.00358272708854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5831.14329055
delta logL = 1.88296326087e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5781       1.0000          .0000       10.000    
     3 'Normalizat'    1.0739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90518       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=   5831.143     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.595        .85231E-02** at limit **
   2  Index         2.1075        5.9630        .50000        .51523E-07
   3  Normalizat    1.0739        .13184E-01    .24238E-03   -.22647E-03
   4  Prefactor     .90515        .15769E-01    .31180E-03   -.16284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10754
  Normalizat = 1.07388
  Prefactor  = 0.905151
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.143     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.81        .90610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1075        8.3157        .50000       -.61688    
   3  Normalizat    1.0739        .44033E-01    .48476E-04   -.90595    
   4  Prefactor     .90515        .52668E-01    .12472E-04   -.95961    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70547e-10
Minuit parameter uncertainties:
  1  1.01251e-05
  2  711.556
  3  0.0440348
  4  0.0526708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811410': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5831.14328601
delta logL = 4.72730971524e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.013e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.108e+00  7.116e+02  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:  9.052e-01  5.267e-02  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.074e+00  4.403e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/811410/cmap_HighResolution_395625601_395884801_4FGL_J1018.4+3540_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-09-01 18:05:13.198663', job_id='811410', GAL2='0.91', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630544713.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='603' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:05:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 811410: <4FGL_J1018.4+3540_daily_bin603> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin603> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:51:15 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:51:45 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:51:45 2021
Terminated at Wed Sep  1 18:05:13 2021
Results reported at Wed Sep  1 18:05:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin603 154.607 35.6802 395625601 395884801 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 :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            838 sec.

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

