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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin747
RA = 154.607, Dec = 35.6802
tmin = 432950401, tmax = 433209601
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='812633', job_status='RUN', time_executed='2021-09-01 17:55:56.643817', time_epoch_executed='1630544156.64' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812633/ft1_4FGL_J1018.4+3540_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812633/ft2_4FGL_J1018.4+3540_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812633/ft1_4FGL_J1018.4+3540_daily_bin747.fits outfile=/scratch/kocevski/812633/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin747.fits ra=154.607 dec=35.6802 rad=12.0 tmin=432950401.0 tmax=433209601.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 5.78
user 5.50
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812633/ft2_4FGL_J1018.4+3540_daily_bin747.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/812633/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/812633/ft1_filtered_4FGL_J1018.4+3540_daily_bin747.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812633/ft1_filtered_4FGL_J1018.4+3540_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/812633/ft2_4FGL_J1018.4+3540_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/812633/ltcube_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.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/812633/ft2_4FGL_J1018.4+3540_daily_bin747.fits
.....................!
real 17.75
user 17.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812633/ft1_filtered_4FGL_J1018.4+3540_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/812633/ft2_4FGL_J1018.4+3540_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/812633/ltcube_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.fits outfile=/scratch/kocevski/812633/expmap_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.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/812633/ltcube_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.fits
.....................!
real 193.21
user 187.54
sys 5.20

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/812633/ft1_filtered_4FGL_J1018.4+3540_daily_bin747.fits scfile=/scratch/kocevski/812633/ft2_4FGL_J1018.4+3540_daily_bin747.fits outfile=/scratch/kocevski/812633/cmap_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812633/ft1_filtered_4FGL_J1018.4+3540_daily_bin747.fits scfile=/scratch/kocevski/812633/ft2_4FGL_J1018.4+3540_daily_bin747.fits outfile=/scratch/kocevski/812633/cmap_HighResolution_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.911       1.0000         .10000E-03   10000.    
     2 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14971E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49619       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4733       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9564       1.0000         .10000E-03   10000.    
    13 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12414E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.514       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2985       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20792       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5013       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30007E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.231       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .72897       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4070       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=   5680.828     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3337 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.917        11.635        .95926E-07   -.84522E-04
   2  norm          .10000E-03    15.876       -.28908E-06** at limit **
   3  Prefactor     4.6621        51.426        .16019E-05    .24598E-05
   4  Prefactor     .10000E-03    64.457        .22002E-06** at limit **
   5  Prefactor     .10000E-03    41.324        .12577E-05** at limit **
   6  Prefactor     .10000E-03    5.0975       -.69325E-07** at limit **
   7  Prefactor     .55127        9.3684       -.18427E-05   -.12704E-03
   8  Prefactor     3.4728        2.2965        .42060E-07   -.11329E-03
   9  norm          .10000E-03    2.9688        .17656E-07** at limit **
  10  Prefactor     2.1977        4.4386       -.16504E-05   -.66509E-04
  11  Prefactor     .10000E-03    12.398       -.16596E-06** at limit **
  12  Prefactor     2.9563        4.1481        .36073E-05    .19144E-02
  13  norm          .10000E-03    8.0220       -.40225E-07** at limit **
  14  Prefactor     .10000E-03    13.148        .39498E-06** at limit **
  15  Prefactor     .10000E-03    58.344        .18162E-05** at limit **
  16  Prefactor     .10000E-03    2.2517       -.42557E-07** at limit **
  17  Prefactor     .10010E-03    6.8591        .61948E-05** at limit **
  18  Prefactor     24.507        30.898        .25877E-06   -.85664E-04
  19  Prefactor     8.2962        15.955        .10915E-06   -.23175E-04
  20  Prefactor     .10000E-03    80.028       -.40954E-05** at limit **
  21  Prefactor     .18935        8.1631        .12568E-05   -.67935E-04
  22  norm          2.5009        .43577       -.64915E-07   -.59593E-02
  23  Prefactor     .10201E-03    38.617       -.14034E-04** at limit **
  24  Prefactor     .10000E-03    24.075        .10980E-05** at limit **
  25  norm          24.205        19.988       -.10235E-05   -.35030E-03
  26  Normalizat    .72889        .17425       -.69358E-06   -.47380E-03
  27  Prefactor     1.4070        .21309       -.59675E-06   -.54833E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.9172
  norm       = 0.0001
  Prefactor  = 4.66209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.551266
  Prefactor  = 3.47282
  norm       = 0.0001
  Prefactor  = 2.19769
  Prefactor  = 0.0001
  Prefactor  = 2.95634
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 24.5072
  Prefactor  = 8.29619
  Prefactor  = 0.0001
  Prefactor  = 0.189351
  norm       = 2.50094
  Prefactor  = 0.000102014
  Prefactor  = 0.0001
  norm       = 24.2053
  Normalizat = 0.728894
  Prefactor  = 1.40698
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.828     FROM HESSE     STATUS=OK           486 CALLS     3823 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.917        11.639        .80258E-04   -1.4709    
   2  norm          .10000E-03    16.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6621        51.443        .18630E-03   -1.5276    
   4  Prefactor     .10000E-03    65.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1643        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55127        41.085        .41730E-02   -1.5559    
   8  Prefactor     3.4728        2.2927        .89410E-04   -1.5335    
   9  norm          .10000E-03    2.9769        .12683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1977        4.4977        .18543E-03   -1.5411    
  11  Prefactor     .10000E-03    12.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9563        4.6965        .85271E-03   -1.5364    
  13  norm          .10000E-03    8.1696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2782        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10010E-03    29.157        .23255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.507        30.754        .80905E-04   -1.4717    
  19  Prefactor     8.2962        15.951        .13917E-03   -1.5132    
  20  Prefactor     .10000E-03    79.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .18935        137.89        .41201E-02   -1.5621    
  22  norm          2.5009        .43322        .19926E-04   -1.5392    
  23  Prefactor     .10201E-03    182.02        .49058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.205        19.261        .81376E-04   -1.4724    
  26  Normalizat    .72889        .20171        .26581E-03   -1.0276    
  27  Prefactor     1.4070        .25075        .25570E-03   -.80179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77274e-08
Minuit parameter uncertainties:
  1  11.6398
  2  1.81892e-05
  3  31.0065
  4  0.000148623
  5  5.2199e-05
  6  1.17128e-05
  7  9.52407
  8  2.29271
  9  2.80589e-06
  10  4.49837
  11  7.28165e-06
  12  4.69704
  13  1.50897e-05
  14  1.02991e-05
  15  0.000455003
  16  8.01377e-06
  17  0.00340413
  18  30.7735
  19  15.9591
  20  7.25461e-05
  21  10.2404
  22  0.433222
  23  0.038408
  24  2.8524e-05
  25  19.2658
  26  0.201917
  27  0.250968
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.956e+00  4.697e+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.407e+00  2.510e-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.289e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/812633/likelihoodResults_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.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) = 5680.79626678
delta logL = 0.0322166014967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5680.78746213
delta logL = 0.0410212569122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4261       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9329       1.0000          .0000       10.000    
     3 'Normalizat'    .71817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4160       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=   5680.787     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4179        80.368        .65687E-02    .51101E-03
   2  Index         2.9340        6.4509        .22265        .50221E-04
   3  Normalizat    .71873        .46313E-01    .42533E-01    .53974E-03
   4  Prefactor     1.4153        .57185E-01    .57690E-01    .13146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41789
  Index      = 2.93399
  Normalizat = 0.718731
  Prefactor  = 1.41531
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.787     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4179        4.5977        .14089E-03   -1.5397    
   2  Index         2.9340        1.3888        .98607E-02   -.42597    
   3  Normalizat    .71873        .19784        .26755E-03   -1.0316    
   4  Prefactor     1.4153        .25048        .25508E-03   -.79940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36496e-09
Minuit parameter uncertainties:
  1  4.59835
  2  1.41132
  3  0.198034
  4  0.250693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812633': 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) = 5680.78745622
delta logL = 0.0410271673891

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.418e+00  4.598e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.934e+00  1.411e+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.415e+00  2.507e-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.187e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.72
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/812633/cmap_HighResolution_432950401_433209601_4FGL_J1018.4+3540_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 18:09:22.655349', job_id='812633', GAL2='1.42', fit_tolerance='1e-08', EG2='0.72', EG='0.73', time_epoch_completed='1630544962.66', return_code2='0', ts='0.72', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='4.10e-02', ts2='0.81', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='747' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 812633: <4FGL_J1018.4+3540_daily_bin747> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin747 154.607 35.6802 432950401 433209601 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 :                                   805.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

