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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin798
RA = 154.607, Dec = 35.6802
tmin = 446169601, tmax = 446428801
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='812706', job_status='RUN', time_executed='2021-09-01 17:55:58.395392', time_epoch_executed='1630544158.4' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='798'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812706/ft1_4FGL_J1018.4+3540_daily_bin798.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812706/ft2_4FGL_J1018.4+3540_daily_bin798.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812706/ft1_4FGL_J1018.4+3540_daily_bin798.fits outfile=/scratch/kocevski/812706/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin798.fits ra=154.607 dec=35.6802 rad=12.0 tmin=446169601.0 tmax=446428801.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.46
user 3.21
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812706/ft1_filtered_4FGL_J1018.4+3540_daily_bin798.fits" evtable="EVENTS" scfile=/scratch/kocevski/812706/ft2_4FGL_J1018.4+3540_daily_bin798.fits sctable="SC_DATA" outfile=/scratch/kocevski/812706/ltcube_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.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/812706/ft2_4FGL_J1018.4+3540_daily_bin798.fits
.....................!
real 13.40
user 13.00
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812706/ft1_filtered_4FGL_J1018.4+3540_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/812706/ft2_4FGL_J1018.4+3540_daily_bin798.fits sctable="SC_DATA" expcube=/scratch/kocevski/812706/ltcube_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.fits outfile=/scratch/kocevski/812706/expmap_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.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/812706/ltcube_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.fits
.....................!
real 193.35
user 188.02
sys 4.89

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/812706/ft1_filtered_4FGL_J1018.4+3540_daily_bin798.fits scfile=/scratch/kocevski/812706/ft2_4FGL_J1018.4+3540_daily_bin798.fits outfile=/scratch/kocevski/812706/cmap_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812706/ft1_filtered_4FGL_J1018.4+3540_daily_bin798.fits scfile=/scratch/kocevski/812706/ft2_4FGL_J1018.4+3540_daily_bin798.fits outfile=/scratch/kocevski/812706/cmap_HighResolution_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3961       1.0000         .10000E-03   10000.    
     2 'norm      '    .10805E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.592       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5967       1.0000         .10000E-03   10000.    
    13 'norm      '    5.0249       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .75206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .94883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3518       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8535       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1045       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0539       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1395       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65089       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=   5440.378     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3322 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3957        8.4409       -.14777E-06   -.18554E-04
   2  norm          .10000E-03    9.2267        .21953E-07** at limit **
   3  Prefactor     18.682        27.093        .23378E-06    .59441E-04
   4  Prefactor     18.900        26.266       -.17159E-05   -.59958E-04
   5  Prefactor     .10000E-03    54.358       -.19305E-05** at limit **
   6  Prefactor     7.1089        8.4558        .27233E-06    .15137E-03
   7  Prefactor     .10000E-03    7.5372       -.29321E-06** at limit **
   8  Prefactor     .10000E-03    1.6303       -.35998E-06** at limit **
   9  norm          17.591        10.069       -.10258E-07    .80296E-04
  10  Prefactor     1.5169        4.6290       -.74455E-06   -.15293E-04
  11  Prefactor     14.376        31.503       -.17312E-06    .26484E-04
  12  Prefactor     5.5977        4.9881        .48117E-06    .37847E-03
  13  norm          5.0260        8.8115        .40814E-06    .88426E-04
  14  Prefactor     .10000E-03    16.498       -.17590E-06** at limit **
  15  Prefactor     .10000E-03    33.750       -.25665E-06** at limit **
  16  Prefactor     5.9475        4.3199        .16770E-06    .27130E-03
  17  Prefactor     .74933        4.5726       -.37969E-06    .32662E-03
  18  Prefactor     .78681        37.243       -.17035E-05    .42676E-05
  19  Prefactor     .10000E-03    7.5883       -.17148E-06** at limit **
  20  Prefactor     3.1316        393.66        .17583E-04    .22353E-04
  21  Prefactor     .10000E-03    4.3689       -.21432E-06** at limit **
  22  norm          1.3519        .33500        .25902E-07    .10139E-02
  23  Prefactor     1.8515        14.058       -.10782E-05   -.93043E-05
  24  Prefactor     9.1047        10.752        .35450E-07    .31377E-04
  25  norm          1.0525        17.257        .54572E-05   -.10113E-03
  26  Normalizat    1.1391        .19528       -.15900E-05    .74321E-03
  27  Prefactor     .65147        .21968        .38929E-05    .26231E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39572
  norm       = 0.0001
  Prefactor  = 18.6816
  Prefactor  = 18.9
  Prefactor  = 0.0001
  Prefactor  = 7.10891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5906
  Prefactor  = 1.51694
  Prefactor  = 14.3764
  Prefactor  = 5.59771
  norm       = 5.02601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94749
  Prefactor  = 0.749333
  Prefactor  = 0.78681
  Prefactor  = 0.0001
  Prefactor  = 3.13159
  Prefactor  = 0.0001
  norm       = 1.35191
  Prefactor  = 1.85155
  Prefactor  = 9.10472
  norm       = 1.05245
  Normalizat = 1.13914
  Prefactor  = 0.651471
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.378     FROM HESSE     STATUS=OK           502 CALLS     3824 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3957        8.4470        .15870E-03   -1.5202    
   2  norm          .10000E-03    9.2391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.682        27.081        .92663E-04   -1.4843    
   4  Prefactor     18.900        26.758        .92002E-04   -1.4838    
   5  Prefactor     .10000E-03    54.603        .21334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1089        8.4278        .15048E-03   -1.5175    
   7  Prefactor     .10000E-03    7.5797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0236        .17972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.591        10.068        .95492E-04   -1.4869    
  10  Prefactor     1.5169        4.5539        .23509E-03   -1.5462    
  11  Prefactor     14.376        31.553        .10563E-03   -1.4949    
  12  Prefactor     5.5977        4.8874        .13291E-03   -1.5235    
  13  norm          5.0260        8.7681        .89694E-03   -1.5260    
  14  Prefactor     .10000E-03    16.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9475        4.3220        .11948E-03   -1.5220    
  17  Prefactor     .74933        7.9314        .27640E-02   -1.5535    
  18  Prefactor     .78681        352.71        .79896E-02   -1.5531    
  19  Prefactor     .10000E-03    7.5947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1316        395.94        .22698E-03   -1.5354    
  21  Prefactor     .10000E-03    4.3774        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3519        .33556        .19957E-04   -1.5475    
  23  Prefactor     1.8515        13.956        .30619E-03   -1.5436    
  24  Prefactor     9.1047        10.737        .13283E-03   -1.5104    
  25  norm          1.0525        17.728        .24025E-02   -1.5503    
  26  Normalizat    1.1391        .21150        .20690E-03   -.88505    
  27  Prefactor     .65147        .23357        .31544E-03   -1.0546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39835e-09
Minuit parameter uncertainties:
  1  8.44862
  2  1.77354e-05
  3  27.0992
  4  26.7745
  5  0.000117831
  6  8.42918
  7  6.92509e-06
  8  2.14287e-05
  9  10.0687
  10  4.55493
  11  31.5895
  12  4.88772
  13  8.77031
  14  1.14161e-05
  15  7.92196e-05
  16  4.32221
  17  4.87628
  18  33.5159
  19  7.86823e-06
  20  70.9089
  21  8.86897e-06
  22  0.335563
  23  10.1698
  24  10.7395
  25  8.64148
  26  0.211661
  27  0.233917
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.598e+00  4.888e+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.515e-01  2.339e-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.139e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.06e-05

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) = 5438.86554568
delta logL = 1.51198612838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5438.86503731
delta logL = 1.51249449752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5998       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4666       1.0000          .0000       10.000    
     3 'Normalizat'    1.1745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62276       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=   5438.865     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6612        4.1041        .42441E-02   -.29642E-04
   2  Index         1.4704        .32207        .15994       -.85683E-04
   3  Normalizat    1.1744        .16762        .35549E-01    .83156E-06
   4  Prefactor     .62278        .19904        .72672E-01    .24393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66121
  Index      = 1.47039
  Normalizat = 1.1744
  Prefactor  = 0.622777
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.865     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6612        5.3475        .12134E-03   -1.5232    
   2  Index         1.4704        .46264        .64234E-02   -.78372    
   3  Normalizat    1.1744        .19248        .20398E-03   -.87397    
   4  Prefactor     .62278        .22780        .32169E-03   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64084e-12
Minuit parameter uncertainties:
  1  5.34799
  2  0.463969
  3  0.192595
  4  0.228141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812706': 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) = 5438.86497525
delta logL = 1.51255655441

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.661e+00  5.348e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.470e+00  4.640e-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.228e-01  2.281e-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.174e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.44
Ra Dec: 154.607 35.680
Photon Index (Free Index): 1.47 +/- 0.46
Photon Flux (Free Index): 1.84e-08 +/- 1.75e-08
Energy Flux (Free Index): 6.41e-05 +/- 7.45e-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/812706/cmap_HighResolution_446169601_446428801_4FGL_J1018.4+3540_daily_bin798.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='6.41e-05', photon_flux_error='4.00e-08', dlogl='1.51e+00', energy_flux='1.21e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-01 18:07:08.286744', photon_index_error2='0.46', photon_index2='1.47', ts='5.42', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='7.45e-05', EG='1.14', time_epoch_completed='1630544828.29', return_code='0', job_id='812706', GAL2='0.62', EG2='1.17', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.75e-08', ts2='8.44', photon_index='2.59' WHERE bin_id='798' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:07:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 812706: <4FGL_J1018.4+3540_daily_bin798> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin798 154.607 35.6802 446169601 446428801 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 :                                   668.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

