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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1405
RA = 154.607, Dec = 35.6802
tmin = 603504001, tmax = 603763201
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='815646', job_status='RUN', time_executed='2021-09-01 18:06:19.769512', time_epoch_executed='1630544779.77' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815646/ft1_4FGL_J1018.4+3540_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815646/ft1_4FGL_J1018.4+3540_daily_bin1405.fits outfile=/scratch/kocevski/815646/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1405.fits ra=154.607 dec=35.6802 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.78
user 2.55
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815646/ft1_filtered_4FGL_J1018.4+3540_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/815646/ltcube_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.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/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits
.....................!
real 17.31
user 16.97
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815646/ft1_filtered_4FGL_J1018.4+3540_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/815646/ltcube_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.fits outfile=/scratch/kocevski/815646/expmap_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.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/815646/ltcube_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.fits
.....................!
real 191.55
user 187.22
sys 3.92

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/815646/ft1_filtered_4FGL_J1018.4+3540_daily_bin1405.fits scfile=/scratch/kocevski/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits outfile=/scratch/kocevski/815646/cmap_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.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.13

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

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/815646/ft1_filtered_4FGL_J1018.4+3540_daily_bin1405.fits', '/scratch/kocevski/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits', expMap='/scratch/kocevski/815646/expmap_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.fits', expCube='/scratch/kocevski/815646/ltcube_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/815646/Model_4FGL_J1018.4+3540_daily_bin1405.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/815646/ft1_filtered_4FGL_J1018.4+3540_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/815646/ft2_4FGL_J1018.4+3540_daily_bin1405.fits
Exposure map: /scratch/kocevski/815646/expmap_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.fits
Exposure cube: /scratch/kocevski/815646/ltcube_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/815646/Model_4FGL_J1018.4+3540_daily_bin1405.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 130.693476521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 129.562090468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3766       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1912       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17239E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .94104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6309       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16200E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24355E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14162       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4477       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13436E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10588E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15220E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21040E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    115.02       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .59504       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .44523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   129.5029     FROM MIGRAD    STATUS=CONVERGED    220 CALLS      379 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        1.0114         .0000         .0000    
   2  norm          .47777        3.3162       -.23089E-06    .86308E-03
   3  Prefactor     6.2732        1.0032         .0000         .0000    
   4  Prefactor     6.4626        16.440        .93661E-06   -.40941E-02
   5  Prefactor     7.5880        1.5807        .46925E-07   -.60543E-03
   6  Prefactor     4.1118        1.0076         .0000         .0000    
   7  Prefactor     1.4647        1.0750         .0000         .0000    
   8  Prefactor     1.0098        1.3253         .0000         .0000    
   9  norm          8.6848        1.0017         .0000         .0000    
  10  Prefactor     .10000E-03    193.70        .34314E-05** at limit **
  11  Prefactor     256.96        874.16       -.28565E-05    .25160E-03
  12  Prefactor     .10000E-03    122.84        .49566E-06** at limit **
  13  norm          .10000E-03    85.268        .45929E-05** at limit **
  14  Prefactor     .11432E-03    842.99       -.22812E-05** at limit **
  15  Prefactor     .10000E-03    194.49        .76183E-05** at limit **
  16  Prefactor     .10000E-03    15.888       -.65108E-06** at limit **
  17  Prefactor     .10000E-03    31.094        .14326E-05** at limit **
  18  Prefactor     .10000E-03    104.78        .11720E-06** at limit **
  19  Prefactor     .10000E-03    135.17        .67991E-05** at limit **
  20  Prefactor     .10000E-03    168.58        .83422E-05** at limit **
  21  Prefactor     .10000E-03    63.214        .29572E-05** at limit **
  22  norm          .10000E-03    3.5159        .46529E-05** at limit **
  23  Prefactor     .10000E-03    53.773       -.17835E-05** at limit **
  24  Prefactor     .10000E-03    78.418       -.84591E-05** at limit **
  25  norm          118.69        103.05        .17891E-05    .20168E-02
  26  Normalizat    .64923        .86777       -.22731E-04   -.81305E-05
  27  Prefactor     .27714        .99603        .60057E-04   -.27693E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  norm       = 0.477769
  Prefactor  = 6.27317
  Prefactor  = 6.46255
  Prefactor  = 7.58802
  Prefactor  = 4.1118
  Prefactor  = 1.46472
  Prefactor  = 1.00983
  norm       = 8.68484
  Prefactor  = 0.000100003
  Prefactor  = 256.956
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000114316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 118.687
  Normalizat = 0.649235
  Prefactor  = 0.277142
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   129.5029     FROM HESSE     STATUS=FAILED         9 CALLS      388 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          549.54        546.08         .0000       -1.5340    
   2  norm          .47777        .51563       -.23089E-06   -1.5570    
   3  Prefactor     6.2732        1.0032         .0000       -1.5207    
   4  Prefactor     6.4626        1.5382        .93661E-06   -1.5199    
   5  Prefactor     7.5880        1.0297        .46925E-07   -1.5157    
   6  Prefactor     4.1118        1.0076         .0000       -1.5302    
   7  Prefactor     1.4647        1.0750         .0000       -1.5466    
   8  Prefactor     1.0098        1.3253         .0000       -1.5507    
   9  norm          8.6848        1.0017         .0000       -1.5118    
  10  Prefactor     .10000E-03    .20571        .34314E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     256.96        6.5271       -.28565E-05   -1.2488    
  12  Prefactor     .10000E-03    .20743        .49566E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .41962        .45929E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11432E-03    .83769E-01   -.22812E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .98757E-01    .76183E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .26033       -.65108E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .14326E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20904        .11720E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .23560        .67991E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20049        .83422E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571        .29572E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571        .46529E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20697       -.17835E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .20829       -.84591E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          118.69        1.0156        .17891E-05   -1.3525    
  26  Normalizat    .64923        .97166       -.22731E-04   -1.0593    
  27  Prefactor     .27714        .62256        .60057E-04   -1.2363    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.68408e-10
Minuit parameter uncertainties:
  1  1.01141
  2  0.515635
  3  1.00321
  4  1.53821
  5  1.0297
  6  1.00759
  7  1.075
  8  1.32538
  9  1.00167
  10  5.01659e-05
  11  6.52709
  12  1.59064e-05
  13  3.15336e-06
  14  0.00219019
  15  4.63054e-06
  16  3.87925e-07
  17  1.02624e-06
  18  1.12916e-05
  19  4.26236e-06
  20  5.49628e-06
  21  6.48606e-06
  22  3.71058e-06
  23  7.81158e-10
  24  5.80025e-06
  25  1.01563
  26  0.999246
  27  0.638547
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 129.502885333

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.591e-05  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:  2.771e-01  6.385e-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:  6.492e-01  9.992e-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: 5.83e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815646/likelihoodResults_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.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) = 129.502892929
delta logL = -7.59650038162e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 129.502887005
delta logL = -1.67234685478e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5757       1.0000          .0000       10.000    
     3 'Normalizat'    .64953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27679       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=   129.5029     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      239 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10761E-03    537.82        .12438E-01** at limit **
   2  Index         2.3676        8.7330        .50000        .95505E-06
   3  Normalizat    .64924        .40325E-01    .20965E-03   -.62700E-07
   4  Prefactor     .27714        .44341E-01    .34445E-03   -.14027E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010761
  Index      = 2.36764
  Normalizat = 0.649236
  Prefactor  = 0.277142
 **********
 **   18 **HESSE 
 **********

 FCN=   129.5029     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10761E-03    6931.1        .13334E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3676        6.2457        .50000       -.55445    
   3  Normalizat    .64924        .11904        .83860E-05   -1.0593    
   4  Prefactor     .27714        .13082        .13778E-04   -1.2363    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.45978e-08
Minuit parameter uncertainties:
  1  0.37002
  2  4952.15
  3  0.119086
  4  0.130956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815646': 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) = 129.502885303
delta logL = 2.99854434616e-08

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.076e-04  3.700e-01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.368e+00  4.952e+03  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:  2.771e-01  1.310e-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:  6.492e-01  1.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/815646/cmap_HighResolution_603504001_603763201_4FGL_J1018.4+3540_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-01', job_status='DONE', photon_flux_upper_limit='5.83e-06', time_completed='2021-09-01 18:11:52.823926', job_id='815646', GAL2='0.28', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630545112.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.28', dlogl='3.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1405' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 815646: <4FGL_J1018.4+3540_daily_bin1405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1405 154.607 35.6802 603504001 603763201 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 :                                   331.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             457.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   368 sec.
    Turnaround time :                            371 sec.

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

