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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin6
RA = 154.607, Dec = 35.6802
tmin = 240883201, tmax = 241142401
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='809438', job_status='RUN', time_executed='2021-09-01 17:46:05.830568', time_epoch_executed='1630543565.83' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809438/ft1_4FGL_J1018.4+3540_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809438/ft2_4FGL_J1018.4+3540_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809438/ft1_4FGL_J1018.4+3540_daily_bin6.fits outfile=/scratch/kocevski/809438/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin6.fits ra=154.607 dec=35.6802 rad=12.0 tmin=240883201.0 tmax=241142401.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.50
user 1.32
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809438/ft1_filtered_4FGL_J1018.4+3540_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/809438/ft2_4FGL_J1018.4+3540_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/809438/ltcube_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.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/809438/ft2_4FGL_J1018.4+3540_daily_bin6.fits
.....................!
real 17.15
user 16.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809438/ft1_filtered_4FGL_J1018.4+3540_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/809438/ft2_4FGL_J1018.4+3540_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/809438/ltcube_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.fits outfile=/scratch/kocevski/809438/expmap_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.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/809438/ltcube_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.fits
.....................!
real 191.60
user 186.22
sys 4.80

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/809438/ft1_filtered_4FGL_J1018.4+3540_daily_bin6.fits scfile=/scratch/kocevski/809438/ft2_4FGL_J1018.4+3540_daily_bin6.fits outfile=/scratch/kocevski/809438/cmap_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809438/ft1_filtered_4FGL_J1018.4+3540_daily_bin6.fits scfile=/scratch/kocevski/809438/ft2_4FGL_J1018.4+3540_daily_bin6.fits outfile=/scratch/kocevski/809438/cmap_HighResolution_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6972       1.0000         .10000E-03   10000.    
     9 'norm      '    21.160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54490       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1507       1.0000         .10000E-03   10000.    
    13 'norm      '    14.424       1.0000         .10000E-03   10000.    
    14 'Prefactor '    83.379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.713       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4036       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12424E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26869E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6903       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9942       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18810E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    12.147       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0297       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98420       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=   5392.651     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3300 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5407       -.52510E-07** at limit **
   2  norm          .10000E-03    8.8802        .52203E-05** at limit **
   3  Prefactor     32.662        39.853       -.26972E-04   -.85942E-05
   4  Prefactor     .10000E-03    21.323       -.29445E-04** at limit **
   5  Prefactor     22.616        31.955       -.85077E-05    .10819E-03
   6  Prefactor     10.133        8.5319        .12862E-05   -.16159E-04
   7  Prefactor     .10000E-03    8.0853       -.25918E-05** at limit **
   8  Prefactor     1.6975        2.6907       -.28882E-07   -.66983E-03
   9  norm          21.159        9.7571       -.23071E-06   -.97799E-05
  10  Prefactor     .53432        4.4846        .23137E-05   -.12664E-02
  11  Prefactor     .10000E-03    10.721       -.45474E-05** at limit **
  12  Prefactor     4.1698        7.2830       -.34897E-05   -.12858E-02
  13  norm          14.424        11.189       -.84998E-06   -.10387E-03
  14  Prefactor     83.384        59.106        .35815E-05   -.68077E-04
  15  Prefactor     13.710        25.047       -.16105E-05   -.59706E-04
  16  Prefactor     9.4035        5.6826        .62153E-06   -.24521E-03
  17  Prefactor     .10000E-03    2.5768        .31734E-07** at limit **
  18  Prefactor     .10000E-03    47.462        .13832E-04** at limit **
  19  Prefactor     .10000E-03    19.351        .25463E-04** at limit **
  20  Prefactor     .10000E-03    183.04       -.23334E-04** at limit **
  21  Prefactor     .10000E-03    5.7653       -.75249E-07** at limit **
  22  norm          1.6910        .41925        .43221E-07    .12066E-02
  23  Prefactor     7.0140        17.199       -.44674E-05   -.15723E-04
  24  Prefactor     .10036E-03    12.393       -.90155E-06** at limit **
  25  norm          12.145        13.197        .10715E-05   -.14032E-04
  26  Normalizat    1.0297        .19113        .33283E-05   -.33263E-03
  27  Prefactor     .98434        .21690        .69483E-06   -.84309E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.6624
  Prefactor  = 0.0001
  Prefactor  = 22.6161
  Prefactor  = 10.133
  Prefactor  = 0.0001
  Prefactor  = 1.6975
  norm       = 21.1593
  Prefactor  = 0.534322
  Prefactor  = 0.0001
  Prefactor  = 4.1698
  norm       = 14.4238
  Prefactor  = 83.3844
  Prefactor  = 13.7096
  Prefactor  = 9.40352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.691
  Prefactor  = 7.01404
  Prefactor  = 0.000100355
  norm       = 12.1448
  Normalizat = 1.02972
  Prefactor  = 0.984336
 **********
 **   18 **HESSE 
 **********

 FCN=   5392.651     FROM HESSE     STATUS=OK           488 CALLS     3788 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5425        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.9190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.662        39.837        .70079E-04   -1.4564    
   4  Prefactor     .10000E-03    21.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.616        31.988        .84201E-04   -1.4756    
   6  Prefactor     10.133        8.5192        .12589E-03   -1.5071    
   7  Prefactor     .10000E-03    8.2664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6975        2.6689        .14216E-03   -1.5447    
   9  norm          21.159        9.7564        .87073E-04   -1.4788    
  10  Prefactor     .53432        15.905        .21853E-02   -1.5562    
  11  Prefactor     .10000E-03    10.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1698        7.8009        .18561E-03   -1.5300    
  13  norm          14.424        11.184        .10546E-03   -1.4948    
  14  Prefactor     83.384        59.096        .43990E-04   -1.3879    
  15  Prefactor     13.710        25.000        .10816E-03   -1.4967    
  16  Prefactor     9.4035        5.6929        .12649E-03   -1.5095    
  17  Prefactor     .10000E-03    2.5822        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    184.98        .21436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7847        .17220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6910        .40793        .21025E-04   -1.5448    
  23  Prefactor     7.0140        16.907        .15169E-03   -1.5178    
  24  Prefactor     .10036E-03    103.90        .46417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.145        13.179        .11494E-03   -1.5011    
  26  Normalizat    1.0297        .22417        .23880E-03   -.92041    
  27  Prefactor     .98434        .25392        .29547E-03   -.93253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13725e-09
Minuit parameter uncertainties:
  1  1.85975e-07
  2  2.65911e-05
  3  39.869
  4  0.000129943
  5  32.0126
  6  8.52021
  7  5.13802e-06
  8  2.66909
  9  9.75713
  10  5.8315
  11  1.3883e-06
  12  7.80279
  13  11.1858
  14  59.1374
  15  25.0195
  16  5.69325
  17  7.4172e-06
  18  0.00015332
  19  7.29082e-05
  20  0.000255187
  21  1.67119e-05
  22  0.40793
  23  16.9184
  24  0.0121729
  25  13.1823
  26  0.224376
  27  0.254226
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.170e+00  7.803e+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.843e-01  2.542e-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:  1.030e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809438/likelihoodResults_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.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) = 5391.46385249
delta logL = 1.18717170425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5391.38761625
delta logL = 1.26340794485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46452       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7602       1.0000          .0000       10.000    
     3 'Normalizat'    .94297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0577       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=   5391.388     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46291        4.4800        .68371E-02   -.30177E-03
   2  Index         4.7624        3.0334        .12230        .51364E-04
   3  Normalizat    .94331        .50906E-01    .45448E-01   -.97288E-04
   4  Prefactor     1.0574        .61985E-01    .64750E-01   -.59525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.462915
  Index      = 4.76244
  Normalizat = 0.943308
  Prefactor  = 1.05744
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.388     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46291        9.2325        .30844E-04   -1.5572    
   2  Index         4.7624        7.1498        .47545E-02   -.47530E-01
   3  Normalizat    .94331        .19260        .24789E-03   -.94955    
   4  Prefactor     1.0574        .23017        .28640E-03   -.90839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30483e-10
Minuit parameter uncertainties:
  1  4.13494
  2  5.44176
  3  0.19274
  4  0.230383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809438': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5391.38761359
delta logL = 1.26341060638

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.629e-01  4.135e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  4.762e+00  5.442e+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.057e+00  2.304e-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.433e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 154.607 35.680
Photon Index (Free Index): 4.76 +/- 5.44
Photon Flux (Free Index): 9.57e-08 +/- 6.22e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.18e-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/809438/cmap_HighResolution_240883201_241142401_4FGL_J1018.4+3540_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='1.26e+00', photon_flux2='9.57e-08', job_status='DONE', time_completed='2021-09-01 17:58:37.219216', photon_index_error2='5.44', photon_index2='4.76', ts='0.70', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.18e-05', EG='1.03', time_epoch_completed='1630544317.22', return_code='0', job_id='809438', GAL2='1.06', EG2='0.94', return_code2='102', photon_flux_error2='6.22e-08', ts2='3.47', photon_index='2.59' WHERE bin_id='6' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:58:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 809438: <4FGL_J1018.4+3540_daily_bin6> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin6> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:23 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:45:32 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:45:32 2021
Terminated at Wed Sep  1 17:58:37 2021
Results reported at Wed Sep  1 17:58:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin6 154.607 35.6802 240883201 241142401 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            794 sec.

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

