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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1392
RA = 154.607, Dec = 35.6802
tmin = 600134401, tmax = 600393601
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='815628', job_status='RUN', time_executed='2021-09-01 18:09:24.727943', time_epoch_executed='1630544964.73' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815628/ft1_4FGL_J1018.4+3540_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815628/ft2_4FGL_J1018.4+3540_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815628/ft1_4FGL_J1018.4+3540_daily_bin1392.fits outfile=/scratch/kocevski/815628/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1392.fits ra=154.607 dec=35.6802 rad=12.0 tmin=600134401.0 tmax=600393601.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.89
user 4.61
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815628/ft2_4FGL_J1018.4+3540_daily_bin1392.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/815628/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/815628/ft1_filtered_4FGL_J1018.4+3540_daily_bin1392.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.51
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815628/ft1_filtered_4FGL_J1018.4+3540_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/815628/ft2_4FGL_J1018.4+3540_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/815628/ltcube_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.fits outfile=/scratch/kocevski/815628/expmap_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.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/815628/ltcube_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.fits
.....................!
real 192.56
user 187.91
sys 4.23

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/815628/ft1_filtered_4FGL_J1018.4+3540_daily_bin1392.fits scfile=/scratch/kocevski/815628/ft2_4FGL_J1018.4+3540_daily_bin1392.fits outfile=/scratch/kocevski/815628/cmap_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815628/ft1_filtered_4FGL_J1018.4+3540_daily_bin1392.fits scfile=/scratch/kocevski/815628/ft2_4FGL_J1018.4+3540_daily_bin1392.fits outfile=/scratch/kocevski/815628/cmap_HighResolution_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.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.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26811       1.0000         .10000E-03   10000.    
     2 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24522E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.942       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38030E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15141E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66201E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8284       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17369E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4125       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0637       1.0000         .10000E-03   10000.    
    25 'norm      '    .38242E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83209       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2478       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=   5455.460     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3378 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29762        6.7395       -.12702E-06   -.28285E-04
   2  norm          .10000E-03    16.738       -.24133E-05** at limit **
   3  Prefactor     .10000E-03    10.457       -.24834E-05** at limit **
   4  Prefactor     .10006E-03    68.757        .29391E-04** at limit **
   5  Prefactor     15.882        34.730       -.42053E-04   -.13712E-03
   6  Prefactor     13.923        9.3218       -.16927E-06    .63582E-04
   7  Prefactor     2.8997        6.9317       -.77711E-06   -.28016E-03
   8  Prefactor     .14406E-01    1.0870       -.44709E-06    .31570E-03
   9  norm          .10000E-03    6.2005       -.78433E-07** at limit **
  10  Prefactor     .10000E-03    2.6005       -.46556E-06** at limit **
  11  Prefactor     .10000E-03    103.26       -.10651E-04** at limit **
  12  Prefactor     .10008E-03    2.4100        .11759E-05** at limit **
  13  norm          4.8117        10.685        .85652E-06   -.64959E-04
  14  Prefactor     .10000E-03    36.492       -.24992E-04** at limit **
  15  Prefactor     .10000E-03    13.162        .35666E-05** at limit **
  16  Prefactor     .10000E-03    2.1077       -.49363E-06** at limit **
  17  Prefactor     1.4137        2.3155       -.26729E-06   -.37886E-03
  18  Prefactor     .10000E-03    11.242        .10743E-06** at limit **
  19  Prefactor     11.736        23.142       -.68983E-06   -.11001E-04
  20  Prefactor     44.566        69.423        .74930E-05    .12588E-04
  21  Prefactor     .10000E-03    27.554        .17009E-04** at limit **
  22  norm          1.5665        .38619       -.31459E-07    .11380E-02
  23  Prefactor     .10000E-03    17.100       -.15414E-05** at limit **
  24  Prefactor     8.0641        15.995       -.92625E-06    .21063E-04
  25  norm          .10003E-03    10.553       -.19463E-05** at limit **
  26  Normalizat    .83220        .17784        .43117E-05   -.13573E-03
  27  Prefactor     1.2475        .20746       -.43352E-06    .12328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.297619
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 15.8815
  Prefactor  = 13.9225
  Prefactor  = 2.89975
  Prefactor  = 0.0144061
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100082
  norm       = 4.81166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41373
  Prefactor  = 0.0001
  Prefactor  = 11.7356
  Prefactor  = 44.5661
  Prefactor  = 0.000100004
  norm       = 1.56654
  Prefactor  = 0.0001
  Prefactor  = 8.06414
  norm       = 0.000100033
  Normalizat = 0.8322
  Prefactor  = 1.24749
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.460     FROM HESSE     STATUS=OK           498 CALLS     3876 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29762        39.553        .36963E-02   -1.5599    
   2  norm          .10000E-03    16.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    73.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.882        35.012        .10031E-03   -1.4911    
   6  Prefactor     13.923        9.3148        .10734E-03   -1.4962    
   7  Prefactor     2.8997        6.9004        .23882E-03   -1.5367    
   8  Prefactor     .14406E-01    2.3599        .27613E-01   -1.5684    
   9  norm          .10000E-03    6.3091        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4440        .22047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    104.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    12.319        .21033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8117        10.560        .18308E-03   -1.5269    
  14  Prefactor     .10000E-03    36.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2496        .20421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4137        2.2749        .13978E-03   -1.5470    
  18  Prefactor     .10000E-03    11.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.736        23.165        .11693E-03   -1.5023    
  20  Prefactor     44.566        69.394        .60060E-04   -1.4372    
  21  Prefactor     .10000E-03    28.357        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5665        .38867        .21127E-04   -1.5458    
  23  Prefactor     .10000E-03    17.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.0641        16.057        .14119E-03   -1.5140    
  25  norm          .10003E-03    53.218        .45929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83220        .20449        .24986E-03   -.98885    
  27  Prefactor     1.2475        .24604        .25587E-03   -.84882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55272e-08
Minuit parameter uncertainties:
  1  6.86545
  2  0.000540651
  3  6.9701e-06
  4  0.00419364
  5  35.0574
  6  9.31574
  7  6.90232
  8  0.367496
  9  1.78959e-05
  10  9.77667e-05
  11  0.000660893
  12  0.00201644
  13  10.5637
  14  5.74642e-05
  15  1.24688e-05
  16  7.86575e-05
  17  2.27505
  18  1.40356e-05
  19  23.1829
  20  69.5202
  21  0.000632055
  22  0.388674
  23  2.22416e-05
  24  16.0656
  25  0.00264113
  26  0.204682
  27  0.246264
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.001e-04  2.016e-03  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.247e+00  2.463e-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:  8.322e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/815628/likelihoodResults_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.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): 102
logL (Free Index) = 5455.46081784
delta logL = -0.00038647124893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5455.46043378
delta logL = -2.41300494963e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19886E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6839       1.0000          .0000       10.000    
     3 'Normalizat'    .83258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2471       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=   5454.588     FROM MIGRAD    STATUS=CONVERGED    158 CALLS      333 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21053E-03    .11045E-02    .21300E-03** at limit **
   2  Index         9.0096        1.6830        .22938       -.60571E-04
   3  Normalizat    .74738        .18601        .44034E-01    .26753E-04
   4  Prefactor     1.3190        .21458        .56540E-01    .59282E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000210534
  Index      = 9.00961
  Normalizat = 0.747377
  Prefactor  = 1.31896
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.588     FROM HESSE     STATUS=OK            31 CALLS      364 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21053E-03    .12500E-01    .12353E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.0096        6.7184        .11462E-02    2.2111    
   3  Normalizat    .74738        .20757        .26245E-03   -1.0205    
   4  Prefactor     1.3190        .25048        .25000E-03   -.82745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45493e-12
Minuit parameter uncertainties:
  1  0.00235088
  2  6.26185
  3  0.20779
  4  0.250708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815628': 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) = 5454.58824239
delta logL = 0.872188979744

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.105e-04  2.351e-03  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  9.010e+00  6.262e+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.319e+00  2.507e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  7.474e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 154.607 35.680
Photon Index (Free Index): 9.01 +/- 6.26
Photon Flux (Free Index): 6.12e-08 +/- 1.32e-06
Energy Flux (Free Index): 6.95e-06 +/- 1.50e-04

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/815628/cmap_HighResolution_600134401_600393601_4FGL_J1018.4+3540_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', energy_flux2='6.95e-06', dlogl='8.72e-01', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-09-01 18:22:09.801797', photon_index_error2='6.26', photon_index2='9.01', ts='-0.00', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='8.12e-08', energy_flux_error2='1.50e-04', EG='0.83', time_epoch_completed='1630545729.8', return_code='0', job_id='815628', GAL2='1.32', EG2='0.75', return_code2='0', photon_flux_error2='1.32e-06', ts2='1.89', photon_index='2.59' WHERE bin_id='1392' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 815628: <4FGL_J1018.4+3540_daily_bin1392> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1392> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:41 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05:42 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:05:42 2021
Terminated at Wed Sep  1 18:22:10 2021
Results reported at Wed Sep  1 18:22:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1392 154.607 35.6802 600134401 600393601 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 :                                   761.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

