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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1111
RA = 154.607, Dec = 35.6802
tmin = 527299201, tmax = 527558401
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='814136', job_status='RUN', time_executed='2021-09-01 18:00:45.649722', time_epoch_executed='1630544445.65' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814136/ft1_4FGL_J1018.4+3540_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814136/ft2_4FGL_J1018.4+3540_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814136/ft1_4FGL_J1018.4+3540_daily_bin1111.fits outfile=/scratch/kocevski/814136/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1111.fits ra=154.607 dec=35.6802 rad=12.0 tmin=527299201.0 tmax=527558401.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.94
user 4.65
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814136/ft1_filtered_4FGL_J1018.4+3540_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/814136/ft2_4FGL_J1018.4+3540_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/814136/ltcube_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.fits outfile=/scratch/kocevski/814136/expmap_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.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/814136/ltcube_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.fits
.....................!
real 193.47
user 187.34
sys 5.44

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/814136/ft1_filtered_4FGL_J1018.4+3540_daily_bin1111.fits scfile=/scratch/kocevski/814136/ft2_4FGL_J1018.4+3540_daily_bin1111.fits outfile=/scratch/kocevski/814136/cmap_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814136/ft1_filtered_4FGL_J1018.4+3540_daily_bin1111.fits scfile=/scratch/kocevski/814136/ft2_4FGL_J1018.4+3540_daily_bin1111.fits outfile=/scratch/kocevski/814136/cmap_HighResolution_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.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.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10655E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13443E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.5754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0900       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .37157       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.599       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12366E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32300E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2023       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12163E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5494       1.0000         .10000E-03   10000.    
    25 'norm      '    27.731       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1663       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=   5846.216     FROM MIGRAD    STATUS=CONVERGED   1199 CALLS     4030 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5740        .18142E-02** at limit **
   2  norm          .10000E-03    5.0398        .16763E-02** at limit **
   3  Prefactor     .10000E-03    68.149        .36285E-03** at limit **
   4  Prefactor     .10000E-03    13.532        .18142E-02** at limit **
   5  Prefactor     .10000E-03    144.94        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.9011        .16330E-02** at limit **
   7  Prefactor     3.2870        8.9495        .11165E-02    .94236E-04
   8  Prefactor     .10000E-03    1.7950        .15516E-02** at limit **
   9  norm          9.5806        8.1334        .12951E-03    .27916E-04
  10  Prefactor     1.0858        4.6324        .29735E-03    .71421E-04
  11  Prefactor     .10000E-03    24.217        .18142E-02** at limit **
  12  Prefactor     .10000E-03    7.7815        .36285E-02** at limit **
  13  norm          .35016        60.514        .41397E-02    .20022E-03
  14  Prefactor     45.643        75.676        .59374E-04    .10876E-04
  15  Prefactor     .10000E-03    67.849        .18142E-02** at limit **
  16  Prefactor     .21651        23.932        .23830E-02    .34484E-03
  17  Prefactor     5.6203        5.9890        .16946E-03    .96002E-04
  18  Prefactor     .10000E-03    16.108        .18142E-02** at limit **
  19  Prefactor     .10000E-03    12.400        .18142E-02** at limit **
  20  Prefactor     .10000E-03    118.99        .22936    ** at limit **
  21  Prefactor     6.2105        13.234        .16119E-03   -.33007E-04
  22  norm          2.4413        .52139        .22601E-04    .24647E-03
  23  Prefactor     .10000E-03    10.059        .18142E-02** at limit **
  24  Prefactor     2.5593        36.552        .12787E-02    .28282E-04
  25  norm          27.747        21.438        .76076E-04    .74719E-05
  26  Normalizat    1.0703        .23223        .25039E-03    .74145E-04
  27  Prefactor     1.1665        .26523        .28807E-03   -.85521E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.287
  Prefactor  = 0.0001
  norm       = 9.58062
  Prefactor  = 1.08578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.350157
  Prefactor  = 45.6425
  Prefactor  = 0.000100005
  Prefactor  = 0.216514
  Prefactor  = 5.62027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.21046
  norm       = 2.44128
  Prefactor  = 0.0001
  Prefactor  = 2.55929
  norm       = 27.7472
  Normalizat = 1.07025
  Prefactor  = 1.1665
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.216     FROM HESSE     STATUS=OK           478 CALLS     4508 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.0398        .33526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    68.153        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    145.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9050        .32660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2870        8.9427        .44661E-04   -1.5345    
   8  Prefactor     .10000E-03    1.7988        .31032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.5806        8.1326        .51802E-05   -1.5089    
  10  Prefactor     1.0858        4.6063        .11894E-04   -1.5500    
  11  Prefactor     .10000E-03    24.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8075        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35016        58.798        .16559E-03   -1.5590    
  14  Prefactor     45.643        75.647        .11875E-04   -1.4356    
  15  Prefactor     .10000E-03    67.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21651        22.996        .95321E-04   -1.5615    
  17  Prefactor     5.6203        5.9826        .67784E-05   -1.5234    
  18  Prefactor     .10000E-03    16.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    120.55        .22728       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2105        13.232        .64477E-05   -1.5209    
  22  norm          2.4413        .52004        .90406E-06   -1.5395    
  23  Prefactor     .10000E-03    10.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.5593        36.348        .51147E-04   -1.5388    
  25  norm          27.747        21.433        .30430E-05   -1.4654    
  26  Normalizat    1.0703        .23188        .10016E-04   -.90713    
  27  Prefactor     1.1665        .26548        .11523E-04   -.87369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22436e-09
Minuit parameter uncertainties:
  1  9.75957e-06
  2  7.66423e-07
  3  0.000156882
  4  2.84598e-05
  5  0.000796472
  6  4.52838e-06
  7  8.94632
  8  1.28455e-05
  9  8.13358
  10  4.47314
  11  3.69298e-05
  12  2.56309e-05
  13  9.08271
  14  75.8072
  15  0.00113221
  16  4.46346
  17  5.98326
  18  4.24412e-05
  19  6.74522e-05
  20  0.00105461
  21  13.2387
  22  0.520044
  23  2.87761e-05
  24  19.3038
  25  21.4391
  26  0.232104
  27  0.26578
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.563e-05  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:  1.166e+00  2.658e-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.070e+00  2.321e-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: 9.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814136/likelihoodResults_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.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) = 5846.216388
delta logL = -0.000611601883065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5846.21577417
delta logL = 2.22834842134e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6920       1.0000          .0000       10.000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1666       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=   5845.271     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      289 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21398E-01    .27872        .20209E-02    .10604E-02
   2  Index         6.4488        3.0863        .16634        .44988E-04
   3  Normalizat    .97215        .43180E-01    .59021E-01    .22022E-03
   4  Prefactor     1.2469        .51830E-01    .63304E-01    .10414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0213978
  Index      = 6.44881
  Normalizat = 0.972151
  Prefactor  = 1.24689
 **********
 **   18 **HESSE 
 **********

 FCN=   5845.271     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      324 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21398E-01    .74175        .92304E-04   -1.5679    
   2  Index         6.4488        7.9960        .61268E-02    .29398    
   3  Normalizat    .97215        .16741        .26103E-03   -.93969    
   4  Prefactor     1.2469        .19763        .27998E-03   -.84900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62908e-10
Minuit parameter uncertainties:
  1  0.25138
  2  6.86214
  3  0.167498
  4  0.197743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814136': 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) = 5845.2706009
delta logL = 0.945175501166

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.140e-02  2.514e-01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  6.449e+00  6.862e+00  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:  1.247e+00  1.977e-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.722e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 154.607 35.680
Photon Index (Free Index): 6.45 +/- 6.86
Photon Flux (Free Index): 7.32e-08 +/- 5.77e-08
Energy Flux (Free Index): 8.93e-06 +/- 7.73e-06

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/814136/cmap_HighResolution_527299201_527558401_4FGL_J1018.4+3540_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', comment='SUCCESS', energy_flux2='8.93e-06', dlogl='9.45e-01', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-01 18:15:02.992587', photon_index_error2='6.86', photon_index2='6.45', ts='-0.00', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='9.42e-08', energy_flux_error2='7.73e-06', EG='1.07', time_epoch_completed='1630545302.99', return_code='0', job_id='814136', GAL2='1.25', EG2='0.97', return_code2='102', photon_flux_error2='5.77e-08', ts2='2.05', photon_index='2.59' WHERE bin_id='1111' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 814136: <4FGL_J1018.4+3540_daily_bin1111> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1111> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:31 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:00:33 2021
Terminated at Wed Sep  1 18:15:03 2021
Results reported at Wed Sep  1 18:15:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1111 154.607 35.6802 527299201 527558401 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 :                                   854.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

