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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin4
RA = 154.607, Dec = 35.6802
tmin = 240364801, tmax = 240624001
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='809435', job_status='RUN', time_executed='2021-09-01 17:47:41.276785', time_epoch_executed='1630543661.28' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809435/ft1_4FGL_J1018.4+3540_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809435/ft2_4FGL_J1018.4+3540_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809435/ft1_4FGL_J1018.4+3540_daily_bin4.fits outfile=/scratch/kocevski/809435/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin4.fits ra=154.607 dec=35.6802 rad=12.0 tmin=240364801.0 tmax=240624001.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.54
user 1.29
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809435/ft1_filtered_4FGL_J1018.4+3540_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/809435/ft2_4FGL_J1018.4+3540_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/809435/ltcube_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.fits outfile=/scratch/kocevski/809435/expmap_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.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/809435/ltcube_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.fits
.....................!
real 192.29
user 187.58
sys 4.17

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/809435/ft1_filtered_4FGL_J1018.4+3540_daily_bin4.fits scfile=/scratch/kocevski/809435/ft2_4FGL_J1018.4+3540_daily_bin4.fits outfile=/scratch/kocevski/809435/cmap_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809435/ft1_filtered_4FGL_J1018.4+3540_daily_bin4.fits scfile=/scratch/kocevski/809435/ft2_4FGL_J1018.4+3540_daily_bin4.fits outfile=/scratch/kocevski/809435/cmap_HighResolution_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4968       1.0000         .10000E-03   10000.    
     9 'norm      '    24.508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6303       1.0000         .10000E-03   10000.    
    13 'norm      '    9.4379       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.000       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.837       1.0000         .10000E-03   10000.    
    25 'norm      '    27.126       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76309       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3824       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=   4835.303     FROM MIGRAD    STATUS=CONVERGED   1219 CALLS     3927 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2842        .14036E-02** at limit **
   2  norm          .10000E-03    7.4709        .18142E-02** at limit **
   3  Prefactor     .10000E-03    192.67        .36285E-03** at limit **
   4  Prefactor     .10000E-03    10.034        .18142E-02** at limit **
   5  Prefactor     .10000E-03    39.864        .18142E-02** at limit **
   6  Prefactor     4.5314        8.2846        .18907E-03    .11677E-03
   7  Prefactor     .10000E-03    3.0984        .11945E-02** at limit **
   8  Prefactor     1.4953        2.6081        .14124E-03    .22401E-03
   9  norm          24.507        10.277        .80915E-04    .11240E-04
  10  Prefactor     .10000E-03    1.3928        .79946E-03** at limit **
  11  Prefactor     .11208E-03    44.412        .11384    ** at limit **
  12  Prefactor     1.6316        4.6428        .23342E-03   -.14675E-03
  13  norm          9.4551        10.103        .13045E-03    .17386E-03
  14  Prefactor     .10000E-03    15.951        .18142E-02** at limit **
  15  Prefactor     .10000E-03    67.011        .18142E-02** at limit **
  16  Prefactor     .10000E-03    2.1936        .10028E-02** at limit **
  17  Prefactor     .93917        17.974        .28134E-02    .13332E-02
  18  Prefactor     31.289        50.779        .71643E-04   -.40814E-04
  19  Prefactor     .10000E-03    13.258        .18142E-02** at limit **
  20  Prefactor     .10004E-03    388.91        .18142E-02** at limit **
  21  Prefactor     27.997        16.881        .75710E-04   -.70575E-05
  22  norm          1.8191        .43222        .21434E-04    .24451E-03
  23  Prefactor     .10000E-03    6.3806        .17142E-02** at limit **
  24  Prefactor     10.837        10.670        .12170E-03   -.46706E-05
  25  norm          27.126        16.574        .76919E-04   -.99026E-05
  26  Normalizat    .76348        .24251        .27105E-03    .28018E-03
  27  Prefactor     1.3823        .29228        .26121E-03    .25716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53137
  Prefactor  = 0.0001
  Prefactor  = 1.49534
  norm       = 24.5068
  Prefactor  = 0.0001
  Prefactor  = 0.00011208
  Prefactor  = 1.63159
  norm       = 9.45505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.939171
  Prefactor  = 31.2889
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 27.9966
  norm       = 1.8191
  Prefactor  = 0.0001
  Prefactor  = 10.8365
  norm       = 27.1259
  Normalizat = 0.763481
  Prefactor  = 1.38228
 **********
 **   18 **HESSE 
 **********

 FCN=   4835.303     FROM HESSE     STATUS=OK           472 CALLS     4399 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2845        .28072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.4711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    192.69        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5314        8.2830        .75628E-05   -1.5282    
   7  Prefactor     .10000E-03    3.0985        .23891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4953        2.6076        .56495E-05   -1.5463    
   9  norm          24.507        10.277        .32366E-05   -1.4717    
  10  Prefactor     .10000E-03    1.3928        .15989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11208E-03    41.440        .11908       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6316        4.6307        .93366E-05   -1.5452    
  13  norm          9.4551        10.097        .52180E-05   -1.5093    
  14  Prefactor     .10000E-03    15.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    67.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1937        .20056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .93917        17.510        .56268E-03   -1.5514    
  18  Prefactor     31.289        50.459        .14329E-04   -1.4589    
  19  Prefactor     .10000E-03    13.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    389.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.997        16.879        .30284E-05   -1.4649    
  22  norm          1.8191        .43221        .85737E-06   -1.5438    
  23  Prefactor     .10000E-03    6.3809        .34283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.837        10.670        .48682E-05   -1.5049    
  25  norm          27.126        16.572        .30768E-05   -1.4666    
  26  Normalizat    .76348        .24238        .10842E-04   -1.0144    
  27  Prefactor     1.3823        .29252        .52242E-04   -.80892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21359e-10
Minuit parameter uncertainties:
  1  4.92035e-06
  2  3.4612e-06
  3  0.000311518
  4  6.77287e-06
  5  6.33884e-05
  6  8.28513
  7  4.67481e-07
  8  2.60778
  9  10.2774
  10  9.73687e-06
  11  0.0447797
  12  4.63171
  13  10.0983
  14  8.42265e-07
  15  1.04476e-06
  16  2.33696e-06
  17  8.1128
  18  50.5284
  19  1.20886e-05
  20  0.00808875
  21  16.8821
  22  0.432213
  23  7.81871e-06
  24  10.6714
  25  16.5751
  26  0.242725
  27  0.292871
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.632e+00  4.632e+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.382e+00  2.929e-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.635e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809435/likelihoodResults_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.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) = 4835.22383633
delta logL = 0.0795882375614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4835.21838386
delta logL = 0.0850407112157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3382       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2535       1.0000          .0000       10.000    
     3 'Normalizat'    .74391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3972       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=   4835.218     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3376        71.534        .94768E-02    .76655E-03
   2  Index         3.2536        6.6104        .21583        .56838E-04
   3  Normalizat    .74394        .42028E-01    .62076E-01    .15388E-04
   4  Prefactor     1.3972        .52973E-01    .58809E-01    .67674E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33755
  Index      = 3.25362
  Normalizat = 0.743942
  Prefactor  = 1.39718
 **********
 **   18 **HESSE 
 **********

 FCN=   4835.218     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3376        4.2610        .14050E-03   -1.5477    
   2  Index         3.2536        1.9272        .11021E-01   -.35680    
   3  Normalizat    .74394        .23825        .27460E-03   -1.0218    
   4  Prefactor     1.3972        .29264        .26005E-03   -.80461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52186e-09
Minuit parameter uncertainties:
  1  4.26192
  2  1.98619
  3  0.238583
  4  0.292986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809435': 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) = 4835.21838383
delta logL = 0.0850407451881

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.338e+00  4.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.254e+00  1.986e+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.397e+00  2.930e-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.439e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 154.607 35.680

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/809435/cmap_HighResolution_240364801_240624001_4FGL_J1018.4+3540_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-01 18:00:06.470825', job_id='809435', GAL2='1.40', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1630544406.47', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='8.50e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='4' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 809435: <4FGL_J1018.4+3540_daily_bin4> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin4 154.607 35.6802 240364801 240624001 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 :                                   743.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            885 sec.

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

