/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 129 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 = 7432
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin42
RA = 154.607, Dec = 35.6802
tmin = 250214401, tmax = 250473601
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='809494', job_status='RUN', time_executed='2021-09-01 17:48:22.507071', time_epoch_executed='1630543702.51' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809494

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809494/ft1_4FGL_J1018.4+3540_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809494/ft2_4FGL_J1018.4+3540_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809494/ft1_4FGL_J1018.4+3540_daily_bin42.fits outfile=/scratch/kocevski/809494/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin42.fits ra=154.607 dec=35.6802 rad=12.0 tmin=250214401.0 tmax=250473601.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 1.43
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809494/ft1_filtered_4FGL_J1018.4+3540_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/809494/ft2_4FGL_J1018.4+3540_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/809494/ltcube_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.fits outfile=/scratch/kocevski/809494/expmap_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.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/809494/ltcube_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.fits
.....................!
real 192.66
user 188.11
sys 4.01

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/809494/ft1_filtered_4FGL_J1018.4+3540_daily_bin42.fits scfile=/scratch/kocevski/809494/ft2_4FGL_J1018.4+3540_daily_bin42.fits outfile=/scratch/kocevski/809494/cmap_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809494/ft1_filtered_4FGL_J1018.4+3540_daily_bin42.fits scfile=/scratch/kocevski/809494/ft2_4FGL_J1018.4+3540_daily_bin42.fits outfile=/scratch/kocevski/809494/cmap_HighResolution_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9283       1.0000         .10000E-03   10000.    
     2 'norm      '    .24821E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6099       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62141       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6792       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97501E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.635       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .72884       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1368       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=   5214.535     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3315 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9276        8.0504        .98853E-07   -.30410E-05
   2  norm          .10000E-03    16.661        .17069E-05** at limit **
   3  Prefactor     5.6093        15.408        .42279E-05    .18546E-04
   4  Prefactor     21.667        31.992       -.18868E-06    .69230E-04
   5  Prefactor     71.947        44.807        .43498E-06    .15863E-03
   6  Prefactor     18.136        9.4904       -.11433E-06   -.62801E-04
   7  Prefactor     .10000E-03    3.1553       -.21718E-07** at limit **
   8  Prefactor     .62156        2.3010        .91541E-06   -.53353E-05
   9  norm          .10000E-03    3.5667       -.60153E-07** at limit **
  10  Prefactor     .10000E-03    1.0574       -.44852E-07** at limit **
  11  Prefactor     .10000E-03    28.997        .14865E-06** at limit **
  12  Prefactor     6.6789        4.7316        .10241E-06   -.60560E-04
  13  norm          .10000E-03    4.1621       -.62583E-09** at limit **
  14  Prefactor     .10000E-03    36.365       -.10015E-06** at limit **
  15  Prefactor     .10000E-03    15.187        .38512E-06** at limit **
  16  Prefactor     .10000E-03    2.4275       -.21841E-07** at limit **
  17  Prefactor     7.4488        5.6261        .17650E-06    .13876E-03
  18  Prefactor     .10000E-03    11.158        .32455E-07** at limit **
  19  Prefactor     .10066E-03    19.612       -.90954E-06** at limit **
  20  Prefactor     .10000E-03    31.049       -.12958E-06** at limit **
  21  Prefactor     .10000E-03    9.0580       -.11662E-06** at limit **
  22  norm          2.1214        .41773        .16769E-07    .95199E-04
  23  Prefactor     .10000E-03    5.5130       -.78435E-09** at limit **
  24  Prefactor     .10000E-03    22.046        .11386E-06** at limit **
  25  norm          21.632        16.948        .20141E-06    .27572E-04
  26  Normalizat    .72890        .16938       -.11203E-05    .22963E-04
  27  Prefactor     1.1367        .20062        .59042E-06   -.21814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.9276
  norm       = 0.0001
  Prefactor  = 5.60931
  Prefactor  = 21.6673
  Prefactor  = 71.947
  Prefactor  = 18.1358
  Prefactor  = 0.0001
  Prefactor  = 0.621559
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.67885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44884
  Prefactor  = 0.0001
  Prefactor  = 0.000100656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.6325
  Normalizat = 0.728903
  Prefactor  = 1.13674
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.535     FROM HESSE     STATUS=OK           492 CALLS     3807 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9276        8.0486        .14240E-03   -1.5145    
   2  norm          .10000E-03    16.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6093        15.440        .84805E-03   -1.5234    
   4  Prefactor     21.667        31.911        .85920E-04   -1.4777    
   5  Prefactor     71.947        44.739        .47337E-04   -1.4009    
   6  Prefactor     18.136        9.4689        .94045E-04   -1.4856    
   7  Prefactor     .10000E-03    3.1617        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .62156        2.2973        .19551E-03   -1.5550    
   9  norm          .10000E-03    3.5870        .13318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0595        .72477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6789        4.7353        .12419E-03   -1.5191    
  13  norm          .10000E-03    4.1859        .14386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4570        .10978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4488        5.6190        .14095E-03   -1.5162    
  18  Prefactor     .10000E-03    11.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10066E-03    22.506        .10123       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1214        .41775        .19901E-04   -1.5417    
  23  Prefactor     .10000E-03    5.5203        .16554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.632        16.944        .86113E-04   -1.4777    
  26  Normalizat    .72890        .19326        .25248E-03   -1.0276    
  27  Prefactor     1.1367        .23071        .25662E-03   -.88301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2645e-10
Minuit parameter uncertainties:
  1  8.04965
  2  2.94138e-05
  3  15.4507
  4  31.9361
  5  44.7597
  6  9.46969
  7  1.33733e-07
  8  2.29763
  9  4.53143e-07
  10  3.9031e-07
  11  3.61149e-06
  12  4.73552
  13  5.75243e-07
  14  3.43386e-05
  15  2.8137e-05
  16  2.44906e-06
  17  5.61936
  18  3.03353e-06
  19  0.00768579
  20  4.69257e-05
  21  3.60262e-06
  22  0.417752
  23  1.2614e-07
  24  5.51562e-05
  25  16.948
  26  0.193437
  27  0.230918
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  6.679e+00  4.736e+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.137e+00  2.309e-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.289e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.03e-05

TS (Fixed Index): 3.59
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809494/likelihoodResults_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.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) = 5214.39603201
delta logL = 0.138760233114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5214.39192212
delta logL = 0.14287012596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1401       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9672       1.0000          .0000       10.000    
     3 'Normalizat'    .71059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1508       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=   5214.392     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1392        69.181        .44332E-02    .12862E-02
   2  Index         2.9667        6.4613        .16946        .25442E-03
   3  Normalizat    .71081        .71520E-01    .42432E-01   -.76957E-04
   4  Prefactor     1.1506        .76103E-01    .57732E-01   -.10079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1392
  Index      = 2.96669
  Normalizat = 0.710806
  Prefactor  = 1.15057
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.392     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1392        5.2226        .10141E-03   -1.5255    
   2  Index         2.9667        .78492        .61756E-02   -.41880    
   3  Normalizat    .71081        .19082        .25540E-03   -1.0347    
   4  Prefactor     1.1506        .23221        .25528E-03   -.87866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10085e-10
Minuit parameter uncertainties:
  1  5.2231
  2  0.788839
  3  0.190998
  4  0.23242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809494': 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) = 5214.39192107
delta logL = 0.14287117227

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.139e+00  5.223e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.967e+00  7.888e-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.151e+00  2.324e-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.108e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.97 +/- 0.79
Photon Flux (Free Index): 6.92e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.40e-05 +/- 9.39e-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/809494/cmap_HighResolution_250214401_250473601_4FGL_J1018.4+3540_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='1.40e-05', photon_flux_error='3.88e-08', dlogl='1.43e-01', energy_flux='1.45e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-09-01 18:00:40.746619', photon_index_error2='0.79', photon_index2='2.97', ts='3.59', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='9.39e-06', EG='0.73', time_epoch_completed='1630544440.75', return_code='0', job_id='809494', GAL2='1.15', EG2='0.71', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='5.05e-08', ts2='3.89', photon_index='2.59' WHERE bin_id='42' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 809494: <4FGL_J1018.4+3540_daily_bin42> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin42> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:26 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:46:04 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:46:04 2021
Terminated at Wed Sep  1 18:00:41 2021
Results reported at Wed Sep  1 18:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin42 154.607 35.6802 250214401 250473601 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            915 sec.

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

