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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1390
RA = 154.548, Dec = 19.0963
tmin = 599616001, tmax = 599875201
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='792889', job_status='RUN', time_executed='2021-09-01 16:55:24.325323', time_epoch_executed='1630540524.33' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792889

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792889/ft1_4FGL_J1018.1+1905_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792889/ft1_4FGL_J1018.1+1905_daily_bin1390.fits outfile=/scratch/kocevski/792889/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1390.fits ra=154.548 dec=19.0963 rad=12.0 tmin=599616001.0 tmax=599875201.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.54
user 2.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.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/792889/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/792889/ltcube_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.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/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits
.....................!
real 14.48
user 14.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/792889/ltcube_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.fits outfile=/scratch/kocevski/792889/expmap_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.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/792889/ltcube_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.fits
.....................!
real 193.21
user 188.10
sys 4.67

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.1+1905 @ 154.548 19.0963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits scfile=/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits outfile=/scratch/kocevski/792889/cmap_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.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.548 yref=19.0963 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits scfile=/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits outfile=/scratch/kocevski/792889/cmap_HighResolution_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.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.548 yref=19.0963 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792889/Model_4FGL_J1018.1+1905_daily_bin1390.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/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits.....................!
real 43.97
user 42.54
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits', '/scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits', expMap='/scratch/kocevski/792889/expmap_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.fits', expCube='/scratch/kocevski/792889/ltcube_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792889/Model_4FGL_J1018.1+1905_daily_bin1390.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.1+1905'

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/792889/ft1_filtered_4FGL_J1018.1+1905_daily_bin1390.fits
Spacecraft file(s): /scratch/kocevski/792889/ft2_4FGL_J1018.1+1905_daily_bin1390.fits
Exposure map: /scratch/kocevski/792889/expmap_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.fits
Exposure cube: /scratch/kocevski/792889/ltcube_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792889/Model_4FGL_J1018.1+1905_daily_bin1390.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) = 4345.11375199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.999       1.0000         .10000E-03   10000.    
     2 'norm      '    .57870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20342       1.0000         .10000E-03   10000.    
     7 'norm      '    23.518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    130.24       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13417E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2551       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .72177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4345.110     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1660 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.825        64.139        .74649E-05    .11407E-04
   2  norm          .57933        1.5736       -.24631E-06   -.28532E-03
   3  Prefactor     .10000E-03    49.867       -.65280E-06** at limit **
   4  Prefactor     .10000E-03    21.944        .78839E-07** at limit **
   5  Prefactor     .10000E-03    10.407       -.67829E-06** at limit **
   6  Prefactor     .20812        2.7628        .62972E-06   -.49053E-03
   7  norm          23.522        14.335       -.32620E-08   -.23273E-04
   8  Prefactor     .10000E-03    53.049        .23256E-06** at limit **
   9  Prefactor     130.24        72.307        .71583E-07   -.67448E-05
  10  Prefactor     35.017        12.309       -.38854E-06   -.34039E-03
  11  Prefactor     .10000E-03    2.3445        .44724E-06** at limit **
  12  Prefactor     .10000E-03    3.7871        .59504E-07** at limit **
  13  Prefactor     .10000E-03    8.8217        .20786E-05** at limit **
  14  Prefactor     2.3734        10.967        .18348E-05    .54244E-04
  15  Prefactor     .10000E-03    6.1817        .43849E-06** at limit **
  16  Normalizat    1.2555        .22649        .20813E-05   -.14071E-03
  17  Prefactor     .72138        .21012       -.28176E-05   -.51766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.825
  norm       = 0.57933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.208119
  norm       = 23.5224
  Prefactor  = 0.0001
  Prefactor  = 130.24
  Prefactor  = 35.0169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37335
  Prefactor  = 0.0001
  Normalizat = 1.25552
  Prefactor  = 0.721379
 **********
 **   18 **HESSE 
 **********

 FCN=   4345.110     FROM HESSE     STATUS=OK           223 CALLS     1883 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.825        66.492        .10013E-03   -1.4912    
   2  norm          .57933        1.4013        .13258E-02   -1.5556    
   3  Prefactor     .10000E-03    49.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20812        11.298        .19794E-02   -1.5617    
   7  norm          23.522        14.323        .82598E-04   -1.4738    
   8  Prefactor     .10000E-03    53.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     130.24        72.311        .35281E-04   -1.3421    
  10  Prefactor     35.017        12.182        .67723E-04   -1.4524    
  11  Prefactor     .10000E-03    4.4226        .18765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8157        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3734        11.454        .13313E-02   -1.5400    
  15  Prefactor     .10000E-03    6.1955        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2555        .25846        .23219E-03   -.84904    
  17  Prefactor     .72138        .23689        .27856E-03   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84882e-10
Minuit parameter uncertainties:
  1  65
  2  1.40137
  3  5.9338e-05
  4  1.19148e-07
  5  7.57643e-05
  6  3.06662
  7  14.3255
  8  2.03391e-05
  9  72.3598
  10  12.1832
  11  7.73446e-05
  12  1.37023e-06
  13  5.82642e-05
  14  10.4306
  15  1.14452e-05
  16  0.258729
  17  0.237224
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.302e+02  7.236e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.214e-01  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.256e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 5.52e-05 +/- 3.07e-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) = 4344.67469919
delta logL = 0.434977773126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4344.67124063
delta logL = 0.438436330168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.089       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4735       1.0000          .0000       10.000    
     3 'Normalizat'    1.2130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   4344.671     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      297 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.115        86.141        .48643E-04   -.14710E-03
   2  Index         2.4735        .55701        .29617E-02   -.26306E-04
   3  Normalizat    1.2134        .25722        .23534E-03   -.37113E-03
   4  Prefactor     .74850        .23950        .27383E-03   -.18724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.115
  Index      = 2.47355
  Normalizat = 1.21335
  Prefactor  = 0.748497
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.671     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.115        74.442        .97285E-05   -1.4055    
   2  Index         2.4735        .48111        .11847E-03   -.52972    
   3  Normalizat    1.2134        .25615        .47069E-04   -.86191    
   4  Prefactor     .74850        .23850        .10953E-04   -1.0166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77545e-10
Minuit parameter uncertainties:
  1  74.5438
  2  0.482109
  3  0.256412
  4  0.238828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792889': 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) = 4344.67123811
delta logL = 0.438438850487

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  6.812e+01  7.454e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.474e+00  4.821e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.485e-01  2.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.213e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.47 +/- 0.48
Photon Flux (Free Index): 1.31e-07 +/- 7.51e-08
Energy Flux (Free Index): 3.92e-05 +/- 2.34e-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/792889/cmap_HighResolution_599616001_599875201_4FGL_J1018.1+1905_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='3.92e-05', photon_flux_error='5.14e-08', dlogl='4.38e-01', energy_flux='5.52e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-01 17:02:55.478900', photon_index_error2='0.48', photon_index2='2.47', ts='5.46', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.26', time_epoch_completed='1630540975.48', return_code='0', job_id='792889', GAL2='0.75', EG2='1.21', return_code2='0', energy_flux_error='3.07e-05', photon_flux_error2='7.51e-08', ts2='6.31', photon_index='2.06' WHERE bin_id='1390' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:02:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 792889: <4FGL_J1018.1+1905_daily_bin1390> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1390> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:51:22 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:54:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:54:00 2021
Terminated at Wed Sep  1 17:02:56 2021
Results reported at Wed Sep  1 17:02:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1390 154.548 19.0963 599616001 599875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.1+1905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   443.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            694 sec.

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

