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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1249
RA = 154.548, Dec = 19.0963
tmin = 563068801, tmax = 563328001
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='792649', job_status='RUN', time_executed='2021-09-01 16:54:55.219033', time_epoch_executed='1630540495.22' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792649/ft1_4FGL_J1018.1+1905_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792649/ft1_4FGL_J1018.1+1905_daily_bin1249.fits outfile=/scratch/kocevski/792649/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1249.fits ra=154.548 dec=19.0963 rad=12.0 tmin=563068801.0 tmax=563328001.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 4.14
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.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/792649/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/792649/ltcube_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.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/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits
.....................!
real 14.74
user 14.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/792649/ltcube_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.fits outfile=/scratch/kocevski/792649/expmap_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.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/792649/ltcube_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.fits
.....................!
real 190.84
user 185.71
sys 4.49

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/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.fits scfile=/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits outfile=/scratch/kocevski/792649/cmap_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.fits scfile=/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits outfile=/scratch/kocevski/792649/cmap_HighResolution_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.fits', '/scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits', expMap='/scratch/kocevski/792649/expmap_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.fits', expCube='/scratch/kocevski/792649/ltcube_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792649/Model_4FGL_J1018.1+1905_daily_bin1249.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/792649/ft1_filtered_4FGL_J1018.1+1905_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/792649/ft2_4FGL_J1018.1+1905_daily_bin1249.fits
Exposure map: /scratch/kocevski/792649/expmap_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.fits
Exposure cube: /scratch/kocevski/792649/ltcube_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792649/Model_4FGL_J1018.1+1905_daily_bin1249.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) = 7799.6004351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .15336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13531E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12752E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20840E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.183       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .81251       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0393       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=   7799.599     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1648 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9793        .15745E-07** at limit **
   2  norm          .15270        .74598        .11735E-05    .24171E-03
   3  Prefactor     54.358        46.593        .25347E-06    .43641E-04
   4  Prefactor     6.5631        18.825        .20286E-06    .33414E-05
   5  Prefactor     .10000E-03    1.4733        .40392E-08** at limit **
   6  Prefactor     .10000E-03    .89648       -.86878E-07** at limit **
   7  norm          .10000E-03    1.8121       -.44102E-07** at limit **
   8  Prefactor     42.257        55.392        .41472E-06    .62447E-04
   9  Prefactor     19.179        18.615       -.10009E-06   -.10886E-03
  10  Prefactor     .10017E-03    2.7993        .52578E-06** at limit **
  11  Prefactor     3.0233        1.8316        .15969E-06   -.27581E-03
  12  Prefactor     .10000E-03    5.9752       -.30946E-06** at limit **
  13  Prefactor     .10000E-03    8.1801       -.37822E-06** at limit **
  14  Prefactor     20.190        9.4204        .12680E-06   -.27324E-04
  15  Prefactor     .10000E-03    11.383       -.32077E-06** at limit **
  16  Normalizat    .81249        .13487       -.90214E-07   -.16459E-03
  17  Prefactor     1.0395        .13555       -.13868E-07   -.13241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.152696
  Prefactor  = 54.3578
  Prefactor  = 6.56314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.2566
  Prefactor  = 19.1795
  Prefactor  = 0.000100167
  Prefactor  = 3.02333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1895
  Prefactor  = 0.0001
  Normalizat = 0.812486
  Prefactor  = 1.03951
 **********
 **   18 **HESSE 
 **********

 FCN=   7799.599     FROM HESSE     STATUS=OK           221 CALLS     1869 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .15270        .74411        .14906E-03   -1.5630    
   3  Prefactor     54.358        46.622        .54411E-04   -1.4232    
   4  Prefactor     6.5631        18.802        .15669E-03   -1.5196    
   5  Prefactor     .10000E-03    1.4902        .10466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2158        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8189        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.257        55.499        .61691E-04   -1.4407    
   9  Prefactor     19.179        18.634        .45704E-03   -1.4832    
  10  Prefactor     .10017E-03    34.723        .26551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0233        1.7956        .86899E-04   -1.5360    
  12  Prefactor     .10000E-03    6.2402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.190        9.3702        .89154E-04   -1.4809    
  15  Prefactor     .10000E-03    11.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .81249        .15417        .23403E-03   -.99607    
  17  Prefactor     1.0395        .15755        .21599E-03   -.91424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72871e-09
Minuit parameter uncertainties:
  1  4.80557e-06
  2  0.67395
  3  46.6533
  4  18.8192
  5  1.65227e-07
  6  1.94651e-05
  7  4.33329e-07
  8  55.5667
  9  18.64
  10  0.00481743
  11  1.79565
  12  7.42248e-06
  13  1.99053e-05
  14  9.37085
  15  2.11869e-05
  16  0.154255
  17  0.15762
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.918e+01  1.864e+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:  1.040e+00  1.576e-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:  8.125e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.32e-08
Energy Flux (Fixed Index): 8.13e-06 +/- 7.90e-06

TS (Fixed Index): 3.33
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792649/likelihoodResults_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.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) = 7799.5695978
delta logL = 0.0294105077401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7799.55685371
delta logL = 0.0421545999734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.966       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8530       1.0000          .0000       10.000    
     3 'Normalizat'    .81554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0384       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=   7799.557     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      267 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.975        25.770        .83584E-04    .40805E-06
   2  Index         1.8528        .73293        .10594E-01    .12349E-04
   3  Normalizat    .81554        .15147        .23364E-03   -.52066E-05
   4  Prefactor     1.0384        .15688        .21610E-03    .49451E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9749
  Index      = 1.85281
  Normalizat = 0.815542
  Prefactor  = 1.0384
 **********
 **   18 **HESSE 
 **********

 FCN=   7799.557     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.975        25.110        .33433E-05   -1.4749    
   2  Index         1.8528        .71461        .42376E-03   -.68083    
   3  Normalizat    .81554        .15158        .93455E-05   -.99495    
   4  Prefactor     1.0384        .15704        .86441E-05   -.91460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90176e-13
Minuit parameter uncertainties:
  1  25.1218
  2  0.718702
  3  0.151663
  4  0.15711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792649': 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) = 7799.55685359
delta logL = 0.0421547211736

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.297e+01  2.512e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.853e+00  7.187e-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:  1.038e+00  1.571e-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:  8.155e-01  1.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 154.548 19.096
Photon Index (Free Index): 1.85 +/- 0.72
Photon Flux (Free Index): 1.04e-08 +/- 1.50e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/792649/cmap_HighResolution_563068801_563328001_4FGL_J1018.1+1905_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='1.06e-05', photon_flux_error='1.32e-08', dlogl='4.22e-02', energy_flux='8.13e-06', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-09-01 17:04:49.800110', photon_index_error2='0.72', photon_index2='1.85', ts='3.33', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.14e-08', energy_flux_error2='1.52e-05', EG='0.81', time_epoch_completed='1630541089.8', return_code='0', job_id='792649', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='7.90e-06', photon_flux_error2='1.50e-08', ts2='3.42', photon_index='2.06' WHERE bin_id='1249' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:04:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 792649: <4FGL_J1018.1+1905_daily_bin1249> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1249> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:50:59 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:52:20 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:52:20 2021
Terminated at Wed Sep  1 17:04:51 2021
Results reported at Wed Sep  1 17:04:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1249 154.548 19.0963 563068801 563328001 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 :                                   596.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            832 sec.

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

