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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin820
RA = 154.607, Dec = 35.6802
tmin = 451872001, tmax = 452131201
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='812739', job_status='RUN', time_executed='2021-09-01 17:56:03.710762', time_epoch_executed='1630544163.71' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812739/ft1_4FGL_J1018.4+3540_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812739/ft2_4FGL_J1018.4+3540_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812739/ft1_4FGL_J1018.4+3540_daily_bin820.fits outfile=/scratch/kocevski/812739/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin820.fits ra=154.607 dec=35.6802 rad=12.0 tmin=451872001.0 tmax=452131201.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.39
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812739/ft1_filtered_4FGL_J1018.4+3540_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/812739/ft2_4FGL_J1018.4+3540_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/812739/ltcube_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.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/812739/ft2_4FGL_J1018.4+3540_daily_bin820.fits
.....................!
real 16.10
user 15.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812739/ft1_filtered_4FGL_J1018.4+3540_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/812739/ft2_4FGL_J1018.4+3540_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/812739/ltcube_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.fits outfile=/scratch/kocevski/812739/expmap_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.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/812739/ltcube_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.fits
.....................!
real 192.44
user 186.33
sys 5.74

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/812739/ft1_filtered_4FGL_J1018.4+3540_daily_bin820.fits scfile=/scratch/kocevski/812739/ft2_4FGL_J1018.4+3540_daily_bin820.fits outfile=/scratch/kocevski/812739/cmap_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812739/ft1_filtered_4FGL_J1018.4+3540_daily_bin820.fits scfile=/scratch/kocevski/812739/ft2_4FGL_J1018.4+3540_daily_bin820.fits outfile=/scratch/kocevski/812739/cmap_HighResolution_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1544       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1904       1.0000         .10000E-03   10000.    
     9 'norm      '    61.939       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3507       1.0000         .10000E-03   10000.    
    13 'norm      '    9.6862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    81.056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62808E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.767       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.296       1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5106       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .45516       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5334       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95462       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80287       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=   6012.730     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3312 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1538        8.4505        .22693E-06   -.13621E-04
   2  norm          9.8688        10.842       -.95463E-07   -.92942E-05
   3  Prefactor     .10000E-03    9.8758       -.16069E-06** at limit **
   4  Prefactor     .10000E-03    17.953       -.31580E-06** at limit **
   5  Prefactor     .10000E-03    18.603       -.86727E-07** at limit **
   6  Prefactor     .10000E-03    4.3896        .61966E-07** at limit **
   7  Prefactor     2.1466        4.0176        .21378E-06   -.28753E-04
   8  Prefactor     1.1904        1.5538        .84624E-07   -.32375E-04
   9  norm          61.938        14.359        .26906E-07    .42285E-04
  10  Prefactor     .10000E-03    1.9980        .40240E-08** at limit **
  11  Prefactor     50.664        38.033       -.13266E-05   -.98298E-04
  12  Prefactor     8.3517        4.5771       -.52029E-07   -.40245E-04
  13  norm          9.6878        11.290        .22520E-05   -.12526E-03
  14  Prefactor     81.055        52.471        .33358E-07    .22917E-05
  15  Prefactor     .10000E-03    19.721        .54457E-06** at limit **
  16  Prefactor     .10000E-03    1.7681       -.11371E-06** at limit **
  17  Prefactor     .10001E-03    2.5520        .41990E-07** at limit **
  18  Prefactor     24.768        27.734       -.91345E-07    .22252E-04
  19  Prefactor     24.297        23.101        .11471E-06    .23477E-04
  20  Prefactor     94.894        95.330       -.97942E-06   -.98789E-04
  21  Prefactor     .10000E-03    10.036        .40768E-06** at limit **
  22  norm          2.5098        .44016       -.57880E-08    .29539E-03
  23  Prefactor     .10000E-03    4.9447        .39481E-07** at limit **
  24  Prefactor     .56998        9.5418       -.15714E-06    .32823E-04
  25  norm          4.5312        10.113        .22771E-06   -.10995E-04
  26  Normalizat    .95476        .16406        .77333E-07   -.35713E-04
  27  Prefactor     .80272        .19039       -.47589E-06    .10286E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.15381
  norm       = 9.86879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14658
  Prefactor  = 1.19041
  norm       = 61.9384
  Prefactor  = 0.0001
  Prefactor  = 50.6643
  Prefactor  = 8.35173
  norm       = 9.68781
  Prefactor  = 81.0554
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 24.768
  Prefactor  = 24.2971
  Prefactor  = 94.8945
  Prefactor  = 0.0001
  norm       = 2.5098
  Prefactor  = 0.0001
  Prefactor  = 0.569978
  norm       = 4.53122
  Normalizat = 0.954759
  Prefactor  = 0.802717
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.730     FROM HESSE     STATUS=OK           490 CALLS     3802 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1538        8.4633        .17708E-03   -1.5254    
   2  norm          9.8688        10.831        .12756E-03   -1.5080    
   3  Prefactor     .10000E-03    9.9205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5238        .31721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1466        3.9896        .20689E-03   -1.5415    
   8  Prefactor     1.1904        1.5248        .10644E-03   -1.5490    
   9  norm          61.938        14.353        .25492E-03   -1.4132    
  10  Prefactor     .10000E-03    2.0238        .10677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.664        38.162        .56339E-04   -1.4283    
  12  Prefactor     8.3517        4.5597        .11550E-03   -1.5130    
  13  norm          9.6878        11.333        .64379E-03   -1.5085    
  14  Prefactor     81.055        52.524        .44611E-04   -1.3905    
  15  Prefactor     .10000E-03    19.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7882        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    26.223        .23445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.768        27.617        .80492E-04   -1.4712    
  19  Prefactor     24.297        23.108        .81266E-04   -1.4722    
  20  Prefactor     94.894        97.211        .41254E-04   -1.3757    
  21  Prefactor     .10000E-03    10.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5098        .44643        .20188E-04   -1.5391    
  23  Prefactor     .10000E-03    4.9536        .16838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .56998        70.385        .44986E-02   -1.5557    
  25  norm          4.5312        10.093        .18908E-03   -1.5282    
  26  Normalizat    .95476        .19103        .23065E-03   -.94562    
  27  Prefactor     .80272        .22086        .30394E-03   -.99628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48123e-10
Minuit parameter uncertainties:
  1  8.46522
  2  10.8334
  3  5.70435e-05
  4  0.000114952
  5  2.91393e-05
  6  1.21268e-06
  7  3.99013
  8  1.5248
  9  14.3542
  10  1.79131e-06
  11  38.1808
  12  4.55993
  13  11.3359
  14  52.5536
  15  0.000222427
  16  5.04866e-06
  17  0.00107656
  18  27.6314
  19  23.1162
  20  97.3741
  21  6.92921e-05
  22  0.446435
  23  9.42652e-06
  24  12.6819
  25  10.0967
  26  0.191163
  27  0.221109
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  8.352e+00  4.560e+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:  8.027e-01  2.211e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.548e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 9.89e-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) = 6012.52102314
delta logL = 0.208951682604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6012.51437727
delta logL = 0.215597556955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3349       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1930       1.0000          .0000       10.000    
     3 'Normalizat'    .98241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78202       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6012.514     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3353        5.4722        .13117E-03   -.25419E-02
   2  Index         2.1933        .59591        .88251E-02   -.36952E-03
   3  Normalizat    .98244        .18449        .22779E-03    .23309E-03
   4  Prefactor     .78202        .21997        .30752E-03    .13967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33529
  Index      = 2.19326
  Normalizat = 0.982437
  Prefactor  = 0.782017
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.514     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3353        5.4737        .26234E-04   -1.5097    
   2  Index         2.1933        .59541        .35300E-03   -.59601    
   3  Normalizat    .98244        .18459        .45557E-04   -.93621    
   4  Prefactor     .78202        .22010        .12301E-04   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44353e-09
Minuit parameter uncertainties:
  1  5.47399
  2  0.597479
  3  0.184711
  4  0.220345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812739': 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) = 6012.51437708
delta logL = 0.215597744539

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  9.335e+00  5.474e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.193e+00  5.975e-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:  7.820e-01  2.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.824e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.19 +/- 0.60
Photon Flux (Free Index): 4.83e-08 +/- 4.19e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.67e-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/812739/cmap_HighResolution_451872001_452131201_4FGL_J1018.4+3540_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='2.20e-05', photon_flux_error='3.73e-08', dlogl='2.16e-01', energy_flux='1.81e-05', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-09-01 18:08:06.755707', photon_index_error2='0.60', photon_index2='2.19', ts='8.36', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.95', time_epoch_completed='1630544886.76', return_code='0', job_id='812739', GAL2='0.78', EG2='0.98', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='4.19e-08', ts2='8.69', photon_index='2.59' WHERE bin_id='820' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:08:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 812739: <4FGL_J1018.4+3540_daily_bin820> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin820 154.607 35.6802 451872001 452131201 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 :                                   722.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            738 sec.

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

