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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin8
RA = 154.607, Dec = 35.6802
tmin = 241401601, tmax = 241660801
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='809441', job_status='RUN', time_executed='2021-09-01 17:46:04.900638', time_epoch_executed='1630543564.9' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809441/ft1_4FGL_J1018.4+3540_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809441/ft2_4FGL_J1018.4+3540_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809441/ft1_4FGL_J1018.4+3540_daily_bin8.fits outfile=/scratch/kocevski/809441/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin8.fits ra=154.607 dec=35.6802 rad=12.0 tmin=241401601.0 tmax=241660801.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.47
user 1.31
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809441/ft1_filtered_4FGL_J1018.4+3540_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/809441/ft2_4FGL_J1018.4+3540_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/809441/ltcube_241401601_241660801_4FGL_J1018.4+3540_daily_bin8.fits outfile=/scratch/kocevski/809441/expmap_241401601_241660801_4FGL_J1018.4+3540_daily_bin8.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/809441/ltcube_241401601_241660801_4FGL_J1018.4+3540_daily_bin8.fits
.....................!
real 192.53
user 187.19
sys 4.72

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/809441/ft1_filtered_4FGL_J1018.4+3540_daily_bin8.fits scfile=/scratch/kocevski/809441/ft2_4FGL_J1018.4+3540_daily_bin8.fits outfile=/scratch/kocevski/809441/cmap_241401601_241660801_4FGL_J1018.4+3540_daily_bin8.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11997E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10577       1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7869       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4305       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.410       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9274       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12906E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.795       1.0000         .10000E-03   10000.    
    25 'norm      '    29.909       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78858       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2216       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=   6477.280     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     2802 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9669        .20991E-06** at limit **
   2  norm          .10002E-03    9.0107        .16860E-06** at limit **
   3  Prefactor     .10000E-03    10.825        .11227E-06** at limit **
   4  Prefactor     .10816E-03    556.62        .34616E-04** at limit **
   5  Prefactor     54.110        20.079       -.45382E-07   -.64537E-02
   6  Prefactor     .10000E-03    1.8260        .39859E-06** at limit **
   7  Prefactor     4.7844        5.2633       -.96411E-07   -.17865E-02
   8  Prefactor     .10000E-03    3.5927       -.61628E-06** at limit **
   9  norm          31.205        11.027       -.11015E-06   -.89432E-02
  10  Prefactor     7.9737        4.1608       -.46314E-07    .37103E-03
  11  Prefactor     8.7249        23.110        .24085E-05   -.22768E-02
  12  Prefactor     .10000E-03    1.4459        .74001E-07** at limit **
  13  norm          2.1523        1.7786       -.13462E-06   -.29913E-04
  14  Prefactor     21.539        3.4744       -.36854E-06    .29647E-03
  15  Prefactor     24.335        10.150        .87730E-07   -.73380E-02
  16  Prefactor     5.4291        4.3833       -.19324E-07    .23860E-03
  17  Prefactor     2.9324        5.5423       -.93942E-07   -.99432E-03
  18  Prefactor     .10003E-03    8.4640        .67062E-06** at limit **
  19  Prefactor     22.401        2.9250        .18340E-06   -.31512E-02
  20  Prefactor     .10004E-03    39.680        .43841E-06** at limit **
  21  Prefactor     .10000E-03    4.6885        .13484E-06** at limit **
  22  norm          1.9274        .37254        .22559E-07    .13015E-02
  23  Prefactor     .10000E-03    16.649        .19741E-05** at limit **
  24  Prefactor     24.790        2.4174       -.78519E-07    .40181E-02
  25  norm          29.896        8.1683       -.22603E-06    .14816E-01
  26  Normalizat    .78853        .20166        .14228E-06    .11991E-03
  27  Prefactor     1.2217        .24539        .11190E-06    .10543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 0.000108161
  Prefactor  = 54.1097
  Prefactor  = 0.0001
  Prefactor  = 4.78438
  Prefactor  = 0.0001
  norm       = 31.2045
  Prefactor  = 7.97366
  Prefactor  = 8.72494
  Prefactor  = 0.0001
  norm       = 2.15233
  Prefactor  = 21.5389
  Prefactor  = 24.3349
  Prefactor  = 5.42915
  Prefactor  = 2.93245
  Prefactor  = 0.000100027
  Prefactor  = 22.4013
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  norm       = 1.92745
  Prefactor  = 0.0001
  Prefactor  = 24.7901
  norm       = 29.8965
  Normalizat = 0.788535
  Prefactor  = 1.22169
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.280     FROM HESSE     STATUS=OK           558 CALLS     3360 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    9.0341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10816E-03    24.684        .11786       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.110        41.667        .13632E-02   -1.4235    
   6  Prefactor     .10000E-03    1.8220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7844        5.2741        .45972E-02   -1.5270    
   8  Prefactor     .10000E-03    1.6885        .32926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.205        11.469        .17935E-02   -1.4590    
  10  Prefactor     7.9737        4.1686        .35500E-02   -1.5143    
  11  Prefactor     8.7249        36.607        .33656E-02   -1.5117    
  12  Prefactor     .10000E-03    1.4393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1523        6.0211        .70269E-02   -1.5415    
  14  Prefactor     21.539        49.276        .21593E-02   -1.4779    
  15  Prefactor     24.335        24.344        .20305E-02   -1.4721    
  16  Prefactor     5.4291        4.6603        .43109E-02   -1.5242    
  17  Prefactor     2.9324        5.9547        .59325E-02   -1.5365    
  18  Prefactor     .10003E-03    8.5193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.401        23.672        .21153E-02   -1.4761    
  20  Prefactor     .10004E-03    39.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9274        .38204        .47332E-02   -1.5430    
  23  Prefactor     .10000E-03    16.506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.790        16.727        .20111E-02   -1.4712    
  25  norm          29.896        17.037        .18315E-02   -1.4614    
  26  Normalizat    .78853        .17443        .43461E-01   -1.0050    
  27  Prefactor     1.2217        .20747        .61978E-01   -.85666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34854e-06
Minuit parameter uncertainties:
  1  0.000256378
  2  0.000742588
  3  0.000233058
  4  0.0283981
  5  41.6892
  6  2.34137e-05
  7  5.27457
  8  3.42909e-05
  9  11.4701
  10  4.16872
  11  35.7803
  12  4.02264e-06
  13  6.02283
  14  49.3692
  15  24.3537
  16  4.66058
  17  5.95595
  18  0.000964611
  19  23.6815
  20  0.00239216
  21  1.2769e-05
  22  0.382045
  23  0.000143692
  24  16.7305
  25  17.0399
  26  0.174555
  27  0.207607
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  4.023e-06  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.222e+00  2.076e-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.885e-01  1.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809441/likelihoodResults_241401601_241660801_4FGL_J1018.4+3540_daily_bin8.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): 102
logL (Free Index) = 6477.2830977
delta logL = -0.00324917210946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6477.27984837
delta logL = 1.64478478837e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5709       1.0000          .0000       10.000    
     3 'Normalizat'    .78854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2217       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=   6477.280     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      255 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.012        .95663E-02** at limit **
   2  Index         1.9656        6.7045        .20000       -.13642E-08
   3  Normalizat    .78854        .20417E-01    .26740E-03    .22716E-03
   4  Prefactor     1.2217        .25588E-01    .27411E-03    .23259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96562
  Normalizat = 0.788535
  Prefactor  = 1.22169
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.280     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9465        .10906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9656        7.6182        .80000E-02   -.65213    
   3  Normalizat    .78854        .19392        .10696E-04   -1.0050    
   4  Prefactor     1.2217        .24303        .54822E-04   -.85666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70816e-11
Minuit parameter uncertainties:
  1  8.56318e-07
  2  145.412
  3  0.194094
  4  0.24325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809441': 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) = 6477.2798398
delta logL = 8.73450608196e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  8.563e-07  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.966e+00  1.454e+02  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.222e+00  2.433e-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.885e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/809441/cmap_HighResolution_241401601_241660801_4FGL_J1018.4+3540_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-01 17:59:22.792124', job_id='809441', GAL2='1.22', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630544362.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='8.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='8' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 809441: <4FGL_J1018.4+3540_daily_bin8> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin8> 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) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:45: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 17:45:33 2021
Terminated at Wed Sep  1 17:59:23 2021
Results reported at Wed Sep  1 17:59:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin8 154.607 35.6802 241401601 241660801 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 :                                   796.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            840 sec.

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

