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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1170
RA = 154.607, Dec = 35.6802
tmin = 542592001, tmax = 542851201
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='814222', job_status='RUN', time_executed='2021-09-01 18:04:37.135350', time_epoch_executed='1630544677.14' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814222/ft1_4FGL_J1018.4+3540_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814222/ft2_4FGL_J1018.4+3540_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814222/ft1_4FGL_J1018.4+3540_daily_bin1170.fits outfile=/scratch/kocevski/814222/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1170.fits ra=154.607 dec=35.6802 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.82
user 6.51
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814222/ft1_filtered_4FGL_J1018.4+3540_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/814222/ft2_4FGL_J1018.4+3540_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/814222/ltcube_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.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/814222/ft2_4FGL_J1018.4+3540_daily_bin1170.fits
.....................!
real 18.25
user 17.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814222/ft1_filtered_4FGL_J1018.4+3540_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/814222/ft2_4FGL_J1018.4+3540_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/814222/ltcube_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.fits outfile=/scratch/kocevski/814222/expmap_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.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/814222/ltcube_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.fits
.....................!
real 193.57
user 188.39
sys 3.88

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/814222/ft1_filtered_4FGL_J1018.4+3540_daily_bin1170.fits scfile=/scratch/kocevski/814222/ft2_4FGL_J1018.4+3540_daily_bin1170.fits outfile=/scratch/kocevski/814222/cmap_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.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.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.298       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8633       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12339E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    239.48       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4275       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8836       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41983E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4187       1.0000         .10000E-03   10000.    
    25 'norm      '    104.42       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87746       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93423       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=   4027.393     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3297 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5664        .48509E-06** at limit **
   2  norm          .10000E-03    5.6507       -.22341E-06** at limit **
   3  Prefactor     .10000E-03    14.794        .46981E-07** at limit **
   4  Prefactor     .10000E-03    7.2229       -.13713E-06** at limit **
   5  Prefactor     71.285        41.353       -.17314E-07   -.96469E-04
   6  Prefactor     6.1653        7.8177        .36223E-05    .20289E-03
   7  Prefactor     7.7019        11.612        .15280E-06    .44793E-05
   8  Prefactor     2.8628        2.9676       -.18667E-06   -.59633E-04
   9  norm          .10000E-03    5.1334        .84346E-08** at limit **
  10  Prefactor     1.6148        3.9136        .53414E-06    .11364E-03
  11  Prefactor     18.505        33.572        .39236E-06    .26623E-04
  12  Prefactor     .10000E-03    3.1655       -.46851E-07** at limit **
  13  norm          .10000E-03    11.672        .34340E-06** at limit **
  14  Prefactor     .10001E-03    68.737       -.13565E-05** at limit **
  15  Prefactor     .10000E-03    20.511       -.10795E-06** at limit **
  16  Prefactor     .10000E-03    1.8694        .66614E-08** at limit **
  17  Prefactor     .10001E-03    4.3831       -.20759E-05** at limit **
  18  Prefactor     .10000E-03    17.354       -.18613E-06** at limit **
  19  Prefactor     .10001E-03    54.006        .17113E-05** at limit **
  20  Prefactor     239.44        209.01       -.52225E-06   -.24507E-04
  21  Prefactor     5.4215        39.853        .62901E-06   -.12559E-04
  22  norm          1.8832        .72197        .18026E-06    .33961E-03
  23  Prefactor     .10000E-03    35.788       -.14956E-05** at limit **
  24  Prefactor     4.3845        47.678       -.35544E-05   -.69500E-04
  25  norm          104.42        51.952       -.76028E-08   -.46301E-04
  26  Normalizat    .87783        .20927        .29890E-06    .80712E-04
  27  Prefactor     .93386        .24094       -.16176E-05    .10824E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.2848
  Prefactor  = 6.16527
  Prefactor  = 7.70194
  Prefactor  = 2.86276
  norm       = 0.0001
  Prefactor  = 1.61482
  Prefactor  = 18.5053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 239.439
  Prefactor  = 5.42154
  norm       = 1.88322
  Prefactor  = 0.0001
  Prefactor  = 4.38447
  norm       = 104.415
  Normalizat = 0.877832
  Prefactor  = 0.933859
 **********
 **   18 **HESSE 
 **********

 FCN=   4027.393     FROM HESSE     STATUS=OK           484 CALLS     3781 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6770        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.6577        .14733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2270        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.285        41.451        .47543E-04   -1.4017    
   6  Prefactor     6.1653        7.9829        .80830E-03   -1.5211    
   7  Prefactor     7.7019        11.588        .14447E-03   -1.5153    
   8  Prefactor     2.8628        2.9607        .10528E-03   -1.5370    
   9  norm          .10000E-03    5.1510        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6148        3.8676        .18437E-03   -1.5454    
  11  Prefactor     18.505        33.608        .93110E-04   -1.4847    
  12  Prefactor     .10000E-03    3.2104        .10985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    69.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8747        .84720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    7.6191        .23721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    54.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     239.44        209.26        .13082E-03   -1.2601    
  21  Prefactor     5.4215        39.868        .17248E-03   -1.5242    
  22  norm          1.8832        .73506        .30426E-04   -1.5434    
  23  Prefactor     .10000E-03    35.901        .21241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3845        49.647        .19158E-03   -1.5289    
  25  norm          104.42        51.856        .19675E-03   -1.3661    
  26  Normalizat    .87783        .24700        .23993E-03   -.97244    
  27  Prefactor     .93386        .28272        .27365E-03   -.94968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52417e-09
Minuit parameter uncertainties:
  1  6.79871e-05
  2  2.28209e-05
  3  2.26345e-06
  4  2.83206e-06
  5  41.4673
  6  7.9843
  7  11.5912
  8  2.96089
  9  5.67388e-07
  10  3.86821
  11  33.6428
  12  2.06311e-06
  13  7.25704e-05
  14  0.0011868
  15  1.36311e-05
  16  1.52191e-06
  17  0.000501706
  18  6.82498e-05
  19  0.00105698
  20  209.916
  21  29.4311
  22  0.735063
  23  4.66309e-05
  24  29.5384
  25  51.8785
  26  0.247316
  27  0.283167
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.063e-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.339e-01  2.832e-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.778e-01  2.473e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814222/likelihoodResults_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.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) = 4027.39468045
delta logL = -0.0014832665438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4027.39319725
delta logL = -6.35477590549e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5796       1.0000          .0000       10.000    
     3 'Normalizat'    .87782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93392       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=   4027.393     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      228 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    76.676        .11035E-02** at limit **
   2  Index         2.5362        8.7291        .50000        .21621E-04
   3  Normalizat    .87783        .24154E-01    .23993E-03    .29664E-03
   4  Prefactor     .93386        .28491E-01    .27366E-03    .24042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100567
  Index      = 2.53617
  Normalizat = 0.877834
  Prefactor  = 0.933858
 **********
 **   18 **HESSE 
 **********

 FCN=   4027.393     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      257 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    295.81        .22069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5362        6.5508        .50000       -.51527    
   3  Normalizat    .87783        .52381E-01    .47986E-04   -.97243    
   4  Prefactor     .93386        .61784E-01    .54731E-04   -.94968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.02822e-08
Minuit parameter uncertainties:
  1  0.0260333
  2  789.973
  3  0.0523842
  4  0.0617888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814222': 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) = 4027.39319696
delta logL = 2.2571248337e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.006e-04  2.603e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.536e+00  7.900e+02  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.339e-01  6.179e-02  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.778e-01  5.238e-02  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/814222/cmap_HighResolution_542592001_542851201_4FGL_J1018.4+3540_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-01 18:15:21.283741', job_id='814222', GAL2='0.93', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630545321.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1170' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 814222: <4FGL_J1018.4+3540_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1170> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:37 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:39 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:39 2021
Terminated at Wed Sep  1 18:15:24 2021
Results reported at Wed Sep  1 18:15:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1170 154.607 35.6802 542592001 542851201 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 :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             244.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            887 sec.

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

