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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1304
RA = 154.548, Dec = 19.0963
tmin = 577324801, tmax = 577584001
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='792743', job_status='RUN', time_executed='2021-09-01 16:56:45.076416', time_epoch_executed='1630540605.08' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792743/ft1_4FGL_J1018.1+1905_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792743/ft2_4FGL_J1018.1+1905_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792743/ft1_4FGL_J1018.1+1905_daily_bin1304.fits outfile=/scratch/kocevski/792743/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1304.fits ra=154.548 dec=19.0963 rad=12.0 tmin=577324801.0 tmax=577584001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.02
user 2.82
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792743/ft1_filtered_4FGL_J1018.1+1905_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/792743/ft2_4FGL_J1018.1+1905_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/792743/ltcube_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.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/792743/ft2_4FGL_J1018.1+1905_daily_bin1304.fits
.....................!
real 14.63
user 14.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792743/ft1_filtered_4FGL_J1018.1+1905_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/792743/ft2_4FGL_J1018.1+1905_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/792743/ltcube_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.fits outfile=/scratch/kocevski/792743/expmap_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.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/792743/ltcube_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.fits
.....................!
real 192.76
user 186.66
sys 5.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/792743/ft1_filtered_4FGL_J1018.1+1905_daily_bin1304.fits scfile=/scratch/kocevski/792743/ft2_4FGL_J1018.1+1905_daily_bin1304.fits outfile=/scratch/kocevski/792743/cmap_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.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.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792743/ft1_filtered_4FGL_J1018.1+1905_daily_bin1304.fits scfile=/scratch/kocevski/792743/ft2_4FGL_J1018.1+1905_daily_bin1304.fits outfile=/scratch/kocevski/792743/cmap_HighResolution_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.482       1.0000         .10000E-03   10000.    
     2 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54481       1.0000         .10000E-03   10000.    
     7 'norm      '    29.343       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13226E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0102       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=   7054.928     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1398 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.484        19.710       -.23377E-05    .53989E-05
   2  norm          .10000E-03    .44974        .62238E-07** at limit **
   3  Prefactor     .10000E-03    22.085        .72440E-06** at limit **
   4  Prefactor     12.390        29.337       -.88061E-06   -.11671E-04
   5  Prefactor     .10000E-03    3.5568       -.20158E-06** at limit **
   6  Prefactor     .54408        1.6947       -.36182E-06   -.17339E-02
   7  norm          29.344        9.6001        .27089E-08    .57339E-04
   8  Prefactor     .10000E-03    199.77       -.17639E-04** at limit **
   9  Prefactor     18.703        21.684        .16100E-05    .21298E-05
  10  Prefactor     14.710        9.7607        .66086E-05    .43269E-03
  11  Prefactor     .10000E-03    1.3292       -.10261E-05** at limit **
  12  Prefactor     .10000E-03    7.5596       -.73756E-06** at limit **
  13  Prefactor     .10000E-03    9.1767       -.40766E-06** at limit **
  14  Prefactor     27.263        12.586       -.29674E-05    .21420E-03
  15  Prefactor     .10000E-03    3.8648       -.36805E-06** at limit **
  16  Normalizat    1.0420        .17229       -.78584E-06    .32558E-03
  17  Prefactor     1.0103        .16091       -.10012E-07    .21452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3899
  Prefactor  = 0.0001
  Prefactor  = 0.544079
  norm       = 29.3436
  Prefactor  = 0.0001
  Prefactor  = 18.703
  Prefactor  = 14.7097
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2634
  Prefactor  = 0.0001
  Normalizat = 1.04198
  Prefactor  = 1.01032
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.928     FROM HESSE     STATUS=OK           219 CALLS     1617 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.484        19.701        .90742E-04   -1.4825    
   2  norm          .10000E-03    .67965        .10965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.390        29.408        .11380E-03   -1.5004    
   5  Prefactor     .10000E-03    3.6076        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54408        1.7127        .18609E-03   -1.5560    
   7  norm          29.344        9.6072        .73962E-04   -1.4624    
   8  Prefactor     .10000E-03    200.21        .20567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.703        21.663        .92607E-04   -1.4843    
  10  Prefactor     14.710        9.6215        .10446E-03   -1.4941    
  11  Prefactor     .10000E-03    2.7202        .18545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.263        12.409        .76731E-04   -1.4663    
  15  Prefactor     .10000E-03    3.8671        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0420        .19865        .24838E-03   -.91637    
  17  Prefactor     1.0103        .18604        .24672E-03   -.92386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59447e-09
Minuit parameter uncertainties:
  1  19.7079
  2  3.83681e-07
  3  9.9747e-06
  4  29.4419
  5  1.04646e-05
  6  1.71284
  7  9.60769
  8  0.000266138
  9  21.6717
  10  9.62252
  11  0.000220204
  12  5.77098e-07
  13  3.4472e-05
  14  12.4104
  15  3.76879e-06
  16  0.198791
  17  0.186163
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.870e+01  2.167e+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.010e+00  1.862e-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.042e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 7.93e-06 +/- 9.19e-06

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

Saving results to:
/scratch/kocevski/792743/likelihoodResults_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.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) = 7054.60025818
delta logL = 0.327970584463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7054.57055123
delta logL = 0.357677534872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.915       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4941       1.0000          .0000       10.000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       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=   7054.571     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      305 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.894        32.104        .74506E-04    .85449E-05
   2  Index         1.4937        .64431        .10283E-01    .40672E-04
   3  Normalizat    1.0472        .18834        .24783E-03    .75691E-04
   4  Prefactor     1.0084        .18551        .24690E-03   -.74365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8938
  Index      = 1.49372
  Normalizat = 1.04725
  Prefactor  = 1.00838
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.571     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.894        32.139        .29802E-05   -1.4632    
   2  Index         1.4937        .64525        .20566E-02   -.77716    
   3  Normalizat    1.0472        .18853        .99131E-05   -.91464    
   4  Prefactor     1.0084        .18570        .98759E-05   -.92451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13632e-11
Minuit parameter uncertainties:
  1  32.158
  2  0.648825
  3  0.188653
  4  0.18582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792743': 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) = 7054.57054933
delta logL = 0.357679443995

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.889e+01  3.216e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.494e+00  6.488e-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.008e+00  1.858e-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.047e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 154.548 19.096
Photon Index (Free Index): 1.49 +/- 0.65
Photon Flux (Free Index): 6.88e-09 +/- 1.02e-08
Energy Flux (Free Index): 2.22e-05 +/- 3.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/792743/cmap_HighResolution_577324801_577584001_4FGL_J1018.1+1905_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='2.22e-05', photon_flux_error='1.54e-08', dlogl='3.58e-01', energy_flux='7.93e-06', photon_flux2='6.88e-09', job_status='DONE', time_completed='2021-09-01 17:05:58.262208', photon_index_error2='0.65', photon_index2='1.49', ts='1.81', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='6.06e-08', energy_flux_error2='3.62e-05', EG='1.04', time_epoch_completed='1630541158.26', return_code='0', job_id='792743', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='9.19e-06', photon_flux_error2='1.02e-08', ts2='2.53', photon_index='2.06' WHERE bin_id='1304' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:05:58 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1304 154.548 19.0963 577324801 577584001 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 :                                   549.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            890 sec.

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

