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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin718
RA = 154.607, Dec = 35.6802
tmin = 425433601, tmax = 425692801
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='812589', job_status='RUN', time_executed='2021-09-01 17:55:57.814063', time_epoch_executed='1630544157.81' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812589

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812589/ft1_4FGL_J1018.4+3540_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812589/ft2_4FGL_J1018.4+3540_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812589/ft1_4FGL_J1018.4+3540_daily_bin718.fits outfile=/scratch/kocevski/812589/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin718.fits ra=154.607 dec=35.6802 rad=12.0 tmin=425433601.0 tmax=425692801.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.10
user 2.90
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812589/ft1_filtered_4FGL_J1018.4+3540_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/812589/ft2_4FGL_J1018.4+3540_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/812589/ltcube_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.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/812589/ft2_4FGL_J1018.4+3540_daily_bin718.fits
.....................!
real 15.13
user 14.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812589/ft1_filtered_4FGL_J1018.4+3540_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/812589/ft2_4FGL_J1018.4+3540_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/812589/ltcube_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.fits outfile=/scratch/kocevski/812589/expmap_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.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/812589/ltcube_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.fits
.....................!
real 193.02
user 187.66
sys 4.78

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/812589/ft1_filtered_4FGL_J1018.4+3540_daily_bin718.fits scfile=/scratch/kocevski/812589/ft2_4FGL_J1018.4+3540_daily_bin718.fits outfile=/scratch/kocevski/812589/cmap_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812589/ft1_filtered_4FGL_J1018.4+3540_daily_bin718.fits scfile=/scratch/kocevski/812589/ft2_4FGL_J1018.4+3540_daily_bin718.fits outfile=/scratch/kocevski/812589/cmap_HighResolution_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.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.61
user 0.40
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1966       1.0000         .10000E-03   10000.    
     2 'norm      '    .12575E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.476       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1133       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8837       1.0000         .10000E-03   10000.    
    13 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3915       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .66679       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1995       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=   4494.460     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3252 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1968        6.7358        .59094E-07   -.56293E-05
   2  norm          .10000E-03    12.503       -.11614E-06** at limit **
   3  Prefactor     35.142        41.921       -.18990E-06   -.16238E-04
   4  Prefactor     35.473        24.756       -.90228E-07    .23906E-07
   5  Prefactor     10.660        25.173        .10099E-07   -.43116E-05
   6  Prefactor     .10000E-03    4.3078       -.25825E-06** at limit **
   7  Prefactor     1.1158        12.044        .40836E-05   -.41099E-04
   8  Prefactor     .10000E-03    1.9131       -.20436E-06** at limit **
   9  norm          2.8964        7.1953        .52097E-06   -.13527E-04
  10  Prefactor     .33468        3.8420       -.54392E-06   -.14336E-03
  11  Prefactor     .10000E-03    9.7253        .11471E-06** at limit **
  12  Prefactor     3.8959        5.9740        .75965E-06    .15262E-03
  13  norm          .10000E-03    16.231        .62149E-06** at limit **
  14  Prefactor     18.185        40.301       -.24222E-06   -.36337E-04
  15  Prefactor     .10000E-03    16.686        .13387E-06** at limit **
  16  Prefactor     5.7983        4.0625        .33256E-07   -.15005E-04
  17  Prefactor     .10000E-03    2.8244        .13159E-06** at limit **
  18  Prefactor     72.087        44.499        .41673E-07    .66372E-05
  19  Prefactor     .10000E-03    14.718        .68451E-07** at limit **
  20  Prefactor     .10000E-03    27.858        .96962E-07** at limit **
  21  Prefactor     .10000E-03    4.4002        .36286E-07** at limit **
  22  norm          1.3915        .33778       -.23523E-08    .12619E-04
  23  Prefactor     .10000E-03    7.0498        .12701E-06** at limit **
  24  Prefactor     .10000E-03    4.0517        .34702E-07** at limit **
  25  norm          .10000E-03    4.5805        .78154E-07** at limit **
  26  Normalizat    .66676        .17322       -.32085E-07    .22073E-04
  27  Prefactor     1.1996        .20882       -.33866E-06    .31267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.19683
  norm       = 0.0001
  Prefactor  = 35.1418
  Prefactor  = 35.4733
  Prefactor  = 10.6597
  Prefactor  = 0.0001
  Prefactor  = 1.11576
  Prefactor  = 0.0001
  norm       = 2.89643
  Prefactor  = 0.334679
  Prefactor  = 0.0001
  Prefactor  = 3.89588
  norm       = 0.0001
  Prefactor  = 18.1852
  Prefactor  = 0.0001
  Prefactor  = 5.79826
  Prefactor  = 0.0001
  Prefactor  = 72.0868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.666755
  Prefactor  = 1.19965
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.460     FROM HESSE     STATUS=OK           488 CALLS     3740 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1968        6.7302        .17634E-03   -1.5252    
   2  norm          .10000E-03    12.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.142        41.989        .67581E-04   -1.4522    
   4  Prefactor     35.473        24.755        .67283E-04   -1.4516    
   5  Prefactor     10.660        25.156        .12269E-03   -1.5055    
   6  Prefactor     .10000E-03    4.3307        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1158        11.903        .43863E-03   -1.5497    
   8  Prefactor     .10000E-03    1.9631        .18068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8964        7.1715        .23872E-03   -1.5368    
  10  Prefactor     .33468        31.105        .19454E-02   -1.5592    
  11  Prefactor     .10000E-03    9.7313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8959        7.0039        .15637E-03   -1.5313    
  13  norm          .10000E-03    16.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.185        40.357        .93794E-04   -1.4855    
  15  Prefactor     .10000E-03    16.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7983        4.0606        .10739E-03   -1.5226    
  17  Prefactor     .10000E-03    2.8408        .10988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.087        44.477        .47285E-04   -1.4008    
  19  Prefactor     .10000E-03    14.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4063        .13735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3915        .33838        .18650E-04   -1.5472    
  23  Prefactor     .10000E-03    7.0803        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.0530        .13180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.5838        .14013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .66676        .19934        .24841E-03   -1.0522    
  27  Prefactor     1.1996        .24162        .24233E-03   -.86342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5062e-10
Minuit parameter uncertainties:
  1  6.73118
  2  1.6015e-06
  3  42.0246
  4  24.7623
  5  25.1805
  6  2.44007e-06
  7  7.29014
  8  2.14541e-06
  9  7.17363
  10  6.4555
  11  3.93776e-06
  12  7.00537
  13  3.92648e-05
  14  40.4177
  15  5.70228e-06
  16  4.06081
  17  4.50067e-06
  18  44.4978
  19  7.2811e-06
  20  6.04048e-06
  21  9.21751e-07
  22  0.338381
  23  3.54527e-06
  24  5.87257e-07
  25  2.16725e-06
  26  0.199558
  27  0.241843
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.896e+00  7.005e+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.200e+00  2.418e-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.668e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812589/likelihoodResults_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.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): 0
logL (Free Index) = 4494.10534106
delta logL = 0.354893380177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4494.08490169
delta logL = 0.375332744992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5125       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5728       1.0000          .0000       10.000    
     3 'Normalizat'    .64279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2204       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=   4494.085     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      274 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5124        6.9703        .73947E-04   -.16130E-02
   2  Index         3.5729        2.4970        .60846E-02   -.20492E-03
   3  Normalizat    .64277        .19329        .25255E-03   -.30979E-03
   4  Prefactor     1.2204        .24277        .24054E-03   -.14250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51239
  Index      = 3.57287
  Normalizat = 0.642772
  Prefactor  = 1.22042
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.085     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5124        3.6191        .29579E-05   -1.5462    
   2  Index         3.5729        1.4400        .24338E-03   -.28945    
   3  Normalizat    .64277        .19350        .10102E-04   -1.0620    
   4  Prefactor     1.2204        .24264        .48108E-04   -.85705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62365e-10
Minuit parameter uncertainties:
  1  3.6196
  2  1.46265
  3  0.193708
  4  0.242863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812589': 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) = 4494.08490169
delta logL = 0.375332749255

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.512e+00  3.620e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.573e+00  1.463e+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.220e+00  2.429e-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.428e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.57 +/- 1.46
Photon Flux (Free Index): 4.87e-08 +/- 4.63e-08
Energy Flux (Free Index): 7.95e-06 +/- 8.14e-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/812589/cmap_HighResolution_425433601_425692801_4FGL_J1018.4+3540_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', energy_flux2='7.95e-06', dlogl='3.75e-01', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-01 18:07:17.633816', photon_index_error2='1.46', photon_index2='3.57', ts='0.81', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.14e-06', EG='0.67', time_epoch_completed='1630544837.63', return_code='0', job_id='812589', GAL2='1.22', EG2='0.64', return_code2='0', photon_flux_error2='4.63e-08', ts2='1.60', photon_index='2.59' WHERE bin_id='718' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:07:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 812589: <4FGL_J1018.4+3540_daily_bin718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin718 154.607 35.6802 425433601 425692801 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 :                                   679.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

