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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1493
RA = 154.548, Dec = 19.0963
tmin = 626313601, tmax = 626572801
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='794058', job_status='RUN', time_executed='2021-09-01 16:58:30.617002', time_epoch_executed='1630540710.62' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794058/ft1_4FGL_J1018.1+1905_daily_bin1493.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794058/ft2_4FGL_J1018.1+1905_daily_bin1493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794058/ft1_4FGL_J1018.1+1905_daily_bin1493.fits outfile=/scratch/kocevski/794058/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1493.fits ra=154.548 dec=19.0963 rad=12.0 tmin=626313601.0 tmax=626572801.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.52
user 4.20
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794058/ft1_filtered_4FGL_J1018.1+1905_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/794058/ft2_4FGL_J1018.1+1905_daily_bin1493.fits sctable="SC_DATA" expcube=/scratch/kocevski/794058/ltcube_626313601_626572801_4FGL_J1018.1+1905_daily_bin1493.fits outfile=/scratch/kocevski/794058/expmap_626313601_626572801_4FGL_J1018.1+1905_daily_bin1493.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/794058/ltcube_626313601_626572801_4FGL_J1018.1+1905_daily_bin1493.fits
.....................!
real 191.74
user 186.41
sys 4.68

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/794058/ft1_filtered_4FGL_J1018.1+1905_daily_bin1493.fits scfile=/scratch/kocevski/794058/ft2_4FGL_J1018.1+1905_daily_bin1493.fits outfile=/scratch/kocevski/794058/cmap_626313601_626572801_4FGL_J1018.1+1905_daily_bin1493.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2267       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0322       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=   6955.879     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1351 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.147       -.36043E-06** at limit **
   2  norm          1.0229        .97540        .26743E-07   -.52320E-04
   3  Prefactor     82.300        56.218        .77619E-05    .38154E-03
   4  Prefactor     .10000E-03    28.893        .29656E-06** at limit **
   5  Prefactor     1.0209        7.5553       -.51159E-06   -.29021E-03
   6  Prefactor     .10000E-03    1.0271        .71044E-07** at limit **
   7  norm          .10000E-03    7.9020        .89392E-07** at limit **
   8  Prefactor     .10000E-03    28.535        .15173E-06** at limit **
   9  Prefactor     .10000E-03    28.551        .15193E-06** at limit **
  10  Prefactor     3.8506        5.2074        .91104E-06    .19940E-03
  11  Prefactor     1.5286        1.3645       -.40818E-07   -.20443E-03
  12  Prefactor     2.1085        6.9980        .90923E-05   -.32459E-03
  13  Prefactor     .10000E-03    3.4395        .80290E-07** at limit **
  14  Prefactor     3.7325        8.1356       -.10194E-06   -.62206E-04
  15  Prefactor     .10000E-03    20.064        .56261E-06** at limit **
  16  Normalizat    1.2264        .16827       -.99158E-06    .29607E-03
  17  Prefactor     1.0324        .16332       -.73460E-06    .10517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.02293
  Prefactor  = 82.3003
  Prefactor  = 0.0001
  Prefactor  = 1.02089
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85062
  Prefactor  = 1.52865
  Prefactor  = 2.10847
  Prefactor  = 0.0001
  Prefactor  = 3.73249
  Prefactor  = 0.0001
  Normalizat = 1.22642
  Prefactor  = 1.03242
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.879     FROM HESSE     STATUS=OK           219 CALLS     1570 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0229        .96608        .78165E-04   -1.5506    
   3  Prefactor     82.300        56.718        .22131E-03   -1.3891    
   4  Prefactor     .10000E-03    28.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0209        7.9021        .42997E-03   -1.5506    
   6  Prefactor     .10000E-03    1.0474        .82494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8506        5.1967        .20569E-03   -1.5315    
  11  Prefactor     1.5286        1.3519        .88766E-04   -1.5461    
  12  Prefactor     2.1085        7.0581        .14213E-02   -1.5418    
  13  Prefactor     .10000E-03    3.4597        .15088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7325        8.1071        .20911E-03   -1.5322    
  15  Prefactor     .10000E-03    20.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2264        .19768        .23050E-03   -.85790    
  17  Prefactor     1.0324        .19219        .25119E-03   -.91657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46353e-09
Minuit parameter uncertainties:
  1  4.50397e-05
  2  0.966099
  3  56.7558
  4  5.00485e-05
  5  5.68133
  6  4.65123e-06
  7  1.96712e-05
  8  2.23444e-05
  9  9.28786e-06
  10  5.19731
  11  1.35195
  12  7.06093
  13  7.0398e-06
  14  8.10947
  15  0.000122023
  16  0.1978
  17  0.192314
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.288e-06  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.032e+00  1.923e-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.226e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/794058/likelihoodResults_626313601_626572801_4FGL_J1018.1+1905_daily_bin1493.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6955.87945713
delta logL = -0.000166477778293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6955.87929107
delta logL = -4.19736352342e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2994       1.0000          .0000       10.000    
     3 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0324       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.

 FCN=   6955.879     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9022        .90712E-02** at limit **
   2  Index         2.2733        8.7604        .50000        .91712E-05
   3  Normalizat    1.2264        .20654E-02    .52133E-01    .25645E-04
   4  Prefactor     1.0324        .20964E-02    .41072E-01    .42979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.27335
  Normalizat = 1.22642
  Prefactor  = 1.03242
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.879     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2733        5.7198        .50000       -.57678    
   3  Normalizat    1.2264        .84500E-02    .23050E-03   -.85790    
   4  Prefactor     1.0324        .85785E-02    .25119E-03   -.91657    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51392e-07
Minuit parameter uncertainties:
  1  0.000540681
  2  183.008
  3  0.00845001
  4  0.00857855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794058': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6955.87929101
delta logL = -3.60720150638e-07

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.407e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.273e+00  1.830e+02  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.032e+00  8.579e-03  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.226e+00  8.450e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.548 19.096

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/794058/cmap_HighResolution_626313601_626572801_4FGL_J1018.1+1905_daily_bin1493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-09-01 17:07:47.361023', job_id='794058', GAL2='1.03', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630541267.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-3.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1493' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:07:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 794058: <4FGL_J1018.1+1905_daily_bin1493> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1493> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 16:55:35 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:55:57 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:55:57 2021
Terminated at Wed Sep  1 17:07:48 2021
Results reported at Wed Sep  1 17:07:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1493 154.548 19.0963 626313601 626572801 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 :                                   550.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            733 sec.

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

