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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin624
RA = 154.607, Dec = 35.6802
tmin = 401068801, tmax = 401328001
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='811442', job_status='RUN', time_executed='2021-09-01 17:54:30.843983', time_epoch_executed='1630544070.84' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811442/ft1_4FGL_J1018.4+3540_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811442/ft2_4FGL_J1018.4+3540_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811442/ft1_4FGL_J1018.4+3540_daily_bin624.fits outfile=/scratch/kocevski/811442/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin624.fits ra=154.607 dec=35.6802 rad=12.0 tmin=401068801.0 tmax=401328001.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.43
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811442/ft1_filtered_4FGL_J1018.4+3540_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/811442/ft2_4FGL_J1018.4+3540_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/811442/ltcube_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.fits outfile=/scratch/kocevski/811442/expmap_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.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/811442/ltcube_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.fits
.....................!
real 193.55
user 186.51
sys 5.74

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/811442/ft1_filtered_4FGL_J1018.4+3540_daily_bin624.fits scfile=/scratch/kocevski/811442/ft2_4FGL_J1018.4+3540_daily_bin624.fits outfile=/scratch/kocevski/811442/cmap_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811442/ft1_filtered_4FGL_J1018.4+3540_daily_bin624.fits scfile=/scratch/kocevski/811442/ft2_4FGL_J1018.4+3540_daily_bin624.fits outfile=/scratch/kocevski/811442/cmap_HighResolution_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11472E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47817       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .90079E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3431       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.607       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4357       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1882       1.0000         .10000E-03   10000.    
    25 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .61621       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=   5390.072     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3338 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.4157        .70233E-06** at limit **
   2  norm          .10000E-03    4.0504        .57221E-07** at limit **
   3  Prefactor     8.9008        19.168       -.11339E-06   -.21354E-04
   4  Prefactor     .10000E-03    15.613        .55470E-06** at limit **
   5  Prefactor     .10000E-03    51.220       -.70433E-06** at limit **
   6  Prefactor     5.7936        5.2334        .29223E-07   -.89435E-04
   7  Prefactor     .10000E-03    6.2077        .43696E-06** at limit **
   8  Prefactor     .47830        1.6931       -.35978E-07    .98991E-04
   9  norm          4.8932        6.0803       -.12871E-05   -.31188E-03
  10  Prefactor     .10002E-03    15.193       -.10193E-04** at limit **
  11  Prefactor     13.054        29.471        .53930E-05    .13082E-03
  12  Prefactor     .10000E-03    2.2557       -.64854E-06** at limit **
  13  norm          .10006E-03    18.895        .97213E-05** at limit **
  14  Prefactor     39.583        62.355        .27645E-06   -.41329E-04
  15  Prefactor     .10000E-03    37.863        .16103E-05** at limit **
  16  Prefactor     7.4839        4.2267        .16315E-06    .77439E-03
  17  Prefactor     2.3442        4.4989       -.29966E-06    .87047E-04
  18  Prefactor     .10000E-03    14.011        .88327E-06** at limit **
  19  Prefactor     11.858        20.268       -.16844E-06   -.24894E-05
  20  Prefactor     83.586        87.448       -.14387E-05    .43509E-04
  21  Prefactor     13.400        11.416        .37960E-07   -.43582E-05
  22  norm          2.4355        .44282       -.14106E-07   -.13779E-02
  23  Prefactor     .10000E-03    36.422        .18681E-05** at limit **
  24  Prefactor     3.1855        12.300       -.75162E-07   -.22620E-04
  25  norm          .10000E-03    11.222        .11445E-07** at limit **
  26  Normalizat    1.0296        .16891        .90433E-06   -.18120E-03
  27  Prefactor     .61635        .19205       -.26653E-05    .55346E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.9008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79359
  Prefactor  = 0.0001
  Prefactor  = 0.478299
  norm       = 4.89322
  Prefactor  = 0.000100021
  Prefactor  = 13.0536
  Prefactor  = 0.000100004
  norm       = 0.000100056
  Prefactor  = 39.5826
  Prefactor  = 0.0001
  Prefactor  = 7.48392
  Prefactor  = 2.34419
  Prefactor  = 0.0001
  Prefactor  = 11.8576
  Prefactor  = 83.5864
  Prefactor  = 13.4002
  norm       = 2.43551
  Prefactor  = 0.0001
  Prefactor  = 3.1855
  norm       = 0.0001
  Normalizat = 1.0296
  Prefactor  = 0.616349
 **********
 **   18 **HESSE 
 **********

 FCN=   5390.072     FROM HESSE     STATUS=OK           492 CALLS     3830 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7817        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0520        .14431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9008        19.148        .13434E-03   -1.5111    
   4  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7936        5.2289        .15418E-03   -1.5227    
   7  Prefactor     .10000E-03    6.3014        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47830        1.6852        .17027E-03   -1.5570    
   9  norm          4.8932        6.2226        .90914E-03   -1.5266    
  10  Prefactor     .10002E-03    21.888        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.054        29.848        .11107E-03   -1.4985    
  12  Prefactor     .10000E-03    9.0280        .19819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10006E-03    43.852        .31986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.583        62.374        .63725E-04   -1.4449    
  15  Prefactor     .10000E-03    38.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4839        4.1782        .10693E-03   -1.5161    
  17  Prefactor     2.3442        4.4127        .20216E-03   -1.5402    
  18  Prefactor     .10000E-03    14.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.858        20.258        .11630E-03   -1.5019    
  20  Prefactor     83.586        87.335        .21965E-03   -1.3877    
  21  Prefactor     13.400        11.414        .10942E-03   -1.4976    
  22  norm          2.4355        .44486        .19384E-04   -1.5396    
  23  Prefactor     .10000E-03    37.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1855        12.341        .22694E-03   -1.5351    
  25  norm          .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0296        .18811        .19998E-03   -.92045    
  27  Prefactor     .61635        .21397        .30277E-03   -1.0690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31763e-09
Minuit parameter uncertainties:
  1  2.41495e-05
  2  3.97244e-06
  3  19.161
  4  4.54316e-05
  5  5.18942e-06
  6  5.22933
  7  4.58833e-05
  8  1.68539
  9  6.22344
  10  0.00136551
  11  29.8822
  12  0.000369152
  13  0.00313502
  14  62.4766
  15  0.000236775
  16  4.17832
  17  4.41332
  18  1.54411e-06
  19  20.2696
  20  87.47
  21  11.4154
  22  0.444865
  23  0.000138919
  24  12.3509
  25  9.35451e-05
  26  0.188231
  27  0.214253
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.692e-04  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.163e-01  2.143e-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.030e+00  1.882e-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: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811442/likelihoodResults_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.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) = 5390.07249309
delta logL = -0.00052792705992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5390.07196547
delta logL = -3.02674379782e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5887       1.0000          .0000       10.000    
     3 'Normalizat'    1.0297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61631       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.

 FCN=   5390.072     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25299        .57090E-01** at limit **
   2  Index         2.5875        5.9524        .50000        .96877E-06
   3  Normalizat    1.0296        .13703E-02    .42195E-01    .37879E-03
   4  Prefactor     .61635        .16496E-02    .68410E-01    .20700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.58748
  Normalizat = 1.0296
  Prefactor  = 0.616346
 **********
 **   18 **HESSE 
 **********

 FCN=   5390.072     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.833        .19844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5875        8.5429        .50000       -.50351    
   3  Normalizat    1.0296        .10954E-01    .19998E-03   -.92045    
   4  Prefactor     .61635        .13165E-01    .30276E-03   -1.0690    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.6224e-11
Minuit parameter uncertainties:
  1  0.001064
  2  236.977
  3  0.0109541
  4  0.0131655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811442': 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) = 5390.07196516
delta logL = 6.06632966083e-10

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.064e-03  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.587e+00  2.370e+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:  6.163e-01  1.317e-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.030e+00  1.095e-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/811442/cmap_HighResolution_401068801_401328001_4FGL_J1018.4+3540_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-01 18:07:10.694601', job_id='811442', GAL2='0.62', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630544830.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='6.07e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='624' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:07:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 811442: <4FGL_J1018.4+3540_daily_bin624> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin624 154.607 35.6802 401068801 401328001 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 :                                   758.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            954 sec.

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

