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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1488
RA = 154.607, Dec = 35.6802
tmin = 625017601, tmax = 625276801
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='816770', job_status='RUN', time_executed='2021-09-01 18:10:29.243197', time_epoch_executed='1630545029.24' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816770

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816770/ft1_4FGL_J1018.4+3540_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816770/ft2_4FGL_J1018.4+3540_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816770/ft1_4FGL_J1018.4+3540_daily_bin1488.fits outfile=/scratch/kocevski/816770/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1488.fits ra=154.607 dec=35.6802 rad=12.0 tmin=625017601.0 tmax=625276801.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 12.05
user 3.40
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816770/ft1_filtered_4FGL_J1018.4+3540_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/816770/ft2_4FGL_J1018.4+3540_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/816770/ltcube_625017601_625276801_4FGL_J1018.4+3540_daily_bin1488.fits outfile=/scratch/kocevski/816770/expmap_625017601_625276801_4FGL_J1018.4+3540_daily_bin1488.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/816770/ltcube_625017601_625276801_4FGL_J1018.4+3540_daily_bin1488.fits
.....................!
real 192.59
user 187.41
sys 4.68

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/816770/ft1_filtered_4FGL_J1018.4+3540_daily_bin1488.fits scfile=/scratch/kocevski/816770/ft2_4FGL_J1018.4+3540_daily_bin1488.fits outfile=/scratch/kocevski/816770/cmap_625017601_625276801_4FGL_J1018.4+3540_daily_bin1488.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7390       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9531       1.0000         .10000E-03   10000.    
     9 'norm      '    19.655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8208       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18725E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86450E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4220       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1271       1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74054       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1827       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=   6493.647     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3277 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7390        7.3532        .19440E-06    .43826E-03
   2  norm          .10000E-03    4.5543       -.27997E-06** at limit **
   3  Prefactor     7.5633        15.416        .54752E-06    .21935E-03
   4  Prefactor     .10000E-03    60.595       -.11135E-05** at limit **
   5  Prefactor     .10000E-03    49.583       -.37647E-05** at limit **
   6  Prefactor     2.4503        5.9159        .14251E-06    .17809E-03
   7  Prefactor     .10000E-03    3.3900       -.17569E-06** at limit **
   8  Prefactor     1.9530        2.2151       -.69773E-07    .93269E-04
   9  norm          19.651        9.2496       -.60795E-07    .35251E-04
  10  Prefactor     .10000E-03    .96615       -.30377E-06** at limit **
  11  Prefactor     38.049        29.032        .76707E-06   -.46157E-04
  12  Prefactor     7.8231        4.1223        .38372E-06    .15730E-03
  13  norm          .10000E-03    9.6650       -.32989E-06** at limit **
  14  Prefactor     .10000E-03    36.428        .85256E-06** at limit **
  15  Prefactor     22.196        32.655        .25573E-05   -.67929E-04
  16  Prefactor     .10000E-03    1.1082       -.34066E-06** at limit **
  17  Prefactor     .10000E-03    11.917        .92832E-05** at limit **
  18  Prefactor     1.5871        81.120        .54417E-05    .95648E-05
  19  Prefactor     .10000E-03    9.0158       -.94693E-06** at limit **
  20  Prefactor     .10000E-03    19.046        .15579E-07** at limit **
  21  Prefactor     .10000E-03    6.4082       -.28755E-05** at limit **
  22  norm          2.4220        .39120        .14817E-08   -.13239E-03
  23  Prefactor     .10000E-03    4.9939       -.33182E-07** at limit **
  24  Prefactor     8.1294        9.3920       -.13523E-07   -.49996E-05
  25  norm          .10000E-03    4.4168        .77848E-07** at limit **
  26  Normalizat    .74044        .15535        .35427E-06    .25105E-03
  27  Prefactor     1.1828        .18950        .56589E-06    .36291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.73903
  norm       = 0.0001
  Prefactor  = 7.56333
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 2.45027
  Prefactor  = 0.0001
  Prefactor  = 1.95297
  norm       = 19.6514
  Prefactor  = 0.0001
  Prefactor  = 38.0492
  Prefactor  = 7.82307
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 22.1963
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.58715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.422
  Prefactor  = 0.0001
  Prefactor  = 8.12938
  norm       = 0.0001
  Normalizat = 0.740438
  Prefactor  = 1.1828
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.647     FROM HESSE     STATUS=OK           488 CALLS     3765 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7390        7.3702        .67796E-03   -1.5117    
   2  norm          .10000E-03    4.5582        .16799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5633        15.462        .72908E-03   -1.5158    
   4  Prefactor     .10000E-03    62.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4503        5.9003        .26140E-03   -1.5395    
   7  Prefactor     .10000E-03    3.4070        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9530        2.1969        .12096E-03   -1.5428    
   9  norm          19.651        9.2478        .90343E-04   -1.4821    
  10  Prefactor     .10000E-03    .97971        .77575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.049        29.031        .64964E-04   -1.4474    
  12  Prefactor     7.8231        4.1292        .11238E-03   -1.5148    
  13  norm          .10000E-03    9.7598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.196        32.732        .85111E-04   -1.4765    
  16  Prefactor     .10000E-03    1.1250        .83153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.079        .29888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5871        81.070        .33605E-03   -1.5456    
  19  Prefactor     .10000E-03    9.0468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.329        .37426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4220        .39214        .19456E-04   -1.5397    
  23  Prefactor     .10000E-03    5.0060        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1294        9.4012        .14064E-03   -1.5138    
  25  norm          .10000E-03    4.4277        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74044        .18387        .25242E-03   -1.0232    
  27  Prefactor     1.1828        .22514        .25698E-03   -.86862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30987e-09
Minuit parameter uncertainties:
  1  7.37098
  2  9.8404e-06
  3  15.4706
  4  0.000823255
  5  0.000646228
  6  5.90168
  7  2.34604e-05
  8  2.197
  9  9.24851
  10  2.26015e-05
  11  29.0422
  12  4.12939
  13  0.000362184
  14  0.000123484
  15  32.758
  16  2.76007e-05
  17  0.000168163
  18  22.7184
  19  4.08489e-05
  20  1.75146e-05
  21  0.000441421
  22  0.392138
  23  2.04327e-05
  24  9.40293
  25  1.11932e-05
  26  0.184025
  27  0.225322
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  7.823e+00  4.129e+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.183e+00  2.253e-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.404e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.03
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 8.96e-06

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) = 6493.56010906
delta logL = 0.0864531840689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6493.5580087
delta logL = 0.0885535465204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6397       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3595       1.0000          .0000       10.000    
     3 'Normalizat'    .75611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1699       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=   6493.558     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6322        101.81        .34094E-02    .62560E-04
   2  Index         2.3582        6.1397        .21116        .40544E-04
   3  Normalizat    .75615        .10350        .43035E-01    .20659E-04
   4  Prefactor     1.1700        .87086E-01    .58386E-01    .57418E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63216
  Index      = 2.35824
  Normalizat = 0.756149
  Prefactor  = 1.16998
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.558     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6322        4.9120        .12397E-03   -1.5120    
   2  Index         2.3582        .54527        .72352E-02   -.55666    
   3  Normalizat    .75615        .18145        .25004E-03   -1.0172    
   4  Prefactor     1.1700        .22431        .25819E-03   -.87260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17692e-12
Minuit parameter uncertainties:
  1  4.91222
  2  0.546784
  3  0.181596
  4  0.224495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816770': 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) = 6493.55800305
delta logL = 0.0885591925726

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  8.632e+00  4.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.358e+00  5.468e-01  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.170e+00  2.245e-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.561e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.14
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.36 +/- 0.55
Photon Flux (Free Index): 5.36e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.17e-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/816770/cmap_HighResolution_625017601_625276801_4FGL_J1018.4+3540_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='1.86e-05', photon_flux_error='3.38e-08', dlogl='8.86e-02', energy_flux='1.70e-05', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-09-01 18:22:57.558064', photon_index_error2='0.55', photon_index2='2.36', ts='10.03', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.74', time_epoch_completed='1630545777.56', return_code='0', job_id='816770', GAL2='1.17', EG2='0.76', return_code2='0', energy_flux_error='8.96e-06', photon_flux_error2='3.86e-08', ts2='10.14', photon_index='2.59' WHERE bin_id='1488' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:22:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 816770: <4FGL_J1018.4+3540_daily_bin1488> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1488> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:15 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:10:16 2021
Terminated at Wed Sep  1 18:22:58 2021
Results reported at Wed Sep  1 18:22:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1488 154.607 35.6802 625017601 625276801 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 :                                   735.11 sec.
    Max Memory :                                 1033 MB
    Average Memory :                             293.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

