/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 1 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin193
RA = 154.607, Dec = 35.6802
tmin = 289353601, tmax = 289612801
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='809730', job_status='RUN', time_executed='2021-09-01 17:47:49.024165', time_epoch_executed='1630543669.02' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809730/ft1_4FGL_J1018.4+3540_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809730/ft2_4FGL_J1018.4+3540_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809730/ft1_4FGL_J1018.4+3540_daily_bin193.fits outfile=/scratch/kocevski/809730/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin193.fits ra=154.607 dec=35.6802 rad=12.0 tmin=289353601.0 tmax=289612801.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.56
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809730/ft1_filtered_4FGL_J1018.4+3540_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/809730/ft2_4FGL_J1018.4+3540_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/809730/ltcube_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.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/809730/ft2_4FGL_J1018.4+3540_daily_bin193.fits
.....................!
real 16.77
user 16.33
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809730/ft1_filtered_4FGL_J1018.4+3540_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/809730/ft2_4FGL_J1018.4+3540_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/809730/ltcube_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.fits outfile=/scratch/kocevski/809730/expmap_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.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/809730/ltcube_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.fits
.....................!
real 192.04
user 186.58
sys 4.99

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/809730/ft1_filtered_4FGL_J1018.4+3540_daily_bin193.fits scfile=/scratch/kocevski/809730/ft2_4FGL_J1018.4+3540_daily_bin193.fits outfile=/scratch/kocevski/809730/cmap_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.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.55
user 0.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.188       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2045       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8097       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    86.111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .65532E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0557       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.862       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6248       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1851       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    39.081       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1227       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70219       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=   5695.716     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3311 TOTAL
                     EDM=   .77E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2206       -.13142E-06** at limit **
   2  norm          .10000E-03    9.0900       -.33403E-06** at limit **
   3  Prefactor     33.736        29.984       -.24951E-06   -.13485E-04
   4  Prefactor     .10000E-03    22.145       -.41318E-06** at limit **
   5  Prefactor     .10000E-03    10.467       -.21254E-07** at limit **
   6  Prefactor     17.188        9.5132        .24453E-07    .14095E-04
   7  Prefactor     .10000E-03    5.1951       -.48630E-06** at limit **
   8  Prefactor     1.2040        1.8400       -.14332E-06    .48849E-05
   9  norm          7.0684        7.1032       -.12896E-07    .36577E-05
  10  Prefactor     .10000E-03    3.3254       -.18435E-05** at limit **
  11  Prefactor     2.1018        73.010       -.34082E-05   -.76948E-05
  12  Prefactor     8.8127        6.1352        .60778E-07    .11345E-03
  13  norm          2.6719        8.7278       -.70690E-06   -.37440E-05
  14  Prefactor     42.772        68.395       -.91360E-06   -.10446E-04
  15  Prefactor     86.172        47.878        .76639E-06   -.92575E-05
  16  Prefactor     1.8541        3.5226       -.26046E-06   -.17278E-04
  17  Prefactor     .10000E-03    63.684        .23596E-05** at limit **
  18  Prefactor     .10000E-03    21.769       -.36467E-06** at limit **
  19  Prefactor     9.0463        21.085       -.46144E-06   -.16542E-04
  20  Prefactor     12.864        120.03       -.38598E-06    .88895E-07
  21  Prefactor     1.6200        38.508       -.18129E-05    .10919E-05
  22  norm          1.1851        .29704       -.74316E-08   -.12928E-03
  23  Prefactor     .10000E-03    6.0344       -.15622E-06** at limit **
  24  Prefactor     .10000E-03    4.1062       -.57099E-07** at limit **
  25  norm          39.080        19.226       -.62857E-07   -.11085E-04
  26  Normalizat    1.1228        .18181        .42091E-06   -.76327E-05
  27  Prefactor     .70223        .19854        .40014E-07   -.13418E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.7356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1879
  Prefactor  = 0.0001
  Prefactor  = 1.20402
  norm       = 7.06835
  Prefactor  = 0.0001
  Prefactor  = 2.10183
  Prefactor  = 8.81268
  norm       = 2.67188
  Prefactor  = 42.7716
  Prefactor  = 86.172
  Prefactor  = 1.8541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.0463
  Prefactor  = 12.8639
  Prefactor  = 1.61998
  norm       = 1.18512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.0797
  Normalizat = 1.12275
  Prefactor  = 0.702227
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.716     FROM HESSE     STATUS=OK           496 CALLS     3807 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2321        .13228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.1217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.736        30.008        .68987E-04   -1.4546    
   4  Prefactor     .10000E-03    22.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.188        9.5061        .48303E-03   -1.4879    
   7  Prefactor     .10000E-03    5.2183        .16797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2040        1.8019        .12130E-03   -1.5489    
   9  norm          7.0684        7.1014        .15088E-03   -1.5176    
  10  Prefactor     .10000E-03    3.3540        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1018        71.677        .28337E-03   -1.5418    
  12  Prefactor     8.8127        6.1880        .13504E-03   -1.5114    
  13  norm          2.6719        8.5473        .24927E-03   -1.5381    
  14  Prefactor     42.772        68.502        .61291E-04   -1.4399    
  15  Prefactor     86.172        48.372        .21646E-03   -1.3849    
  16  Prefactor     1.8541        3.4707        .18132E-03   -1.5436    
  17  Prefactor     .10000E-03    63.415        .28477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0463        21.097        .13319E-03   -1.5106    
  20  Prefactor     12.864        120.10        .11169E-03   -1.4990    
  21  Prefactor     1.6200        38.773        .16596E-02   -1.5453    
  22  norm          1.1851        .29793        .19982E-04   -1.5490    
  23  Prefactor     .10000E-03    6.0429        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1077        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          39.080        19.223        .64116E-04   -1.4457    
  26  Normalizat    1.1228        .20903        .21952E-03   -.89025    
  27  Prefactor     .70223        .22794        .31340E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42922e-11
Minuit parameter uncertainties:
  1  2.64517e-07
  2  8.6149e-06
  3  30.0212
  4  1.4387e-05
  5  1.12726e-05
  6  9.5069
  7  4.22878e-07
  8  1.80201
  9  7.10228
  10  6.61585e-06
  11  24.5796
  12  6.18849
  13  8.55123
  14  68.6288
  15  48.3946
  16  3.47106
  17  9.38896e-07
  18  1.34834e-05
  19  21.1143
  20  78.8226
  21  15.8617
  22  0.297929
  23  2.20729e-06
  24  1.63799e-07
  25  19.2264
  26  0.209189
  27  0.228248
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  8.813e+00  6.188e+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:  7.022e-01  2.282e-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.123e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.22e-08 +/- 5.07e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.34e-05

TS (Fixed Index): 3.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809730/likelihoodResults_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.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) = 5694.66212709
delta logL = 1.05380184434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5694.64600149
delta logL = 1.06992744849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2910       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3358       1.0000          .0000       10.000    
     3 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78660       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=   5694.646     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2866        9.1924        .93879E-02   -.46637E-03
   2  Index         4.3380        2.8661        .10654        .46460E-04
   3  Normalizat    1.0345        .53318E-01    .41726E-01   -.65546E-04
   4  Prefactor     .78673        .61691E-01    .67352E-01    .15027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28659
  Index      = 4.338
  Normalizat = 1.03455
  Prefactor  = 0.786732
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.646     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2866        16.264        .42083E-04   -1.5481    
   2  Index         4.3380        3.9419        .42769E-02   -.13279    
   3  Normalizat    1.0345        .19307        .22721E-03   -.91882    
   4  Prefactor     .78673        .22296        .29798E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.25021e-10
Minuit parameter uncertainties:
  1  9.1515
  2  4.55778
  3  0.193196
  4  0.223212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809730': 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): 102
logL (Free Index) = 5694.64600036
delta logL = 1.06992857123

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.287e+00  9.152e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  4.338e+00  4.558e+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:  7.867e-01  2.232e-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.035e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 154.607 35.680
Photon Index (Free Index): 4.34 +/- 4.56
Photon Flux (Free Index): 1.35e-07 +/- 7.18e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.35e-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/809730/cmap_HighResolution_289353601_289612801_4FGL_J1018.4+3540_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='7.22e-08', energy_flux2='1.92e-05', photon_flux_error='5.07e-08', dlogl='1.07e+00', energy_flux='1.91e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-01 18:00:47.588814', photon_index_error2='4.56', photon_index2='4.34', ts='3.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.35e-05', EG='1.12', time_epoch_completed='1630544447.59', return_code='0', job_id='809730', GAL2='0.79', EG2='1.03', return_code2='102', energy_flux_error='1.34e-05', photon_flux_error2='7.18e-08', ts2='5.52', photon_index='2.59' WHERE bin_id='193' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 809730: <4FGL_J1018.4+3540_daily_bin193> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin193> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:44 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:47:40 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:47:40 2021
Terminated at Wed Sep  1 18:00:48 2021
Results reported at Wed Sep  1 18:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin193 154.607 35.6802 289353601 289612801 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 :                                   776.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            904 sec.

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

