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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin805
RA = 154.607, Dec = 35.6802
tmin = 447984001, tmax = 448243201
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='812717', job_status='RUN', time_executed='2021-09-01 17:55:58.870418', time_epoch_executed='1630544158.87' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812717/ft1_4FGL_J1018.4+3540_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812717/ft2_4FGL_J1018.4+3540_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812717/ft1_4FGL_J1018.4+3540_daily_bin805.fits outfile=/scratch/kocevski/812717/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin805.fits ra=154.607 dec=35.6802 rad=12.0 tmin=447984001.0 tmax=448243201.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.02
user 3.77
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812717/ft2_4FGL_J1018.4+3540_daily_bin805.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/812717/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/812717/ft1_filtered_4FGL_J1018.4+3540_daily_bin805.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812717/ft1_filtered_4FGL_J1018.4+3540_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/812717/ft2_4FGL_J1018.4+3540_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/812717/ltcube_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.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/812717/ft2_4FGL_J1018.4+3540_daily_bin805.fits
.....................!
real 12.63
user 12.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812717/ft1_filtered_4FGL_J1018.4+3540_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/812717/ft2_4FGL_J1018.4+3540_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/812717/ltcube_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.fits outfile=/scratch/kocevski/812717/expmap_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.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/812717/ltcube_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.fits
.....................!
real 191.00
user 186.13
sys 4.41

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/812717/ft1_filtered_4FGL_J1018.4+3540_daily_bin805.fits scfile=/scratch/kocevski/812717/ft2_4FGL_J1018.4+3540_daily_bin805.fits outfile=/scratch/kocevski/812717/cmap_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812717/ft1_filtered_4FGL_J1018.4+3540_daily_bin805.fits scfile=/scratch/kocevski/812717/ft2_4FGL_J1018.4+3540_daily_bin805.fits outfile=/scratch/kocevski/812717/cmap_HighResolution_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19181E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9378       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0306       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.846       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14558E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    2.8775       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.331       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65222       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2169       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=   6148.101     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3436 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.960        .56961E-06** at limit **
   2  norm          12.063        12.691        .16311E-06    .66995E-04
   3  Prefactor     18.492        28.437       -.10574E-05   -.30709E-03
   4  Prefactor     30.091        21.109        .28853E-07    .91911E-05
   5  Prefactor     .10000E-03    7.4483        .62825E-07** at limit **
   6  Prefactor     .10000E-03    4.0412       -.33417E-06** at limit **
   7  Prefactor     .10000E-03    2.1301        .11739E-07** at limit **
   8  Prefactor     .10000E-03    .95625       -.67614E-07** at limit **
   9  norm          24.428        10.895        .19249E-06    .18508E-03
  10  Prefactor     2.5905        3.2979        .64857E-06    .10298E-02
  11  Prefactor     .10082E-03    28.204       -.36905E-05** at limit **
  12  Prefactor     .10000E-03    4.3084       -.52134E-06** at limit **
  13  norm          3.9292        10.345        .21760E-06    .35399E-03
  14  Prefactor     .10000E-03    16.429       -.18823E-06** at limit **
  15  Prefactor     .10000E-03    19.802       -.87783E-06** at limit **
  16  Prefactor     2.0232        4.4885        .18152E-05    .13810E-02
  17  Prefactor     5.4140        4.9993       -.55582E-07   -.39532E-04
  18  Prefactor     .10000E-03    82.916       -.13556E-05** at limit **
  19  Prefactor     .10000E-03    6.4938       -.10414E-07** at limit **
  20  Prefactor     36.852        77.749        .46282E-06    .37616E-04
  21  Prefactor     .10008E-03    21.121       -.73498E-05** at limit **
  22  norm          2.8775        .42753       -.33372E-08   -.30502E-03
  23  Prefactor     .10000E-03    3.4570        .16823E-06** at limit **
  24  Prefactor     .10000E-03    5.8896        .13147E-06** at limit **
  25  norm          28.333        14.471        .34779E-06    .43850E-03
  26  Normalizat    .65215        .16198        .50536E-06    .34051E-03
  27  Prefactor     1.2168        .19300       -.14595E-05    .85465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 12.0629
  Prefactor  = 18.4922
  Prefactor  = 30.0913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.4279
  Prefactor  = 2.59054
  Prefactor  = 0.000100824
  Prefactor  = 0.0001
  norm       = 3.92917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0232
  Prefactor  = 5.41404
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 36.8519
  Prefactor  = 0.00010008
  norm       = 2.87751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.3331
  Normalizat = 0.652146
  Prefactor  = 1.21684
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.101     FROM HESSE     STATUS=OK           490 CALLS     3926 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.063        12.698        .11534E-03   -1.5013    
   3  Prefactor     18.492        28.964        .93163E-04   -1.4848    
   4  Prefactor     30.091        21.124        .73040E-04   -1.4610    
   5  Prefactor     .10000E-03    7.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0987        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1324        .11175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .97520        .74796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.428        10.900        .81053E-04   -1.4719    
  10  Prefactor     2.5905        3.3233        .15225E-03   -1.5386    
  11  Prefactor     .10082E-03    30.250        .10330       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4266        .31641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9292        10.173        .20329E-03   -1.5311    
  14  Prefactor     .10000E-03    16.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0232        4.6689        .22895E-03   -1.5423    
  17  Prefactor     5.4140        5.0296        .15891E-03   -1.5243    
  18  Prefactor     .10000E-03    84.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.852        77.795        .66025E-04   -1.4493    
  21  Prefactor     .10008E-03    26.842        .36294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8775        .42794        .19106E-04   -1.5369    
  23  Prefactor     .10000E-03    3.4633        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.9073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.333        14.547        .75269E-04   -1.4643    
  26  Normalizat    .65215        .19058        .26048E-03   -1.0581    
  27  Prefactor     1.2168        .22820        .25183E-03   -.85815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02552e-09
Minuit parameter uncertainties:
  1  0.000152221
  2  12.7005
  3  28.9856
  4  21.1295
  5  1.33614e-05
  6  3.99324e-05
  7  8.77773e-07
  8  3.36299e-06
  9  10.9005
  10  3.32357
  11  0.0099911
  12  7.96993e-05
  13  10.1774
  14  7.93767e-05
  15  0.000141055
  16  4.66971
  17  5.02999
  18  0.000895762
  19  5.29589e-06
  20  78.0108
  21  0.00292516
  22  0.427937
  23  1.93436e-05
  24  2.49747e-05
  25  14.5487
  26  0.190769
  27  0.228388
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  7.970e-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.217e+00  2.284e-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:  6.521e-01  1.908e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812717/likelihoodResults_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.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) = 6148.10174872
delta logL = -0.00107804966956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6148.10067073
delta logL = -5.8169462136e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6124       1.0000          .0000       10.000    
     3 'Normalizat'    .65208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2170       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=   6148.091     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      321 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34142E-01    1.6239        .14504E-01   -.18605E-02
   2  Index         4.7675        2.1253        .50000       -.73447E-05
   3  Normalizat    .64196        .14408E-01    .26048E-03    .75557E-03
   4  Prefactor     1.2248        .18490E-01    .25183E-03    .85746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0341423
  Index      = 4.76749
  Normalizat = 0.641962
  Prefactor  = 1.22484
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.091     FROM HESSE     STATUS=OK            31 CALLS      352 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34142E-01    .74494        .51527E-03   -1.5745    
   2  Index         4.7675        7.0830        .88854E-02   -.46519E-01
   3  Normalizat    .64196        .18987        .52096E-04   -1.0623    
   4  Prefactor     1.2248        .23301        .50365E-04   -.85570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5019e-08
Minuit parameter uncertainties:
  1  0.318498
  2  5.13807
  3  0.190065
  4  0.233203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812717': 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) = 6148.09109352
delta logL = 0.0095771446604

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.414e-02  3.185e-01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  4.767e+00  5.138e+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.225e+00  2.332e-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:  6.420e-01  1.901e-01  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/812717/cmap_HighResolution_447984001_448243201_4FGL_J1018.4+3540_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-01 18:09:50.155084', job_id='812717', GAL2='1.22', fit_tolerance='1e-08', EG2='0.64', EG='0.65', time_epoch_completed='1630544990.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='9.58e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='805' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:09:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 812717: <4FGL_J1018.4+3540_daily_bin805> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin805> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:55:48 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:55:49 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:55:49 2021
Terminated at Wed Sep  1 18:09:50 2021
Results reported at Wed Sep  1 18:09:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin805 154.607 35.6802 447984001 448243201 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 :                                   830.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

