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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1010
RA = 154.607, Dec = 35.6802
tmin = 501120001, tmax = 501379201
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='812983', job_status='RUN', time_executed='2021-09-01 17:58:39.759870', time_epoch_executed='1630544319.76' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812983

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812983/ft1_4FGL_J1018.4+3540_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812983/ft2_4FGL_J1018.4+3540_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812983/ft1_4FGL_J1018.4+3540_daily_bin1010.fits outfile=/scratch/kocevski/812983/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1010.fits ra=154.607 dec=35.6802 rad=12.0 tmin=501120001.0 tmax=501379201.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.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812983/ft1_filtered_4FGL_J1018.4+3540_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/812983/ft2_4FGL_J1018.4+3540_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/812983/ltcube_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.fits outfile=/scratch/kocevski/812983/expmap_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.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/812983/ltcube_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.fits
.....................!
real 193.16
user 187.19
sys 5.10

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/812983/ft1_filtered_4FGL_J1018.4+3540_daily_bin1010.fits scfile=/scratch/kocevski/812983/ft2_4FGL_J1018.4+3540_daily_bin1010.fits outfile=/scratch/kocevski/812983/cmap_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812983/ft1_filtered_4FGL_J1018.4+3540_daily_bin1010.fits scfile=/scratch/kocevski/812983/ft2_4FGL_J1018.4+3540_daily_bin1010.fits outfile=/scratch/kocevski/812983/cmap_HighResolution_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4598       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12214E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8571       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9924       1.0000         .10000E-03   10000.    
     9 'norm      '    12.098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3390       1.0000         .10000E-03   10000.    
    13 'norm      '    .14198E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7767       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4140       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.611       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0739       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .63589       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=   6411.297     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3305 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4605        5.4321        .67705E-06    .10607E-03
   2  norm          .10000E-03    8.2961        .21225E-06** at limit **
   3  Prefactor     .10000E-03    7.0732       -.10471E-07** at limit **
   4  Prefactor     .10000E-03    51.490       -.17326E-06** at limit **
   5  Prefactor     12.239        24.526        .43255E-05    .24399E-03
   6  Prefactor     31.875        9.8076        .22906E-08   -.19400E-04
   7  Prefactor     5.8565        6.4999       -.41782E-07   -.44924E-04
   8  Prefactor     1.9925        2.2780        .10245E-06   -.13390E-03
   9  norm          12.099        6.8047       -.69122E-08   -.18109E-04
  10  Prefactor     1.5910        3.2039        .34107E-06   -.26198E-03
  11  Prefactor     .10000E-03    36.586       -.40093E-06** at limit **
  12  Prefactor     5.3363        4.1151        .19321E-06   -.14387E-03
  13  norm          .10004E-03    5.4586       -.53349E-06** at limit **
  14  Prefactor     23.003        46.092       -.11528E-05   -.48074E-04
  15  Prefactor     50.409        37.104        .33978E-05   -.23889E-03
  16  Prefactor     3.7740        4.2457        .37440E-06   -.14018E-03
  17  Prefactor     .10007E-03    5.6338       -.55265E-06** at limit **
  18  Prefactor     .10000E-03    43.451        .87327E-06** at limit **
  19  Prefactor     5.1251        11.470        .25567E-05   -.35733E-03
  20  Prefactor     .10000E-03    21.989       -.17304E-05** at limit **
  21  Prefactor     .10000E-03    3.0572       -.16856E-07** at limit **
  22  norm          1.4141        .30779        .50514E-08   -.24605E-03
  23  Prefactor     .10000E-03    42.533        .10971E-05** at limit **
  24  Prefactor     .10000E-03    14.628       -.11778E-05** at limit **
  25  norm          11.620        11.872        .15167E-06   -.35218E-04
  26  Normalizat    1.0740        .15385       -.25548E-06   -.26819E-04
  27  Prefactor     .63579        .17677        .45351E-07   -.68724E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46047
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 12.239
  Prefactor  = 31.8755
  Prefactor  = 5.85653
  Prefactor  = 1.9925
  norm       = 12.0985
  Prefactor  = 1.591
  Prefactor  = 0.0001
  Prefactor  = 5.33631
  norm       = 0.000100035
  Prefactor  = 23.0027
  Prefactor  = 50.4093
  Prefactor  = 3.77405
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  Prefactor  = 5.12506
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.41413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6198
  Normalizat = 1.07399
  Prefactor  = 0.635789
 **********
 **   18 **HESSE 
 **********

 FCN=   6411.297     FROM HESSE     STATUS=OK           494 CALLS     3799 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4605        5.4013        .21742E-03   -1.5336    
   2  norm          .10000E-03    8.3090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.239        25.053        .11466E-03   -1.5008    
   6  Prefactor     31.875        9.7983        .70970E-04   -1.4578    
   7  Prefactor     5.8565        6.4959        .16594E-03   -1.5224    
   8  Prefactor     1.9925        2.2581        .12186E-03   -1.5426    
   9  norm          12.099        6.8042        .11517E-03   -1.5012    
  10  Prefactor     1.5910        3.1425        .18354E-03   -1.5456    
  11  Prefactor     .10000E-03    36.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3363        4.0714        .12883E-03   -1.5246    
  13  norm          .10004E-03    47.394        .34892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.003        46.183        .83509E-04   -1.4748    
  15  Prefactor     50.409        35.846        .56478E-04   -1.4287    
  16  Prefactor     3.7740        4.1884        .16173E-03   -1.5319    
  17  Prefactor     .10007E-03    16.592        .32702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1251        11.408        .88802E-03   -1.5255    
  20  Prefactor     .10000E-03    22.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0600        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4141        .30751        .19958E-04   -1.5470    
  23  Prefactor     .10000E-03    44.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.620        11.837        .11756E-03   -1.5026    
  26  Normalizat    1.0740        .17587        .20905E-03   -.90591    
  27  Prefactor     .63579        .20144        .31519E-03   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95088e-09
Minuit parameter uncertainties:
  1  5.40201
  2  4.57354e-05
  3  2.24921e-07
  4  0.00101892
  5  25.0744
  6  9.79878
  7  6.49664
  8  2.25818
  9  6.80461
  10  3.14279
  11  0.000174542
  12  4.07156
  13  0.0025956
  14  46.2553
  15  35.8613
  16  4.18869
  17  0.00221525
  18  6.07794e-05
  19  11.4128
  20  0.000212654
  21  2.85319e-07
  22  0.307511
  23  0.000114664
  24  0.000115792
  25  11.8395
  26  0.175962
  27  0.20167
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.336e+00  4.072e+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:  6.358e-01  2.017e-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.074e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 8.83e-06

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

Saving results to:
/scratch/kocevski/812983/likelihoodResults_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.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) = 6411.22521765
delta logL = 0.0718799252818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6411.22257272
delta logL = 0.0745248519688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2993       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3627       1.0000          .0000       10.000    
     3 'Normalizat'    1.0805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62961       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=   6411.223     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3057        130.90        .39983E-02    .17247E-03
   2  Index         2.3637        6.0916        .21072        .35668E-04
   3  Normalizat    1.0804        .73926E-01    .38856E-01    .40330E-05
   4  Prefactor     .62957        .85034E-01    .71516E-01    .27435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30575
  Index      = 2.36369
  Normalizat = 1.08045
  Prefactor  = 0.62957
 **********
 **   18 **HESSE 
 **********

 FCN=   6411.223     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3057        5.0147        .13953E-03   -1.5206    
   2  Index         2.3637        .56366        .78021E-02   -.55537    
   3  Normalizat    1.0804        .16905        .20849E-03   -.90382    
   4  Prefactor     .62957        .19971        .31656E-03   -1.0636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72271e-13
Minuit parameter uncertainties:
  1  5.01507
  2  0.565327
  3  0.169131
  4  0.19994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812983': 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) = 6411.22256883
delta logL = 0.0745287481759

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  6.306e+00  5.015e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.364e+00  5.653e-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:  6.296e-01  1.999e-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  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.36 +/- 0.57
Photon Flux (Free Index): 3.94e-08 +/- 3.11e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.18e-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/812983/cmap_HighResolution_501120001_501379201_4FGL_J1018.4+3540_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='1.36e-05', photon_flux_error='3.33e-08', dlogl='7.45e-02', energy_flux='1.16e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-01 18:12:43.386943', photon_index_error2='0.57', photon_index2='2.36', ts='3.38', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.18e-05', EG='1.07', time_epoch_completed='1630545163.39', return_code='0', job_id='812983', GAL2='0.63', EG2='1.08', return_code2='0', energy_flux_error='8.83e-06', photon_flux_error2='3.11e-08', ts2='3.52', photon_index='2.59' WHERE bin_id='1010' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 812983: <4FGL_J1018.4+3540_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1010 154.607 35.6802 501120001 501379201 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 :                                   841.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            995 sec.

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

