/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 194 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7461
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1003
RA = 154.607, Dec = 35.6802
tmin = 499305601, tmax = 499564801
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='812972', job_status='RUN', time_executed='2021-09-01 17:59:44.119673', time_epoch_executed='1630544384.12' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812972

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812972/ft1_4FGL_J1018.4+3540_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812972/ft2_4FGL_J1018.4+3540_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812972/ft1_4FGL_J1018.4+3540_daily_bin1003.fits outfile=/scratch/kocevski/812972/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1003.fits ra=154.607 dec=35.6802 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.44
user 5.17
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812972/ft1_filtered_4FGL_J1018.4+3540_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/812972/ft2_4FGL_J1018.4+3540_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/812972/ltcube_499305601_499564801_4FGL_J1018.4+3540_daily_bin1003.fits outfile=/scratch/kocevski/812972/expmap_499305601_499564801_4FGL_J1018.4+3540_daily_bin1003.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/812972/ltcube_499305601_499564801_4FGL_J1018.4+3540_daily_bin1003.fits
.....................!
real 191.49
user 186.33
sys 4.71

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/812972/ft1_filtered_4FGL_J1018.4+3540_daily_bin1003.fits scfile=/scratch/kocevski/812972/ft2_4FGL_J1018.4+3540_daily_bin1003.fits outfile=/scratch/kocevski/812972/cmap_499305601_499564801_4FGL_J1018.4+3540_daily_bin1003.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.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.863       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28353       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.512       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.242       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11845E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0355       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.918       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .77213       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0327       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=   3823.976     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3274 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5520        .68021E-07** at limit **
   2  norm          7.5671        10.940       -.80010E-06   -.12879E-06
   3  Prefactor     .10000E-03    12.424       -.11028E-04** at limit **
   4  Prefactor     16.950        18.260        .23942E-05   -.82750E-04
   5  Prefactor     .10000E-03    9.5323        .61240E-05** at limit **
   6  Prefactor     15.875        10.585       -.48945E-06    .60554E-04
   7  Prefactor     .10000E-03    5.6426       -.82459E-06** at limit **
   8  Prefactor     .10000E-03    1.2430       -.40916E-07** at limit **
   9  norm          12.253        12.676       -.10149E-05   -.88033E-03
  10  Prefactor     3.6425        5.4853       -.19217E-06   -.30099E-03
  11  Prefactor     36.883        35.223        .77479E-05    .66486E-04
  12  Prefactor     .17372        4.8422        .51891E-06    .54761E-04
  13  norm          3.5475        13.115       -.24351E-04    .85657E-04
  14  Prefactor     21.204        73.307        .16051E-04   -.40919E-04
  15  Prefactor     26.556        31.116        .13803E-04    .32246E-04
  16  Prefactor     .10000E-03    2.6450        .34264E-06** at limit **
  17  Prefactor     .10000E-03    7.4090       -.61210E-05** at limit **
  18  Prefactor     .10000E-03    14.368        .86655E-05** at limit **
  19  Prefactor     27.243        40.311        .40542E-06   -.13554E-04
  20  Prefactor     .10000E-03    147.29       -.29933E-05** at limit **
  21  Prefactor     .10000E-03    5.1917        .32952E-06** at limit **
  22  norm          1.0354        .35012       -.19978E-08   -.47538E-04
  23  Prefactor     .10000E-03    6.8773        .34125E-05** at limit **
  24  Prefactor     .10000E-03    7.0151       -.28116E-06** at limit **
  25  norm          12.917        20.220        .28923E-05   -.92217E-04
  26  Normalizat    .77241        .20296       -.23983E-08    .11310E-03
  27  Prefactor     1.0324        .24286       -.21108E-06    .94621E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.56709
  Prefactor  = 0.000100001
  Prefactor  = 16.9502
  Prefactor  = 0.0001
  Prefactor  = 15.8746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2526
  Prefactor  = 3.64247
  Prefactor  = 36.8829
  Prefactor  = 0.173721
  norm       = 3.54752
  Prefactor  = 21.2041
  Prefactor  = 26.5558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9167
  Normalizat = 0.772408
  Prefactor  = 1.03244
 **********
 **   18 **HESSE 
 **********

 FCN=   3823.976     FROM HESSE     STATUS=OK           484 CALLS     3758 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5543        .96477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5671        10.945        .14579E-03   -1.5158    
   3  Prefactor     .10000E-03    12.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.950        18.274        .97275E-04   -1.4884    
   5  Prefactor     .10000E-03    9.5144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.875        10.580        .10052E-03   -1.4911    
   7  Prefactor     .10000E-03    5.6689        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2736        .13455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.253        12.754        .57218E-03   -1.5008    
  10  Prefactor     3.6425        6.7211        .14402E-03   -1.5326    
  11  Prefactor     36.883        35.217        .66009E-04   -1.4493    
  12  Prefactor     .17372        106.64        .21364E-02   -1.5625    
  13  norm          3.5475        13.221        .21451E-03   -1.5331    
  14  Prefactor     21.204        73.139        .87000E-04   -1.4787    
  15  Prefactor     26.556        31.338        .77803E-04   -1.4677    
  16  Prefactor     .10000E-03    2.6707        .98170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6019        .32839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.243        40.328        .76755E-04   -1.4664    
  20  Prefactor     .10000E-03    147.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1948        .13761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0354        .35085        .20619E-04   -1.5504    
  23  Prefactor     .10000E-03    6.8731        .15825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.0217        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.917        20.189        .11145E-03   -1.4989    
  26  Normalizat    .77241        .23950        .23577E-03   -1.0110    
  27  Prefactor     1.0324        .28509        .25562E-03   -.91656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12195e-09
Minuit parameter uncertainties:
  1  1.35217e-06
  2  10.9477
  3  0.000229464
  4  18.2797
  5  0.000113788
  6  10.5813
  7  1.41277e-05
  8  1.241e-06
  9  12.7568
  10  6.72248
  11  35.2364
  12  8.62121
  13  13.2323
  14  73.4504
  15  31.3579
  16  4.70941e-05
  17  0.000102152
  18  0.000152548
  19  40.3682
  20  0.000269284
  21  7.39592e-06
  22  0.350849
  23  6.81856e-05
  24  2.20034e-06
  25  20.1998
  26  0.239824
  27  0.285508
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.032e+00  2.855e-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:  7.724e-01  2.398e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812972/likelihoodResults_499305601_499564801_4FGL_J1018.4+3540_daily_bin1003.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) = 3823.68524702
delta logL = 0.2911176929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3823.63761555
delta logL = 0.338749163182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64018E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.5044       1.0000          .0000       10.000    
     3 'Normalizat'    .70823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0865       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=   3823.638     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      233 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63943E-01    1.6631        .43357E-02    .26479E-02
   2  Index         5.5057        4.0412        .13981        .86315E-04
   3  Normalizat    .70827        .39292E-01    .42400E-01    .12294E-04
   4  Prefactor     1.0865        .48948E-01    .56557E-01    .98375E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0639429
  Index      = 5.50565
  Normalizat = 0.70827
  Prefactor  = 1.08652
 **********
 **   18 **HESSE 
 **********

 FCN=   3823.638     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      268 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63943E-01    5.1220        .19782E-03   -1.5657    
   2  Index         5.5057        7.5247        .72733E-02    .10130    
   3  Normalizat    .70827        .15744        .24519E-03   -1.0357    
   4  Prefactor     1.0865        .19183        .25008E-03   -.89899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00258e-10
Minuit parameter uncertainties:
  1  1.14378
  2  10.459
  3  0.157539
  4  0.191954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812972': 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) = 3823.63761508
delta logL = 0.33874962974

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.087e+00  1.920e-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:  7.083e-01  1.575e-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/812972/cmap_HighResolution_499305601_499564801_4FGL_J1018.4+3540_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-01 18:10:20.772577', job_id='812972', GAL2='1.09', fit_tolerance='1e-08', EG2='0.71', EG='0.77', time_epoch_completed='1630545020.77', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.39e-01', ts2='0.75', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1003' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:10:20 PDT 2021


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

Job <4FGL_J1018.4+3540_daily_bin1003> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:08 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:19 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:56:19 2021
Terminated at Wed Sep  1 18:10:21 2021
Results reported at Wed Sep  1 18:10:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1003 154.607 35.6802 499305601 499564801 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 :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            853 sec.

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

