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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1406
RA = 154.607, Dec = 35.6802
tmin = 603763201, tmax = 604022401
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='815648', job_status='RUN', time_executed='2021-09-01 18:08:15.857076', time_epoch_executed='1630544895.86' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815648/ft1_4FGL_J1018.4+3540_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815648/ft2_4FGL_J1018.4+3540_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815648/ft1_4FGL_J1018.4+3540_daily_bin1406.fits outfile=/scratch/kocevski/815648/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1406.fits ra=154.607 dec=35.6802 rad=12.0 tmin=603763201.0 tmax=604022401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.21
user 3.98
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815648/ft1_filtered_4FGL_J1018.4+3540_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/815648/ft2_4FGL_J1018.4+3540_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/815648/ltcube_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.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/815648/ft2_4FGL_J1018.4+3540_daily_bin1406.fits
.....................!
real 14.81
user 14.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815648/ft1_filtered_4FGL_J1018.4+3540_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/815648/ft2_4FGL_J1018.4+3540_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/815648/ltcube_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.fits outfile=/scratch/kocevski/815648/expmap_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.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/815648/ltcube_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.fits
.....................!
real 191.34
user 186.10
sys 4.42

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/815648/ft1_filtered_4FGL_J1018.4+3540_daily_bin1406.fits scfile=/scratch/kocevski/815648/ft2_4FGL_J1018.4+3540_daily_bin1406.fits outfile=/scratch/kocevski/815648/cmap_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815648/ft1_filtered_4FGL_J1018.4+3540_daily_bin1406.fits scfile=/scratch/kocevski/815648/ft2_4FGL_J1018.4+3540_daily_bin1406.fits outfile=/scratch/kocevski/815648/cmap_HighResolution_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.282       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.619       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69203       1.0000         .10000E-03   10000.    
     9 'norm      '    18.236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9342       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.607       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3582       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24747E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10583E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .37684       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2189       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=   3278.671     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3864 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.281        13.409       -.15584E-06   -.26088E-04
   2  norm          .10000E-03    7.6693        .12519E-06** at limit **
   3  Prefactor     1.1070        128.29       -.11050E-04    .15744E-04
   4  Prefactor     .10000E-03    7.7182        .12401E-06** at limit **
   5  Prefactor     27.803        34.011       -.44576E-06   -.10314E-04
   6  Prefactor     16.608        10.148        .57348E-06    .29479E-03
   7  Prefactor     .10000E-03    3.9265       -.68748E-07** at limit **
   8  Prefactor     .69072        2.4589       -.28080E-05   -.30552E-03
   9  norm          18.243        12.745        .97022E-07    .58373E-04
  10  Prefactor     3.9346        5.9341       -.69924E-06   -.54620E-04
  11  Prefactor     .10000E-03    10.938        .14606E-06** at limit **
  12  Prefactor     12.787        8.6256        .78601E-07    .92712E-05
  13  norm          6.5596        8.1268       -.49617E-06   -.62050E-04
  14  Prefactor     20.031        78.208       -.13833E-05   -.13955E-05
  15  Prefactor     17.837        43.531       -.15002E-05   -.30144E-04
  16  Prefactor     6.3152        4.7039       -.27297E-06   -.56852E-04
  17  Prefactor     13.901        10.123       -.35694E-06   -.10820E-03
  18  Prefactor     18.708        46.685        .27587E-06   -.31120E-04
  19  Prefactor     .10000E-03    8.2768       -.23098E-06** at limit **
  20  Prefactor     52.076        100.48        .18275E-05    .25473E-04
  21  Prefactor     .10000E-03    5.2725       -.12189E-06** at limit **
  22  norm          1.3581        .43035       -.56053E-07   -.26440E-03
  23  Prefactor     .10000E-03    119.81        .29314E-04** at limit **
  24  Prefactor     .10000E-03    14.921        .22740E-06** at limit **
  25  norm          .10000E-03    17.626        .53696E-06** at limit **
  26  Normalizat    .37651        .21641        .72449E-05    .13334E-03
  27  Prefactor     1.2192        .25866       -.28860E-05    .47413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.2813
  norm       = 0.0001
  Prefactor  = 1.10702
  Prefactor  = 0.0001
  Prefactor  = 27.8034
  Prefactor  = 16.6081
  Prefactor  = 0.0001
  Prefactor  = 0.690718
  norm       = 18.2433
  Prefactor  = 3.93462
  Prefactor  = 0.0001
  Prefactor  = 12.7868
  norm       = 6.55961
  Prefactor  = 20.0306
  Prefactor  = 17.8366
  Prefactor  = 6.31515
  Prefactor  = 13.9006
  Prefactor  = 18.7081
  Prefactor  = 0.0001
  Prefactor  = 52.0759
  Prefactor  = 0.0001
  norm       = 1.35813
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.376514
  Prefactor  = 1.21925
 **********
 **   18 **HESSE 
 **********

 FCN=   3278.671     FROM HESSE     STATUS=OK           494 CALLS     4358 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.281        13.400        .71638E-04   -1.4589    
   2  norm          .10000E-03    7.6720        .15488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1070        130.71        .45198E-02   -1.5498    
   4  Prefactor     .10000E-03    7.7207        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.803        33.967        .75969E-04   -1.4653    
   6  Prefactor     16.608        10.156        .98245E-04   -1.4893    
   7  Prefactor     .10000E-03    3.9518        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .69072        2.4742        .16018E-03   -1.5542    
   9  norm          18.243        12.744        .93790E-04   -1.4853    
  10  Prefactor     3.9346        5.9008        .13331E-03   -1.5311    
  11  Prefactor     .10000E-03    10.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.787        8.6008        .10512E-03   -1.4993    
  13  norm          6.5596        8.1251        .15666E-03   -1.5196    
  14  Prefactor     20.031        78.033        .89580E-04   -1.4813    
  15  Prefactor     17.837        43.797        .94822E-04   -1.4863    
  16  Prefactor     6.3152        4.6997        .10094E-03   -1.5205    
  17  Prefactor     13.901        10.184        .10742E-03   -1.4962    
  18  Prefactor     18.708        46.528        .92850E-04   -1.4843    
  19  Prefactor     .10000E-03    8.2785        .16091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     52.076        100.50        .27746E-03   -1.4263    
  21  Prefactor     .10000E-03    5.2767        .12842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3581        .42123        .19898E-04   -1.5475    
  23  Prefactor     .10000E-03    117.84        .41767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    17.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .37651        .23010        .31061E-03   -1.1853    
  27  Prefactor     1.2192        .28216        .22961E-03   -.85741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05763e-09
Minuit parameter uncertainties:
  1  13.4009
  2  2.69472e-06
  3  24.1111
  4  5.78117e-06
  5  33.9908
  6  10.1566
  7  2.59246e-06
  8  2.47457
  9  12.7464
  10  5.90167
  11  4.68297e-06
  12  8.60165
  13  8.12644
  14  78.4344
  15  43.8763
  16  4.69996
  17  10.1853
  18  46.6186
  19  1.25417e-05
  20  100.83
  21  8.3702e-06
  22  0.421228
  23  0.00123772
  24  1.5252e-05
  25  9.9615e-06
  26  0.230684
  27  0.282509
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.279e+01  8.602e+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.219e+00  2.825e-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:  3.765e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 7.04e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.87e-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) = 3276.68740085
delta logL = 1.98314048254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3276.53871504
delta logL = 2.13182629107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47156E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.4550       1.0000          .0000       10.000    
     3 'Normalizat'    .27270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3391       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=   3276.539     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      334 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46812E-01    .35346        .92562E-03   -.34494E-01
   2  Index         6.4593        2.9027        .65100E-01   -.55684E-03
   3  Normalizat    .27246        .85573E-01    .81787E-01   -.12375E-03
   4  Prefactor     1.3393        .11018        .50011E-01   -.19102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0468124
  Index      = 6.45928
  Normalizat = 0.27246
  Prefactor  = 1.33934
 **********
 **   18 **HESSE 
 **********

 FCN=   3276.539     FROM HESSE     STATUS=OK            27 CALLS      361 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46812E-01    .41895        .51548E-05   -1.5665    
   2  Index         6.4593        3.1722        .28255E-03    .29617    
   3  Normalizat    .27246        .22519        .36218E-03   -1.2452    
   4  Prefactor     1.3393        .28841        .22107E-03   -.82145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05896e-09
Minuit parameter uncertainties:
  1  0.27979
  2  3.46836
  3  0.225944
  4  0.28876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815648': 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) = 3276.5387123
delta logL = 2.13182903917

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.681e-02  2.798e-01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  6.459e+00  3.468e+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.339e+00  2.888e-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:  2.725e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.37
Ra Dec: 154.607 35.680
Photon Index (Free Index): 6.46 +/- 3.47
Photon Flux (Free Index): 1.63e-07 +/- 7.21e-08
Energy Flux (Free Index): 1.99e-05 +/- 9.71e-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/815648/cmap_HighResolution_603763201_604022401_4FGL_J1018.4+3540_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='1.99e-05', photon_flux_error='7.04e-08', dlogl='2.13e+00', energy_flux='2.77e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-09-01 18:17:45.284525', photon_index_error2='3.47', photon_index2='6.46', ts='5.31', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='9.71e-06', EG='0.38', time_epoch_completed='1630545465.28', return_code='0', job_id='815648', GAL2='1.34', EG2='0.27', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.21e-08', ts2='10.37', photon_index='2.59' WHERE bin_id='1406' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:17:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 815648: <4FGL_J1018.4+3540_daily_bin1406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1406 154.607 35.6802 603763201 604022401 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 :                                   565.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            724 sec.

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

