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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1087
RA = 154.607, Dec = 35.6802
tmin = 521078401, tmax = 521337601
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='814102', job_status='RUN', time_executed='2021-09-01 18:03:12.970803', time_epoch_executed='1630544592.97' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814102/ft1_4FGL_J1018.4+3540_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814102/ft2_4FGL_J1018.4+3540_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814102/ft1_4FGL_J1018.4+3540_daily_bin1087.fits outfile=/scratch/kocevski/814102/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1087.fits ra=154.607 dec=35.6802 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.74
user 4.47
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814102/ft1_filtered_4FGL_J1018.4+3540_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/814102/ft2_4FGL_J1018.4+3540_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/814102/ltcube_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.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/814102/ft2_4FGL_J1018.4+3540_daily_bin1087.fits
.....................!
real 16.98
user 16.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814102/ft1_filtered_4FGL_J1018.4+3540_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/814102/ft2_4FGL_J1018.4+3540_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/814102/ltcube_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.fits outfile=/scratch/kocevski/814102/expmap_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.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/814102/ltcube_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.fits
.....................!
real 194.41
user 188.59
sys 5.01

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/814102/ft1_filtered_4FGL_J1018.4+3540_daily_bin1087.fits scfile=/scratch/kocevski/814102/ft2_4FGL_J1018.4+3540_daily_bin1087.fits outfile=/scratch/kocevski/814102/cmap_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814102/ft1_filtered_4FGL_J1018.4+3540_daily_bin1087.fits scfile=/scratch/kocevski/814102/ft2_4FGL_J1018.4+3540_daily_bin1087.fits outfile=/scratch/kocevski/814102/cmap_HighResolution_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.286       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1263       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8366       1.0000         .10000E-03   10000.    
     9 'norm      '    7.6737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2315       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7316       1.0000         .10000E-03   10000.    
    13 'norm      '    5.0085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    77.964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5077       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.352       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3746       1.0000         .10000E-03   10000.    
    22 'norm      '    .76820       1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.866       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.7992       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78837       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0485       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=   5765.692     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3226 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.286        8.7656       -.24753E-06   -.27912E-04
   2  norm          .10000E-03    5.7961       -.22273E-06** at limit **
   3  Prefactor     11.946        13.403       -.59063E-08    .66336E-05
   4  Prefactor     .10000E-03    17.776        .18065E-05** at limit **
   5  Prefactor     .10000E-03    18.923       -.53297E-05** at limit **
   6  Prefactor     3.1264        6.9678       -.86180E-06   -.37827E-03
   7  Prefactor     .10000E-03    4.6877       -.49158E-06** at limit **
   8  Prefactor     2.8366        1.8055        .46810E-07   -.17753E-04
   9  norm          7.6740        9.2238       -.31068E-06   -.86767E-04
  10  Prefactor     1.2299        4.1144       -.47741E-06   -.84313E-03
  11  Prefactor     10.039        19.307        .61885E-06   -.93474E-05
  12  Prefactor     1.7352        5.5708       -.66206E-06   -.79379E-03
  13  norm          5.0071        8.8961       -.58135E-06   -.16924E-03
  14  Prefactor     77.965        52.416        .10247E-05    .85537E-05
  15  Prefactor     .10000E-03    15.837        .66184E-05** at limit **
  16  Prefactor     2.5079        2.8123        .45766E-07   -.80900E-04
  17  Prefactor     2.9402        2.8633       -.64706E-07   -.19392E-04
  18  Prefactor     .10000E-03    13.215       -.24099E-05** at limit **
  19  Prefactor     .10000E-03    7.0829        .54161E-06** at limit **
  20  Prefactor     24.335        66.690       -.33558E-04    .76181E-06
  21  Prefactor     5.3747        8.2491       -.32281E-06   -.11025E-03
  22  norm          .76817        .26279        .41655E-07    .48235E-03
  23  Prefactor     63.864        18.244       -.67409E-06    .26339E-04
  24  Prefactor     .10000E-03    13.245       -.10226E-05** at limit **
  25  norm          3.7982        11.802       -.64448E-06   -.12116E-03
  26  Normalizat    .78833        .15787        .96157E-06    .17934E-04
  27  Prefactor     1.0485        .18900        .47927E-06    .39803E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2858
  norm       = 0.0001
  Prefactor  = 11.9464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12644
  Prefactor  = 0.0001
  Prefactor  = 2.83665
  norm       = 7.67405
  Prefactor  = 1.22988
  Prefactor  = 10.0386
  Prefactor  = 1.73518
  norm       = 5.00712
  Prefactor  = 77.9647
  Prefactor  = 0.0001
  Prefactor  = 2.50793
  Prefactor  = 2.9402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3345
  Prefactor  = 5.37468
  norm       = 0.768168
  Prefactor  = 63.8639
  Prefactor  = 0.0001
  norm       = 3.79824
  Normalizat = 0.788333
  Prefactor  = 1.04854
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.692     FROM HESSE     STATUS=OK           496 CALLS     3722 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.286        8.7739        .11428E-03   -1.5007    
   2  norm          .10000E-03    5.8054        .17855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.946        13.402        .11590E-03   -1.5017    
   4  Prefactor     .10000E-03    17.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1264        6.9791        .22930E-03   -1.5354    
   7  Prefactor     .10000E-03    4.7167        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8366        1.8022        .78503E-04   -1.5371    
   9  norm          7.6740        9.2097        .14476E-03   -1.5154    
  10  Prefactor     1.2299        3.5744        .19015E-03   -1.5486    
  11  Prefactor     10.039        19.282        .12647E-03   -1.5074    
  12  Prefactor     1.7352        4.8839        .21398E-03   -1.5445    
  13  norm          5.0071        8.8631        .17969E-03   -1.5260    
  14  Prefactor     77.965        52.432        .45480E-04   -1.3940    
  15  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5079        2.7978        .12772E-03   -1.5391    
  17  Prefactor     2.9402        2.8623        .12261E-03   -1.5365    
  18  Prefactor     .10000E-03    13.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.335        66.350        .81173E-04   -1.4721    
  21  Prefactor     5.3747        8.2488        .17335E-03   -1.5244    
  22  norm          .76817        .26336        .21637E-04   -1.5533    
  23  Prefactor     63.864        18.210        .50215E-04   -1.4108    
  24  Prefactor     .10000E-03    13.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.7982        11.794        .20709E-03   -1.5318    
  26  Normalizat    .78833        .18497        .23641E-03   -1.0050    
  27  Prefactor     1.0485        .22158        .25980E-03   -.91129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08905e-09
Minuit parameter uncertainties:
  1  8.77481
  2  2.27385e-06
  3  13.4054
  4  1.82317e-05
  5  1.1416e-05
  6  6.98091
  7  1.9503e-06
  8  1.80224
  9  9.21136
  10  3.57504
  11  19.2939
  12  4.88502
  13  8.86544
  14  52.4632
  15  1.13813e-06
  16  2.79798
  17  2.86245
  18  9.32224e-06
  19  2.13254e-06
  20  66.5525
  21  8.2505
  22  0.263361
  23  18.2116
  24  1.80061e-05
  25  11.8016
  26  0.185114
  27  0.221773
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.735e+00  4.885e+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.049e+00  2.218e-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.883e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814102/likelihoodResults_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.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) = 5764.90216279
delta logL = 0.790270864406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5764.68984017
delta logL = 1.00259347951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.2490       1.0000          .0000       10.000    
     3 'Normalizat'    .74216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0926       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=   5764.690     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      564 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .43446E-02    .30915E-03** at limit **
   2  Index         9.2489        9.0133        .28307        .62402E-04
   3  Normalizat    .74228        .44695E-01    .42851E-01   -.30608E-04
   4  Prefactor     1.0924        .55875E-01    .57730E-01    .15094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.24889
  Normalizat = 0.742283
  Prefactor  = 1.09241
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.690     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      605 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20509E-01    .16497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.2489        9.5621        .13725E-01    1.0156    
   3  Normalizat    .74228        .90067E-01    .24268E-03   -1.0225    
   4  Prefactor     1.0924        .11239        .25528E-03   -.89709    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.49601e-10
Minuit parameter uncertainties:
  1  3.64193e-08
  2  6.22722
  3  0.0900854
  4  0.112414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814102': 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) = 5764.6898392
delta logL = 1.00259445245

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.642e-08  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  9.249e+00  6.227e+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.092e+00  1.124e-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.423e-01  9.009e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 154.607 35.680
Photon Index (Free Index): 9.25 +/- 6.23
Photon Flux (Free Index): 4.43e-08 +/- 4.73e-07
Energy Flux (Free Index): 5.01e-06 +/- 5.33e-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/814102/cmap_HighResolution_521078401_521337601_4FGL_J1018.4+3540_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', comment='SUCCESS', energy_flux2='5.01e-06', dlogl='1.00e+00', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-01 18:16:53.928418', photon_index_error2='6.23', photon_index2='9.25', ts='0.22', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.66e-08', energy_flux_error2='5.33e-05', EG='0.79', time_epoch_completed='1630545413.93', return_code='0', job_id='814102', GAL2='1.09', EG2='0.74', return_code2='102', photon_flux_error2='4.73e-07', ts2='2.32', photon_index='2.59' WHERE bin_id='1087' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 814102: <4FGL_J1018.4+3540_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1087> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:29 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:00:31 2021
Terminated at Wed Sep  1 18:16:54 2021
Results reported at Wed Sep  1 18:16:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1087 154.607 35.6802 521078401 521337601 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

