/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 69 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 = 7409
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1631
RA = 154.607, Dec = 35.6802
tmin = 662083201, tmax = 662342401
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='553223', job_status='RUN', time_executed='2021-12-28 00:13:08.508132', time_epoch_executed='1640679188.51' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553223/ft1_4FGL_J1018.4+3540_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553223/ft2_4FGL_J1018.4+3540_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553223/ft1_4FGL_J1018.4+3540_daily_bin1631.fits outfile=/scratch/kocevski/553223/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1631.fits ra=154.607 dec=35.6802 rad=12.0 tmin=662083201.0 tmax=662342401.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.87
user 3.63
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/553223/ft1_filtered_4FGL_J1018.4+3540_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/553223/ft2_4FGL_J1018.4+3540_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/553223/ltcube_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.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/553223/ft2_4FGL_J1018.4+3540_daily_bin1631.fits
.....................!
real 21.85
user 21.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553223/ft1_filtered_4FGL_J1018.4+3540_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/553223/ft2_4FGL_J1018.4+3540_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/553223/ltcube_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.fits outfile=/scratch/kocevski/553223/expmap_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.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/553223/ltcube_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.fits
.....................!
real 191.98
user 186.15
sys 5.42

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/553223/ft1_filtered_4FGL_J1018.4+3540_daily_bin1631.fits scfile=/scratch/kocevski/553223/ft2_4FGL_J1018.4+3540_daily_bin1631.fits outfile=/scratch/kocevski/553223/cmap_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553223/ft1_filtered_4FGL_J1018.4+3540_daily_bin1631.fits scfile=/scratch/kocevski/553223/ft2_4FGL_J1018.4+3540_daily_bin1631.fits outfile=/scratch/kocevski/553223/cmap_HighResolution_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1026       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.535       1.0000         .10000E-03   10000.    
    13 'norm      '    19.203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0507       1.0000         .10000E-03   10000.    
    20 'Prefactor '    92.240       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7968       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5629       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.050       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.831       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90366       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71681       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=   2881.046     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3234 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.405       -.55511E-05** at limit **
   2  norm          .10000E-03    9.8999       -.41967E-05** at limit **
   3  Prefactor     82.919        74.282       -.58261E-04   -.12453E-04
   4  Prefactor     .10000E-03    20.469       -.17813E-05** at limit **
   5  Prefactor     .10000E-03    23.691        .13460E-04** at limit **
   6  Prefactor     .10000E-03    7.2730        .17964E-05** at limit **
   7  Prefactor     .10000E-03    10.251       -.58633E-06** at limit **
   8  Prefactor     5.1054        4.0426        .23156E-05    .12394E-03
   9  norm          .10000E-03    3.5915        .19751E-07** at limit **
  10  Prefactor     .10000E-03    6.0593       -.37372E-06** at limit **
  11  Prefactor     52.328        50.138        .17306E-04    .58587E-05
  12  Prefactor     15.545        7.6847       -.79554E-06    .47055E-04
  13  norm          19.206        15.007       -.33985E-05    .22416E-05
  14  Prefactor     .10000E-03    50.695       -.26469E-05** at limit **
  15  Prefactor     .10000E-03    12.792        .95768E-05** at limit **
  16  Prefactor     .10000E-03    2.6151       -.16401E-06** at limit **
  17  Prefactor     .10000E-03    2.6432       -.79140E-07** at limit **
  18  Prefactor     .10000E-03    18.176       -.57151E-05** at limit **
  19  Prefactor     7.0415        21.930       -.93380E-05   -.13096E-04
  20  Prefactor     92.222        110.00       -.17994E-04    .57155E-05
  21  Prefactor     2.7964        7.8041       -.11591E-05   -.22005E-03
  22  norm          1.5629        .44918        .14370E-07    .47113E-03
  23  Prefactor     16.049        24.880       -.42337E-05    .16608E-04
  24  Prefactor     .10000E-03    19.266       -.45521E-05** at limit **
  25  norm          28.838        22.584        .23622E-05    .26917E-04
  26  Normalizat    .90265        .23070        .40198E-05    .51862E-04
  27  Prefactor     .71808        .25906        .54612E-05    .70094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 82.9185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.1054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.3276
  Prefactor  = 15.5447
  norm       = 19.2058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04155
  Prefactor  = 92.2221
  Prefactor  = 2.79644
  norm       = 1.5629
  Prefactor  = 16.0489
  Prefactor  = 0.0001
  norm       = 28.8378
  Normalizat = 0.90265
  Prefactor  = 0.71808
 **********
 **   18 **HESSE 
 **********

 FCN=   2881.046     FROM HESSE     STATUS=OK           484 CALLS     3718 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.9023        .16498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     82.919        74.413        .22048E-03   -1.3884    
   4  Prefactor     .10000E-03    20.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3530        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.290        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1054        4.0455        .90412E-04   -1.5256    
   9  norm          .10000E-03    3.5947        .99348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1850        .25666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.328        50.322        .55453E-04   -1.4260    
  12  Prefactor     15.545        7.6751        .99090E-04   -1.4919    
  13  norm          19.206        15.008        .91399E-04   -1.4831    
  14  Prefactor     .10000E-03    50.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6299        .84742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6572        .85216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0415        21.934        .15108E-03   -1.5177    
  20  Prefactor     92.222        110.01        .41843E-04   -1.3784    
  21  Prefactor     2.7964        7.7828        .24327E-03   -1.5374    
  22  norm          1.5629        .45054        .18104E-04   -1.5458    
  23  Prefactor     16.049        24.945        .99974E-04   -1.4907    
  24  Prefactor     .10000E-03    19.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.838        22.562        .74614E-04   -1.4633    
  26  Normalizat    .90265        .27380        .22750E-03   -.96367    
  27  Prefactor     .71808        .30496        .29567E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99274e-10
Minuit parameter uncertainties:
  1  9.47268e-05
  2  1.38138e-05
  3  74.4973
  4  8.45967e-05
  5  8.95874e-05
  6  0.000158183
  7  2.13271e-05
  8  4.04568
  9  1.94295e-06
  10  1.26529e-05
  11  50.3629
  12  7.67557
  13  15.0108
  14  0.000116977
  15  1.22952e-05
  16  2.0647e-05
  17  1.08613e-05
  18  2.65426e-05
  19  21.959
  20  110.259
  21  7.78558
  22  0.450538
  23  24.9616
  24  3.00767e-06
  25  22.5688
  26  0.274226
  27  0.305675
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.554e+01  7.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.181e-01  3.057e-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:  9.026e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.11
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.67e-05

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) = 2880.71161994
delta logL = 0.33451089551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2880.6522159
delta logL = 0.393914944053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.744       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1367       1.0000          .0000       10.000    
     3 'Normalizat'    .94925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68064       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=   2880.652     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      204 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.744        13.517        .23128E-02   -.24090E-03
   2  Index         2.1367        .61132        .13387       -.11051E-03
   3  Normalizat    .94925        .22416        .45528E-01    .91945E-06
   4  Prefactor     .68064        .25861        .68425E-01    .97266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7443
  Index      = 2.13671
  Normalizat = 0.949247
  Prefactor  = 0.680637
 **********
 **   18 **HESSE 
 **********

 FCN=   2880.652     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.744        9.8267        .92510E-04   -1.4842    
   2  Index         2.1367        .47762        .54741E-02   -.60974    
   3  Normalizat    .94925        .26130        .22256E-03   -.94751    
   4  Prefactor     .68064        .30123        .30280E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91265e-10
Minuit parameter uncertainties:
  1  9.82755
  2  0.478703
  3  0.261649
  4  0.301952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553223': 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) = 2880.65221589
delta logL = 0.393914944507

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.874e+01  9.828e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.137e+00  4.787e-01  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:  6.806e-01  3.020e-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:  9.492e-01  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.78
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.14 +/- 0.48
Photon Flux (Free Index): 9.16e-08 +/- 6.16e-08
Energy Flux (Free Index): 4.65e-05 +/- 3.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/553223/cmap_HighResolution_662083201_662342401_4FGL_J1018.4+3540_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='4.65e-05', photon_flux_error='6.29e-08', dlogl='3.94e-01', energy_flux='3.37e-05', photon_flux2='9.16e-08', job_status='DONE', time_completed='2021-12-28 00:21:53.559278', photon_index_error2='0.48', photon_index2='2.14', ts='13.11', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='3.53e-05', EG='0.90', time_epoch_completed='1640679713.56', return_code='0', job_id='553223', GAL2='0.68', EG2='0.95', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.16e-08', ts2='13.78', photon_index='2.59' WHERE bin_id='1631' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:21:53 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 553132: <4FGL_J1018.4+3540_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1631> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:29 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:30 2021
Terminated at Tue Dec 28 00:20:26 2021
Results reported at Tue Dec 28 00:20:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1631 154.607 35.6802 662083201 662342401 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 :                                   509.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             213.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 553223: <4FGL_J1018.4+3540_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:33 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:35 2021
Terminated at Tue Dec 28 00:21:54 2021
Results reported at Tue Dec 28 00:21:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1631 154.607 35.6802 662083201 662342401 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 :                                   509.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             205.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

