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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1028
RA = 154.607, Dec = 35.6802
tmin = 505785601, tmax = 506044801
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='813009', job_status='RUN', time_executed='2021-09-01 17:59:01.990084', time_epoch_executed='1630544341.99' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813009

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813009/ft1_4FGL_J1018.4+3540_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits


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

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

Done.
real 3.60
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813009/ft1_filtered_4FGL_J1018.4+3540_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/813009/ltcube_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.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/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits
.....................!
real 16.75
user 16.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813009/ft1_filtered_4FGL_J1018.4+3540_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/813009/ltcube_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.fits outfile=/scratch/kocevski/813009/expmap_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.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/813009/ltcube_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.fits
.....................!
real 193.78
user 189.26
sys 4.00

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/813009/ft1_filtered_4FGL_J1018.4+3540_daily_bin1028.fits scfile=/scratch/kocevski/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits outfile=/scratch/kocevski/813009/cmap_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813009/ft1_filtered_4FGL_J1018.4+3540_daily_bin1028.fits scfile=/scratch/kocevski/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits outfile=/scratch/kocevski/813009/cmap_HighResolution_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.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/813009/ft1_filtered_4FGL_J1018.4+3540_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/813009/ft2_4FGL_J1018.4+3540_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/813009/Model_4FGL_J1018.4+3540_daily_bin1028.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/813009/ft1_filtered_4FGL_J1018.4+3540_daily_bin1028.fits.....................!
real 52.45
user 51.09
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.382       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2205       1.0000         .10000E-03   10000.    
    13 'norm      '    .11928E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.525       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1370       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6704       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89942       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0615       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=   5935.933     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3273 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5787       -.10204E-05** at limit **
   2  norm          .10000E-03    4.3367       -.42617E-06** at limit **
   3  Prefactor     54.769        38.866       -.28360E-05    .31730E-04
   4  Prefactor     .10000E-03    6.0299        .14047E-05** at limit **
   5  Prefactor     .10000E-03    23.687       -.21523E-05** at limit **
   6  Prefactor     14.381        11.156       -.17028E-05   -.12523E-02
   7  Prefactor     .10000E-03    6.1044       -.13590E-05** at limit **
   8  Prefactor     .10000E-03    1.1810       -.23828E-06** at limit **
   9  norm          11.511        11.971       -.87608E-06   -.14376E-04
  10  Prefactor     .10000E-03    2.2973       -.18126E-06** at limit **
  11  Prefactor     10.221        23.931       -.23106E-04   -.24376E-03
  12  Prefactor     6.2186        5.4800       -.99878E-06   -.52351E-03
  13  norm          .10001E-03    7.7167        .42108E-05** at limit **
  14  Prefactor     .10000E-03    14.283        .36127E-06** at limit **
  15  Prefactor     .10000E-03    32.810        .38091E-05** at limit **
  16  Prefactor     .10000E-03    1.2474        .17882E-06** at limit **
  17  Prefactor     6.0201        5.0347       -.10913E-06   -.60941E-03
  18  Prefactor     10.969        31.353       -.19524E-04   -.10763E-03
  19  Prefactor     .10000E-03    15.101       -.45551E-05** at limit **
  20  Prefactor     94.488        88.072       -.35913E-04   -.42327E-05
  21  Prefactor     .10000E-03    9.2541       -.74834E-06** at limit **
  22  norm          1.1369        .31437        .25312E-07    .24856E-03
  23  Prefactor     6.6683        13.829       -.17665E-05   -.11695E-03
  24  Prefactor     .10000E-03    4.3919        .11715E-05** at limit **
  25  norm          .10000E-03    13.593        .37178E-05** at limit **
  26  Normalizat    .89965        .16578        .65183E-05   -.53958E-03
  27  Prefactor     1.0612        .19323        .54667E-06   -.68041E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 54.7691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5111
  Prefactor  = 0.0001
  Prefactor  = 10.2212
  Prefactor  = 6.21859
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02007
  Prefactor  = 10.9687
  Prefactor  = 0.0001
  Prefactor  = 94.4876
  Prefactor  = 0.0001
  norm       = 1.13694
  Prefactor  = 6.66826
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.89965
  Prefactor  = 1.06124
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.933     FROM HESSE     STATUS=OK           486 CALLS     3759 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6218        .16101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.3395        .15670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.769        38.792        .54199E-04   -1.4226    
   4  Prefactor     .10000E-03    6.0335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.381        11.197        .52809E-03   -1.4949    
   7  Prefactor     .10000E-03    6.1999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9356        .16140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.511        11.957        .11808E-03   -1.5029    
  10  Prefactor     .10000E-03    6.1603        .20071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.221        23.818        .12521E-03   -1.5068    
  12  Prefactor     6.2186        4.9490        .14091E-03   -1.5209    
  13  norm          .10001E-03    38.414        .39874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2568        .83988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0201        5.0091        .14723E-03   -1.5217    
  18  Prefactor     10.969        31.333        .12091E-03   -1.5045    
  19  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     94.488        87.356        .20669E-03   -1.3761    
  21  Prefactor     .10000E-03    9.3084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1369        .31531        .21256E-04   -1.5495    
  23  Prefactor     6.6683        13.845        .15537E-03   -1.5191    
  24  Prefactor     .10000E-03    4.3939        .15766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    13.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89965        .19392        .23560E-03   -.96472    
  27  Prefactor     1.0612        .22770        .26950E-03   -.90715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01469e-09
Minuit parameter uncertainties:
  1  3.00511e-05
  2  5.4687e-06
  3  38.8097
  4  1.01828e-05
  5  8.44122e-05
  6  11.1983
  7  3.26758e-05
  8  3.32599e-05
  9  11.9595
  10  0.000107354
  11  23.8399
  12  4.94933
  13  0.00111056
  14  1.94039e-05
  15  0.000178581
  16  1.80163e-05
  17  5.00943
  18  31.3804
  19  5.4366e-05
  20  87.4747
  21  6.0752e-05
  22  0.315306
  23  13.8516
  24  8.82661e-07
  25  7.12095e-05
  26  0.194067
  27  0.227911
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  6.219e+00  4.949e+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.061e+00  2.279e-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:  8.997e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/813009/likelihoodResults_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.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) = 5933.9248968
delta logL = 2.00799938746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5933.82252981
delta logL = 2.11036637351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14666       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4955       1.0000          .0000       10.000    
     3 'Normalizat'    .82126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1381       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=   5933.823     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      320 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14569        1.1004        .31390E-02    .57189E-03
   2  Index         5.4993        2.8042        .96451E-01    .12509E-03
   3  Normalizat    .82138        .54453E-01    .43887E-01   -.42870E-04
   4  Prefactor     1.1380        .67470E-01    .59139E-01   -.27943E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.145693
  Index      = 5.49932
  Normalizat = 0.821377
  Prefactor  = 1.13804
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.823     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14569        1.8334        .14070E-04   -1.5632    
   2  Index         5.4993        3.6810        .40151E-02    .10003    
   3  Normalizat    .82138        .17011        .24488E-03   -.99281    
   4  Prefactor     1.1380        .20631        .26153E-03   -.88260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11714e-07
Minuit parameter uncertainties:
  1  1.03334
  2  4.14383
  3  0.170219
  4  0.206452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813009': 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) = 5933.82252836
delta logL = 2.11036782498

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.457e-01  1.033e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  5.499e+00  4.144e+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.138e+00  2.065e-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:  8.214e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.84
Ra Dec: 154.607 35.680
Photon Index (Free Index): 5.50 +/- 4.14
Photon Flux (Free Index): 1.01e-07 +/- 5.34e-08
Energy Flux (Free Index): 1.29e-05 +/- 8.75e-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/813009/cmap_HighResolution_505785601_506044801_4FGL_J1018.4+3540_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='1.29e-05', photon_flux_error='4.05e-08', dlogl='2.11e+00', energy_flux='1.35e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-01 18:12:29.832203', photon_index_error2='4.14', photon_index2='5.50', ts='2.24', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='8.75e-06', EG='0.90', time_epoch_completed='1630545149.83', return_code='0', job_id='813009', GAL2='1.14', EG2='0.82', return_code2='102', energy_flux_error='1.07e-05', photon_flux_error2='5.34e-08', ts2='6.84', photon_index='2.59' WHERE bin_id='1028' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:12:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 813009: <4FGL_J1018.4+3540_daily_bin1028> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1028> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:10 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:23 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:56:23 2021
Terminated at Wed Sep  1 18:12:30 2021
Results reported at Wed Sep  1 18:12:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1028 154.607 35.6802 505785601 506044801 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 :                                   807.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            980 sec.

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

