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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1406
RA = 154.548, Dec = 19.0963
tmin = 603763201, tmax = 604022401
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='792918', job_status='RUN', time_executed='2021-09-01 16:57:02.623574', time_epoch_executed='1630540622.62' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792918/ft1_4FGL_J1018.1+1905_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792918/ft2_4FGL_J1018.1+1905_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792918/ft1_4FGL_J1018.1+1905_daily_bin1406.fits outfile=/scratch/kocevski/792918/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1406.fits ra=154.548 dec=19.0963 rad=12.0 tmin=603763201.0 tmax=604022401.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.23
user 4.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792918/ft1_filtered_4FGL_J1018.1+1905_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/792918/ft2_4FGL_J1018.1+1905_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/792918/ltcube_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.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/792918/ft2_4FGL_J1018.1+1905_daily_bin1406.fits
.....................!
real 17.71
user 17.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792918/ft1_filtered_4FGL_J1018.1+1905_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/792918/ft2_4FGL_J1018.1+1905_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/792918/ltcube_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.fits outfile=/scratch/kocevski/792918/expmap_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.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/792918/ltcube_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.fits
.....................!
real 192.52
user 187.57
sys 4.19

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/792918/ft1_filtered_4FGL_J1018.1+1905_daily_bin1406.fits scfile=/scratch/kocevski/792918/ft2_4FGL_J1018.1+1905_daily_bin1406.fits outfile=/scratch/kocevski/792918/cmap_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792918/ft1_filtered_4FGL_J1018.1+1905_daily_bin1406.fits scfile=/scratch/kocevski/792918/ft2_4FGL_J1018.1+1905_daily_bin1406.fits outfile=/scratch/kocevski/792918/cmap_HighResolution_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .65554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7392       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    108.00       1.0000         .10000E-03   10000.    
     9 'Prefactor '    100.26       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74159E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.985       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12307E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10952E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .85757       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2444       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=   3367.854     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1594 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.274       -.11517E-04** at limit **
   2  norm          .65649        1.7842       -.73575E-06   -.10783E-02
   3  Prefactor     6.7414        72.638        .71886E-05   -.64411E-05
   4  Prefactor     .10000E-03    22.710        .12151E-04** at limit **
   5  Prefactor     13.552        8.6775       -.75782E-06   -.86628E-03
   6  Prefactor     .10000E-03    2.4131       -.34630E-06** at limit **
   7  norm          13.478        11.878       -.71984E-07   -.30703E-04
   8  Prefactor     108.00        103.36        .10248E-05    .53171E-05
   9  Prefactor     100.22        72.364       -.35091E-04   -.75462E-05
  10  Prefactor     .10000E-03    7.0220       -.11580E-05** at limit **
  11  Prefactor     .10010E-03    2.1266        .12710E-05** at limit **
  12  Prefactor     12.985        10.910       -.59879E-06   -.37926E-04
  13  Prefactor     15.883        13.521       -.54736E-06   -.22986E-03
  14  Prefactor     .10000E-03    12.987       -.17788E-05** at limit **
  15  Prefactor     .10000E-03    13.697       -.53248E-07** at limit **
  16  Normalizat    .85787        .25933        .63248E-05   -.19891E-03
  17  Prefactor     1.2440        .24916       -.57177E-06    .69374E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.656488
  Prefactor  = 6.74145
  Prefactor  = 0.0001
  Prefactor  = 13.5516
  Prefactor  = 0.0001
  norm       = 13.4781
  Prefactor  = 108.005
  Prefactor  = 100.218
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 12.9848
  Prefactor  = 15.8834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857869
  Prefactor  = 1.244
 **********
 **   18 **HESSE 
 **********

 FCN=   3367.854     FROM HESSE     STATUS=OK           227 CALLS     1821 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .65649        1.6330        .12264E-02   -1.5546    
   3  Prefactor     6.7414        72.621        .15457E-03   -1.5189    
   4  Prefactor     .10000E-03    22.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.552        8.7028        .54398E-03   -1.4972    
   6  Prefactor     .10000E-03    5.2577        .17406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.478        11.874        .10910E-03   -1.4974    
   8  Prefactor     108.00        103.35        .38699E-04   -1.3626    
   9  Prefactor     100.22        72.346        .20076E-03   -1.3702    
  10  Prefactor     .10000E-03    7.0575        .15002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10010E-03    9.9259        .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.985        10.911        .11116E-03   -1.4987    
  13  Prefactor     15.883        13.410        .10049E-03   -1.4911    
  14  Prefactor     .10000E-03    13.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .85787        .30394        .27078E-03   -.97957    
  17  Prefactor     1.2440        .29734        .23541E-03   -.84988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09581e-08
Minuit parameter uncertainties:
  1  6.67258e-06
  2  1.63314
  3  44.3208
  4  2.02114e-05
  5  8.70364
  6  8.41027e-05
  7  11.8761
  8  103.523
  9  72.4094
  10  6.29451e-06
  11  0.00198194
  12  10.9126
  13  13.4128
  14  1.79094e-05
  15  2.0289e-05
  16  0.304546
  17  0.297745
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.002e+02  7.241e+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.244e+00  2.977e-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.579e-01  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.46
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 4.25e-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) = 3367.74390586
delta logL = 0.109819360535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3367.73127226
delta logL = 0.122452966408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.834       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3828       1.0000          .0000       10.000    
     3 'Normalizat'    .81130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2675       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=   3367.731     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      298 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.859        87.250        .47367E-04    .29551E-03
   2  Index         2.3822        .68389        .33187E-02    .28076E-03
   3  Normalizat    .81063        .30411        .27773E-03    .32237E-03
   4  Prefactor     1.2684        .29868        .23326E-03    .85973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.8587
  Index      = 2.38225
  Normalizat = 0.810626
  Prefactor  = 1.26836
 **********
 **   18 **HESSE 
 **********

 FCN=   3367.731     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.859        76.715        .94733E-05   -1.4011    
   2  Index         2.3822        .60045        .13275E-03   -.55101    
   3  Normalizat    .81063        .30132        .55545E-04   -.99676    
   4  Prefactor     1.2684        .29775        .46652E-04   -.84253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85235e-09
Minuit parameter uncertainties:
  1  76.8205
  2  0.602457
  3  0.301943
  4  0.29815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792918': 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) = 3367.73126687
delta logL = 0.12245835206

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  7.186e+01  7.682e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.382e+00  6.025e-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.268e+00  2.981e-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.106e-01  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 154.548 19.096
Photon Index (Free Index): 2.38 +/- 0.60
Photon Flux (Free Index): 1.10e-07 +/- 9.41e-08
Energy Flux (Free Index): 3.69e-05 +/- 2.33e-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/792918/cmap_HighResolution_603763201_604022401_4FGL_J1018.1+1905_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='3.69e-05', photon_flux_error='5.14e-08', dlogl='1.22e-01', energy_flux='4.25e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-01 17:04:16.636274', photon_index_error2='0.60', photon_index2='2.38', ts='7.46', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.86', time_epoch_completed='1630541056.64', return_code='0', job_id='792918', GAL2='1.27', EG2='0.81', return_code2='0', energy_flux_error='3.07e-05', photon_flux_error2='9.41e-08', ts2='7.74', photon_index='2.06' WHERE bin_id='1406' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:04:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 792918: <4FGL_J1018.1+1905_daily_bin1406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1406 154.548 19.0963 603763201 604022401 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 :                                   428.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            773 sec.

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

