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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1135
RA = 154.548, Dec = 19.0963
tmin = 533520001, tmax = 533779201
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='792492', job_status='RUN', time_executed='2021-09-01 16:54:23.530963', time_epoch_executed='1630540463.53' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792492

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792492/ft1_4FGL_J1018.1+1905_daily_bin1135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792492/ft2_4FGL_J1018.1+1905_daily_bin1135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792492/ft1_4FGL_J1018.1+1905_daily_bin1135.fits outfile=/scratch/kocevski/792492/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1135.fits ra=154.548 dec=19.0963 rad=12.0 tmin=533520001.0 tmax=533779201.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.16
user 3.30
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792492/ft1_filtered_4FGL_J1018.1+1905_daily_bin1135.fits evtable="EVENTS" scfile=/scratch/kocevski/792492/ft2_4FGL_J1018.1+1905_daily_bin1135.fits sctable="SC_DATA" expcube=/scratch/kocevski/792492/ltcube_533520001_533779201_4FGL_J1018.1+1905_daily_bin1135.fits outfile=/scratch/kocevski/792492/expmap_533520001_533779201_4FGL_J1018.1+1905_daily_bin1135.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/792492/ltcube_533520001_533779201_4FGL_J1018.1+1905_daily_bin1135.fits
.....................!
real 191.12
user 186.09
sys 4.50

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/792492/ft1_filtered_4FGL_J1018.1+1905_daily_bin1135.fits scfile=/scratch/kocevski/792492/ft2_4FGL_J1018.1+1905_daily_bin1135.fits outfile=/scratch/kocevski/792492/cmap_533520001_533779201_4FGL_J1018.1+1905_daily_bin1135.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.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.4114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21476E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35247       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .47012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3416       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82259       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=   5711.098     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1610 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.752       -.25048E-07** at limit **
   2  norm          1.0491        1.1895        .62459E-07    .10699E-03
   3  Prefactor     .10000E-03    22.164        .10155E-06** at limit **
   4  Prefactor     63.324        43.531        .78675E-06   -.53134E-05
   5  Prefactor     .10000E-03    5.9398        .16888E-06** at limit **
   6  Prefactor     .10000E-03    .73007        .32467E-07** at limit **
   7  norm          9.4121        8.0627        .28835E-06   -.27269E-04
   8  Prefactor     .10001E-03    482.69       -.26697E-04** at limit **
   9  Prefactor     .10000E-03    45.607        .33453E-06** at limit **
  10  Prefactor     .35413        3.7478       -.15438E-06    .11045E-03
  11  Prefactor     .47000        1.2778        .55084E-06    .46469E-03
  12  Prefactor     16.390        7.2148        .12923E-06   -.84751E-05
  13  Prefactor     .10000E-03    9.7821       -.16829E-07** at limit **
  14  Prefactor     14.778        10.399       -.42429E-07   -.62512E-04
  15  Prefactor     5.3445        13.275        .58025E-06   -.16240E-04
  16  Normalizat    1.0920        .17485       -.16702E-05    .25395E-04
  17  Prefactor     .82262        .16472       -.33930E-06   -.22853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.04908
  Prefactor  = 0.0001
  Prefactor  = 63.3239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.41206
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.354128
  Prefactor  = 0.470004
  Prefactor  = 16.3898
  Prefactor  = 0.0001
  Prefactor  = 14.7779
  Prefactor  = 5.34451
  Normalizat = 1.09203
  Prefactor  = 0.822622
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.098     FROM HESSE     STATUS=OK           229 CALLS     1839 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0491        1.1700        .84910E-04   -1.5503    
   3  Prefactor     .10000E-03    22.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     63.324        43.632        .50430E-04   -1.4115    
   5  Prefactor     .10000E-03    6.0997        .35981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .73673        .63067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.4121        8.0632        .13063E-03   -1.5094    
   8  Prefactor     .10001E-03    471.21        .40328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .35413        8.6295        .27609E-02   -1.5589    
  11  Prefactor     .47000        1.2001        .13758E-02   -1.5571    
  12  Prefactor     16.390        7.2210        .98932E-04   -1.4898    
  13  Prefactor     .10000E-03    9.9874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.778        10.330        .10419E-03   -1.4939    
  15  Prefactor     5.3445        13.223        .17389E-03   -1.5246    
  16  Normalizat    1.0920        .20088        .22058E-03   -.90008    
  17  Prefactor     .82262        .19096        .24720E-03   -.98900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59528e-10
Minuit parameter uncertainties:
  1  1.17509e-05
  2  1.17005
  3  2.46533e-05
  4  43.6537
  5  2.83308e-05
  6  1.97742e-06
  7  8.06413
  8  0.00321742
  9  0.000116768
  10  3.49633
  11  1.20013
  12  7.2214
  13  2.01909e-05
  14  10.3314
  15  13.2302
  16  0.201016
  17  0.191111
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.168e-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:  8.226e-01  1.911e-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.092e+00  2.010e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792492/likelihoodResults_533520001_533779201_4FGL_J1018.1+1905_daily_bin1135.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) = 5711.09818198
delta logL = -0.0001037802258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5710.83655748
delta logL = 0.261520723199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33186       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9171       1.0000          .0000       10.000    
     3 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84511       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=   5710.837     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33922        8.3066        .10564E-01    .16475E-02
   2  Index         3.9098        2.3722        .98955E-01    .16694E-03
   3  Normalizat    1.0511        .30169E-01    .40501E-01    .11830E-04
   4  Prefactor     .84478        .29913E-01    .44302E-01    .11240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.33922
  Index      = 3.90976
  Normalizat = 1.05111
  Prefactor  = 0.844782
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.837     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33922        34.247        .61859E-04   -1.5591    
   2  Index         3.9098        6.9396        .54470E-02   -.21981    
   3  Normalizat    1.0511        .15686        .22430E-03   -.91337    
   4  Prefactor     .84478        .15158        .24425E-03   -.98098    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.97861e-07
Minuit parameter uncertainties:
  1  6.81986
  2  7.13281
  3  0.156934
  4  0.151653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792492': 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) = 5710.83655127
delta logL = 0.261526937935

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  3.392e-01  6.820e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.910e+00  7.133e+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:  8.448e-01  1.517e-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.051e+00  1.569e-01  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/792492/cmap_HighResolution_533520001_533779201_4FGL_J1018.1+1905_daily_bin1135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-01 17:03:24.907871', job_id='792492', GAL2='0.84', fit_tolerance='1e-08', EG2='1.05', EG='1.09', time_epoch_completed='1630541004.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.62e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1135' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 792492: <4FGL_J1018.1+1905_daily_bin1135> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1135 154.548 19.0963 533520001 533779201 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 :                                   525.19 sec.
    Max Memory :                                 1162 MB
    Average Memory :                             297.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            761 sec.

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

