aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 5 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 = 17390
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.1+1905_weekly_bin276
RA = 154.548, Dec = 19.0963
tmin = 405907201, tmax = 406512001
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='249194', job_status='RUN', time_executed='2021-07-16 14:52:19.882241', time_epoch_executed='1626472339.88' WHERE source_name='4FGL J1018.1+1905' and cadence='weekly' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249194

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249194/ft1_4FGL_J1018.1+1905_weekly_bin276.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249194/ft1_4FGL_J1018.1+1905_weekly_bin276.fits outfile=/scratch/kocevski/249194/ft1_filteredMKT_4FGL_J1018.1+1905_weekly_bin276.fits ra=154.548 dec=19.0963 rad=12.0 tmin=405907201.0 tmax=406512001.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 7.65
user 7.33
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.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/249194/ft1_filteredMKT_4FGL_J1018.1+1905_weekly_bin276.fits evtable="EVENTS" outfile="/scratch/kocevski/249194/ft1_filtered_4FGL_J1018.1+1905_weekly_bin276.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.57
user 0.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249194/ft1_filtered_4FGL_J1018.1+1905_weekly_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/249194/ltcube_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.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/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.fits
.....................!
real 29.44
user 28.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249194/ft1_filtered_4FGL_J1018.1+1905_weekly_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/249194/ltcube_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.fits outfile=/scratch/kocevski/249194/expmap_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.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/249194/ltcube_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.fits
.....................!
real 191.44
user 185.78
sys 5.13

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/249194/ft1_filtered_4FGL_J1018.1+1905_weekly_bin276.fits scfile=/scratch/kocevski/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.fits outfile=/scratch/kocevski/249194/cmap_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249194/ft1_filtered_4FGL_J1018.1+1905_weekly_bin276.fits scfile=/scratch/kocevski/249194/ft2_4FGL_J1018.1+1905_weekly_bin276.fits outfile=/scratch/kocevski/249194/cmap_HighResolution_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.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.59
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6367       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13296E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61027       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.865       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7801       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.252       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12535       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .93813       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1308       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=   13197.27     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1663 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.387        13.773       -.84442E-06    .25809E-04
   2  norm          1.6367        .86762       -.55325E-07   -.26782E-04
   3  Prefactor     .10000E-03    20.092       -.25741E-07** at limit **
   4  Prefactor     .10000E-03    8.3442       -.18174E-06** at limit **
   5  Prefactor     .10000E-03    1.8683       -.25650E-06** at limit **
   6  Prefactor     .61005        1.1637       -.13112E-06   -.22789E-03
   7  norm          2.0003        1.9856        .92545E-07   -.16205E-02
   8  Prefactor     31.813        41.643       -.11969E-05    .32454E-05
   9  Prefactor     26.847        29.618       -.12994E-04   -.14735E-04
  10  Prefactor     .99670        3.7838        .65588E-06   -.10127E-03
  11  Prefactor     1.7801        1.3062       -.25295E-07   -.33677E-03
  12  Prefactor     4.9898        4.2040        .18990E-07   -.92867E-03
  13  Prefactor     14.250        6.2710       -.18555E-05   -.88126E-03
  14  Prefactor     .14539        3.4111        .10483E-05    .20809E-03
  15  Prefactor     .10000E-03    4.3313        .15185E-06** at limit **
  16  Normalizat    .93804        .12026        .17308E-05   -.24174E-03
  17  Prefactor     1.1309        .11620       -.65796E-07    .18165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3874
  norm       = 1.63669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.610048
  norm       = 2.00034
  Prefactor  = 31.8128
  Prefactor  = 26.8474
  Prefactor  = 0.996704
  Prefactor  = 1.78012
  Prefactor  = 4.98981
  Prefactor  = 14.2503
  Prefactor  = 0.145389
  Prefactor  = 0.0001
  Normalizat = 0.938037
  Prefactor  = 1.13089
 **********
 **   18 **HESSE 
 **********

 FCN=   13197.27     FROM HESSE     STATUS=OK           235 CALLS     1898 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.387        13.750        .10211E-03   -1.4923    
   2  norm          1.6367        .86280        .75329E-04   -1.5452    
   3  Prefactor     .10000E-03    20.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0257        .29994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61005        1.1365        .16442E-03   -1.5552    
   7  norm          2.0003        4.9872        .14641E-02   -1.5425    
   8  Prefactor     31.813        41.671        .71039E-04   -1.4579    
   9  Prefactor     26.847        29.243        .77290E-04   -1.4671    
  10  Prefactor     .99670        3.8207        .40456E-03   -1.5508    
  11  Prefactor     1.7801        1.2861        .10598E-03   -1.5441    
  12  Prefactor     4.9898        4.4546        .90017E-03   -1.5261    
  13  Prefactor     14.250        7.2048        .10610E-03   -1.4953    
  14  Prefactor     .14539        89.157        .36364E-02   -1.5632    
  15  Prefactor     .10000E-03    4.3536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .93804        .13821        .24445E-03   -.95136    
  17  Prefactor     1.1309        .13451        .22961E-03   -.88485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26548e-09
Minuit parameter uncertainties:
  1  13.753
  2  0.862807
  3  1.83662e-05
  4  8.96432e-06
  5  6.90643e-06
  6  1.1365
  7  4.98826
  8  41.7095
  9  29.2586
  10  3.8216
  11  1.28615
  12  4.45495
  13  7.20527
  14  7.20898
  15  2.65868e-05
  16  0.138262
  17  0.134554
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.685e+01  2.926e+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.131e+00  1.346e-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:  9.380e-01  1.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 154.548 19.096
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/249194/likelihoodResults_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.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) = 13195.0190807
delta logL = 2.24666199761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13194.9504706
delta logL = 2.31527212789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0055       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3070       1.0000          .0000       10.000    
     3 'Normalizat'    .87078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1693       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=   13194.95     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      281 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0042        23.097        .50376E-02    .15590E-02
   2  Index         3.3073        1.4107        .89938E-01    .62681E-03
   3  Normalizat    .87071        .36734E-01    .44527E-01   -.53265E-04
   4  Prefactor     1.1694        .35995E-01    .51169E-01   -.33205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00423
  Index      = 3.30731
  Normalizat = 0.870712
  Prefactor  = 1.16941
 **********
 **   18 **HESSE 
 **********

 FCN=   13194.95     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0042        42.343        .10304E-03   -1.5308    
   2  Index         3.3073        2.3075        .32564E-02   -.34536    
   3  Normalizat    .87071        .13187        .25252E-03   -.97497    
   4  Prefactor     1.1694        .13271        .22622E-03   -.87278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27261e-09
Minuit parameter uncertainties:
  1  26.0658
  2  2.41172
  3  0.131923
  4  0.132749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249194': 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) = 13194.9504699
delta logL = 2.31527284293

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.004e+00  2.607e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.307e+00  2.412e+00  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.169e+00  1.327e-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.707e-01  1.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 154.548 19.096
Photon Index (Free Index): 3.31 +/- 2.41
Photon Flux (Free Index): 7.18e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.26e-05 +/- 9.52e-06

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/249194/cmap_HighResolution_405907201_406512001_4FGL_J1018.1+1905_weekly_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='1.26e-05', photon_flux_error='2.08e-08', dlogl='2.32e+00', energy_flux='1.14e-05', photon_flux2='7.18e-08', job_status='DONE', time_completed='2021-07-16 15:06:52.566837', photon_index_error2='2.41', photon_index2='3.31', ts='1.01', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='9.52e-06', EG='0.94', time_epoch_completed='1626473212.57', return_code='0', job_id='249194', GAL2='1.17', EG2='0.87', return_code2='102', energy_flux_error='1.24e-05', photon_flux_error2='3.72e-08', ts2='5.86', photon_index='2.06' WHERE bin_id='276' AND source_name='4FGL J1018.1+1905' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 16 15:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 249194: <4FGL_J1018.1+1905_weekly_bin276> in cluster <slac> Done

Job <4FGL_J1018.1+1905_weekly_bin276> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 16 14:50:51 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 14:52:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 16 14:52:05 2021
Terminated at Fri Jul 16 15:06:53 2021
Results reported at Fri Jul 16 15:06:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_weekly_bin276 154.548 19.0963 405907201 406512001 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 :                                   849.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            962 sec.

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

