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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1299
RA = 154.607, Dec = 35.6802
tmin = 576028801, tmax = 576288001
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='815490', job_status='RUN', time_executed='2021-09-01 18:05:47.035963', time_epoch_executed='1630544747.04' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815490

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815490/ft1_4FGL_J1018.4+3540_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815490/ft2_4FGL_J1018.4+3540_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815490/ft1_4FGL_J1018.4+3540_daily_bin1299.fits outfile=/scratch/kocevski/815490/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1299.fits ra=154.607 dec=35.6802 rad=12.0 tmin=576028801.0 tmax=576288001.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.68
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815490/ft1_filtered_4FGL_J1018.4+3540_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/815490/ft2_4FGL_J1018.4+3540_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/815490/ltcube_576028801_576288001_4FGL_J1018.4+3540_daily_bin1299.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/815490/ft2_4FGL_J1018.4+3540_daily_bin1299.fits
.....................!
real 17.26
user 16.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815490/ft1_filtered_4FGL_J1018.4+3540_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/815490/ft2_4FGL_J1018.4+3540_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/815490/ltcube_576028801_576288001_4FGL_J1018.4+3540_daily_bin1299.fits outfile=/scratch/kocevski/815490/expmap_576028801_576288001_4FGL_J1018.4+3540_daily_bin1299.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/815490/ltcube_576028801_576288001_4FGL_J1018.4+3540_daily_bin1299.fits
.....................!
real 195.66
user 189.80
sys 4.66

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/815490/ft1_filtered_4FGL_J1018.4+3540_daily_bin1299.fits scfile=/scratch/kocevski/815490/ft2_4FGL_J1018.4+3540_daily_bin1299.fits outfile=/scratch/kocevski/815490/cmap_576028801_576288001_4FGL_J1018.4+3540_daily_bin1299.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.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3747       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7051       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    86.202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.569       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.538       1.0000         .10000E-03   10000.    
    13 'norm      '    .26925E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6944       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    141.56       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0917       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16552       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.0454       1.0000         .10000E-03   10000.    
    25 'norm      '    6.8604       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90967       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6070.465     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     2762 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    10.148        .44181E-06** at limit **
   2  norm          .10000E-03    4.5256       -.11653E-06** at limit **
   3  Prefactor     .10001E-03    9.7647        .75273E-06** at limit **
   4  Prefactor     .10004E-03    33.518        .10522E-04** at limit **
   5  Prefactor     12.437        1.2180       -.16043E-06    .20162E-02
   6  Prefactor     4.3748        1.3413       -.10206E-06   -.63058E-03
   7  Prefactor     1.7055        3.4646        .21488E-05    .46600E-04
   8  Prefactor     .10000E-03    1.1329        .12972E-05** at limit **
   9  norm          86.202        1.0099       -.11105E-07   -.13925E-03
  10  Prefactor     .10000E-03    2.4430       -.52573E-06** at limit **
  11  Prefactor     27.529        2.2477       -.19730E-06    .17711E-02
  12  Prefactor     14.538        5.5263        .21812E-06    .85307E-03
  13  norm          .10000E-03    .58251       -.71499E-07** at limit **
  14  Prefactor     52.854        1.0096       -.96968E-08    .78662E-03
  15  Prefactor     .10018E-03    14.068        .60813E-07** at limit **
  16  Prefactor     2.1158        2.2997       -.29255E-06   -.15633E-04
  17  Prefactor     2.7035        4.1002       -.35259E-06   -.64554E-05
  18  Prefactor     6.6902        1.1142        .12101E-06   -.79532E-03
  19  Prefactor     .10012E-03    13.472        .48655E-05** at limit **
  20  Prefactor     141.56        1.0032        .31642E-08   -.16157E-03
  21  Prefactor     .10000E-03    3.1862       -.30689E-05** at limit **
  22  norm          1.0919        .29905       -.23762E-06   -.46714E-03
  23  Prefactor     .10001E-03    326.19       -.11517E-04** at limit **
  24  Prefactor     9.0790        3.9147        .10462E-05   -.11470E-02
  25  norm          6.8755        6.9285       -.16670E-05    .41729E-02
  26  Normalizat    .90951        .18540       -.19890E-05   -.27654E-05
  27  Prefactor     .95503        .22261        .28079E-05    .53867E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100039
  Prefactor  = 12.4367
  Prefactor  = 4.37484
  Prefactor  = 1.70546
  Prefactor  = 0.0001
  norm       = 86.2021
  Prefactor  = 0.0001
  Prefactor  = 27.5286
  Prefactor  = 14.5379
  norm       = 0.000100004
  Prefactor  = 52.8537
  Prefactor  = 0.000100183
  Prefactor  = 2.11585
  Prefactor  = 2.70354
  Prefactor  = 6.69019
  Prefactor  = 0.000100118
  Prefactor  = 141.562
  Prefactor  = 0.0001
  norm       = 1.0919
  Prefactor  = 0.000100006
  Prefactor  = 9.07904
  norm       = 6.8755
  Normalizat = 0.90951
  Prefactor  = 0.955026
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.465     FROM HESSE     STATUS=OK           558 CALLS     3320 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    10.138        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.5293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9.9717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    34.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.437        29.732        .28405E-02   -1.5003    
   6  Prefactor     4.3748        6.6759        .48141E-02   -1.5290    
   7  Prefactor     1.7055        3.5088        .80510E-02   -1.5447    
   8  Prefactor     .10000E-03    1.0966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          86.202        15.493        .10818E-02   -1.3848    
  10  Prefactor     .10000E-03    2.3969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.529        35.619        .19075E-02   -1.4658    
  12  Prefactor     14.538        5.5793        .26262E-02   -1.4945    
  13  norm          .10000E-03    6.7687        .66855E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.854        43.319        .13793E-02   -1.4253    
  15  Prefactor     .10018E-03    17.536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1158        2.3153        .70889E-02   -1.5417    
  17  Prefactor     2.7035        4.1430        .61935E-02   -1.5379    
  18  Prefactor     6.6902        20.737        .38772E-02   -1.5191    
  19  Prefactor     .10012E-03    15.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     141.56        98.474        .84650E-03   -1.3323    
  21  Prefactor     .10000E-03    3.1843        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0919        .31695        .48724E-02   -1.5499    
  23  Prefactor     .10001E-03    16.211        .98191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.0790        18.495        .33316E-02   -1.5105    
  25  norm          6.8755        11.585        .38295E-02   -1.5183    
  26  Normalizat    .90951        .16983        .45025E-01   -.96127    
  27  Prefactor     .95503        .19418        .45700E-01   -.94244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12268e-07
Minuit parameter uncertainties:
  1  0.000788528
  2  7.55886e-07
  3  0.000560381
  4  0.00232269
  5  29.7675
  6  6.67707
  7  3.50919
  8  1.76923e-06
  9  15.4934
  10  9.35281e-07
  11  35.6469
  12  5.57953
  13  0.000315697
  14  43.3448
  15  0.00358538
  16  2.31541
  17  4.14345
  18  20.7595
  19  0.00269999
  20  98.5883
  21  8.16535e-06
  22  0.316955
  23  0.000606501
  24  18.5069
  25  11.5888
  26  0.16993
  27  0.194325
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.454e+01  5.580e+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:  9.550e-01  1.943e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.095e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.51
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 4.57e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.21e-05

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) = 6070.07306424
delta logL = 0.391598895214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6070.07176974
delta logL = 0.39289339003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.593       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2128       1.0000          .0000       10.000    
     3 'Normalizat'    .94899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92145       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=   6070.072     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      306 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.620        7.3051        .47744E-03   -.11801E-03
   2  Index         2.2145        .40824        .58619E-02   -.14057E-04
   3  Normalizat    .94859        .18711        .23222E-03   -.72455E-05
   4  Prefactor     .92166        .22356        .28765E-03   -.28693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6202
  Index      = 2.21455
  Normalizat = 0.948591
  Prefactor  = 0.921662
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.072     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.620        7.2492        .19098E-04   -1.4868    
   2  Index         2.2145        .40470        .23448E-03   -.59088    
   3  Normalizat    .94859        .18721        .92889E-05   -.94773    
   4  Prefactor     .92166        .22367        .11506E-04   -.95388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05258e-11
Minuit parameter uncertainties:
  1  7.2496
  2  0.405339
  3  0.187335
  4  0.223891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815490': 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) = 6070.07174788
delta logL = 0.392915257042

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.762e+01  7.250e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.215e+00  4.053e-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:  9.217e-01  2.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.486e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.07
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.21 +/- 0.41
Photon Flux (Free Index): 9.33e-08 +/- 4.89e-08
Energy Flux (Free Index): 4.08e-05 +/- 2.30e-05

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/815490/cmap_HighResolution_576028801_576288001_4FGL_J1018.4+3540_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='4.08e-05', photon_flux_error='4.57e-08', dlogl='3.93e-01', energy_flux='3.15e-05', photon_flux2='9.33e-08', job_status='DONE', time_completed='2021-09-01 18:17:28.832254', photon_index_error2='0.41', photon_index2='2.21', ts='15.51', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='0.91', time_epoch_completed='1630545448.83', return_code='0', job_id='815490', GAL2='0.92', EG2='0.95', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.89e-08', ts2='16.07', photon_index='2.59' WHERE bin_id='1299' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:17:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 815490: <4FGL_J1018.4+3540_daily_bin1299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1299 154.607 35.6802 576028801 576288001 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 :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

