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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1581
RA = 154.607, Dec = 35.6802
tmin = 649123201, tmax = 649382401
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='816906', job_status='RUN', time_executed='2021-09-01 18:13:10.722473', time_epoch_executed='1630545190.72' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816906/ft1_4FGL_J1018.4+3540_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816906/ft1_4FGL_J1018.4+3540_daily_bin1581.fits outfile=/scratch/kocevski/816906/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1581.fits ra=154.607 dec=35.6802 rad=12.0 tmin=649123201.0 tmax=649382401.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.02
user 2.78
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816906/ft1_filtered_4FGL_J1018.4+3540_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/816906/ltcube_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.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/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits
.....................!
real 14.82
user 14.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816906/ft1_filtered_4FGL_J1018.4+3540_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/816906/ltcube_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.fits outfile=/scratch/kocevski/816906/expmap_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.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/816906/ltcube_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.fits
.....................!
real 192.34
user 186.43
sys 5.27

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/816906/ft1_filtered_4FGL_J1018.4+3540_daily_bin1581.fits scfile=/scratch/kocevski/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits outfile=/scratch/kocevski/816906/cmap_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816906/ft1_filtered_4FGL_J1018.4+3540_daily_bin1581.fits scfile=/scratch/kocevski/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits outfile=/scratch/kocevski/816906/cmap_HighResolution_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.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/816906/ft1_filtered_4FGL_J1018.4+3540_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/816906/ft2_4FGL_J1018.4+3540_daily_bin1581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816906/Model_4FGL_J1018.4+3540_daily_bin1581.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/816906/ft1_filtered_4FGL_J1018.4+3540_daily_bin1581.fits.....................!
real 38.75
user 37.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29552E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    33.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7876       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3108       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98896       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=   3872.342     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3240 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.026        .18608E-05** at limit **
   2  norm          2.4603        33.649        .16667E-04   -.23459E-03
   3  Prefactor     .10003E-03    86.333       -.76749E-05** at limit **
   4  Prefactor     .10001E-03    36.957       -.49156E-05** at limit **
   5  Prefactor     .10005E-03    203.18       -.10141E-04** at limit **
   6  Prefactor     .10000E-03    4.7148       -.16830E-07** at limit **
   7  Prefactor     .10000E-03    22.254        .54951E-06** at limit **
   8  Prefactor     .10000E-03    1.8234        .87878E-08** at limit **
   9  norm          33.795        19.373        .64508E-07    .18306E-05
  10  Prefactor     .10000E-03    4.0698       -.77421E-07** at limit **
  11  Prefactor     .10000E-03    51.109        .25009E-05** at limit **
  12  Prefactor     .10000E-03    3.4276        .59862E-08** at limit **
  13  norm          .10000E-03    4.1557        .11959E-06** at limit **
  14  Prefactor     36.650        51.913        .14682E-05    .87592E-04
  15  Prefactor     .10001E-03    53.973        .35285E-05** at limit **
  16  Prefactor     .10000E-03    8.5947        .20562E-05** at limit **
  17  Prefactor     .22148        3.9623       -.16850E-06    .19231E-04
  18  Prefactor     .10001E-03    57.192        .42969E-05** at limit **
  19  Prefactor     .10000E-03    8.0550       -.13444E-05** at limit **
  20  Prefactor     .10000E-03    24.034       -.10663E-05** at limit **
  21  Prefactor     .10000E-03    13.469       -.95903E-06** at limit **
  22  norm          1.7876        .41726        .35203E-08   -.81779E-04
  23  Prefactor     35.750        20.823        .10779E-06    .34572E-04
  24  Prefactor     .10000E-03    7.0011        .27153E-06** at limit **
  25  norm          .10000E-03    11.692       -.89258E-06** at limit **
  26  Normalizat    1.3105        .22994        .15163E-06   -.63483E-04
  27  Prefactor     .98900        .27417       -.10182E-05   -.15210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 2.46027
  Prefactor  = 0.000100033
  Prefactor  = 0.000100013
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.7946
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.6498
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 0.22148
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.78763
  Prefactor  = 35.7499
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31046
  Prefactor  = 0.989005
 **********
 **   18 **HESSE 
 **********

 FCN=   3872.342     FROM HESSE     STATUS=OK           474 CALLS     3714 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4603        36.455        .12990E-02   -1.5394    
   3  Prefactor     .10003E-03    89.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    38.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    209.01        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7161        .13197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8396        .82049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          33.795        19.381        .68936E-04   -1.4545    
  10  Prefactor     .10000E-03    4.1354        .12252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4473        .11245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1593        .12389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.650        52.054        .66208E-04   -1.4496    
  15  Prefactor     .10001E-03    54.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0402        .35731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22148        24.924        .23538E-02   -1.5614    
  18  Prefactor     .10001E-03    58.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1430        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7876        .41841        .18211E-04   -1.5441    
  23  Prefactor     35.750        20.871        .67036E-04   -1.4511    
  24  Prefactor     .10000E-03    7.0080        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3105        .27537        .23777E-03   -.83255    
  27  Prefactor     .98900        .32792        .32156E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68464e-09
Minuit parameter uncertainties:
  1  0.000361544
  2  18.9544
  3  0.00343595
  4  0.0014028
  5  0.0064216
  6  1.50239e-06
  7  0.000123872
  8  8.50513e-07
  9  19.3851
  10  7.05878e-06
  11  0.000834603
  12  1.10489e-06
  13  8.95127e-06
  14  52.1184
  15  0.0012534
  16  0.000212745
  17  4.69995
  18  0.00144021
  19  0.000183149
  20  0.00025134
  21  0.000152827
  22  0.418414
  23  20.8756
  24  3.29205e-05
  25  0.000139775
  26  0.275675
  27  0.328583
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.105e-06  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:  9.890e-01  3.286e-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.310e+00  2.757e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816906/likelihoodResults_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.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) = 3872.34295905
delta logL = -0.00137420027113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3872.34158488
delta logL = -3.28168425767e-08

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     '    2.5899       1.0000          .0000       10.000    
     3 'Normalizat'    1.3105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98902       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=   3872.342     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.013        .90712E-02** at limit **
   2  Index         2.5897        6.2721        .50000        .40056E-06
   3  Normalizat    1.3105        .11942E-01    .53775E-01    .78713E-05
   4  Prefactor     .98900        .14343E-01    .72679E-01    .11058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5897
  Normalizat = 1.31046
  Prefactor  = 0.989004
 **********
 **   18 **HESSE 
 **********

 FCN=   3872.342     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    787.02        .11245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5897        8.0140        .50000       -.50300    
   3  Normalizat    1.3105        .19785        .23777E-03   -.83255    
   4  Prefactor     .98900        .23239        .32156E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05181e-07
Minuit parameter uncertainties:
  1  1.57174e-05
  2  3572.46
  3  0.197968
  4  0.232625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816906': 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) = 3872.34158484
delta logL = 4.4110493036e-11

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.572e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  3.572e+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:  9.890e-01  2.326e-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.310e+00  1.980e-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/816906/cmap_HighResolution_649123201_649382401_4FGL_J1018.4+3540_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-01 18:23:37.642677', job_id='816906', GAL2='0.99', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630545817.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.41e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1581' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:23:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 816906: <4FGL_J1018.4+3540_daily_bin1581> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1581> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:24 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:25 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:10:25 2021
Terminated at Wed Sep  1 18:23:38 2021
Results reported at Wed Sep  1 18:23:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1581 154.607 35.6802 649123201 649382401 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 :                                   622.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

