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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1400
RA = 154.548, Dec = 19.0963
tmin = 602208001, tmax = 602467201
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='792907', job_status='RUN', time_executed='2021-09-01 16:58:00.282429', time_epoch_executed='1630540680.28' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792907/ft1_4FGL_J1018.1+1905_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792907/ft2_4FGL_J1018.1+1905_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792907/ft1_4FGL_J1018.1+1905_daily_bin1400.fits outfile=/scratch/kocevski/792907/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1400.fits ra=154.548 dec=19.0963 rad=12.0 tmin=602208001.0 tmax=602467201.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 5.25
user 4.98
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792907/ft2_4FGL_J1018.1+1905_daily_bin1400.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/792907/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1400.fits evtable="EVENTS" outfile="/scratch/kocevski/792907/ft1_filtered_4FGL_J1018.1+1905_daily_bin1400.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792907/ft1_filtered_4FGL_J1018.1+1905_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/792907/ft2_4FGL_J1018.1+1905_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/792907/ltcube_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.fits outfile=/scratch/kocevski/792907/expmap_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.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/792907/ltcube_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.fits
.....................!
real 190.99
user 185.74
sys 4.76

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/792907/ft1_filtered_4FGL_J1018.1+1905_daily_bin1400.fits scfile=/scratch/kocevski/792907/ft2_4FGL_J1018.1+1905_daily_bin1400.fits outfile=/scratch/kocevski/792907/cmap_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792907/ft1_filtered_4FGL_J1018.1+1905_daily_bin1400.fits scfile=/scratch/kocevski/792907/ft2_4FGL_J1018.1+1905_daily_bin1400.fits outfile=/scratch/kocevski/792907/cmap_HighResolution_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.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.60
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.190       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24684E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28856E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76317E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3756       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.526       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .44883       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.4247       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=   5177.472     FROM MIGRAD    STATUS=CONVERGED    315 CALLS     1564 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.206        40.998        .16358E-04   -.36583E-05
   2  norm          2.3172        1.8869        .39755E-06   -.21233E-03
   3  Prefactor     .10000E-03    21.261        .49686E-05** at limit **
   4  Prefactor     .10000E-03    13.179       -.24820E-05** at limit **
   5  Prefactor     3.1327        5.3362        .12982E-05   -.42611E-03
   6  Prefactor     .10000E-03    .63273       -.12677E-08** at limit **
   7  norm          10.194        8.3604        .80183E-06   -.80933E-04
   8  Prefactor     .10000E-03    26.813        .44872E-05** at limit **
   9  Prefactor     .10000E-03    27.872        .26706E-05** at limit **
  10  Prefactor     29.752        10.095       -.30713E-06   -.61034E-04
  11  Prefactor     .10000E-03    1.0482        .16292E-06** at limit **
  12  Prefactor     8.3722        5.7110       -.50075E-06   -.18330E-02
  13  Prefactor     .10000E-03    3.3940       -.68076E-06** at limit **
  14  Prefactor     5.3707        8.0800       -.69030E-05   -.19594E-03
  15  Prefactor     20.557        17.115        .27240E-04    .49236E-04
  16  Normalizat    .44862        .18778       -.11576E-04   -.68853E-04
  17  Prefactor     1.4248        .18763        .12845E-05   -.18578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.206
  norm       = 2.31718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13265
  Prefactor  = 0.0001
  norm       = 10.1938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7517
  Prefactor  = 0.0001
  Prefactor  = 8.3722
  Prefactor  = 0.000100001
  Prefactor  = 5.37073
  Prefactor  = 20.5566
  Normalizat = 0.448622
  Prefactor  = 1.42475
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.472     FROM HESSE     STATUS=OK           223 CALLS     1787 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.206        40.943        .46002E-04   -1.3960    
   2  norm          2.3172        1.8776        .85702E-04   -1.5404    
   3  Prefactor     .10000E-03    21.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1327        5.3067        .20558E-03   -1.5354    
   6  Prefactor     .10000E-03    .63774        .55877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.194        8.3529        .12555E-03   -1.5069    
   8  Prefactor     .10000E-03    26.843        .21406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.934        .20930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.752        10.050        .73508E-04   -1.4617    
  11  Prefactor     .10000E-03    1.7877        .14184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3722        5.7223        .68655E-03   -1.5129    
  13  Prefactor     .10000E-03    3.4083        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3707        8.0738        .17333E-03   -1.5244    
  15  Prefactor     20.557        17.092        .88406E-04   -1.4801    
  16  Normalizat    .44862        .20924        .33002E-03   -1.1486    
  17  Prefactor     1.4248        .21215        .20552E-03   -.79669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9411e-09
Minuit parameter uncertainties:
  1  40.958
  2  1.87768
  3  7.96745e-06
  4  4.76025e-05
  5  5.30753
  6  2.03576e-06
  7  8.35388
  8  5.41831e-05
  9  0.00012749
  10  10.0503
  11  2.32499e-05
  12  5.72263
  13  0.000124614
  14  8.07547
  15  17.096
  16  0.209602
  17  0.212282
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.275e-04  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.425e+00  2.123e-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:  4.486e-01  2.096e-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: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792907/likelihoodResults_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.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) = 5177.472615
delta logL = -0.000170457593413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5177.47244465
delta logL = -1.12402631203e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9867       1.0000          .0000       10.000    
     3 'Normalizat'    .44864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4248       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=   5177.472     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    766.63        .90712E-02** at limit **
   2  Index         1.9976        7.0316        .50000       -.34156E-05
   3  Normalizat    .44862        .24030E-01    .74534E-01    .39619E-04
   4  Prefactor     1.4248        .25572E-01    .46497E-01    .20909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99763
  Normalizat = 0.448622
  Prefactor  = 1.42476
 **********
 **   18 **HESSE 
 **********

 FCN=   5177.472     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1463.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9976        5.8230        .50000       -.64409    
   3  Normalizat    .44862        .34736E-01    .33003E-03   -1.1486    
   4  Prefactor     1.4248        .37054E-01    .20552E-03   -.79669    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.90178e-10
Minuit parameter uncertainties:
  1  0.00011894
  2  30.335
  3  0.0347381
  4  0.0370547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792907': 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) = 5177.4724446
delta logL = -5.93108779867e-08

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.189e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.998e+00  3.034e+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.425e+00  3.705e-02  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:  4.486e-01  3.474e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/792907/cmap_HighResolution_602208001_602467201_4FGL_J1018.1+1905_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-01 17:06:27.848808', job_id='792907', GAL2='1.42', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1630541187.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='-5.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1400' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:06:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 792907: <4FGL_J1018.1+1905_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1400 154.548 19.0963 602208001 602467201 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 :                                   502.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            905 sec.

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

