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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin263
RA = 154.607, Dec = 35.6802
tmin = 307497601, tmax = 307756801
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='810899', job_status='RUN', time_executed='2021-09-01 17:50:50.167689', time_epoch_executed='1630543850.17' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810899/ft1_4FGL_J1018.4+3540_daily_bin263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810899/ft2_4FGL_J1018.4+3540_daily_bin263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810899/ft1_4FGL_J1018.4+3540_daily_bin263.fits outfile=/scratch/kocevski/810899/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin263.fits ra=154.607 dec=35.6802 rad=12.0 tmin=307497601.0 tmax=307756801.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.42
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810899/ft2_4FGL_J1018.4+3540_daily_bin263.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/810899/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin263.fits evtable="EVENTS" outfile="/scratch/kocevski/810899/ft1_filtered_4FGL_J1018.4+3540_daily_bin263.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.50
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810899/ft1_filtered_4FGL_J1018.4+3540_daily_bin263.fits evtable="EVENTS" scfile=/scratch/kocevski/810899/ft2_4FGL_J1018.4+3540_daily_bin263.fits sctable="SC_DATA" expcube=/scratch/kocevski/810899/ltcube_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.fits outfile=/scratch/kocevski/810899/expmap_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.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/810899/ltcube_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.fits
.....................!
real 192.48
user 187.27
sys 4.77

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/810899/ft1_filtered_4FGL_J1018.4+3540_daily_bin263.fits scfile=/scratch/kocevski/810899/ft2_4FGL_J1018.4+3540_daily_bin263.fits outfile=/scratch/kocevski/810899/cmap_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810899/ft1_filtered_4FGL_J1018.4+3540_daily_bin263.fits scfile=/scratch/kocevski/810899/ft2_4FGL_J1018.4+3540_daily_bin263.fits outfile=/scratch/kocevski/810899/cmap_HighResolution_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.634       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83426       1.0000         .10000E-03   10000.    
     9 'norm      '    15.225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3173       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.0902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.549       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.221       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5643       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    190.82       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.420       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0772       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3100       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.9125       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0796       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93575       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=   6088.300     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3361 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5571        .40877E-06** at limit **
   2  norm          .10000E-03    7.1079       -.62325E-07** at limit **
   3  Prefactor     12.706        34.329       -.21780E-05   -.93658E-04
   4  Prefactor     16.632        23.873       -.52125E-07   -.52297E-05
   5  Prefactor     .10000E-03    48.663        .34239E-06** at limit **
   6  Prefactor     6.3262        9.3099       -.88981E-07   -.58885E-04
   7  Prefactor     4.3956        10.945       -.65870E-06   -.36101E-04
   8  Prefactor     .83439        3.1386        .11736E-05   -.15486E-03
   9  norm          15.224        9.1047       -.11593E-07   -.20675E-04
  10  Prefactor     8.3182        5.3091        .16206E-05   -.46425E-03
  11  Prefactor     .10000E-03    27.169        .12441E-06** at limit **
  12  Prefactor     .10000E-03    4.7456       -.85495E-06** at limit **
  13  norm          9.0915        9.6799       -.95970E-07   -.26348E-04
  14  Prefactor     38.540        56.076       -.17220E-05   -.57451E-04
  15  Prefactor     33.222        36.289       -.74281E-06    .16531E-04
  16  Prefactor     4.5626        4.4788       -.13958E-06   -.27682E-03
  17  Prefactor     1.8465        5.0025        .63513E-06   -.54112E-04
  18  Prefactor     .10000E-03    13.842       -.77418E-07** at limit **
  19  Prefactor     .10000E-03    7.3156       -.69988E-07** at limit **
  20  Prefactor     190.77        109.08       -.33014E-05   -.22473E-03
  21  Prefactor     12.413        18.687       -.98090E-07   -.38889E-04
  22  norm          2.0772        .42136        .16691E-07   -.11634E-03
  23  Prefactor     9.2972        23.105       -.64657E-06   -.61708E-04
  24  Prefactor     .10000E-03    5.3855        .61813E-08** at limit **
  25  norm          6.9103        20.675        .89865E-06    .37110E-04
  26  Normalizat    1.0800        .18846        .46026E-06   -.10299E-03
  27  Prefactor     .93535        .21001       -.15304E-05   -.35059E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7059
  Prefactor  = 16.6323
  Prefactor  = 0.0001
  Prefactor  = 6.3262
  Prefactor  = 4.3956
  Prefactor  = 0.834393
  norm       = 15.2245
  Prefactor  = 8.31822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.09148
  Prefactor  = 38.5404
  Prefactor  = 33.2218
  Prefactor  = 4.56264
  Prefactor  = 1.84655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 190.769
  Prefactor  = 12.4129
  norm       = 2.07724
  Prefactor  = 9.29722
  Prefactor  = 0.0001
  norm       = 6.91029
  Normalizat = 1.08003
  Prefactor  = 0.935355
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.300     FROM HESSE     STATUS=OK           494 CALLS     3855 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.1125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.706        34.561        .11233E-03   -1.4995    
   4  Prefactor     16.632        23.951        .98203E-04   -1.4892    
   5  Prefactor     .10000E-03    48.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3262        9.2575        .15957E-03   -1.5205    
   7  Prefactor     4.3956        10.933        .19201E-03   -1.5289    
   8  Prefactor     .83439        3.1259        .24135E-03   -1.5525    
   9  norm          15.224        9.1056        .10265E-03   -1.4927    
  10  Prefactor     8.3182        5.4709        .67667E-03   -1.5131    
  11  Prefactor     .10000E-03    27.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9661        .33510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.0915        9.6692        .13293E-03   -1.5105    
  14  Prefactor     38.540        56.270        .64555E-04   -1.4466    
  15  Prefactor     33.222        36.399        .69522E-04   -1.4555    
  16  Prefactor     4.5626        4.4958        .15366E-03   -1.5281    
  17  Prefactor     1.8465        4.9817        .21173E-03   -1.5436    
  18  Prefactor     .10000E-03    13.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.3187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     190.77        113.31        .14619E-03   -1.2937    
  21  Prefactor     12.413        18.772        .11366E-03   -1.5003    
  22  norm          2.0772        .42403        .20977E-04   -1.5420    
  23  Prefactor     9.2972        23.047        .13135E-03   -1.5098    
  24  Prefactor     .10000E-03    5.3874        .17683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.9103        20.445        .15259E-03   -1.5182    
  26  Normalizat    1.0800        .22721        .24733E-03   -.90396    
  27  Prefactor     .93535        .24935        .30928E-03   -.94916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31226e-10
Minuit parameter uncertainties:
  1  2.23705e-05
  2  8.31427e-06
  3  34.6158
  4  23.9643
  5  5.67608e-06
  6  9.25959
  7  10.9377
  8  3.1265
  9  9.10643
  10  5.4712
  11  9.55807e-06
  12  9.26462e-05
  13  9.67087
  14  56.3474
  15  36.4231
  16  4.49613
  17  4.98286
  18  3.88803e-08
  19  1.02875e-05
  20  113.436
  21  18.7809
  22  0.424032
  23  23.069
  24  6.11202e-06
  25  20.466
  26  0.227411
  27  0.249652
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  9.265e-05  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.354e-01  2.497e-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.080e+00  2.274e-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: 9.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810899/likelihoodResults_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.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) = 6088.30104234
delta logL = -0.000960485469477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6088.30008158
delta logL = 2.68809344561e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6279       1.0000          .0000       10.000    
     3 'Normalizat'    1.0801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93532       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6088.280     FROM MIGRAD    STATUS=FAILED       153 CALLS      315 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22895        23.670        .35646E-02   -.21232E-02
   2  Index         3.9875        1.9546        .50000        .91985E-05
   3  Normalizat    1.0655        .20172E-01    .24733E-03   -.93678E-04
   4  Prefactor     .94533        .23755E-01    .30928E-03   -.23525E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6088.280     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      385 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22895        23.670        .26847E-03   -.21232E-02
   2  Index         3.9875        1.9546        .37979E-02    .91985E-05
   3  Normalizat    1.0655        .20172E-01    .12424E-03   -.93678E-04
   4  Prefactor     .94533        .23755E-01    .67040E-04   -.23525E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6088.280     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      418 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22894        3.2483        .14258E-03    .41461E-05
   2  Index         3.9875        3.2995        .70888E-02    .27408E-04
   3  Normalizat    1.0655        .21851        .98932E-05   -.12135E-03
   4  Prefactor     .94533        .24833        .12371E-04   -.36942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.228945
  Index      = 3.98748
  Normalizat = 1.06549
  Prefactor  = 0.945328
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.280     FROM HESSE     STATUS=OK            25 CALLS      443 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22894        2.9052        .57034E-05   -1.5804    
   2  Index         3.9875        3.1457        .14178E-02   -.20392    
   3  Normalizat    1.0655        .21942        .19786E-05   -.90868    
   4  Prefactor     .94533        .24928        .24743E-05   -.94575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62365e-11
Minuit parameter uncertainties:
  1  1.63086
  2  3.4162
  3  0.21961
  4  0.249587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810899': 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) = 6088.27969187
delta logL = 0.0203899800181

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.289e-01  1.631e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.987e+00  3.416e+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:  9.453e-01  2.496e-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.065e+00  2.196e-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/810899/cmap_HighResolution_307497601_307756801_4FGL_J1018.4+3540_daily_bin263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-09-01 18:04:38.721717', job_id='810899', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1630544678.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.04e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='263' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 810899: <4FGL_J1018.4+3540_daily_bin263> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin263> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:50:31 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:50:34 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:50:34 2021
Terminated at Wed Sep  1 18:04:39 2021
Results reported at Wed Sep  1 18:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin263 154.607 35.6802 307497601 307756801 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

