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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin2
RA = 154.607, Dec = 35.6802
tmin = 239846401, tmax = 240105601
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='809432', job_status='RUN', time_executed='2021-09-01 17:47:21.767009', time_epoch_executed='1630543641.77' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809432/ft1_4FGL_J1018.4+3540_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809432/ft2_4FGL_J1018.4+3540_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809432/ft1_4FGL_J1018.4+3540_daily_bin2.fits outfile=/scratch/kocevski/809432/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin2.fits ra=154.607 dec=35.6802 rad=12.0 tmin=239846401.0 tmax=240105601.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.49
user 1.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809432/ft2_4FGL_J1018.4+3540_daily_bin2.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/809432/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/809432/ft1_filtered_4FGL_J1018.4+3540_daily_bin2.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.55
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809432/ft1_filtered_4FGL_J1018.4+3540_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/809432/ft2_4FGL_J1018.4+3540_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/809432/ltcube_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.fits outfile=/scratch/kocevski/809432/expmap_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.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/809432/ltcube_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.fits
.....................!
real 190.79
user 185.72
sys 4.51

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/809432/ft1_filtered_4FGL_J1018.4+3540_daily_bin2.fits scfile=/scratch/kocevski/809432/ft2_4FGL_J1018.4+3540_daily_bin2.fits outfile=/scratch/kocevski/809432/cmap_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809432/ft1_filtered_4FGL_J1018.4+3540_daily_bin2.fits scfile=/scratch/kocevski/809432/ft2_4FGL_J1018.4+3540_daily_bin2.fits outfile=/scratch/kocevski/809432/cmap_HighResolution_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.041       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4750       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29901E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    26.523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31946E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.874       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6724       1.0000         .10000E-03   10000.    
    13 'norm      '    9.9435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.682       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9354       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3856       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.737       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2803       1.0000         .10000E-03   10000.    
    22 'norm      '    .81247       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6555       1.0000         .10000E-03   10000.    
    25 'norm      '    70.633       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0735       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=   6086.617     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3306 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.043        10.370       -.48036E-07   -.47302E-04
   2  norm          .10000E-03    7.8155        .13632E-06** at limit **
   3  Prefactor     16.525        17.645        .15042E-06    .10788E-04
   4  Prefactor     20.240        22.077       -.23553E-05   -.12304E-03
   5  Prefactor     9.0224        44.634        .10210E-04    .13234E-04
   6  Prefactor     1.4743        6.8791        .17436E-04   -.61075E-05
   7  Prefactor     .10000E-03    4.7707       -.19491E-06** at limit **
   8  Prefactor     .10000E-03    1.1668       -.99664E-06** at limit **
   9  norm          26.524        10.261       -.48246E-06    .75775E-04
  10  Prefactor     .10002E-03    2.4667       -.87135E-06** at limit **
  11  Prefactor     70.889        46.465       -.12075E-05    .10998E-04
  12  Prefactor     2.6649        5.1818        .57790E-06    .48363E-03
  13  norm          9.9423        12.395        .39279E-06    .55100E-04
  14  Prefactor     .10000E-03    18.667       -.80777E-09** at limit **
  15  Prefactor     33.684        33.042        .90353E-07    .35686E-04
  16  Prefactor     7.9350        4.7618        .96907E-07    .46705E-04
  17  Prefactor     6.3845        6.4760        .28599E-06    .16445E-03
  18  Prefactor     .10000E-03    9.0856       -.55456E-07** at limit **
  19  Prefactor     10.244        25.245       -.53700E-05    .44515E-04
  20  Prefactor     38.720        72.617        .29843E-05   -.60081E-05
  21  Prefactor     5.2790        8.4834        .36934E-06    .43110E-04
  22  norm          .81242        .29179        .26984E-07    .62118E-03
  23  Prefactor     .10000E-03    3.8980        .10018E-06** at limit **
  24  Prefactor     6.6551        10.265        .10914E-06    .13676E-04
  25  norm          70.630        22.170        .12110E-06    .61207E-04
  26  Normalizat    1.0143        .18824        .17549E-05    .37494E-03
  27  Prefactor     1.0739        .21747       -.42901E-05    .15739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0428
  norm       = 0.0001
  Prefactor  = 16.5253
  Prefactor  = 20.2402
  Prefactor  = 9.02239
  Prefactor  = 1.47431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.5235
  Prefactor  = 0.000100024
  Prefactor  = 70.8893
  Prefactor  = 2.66491
  norm       = 9.94226
  Prefactor  = 0.0001
  Prefactor  = 33.6838
  Prefactor  = 7.93504
  Prefactor  = 6.38449
  Prefactor  = 0.0001
  Prefactor  = 10.2445
  Prefactor  = 38.7196
  Prefactor  = 5.27903
  norm       = 0.812417
  Prefactor  = 0.0001
  Prefactor  = 6.65514
  norm       = 70.6296
  Normalizat = 1.01426
  Prefactor  = 1.07386
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.617     FROM HESSE     STATUS=OK           494 CALLS     3800 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.043        10.378        .11544E-03   -1.5014    
   2  norm          .10000E-03    7.8208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.525        17.645        .49264E-03   -1.4895    
   4  Prefactor     20.240        22.057        .89090E-04   -1.4808    
   5  Prefactor     9.0224        44.730        .13241E-03   -1.5107    
   6  Prefactor     1.4743        6.9086        .17682E-02   -1.5465    
   7  Prefactor     .10000E-03    4.7921        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5354        .15978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.524        10.262        .77787E-04   -1.4677    
  10  Prefactor     .10002E-03    27.147        .21249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.889        46.612        .47684E-04   -1.4022    
  12  Prefactor     2.6649        4.7732        .21170E-03   -1.5381    
  13  norm          9.9423        12.359        .12707E-03   -1.5077    
  14  Prefactor     .10000E-03    18.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.684        33.072        .69047E-04   -1.4547    
  16  Prefactor     7.9350        4.7571        .12495E-03   -1.5145    
  17  Prefactor     6.3845        6.4675        .15883E-03   -1.5203    
  18  Prefactor     .10000E-03    9.0879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.244        25.199        .12493E-03   -1.5068    
  20  Prefactor     38.720        72.590        .64399E-04   -1.4463    
  21  Prefactor     5.2790        8.4744        .17491E-03   -1.5248    
  22  norm          .81242        .29222        .24143E-04   -1.5528    
  23  Prefactor     .10000E-03    3.9003        .15042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.6551        10.294        .15554E-03   -1.5192    
  25  norm          70.630        22.160        .23882E-03   -1.4025    
  26  Normalizat    1.0143        .22120        .24874E-03   -.92554    
  27  Prefactor     1.0739        .25585        .29716E-03   -.90306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0418e-09
Minuit parameter uncertainties:
  1  10.3798
  2  2.31293e-05
  3  17.6501
  4  22.0654
  5  40.2262
  6  6.38392
  7  2.27422e-05
  8  8.24428e-05
  9  10.2622
  10  0.00161097
  11  46.6356
  12  4.77389
  13  12.362
  14  2.89992e-05
  15  33.0901
  16  4.75737
  17  6.46817
  18  2.53472e-06
  19  25.2255
  20  72.7565
  21  8.47636
  22  0.292225
  23  1.66106e-05
  24  10.2971
  25  22.1627
  26  0.221399
  27  0.256141
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.665e+00  4.774e+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.074e+00  2.561e-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.014e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809432/likelihoodResults_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.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) = 6086.33478633
delta logL = 0.282003403422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6086.30973749
delta logL = 0.307052250063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79834       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0099       1.0000          .0000       10.000    
     3 'Normalizat'    .97223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1098       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=   6086.310     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      248 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79863        12.194        .12434E-01   -.31566E-03
   2  Index         4.0102        3.0827        .20567        .15997E-03
   3  Normalizat    .97213        .34127E-01    .45818E-01    .13715E-04
   4  Prefactor     1.1099        .42021E-01    .66230E-01    .14800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.79863
  Index      = 4.01022
  Normalizat = 0.972131
  Prefactor  = 1.10992
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.310     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79863        44.082        .72932E-04   -1.5529    
   2  Index         4.0102        6.5320        .71012E-02   -.19927    
   3  Normalizat    .97213        .19454        .25343E-03   -.93970    
   4  Prefactor     1.1099        .23698        .29297E-03   -.89150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28853e-07
Minuit parameter uncertainties:
  1  11.8753
  2  9.78666
  3  0.194686
  4  0.237201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809432': 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) = 6086.30973719
delta logL = 0.307052543328

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  7.986e-01  1.188e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  4.010e+00  9.787e+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.110e+00  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.721e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 154.607 35.680
Photon Index (Free Index): 4.01 +/- 9.79
Photon Flux (Free Index): 5.01e-08 +/- 5.62e-08
Energy Flux (Free Index): 7.48e-06 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/809432/cmap_HighResolution_239846401_240105601_4FGL_J1018.4+3540_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.72e-03', comment='SUCCESS', energy_flux2='7.48e-06', dlogl='3.07e-01', photon_flux2='5.01e-08', job_status='DONE', time_completed='2021-09-01 18:00:52.959055', photon_index_error2='9.79', photon_index2='4.01', ts='0.41', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.26e-05', EG='1.01', time_epoch_completed='1630544452.96', return_code='0', job_id='809432', GAL2='1.11', EG2='0.97', return_code2='102', photon_flux_error2='5.62e-08', ts2='1.09', photon_index='2.59' WHERE bin_id='2' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 809432: <4FGL_J1018.4+3540_daily_bin2> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin2> 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) <bullet0031>, 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:53 2021
Results reported at Wed Sep  1 18:00:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin2 154.607 35.6802 239846401 240105601 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 :                                   804.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            931 sec.

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

