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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin526
RA = 154.617, Dec = 5.4702
tmin = 375667201, tmax = 375926401
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='804823', job_status='RUN', time_executed='2021-09-01 17:34:37.879369', time_epoch_executed='1630542877.88' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804823/ft1_4FGL_J1018.4+0528_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804823/ft1_4FGL_J1018.4+0528_daily_bin526.fits outfile=/scratch/kocevski/804823/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin526.fits ra=154.617 dec=5.4702 rad=12.0 tmin=375667201.0 tmax=375926401.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 3.98
user 3.75
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.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/804823/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin526.fits evtable="EVENTS" outfile="/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.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.80
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits" evtable="EVENTS" scfile=/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits sctable="SC_DATA" outfile=/scratch/kocevski/804823/ltcube_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.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/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits
.....................!
real 13.73
user 13.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/804823/ltcube_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.fits outfile=/scratch/kocevski/804823/expmap_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.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/804823/ltcube_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.fits
.....................!
real 157.95
user 153.33
sys 3.60

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits scfile=/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits outfile=/scratch/kocevski/804823/cmap_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.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.617 yref=5.4702 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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits scfile=/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits outfile=/scratch/kocevski/804823/cmap_HighResolution_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.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.617 yref=5.4702 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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804823/Model_4FGL_J1018.4+0528_daily_bin526.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/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits.....................!
real 50.96
user 49.68
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits', '/scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits', expMap='/scratch/kocevski/804823/expmap_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.fits', expCube='/scratch/kocevski/804823/ltcube_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804823/Model_4FGL_J1018.4+0528_daily_bin526.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/804823/ft1_filtered_4FGL_J1018.4+0528_daily_bin526.fits
Spacecraft file(s): /scratch/kocevski/804823/ft2_4FGL_J1018.4+0528_daily_bin526.fits
Exposure map: /scratch/kocevski/804823/expmap_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.fits
Exposure cube: /scratch/kocevski/804823/ltcube_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804823/Model_4FGL_J1018.4+0528_daily_bin526.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) = 6626.37675513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.824       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10990E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .65231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65646       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0597       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.066       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .54285       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6626.314     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2094 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .35929        .16428E-06** at limit **
   2  norm          2.6282        .76913        .40927E-07    .56929E-06
   3  Prefactor     23.076        14.793       -.52118E-06    .12509E-04
   4  Prefactor     .10000E-03    11.648       -.34995E-07** at limit **
   5  Prefactor     .10000E-03    24.433        .19339E-05** at limit **
   6  norm          11.113        15.604       -.14147E-05   -.49246E-05
   7  Prefactor     .10000E-03    6.2175       -.11764E-05** at limit **
   8  Prefactor     19.724        48.793        .14830E-04   -.26069E-04
   9  Prefactor     .10000E-03    28.088       -.38443E-05** at limit **
  10  Prefactor     .10000E-03    5.5631       -.46553E-06** at limit **
  11  norm          .65255        .96574       -.15623E-06   -.72656E-03
  12  Prefactor     .10000E-03    2.4982        .79949E-07** at limit **
  13  Prefactor     2.9471        2.6844       -.65449E-07   -.34321E-04
  14  Prefactor     2.3586        6.2730        .40179E-05    .11172E-05
  15  Prefactor     .10000E-03    2.0559        .38790E-07** at limit **
  16  norm          .65610        .64793       -.36333E-06    .45675E-04
  17  Prefactor     4.0628        9.7344        .36192E-05   -.24009E-05
  18  Prefactor     35.054        24.956        .60236E-06   -.10382E-04
  19  Normalizat    .54274        .18550       -.10163E-05    .43455E-04
  20  Prefactor     1.3033        .15620       -.45517E-06   -.25052E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.62815
  Prefactor  = 23.0763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1133
  Prefactor  = 0.0001
  Prefactor  = 19.7242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.652554
  Prefactor  = 0.0001
  Prefactor  = 2.94713
  Prefactor  = 2.35862
  Prefactor  = 0.0001
  norm       = 0.656097
  Prefactor  = 4.06285
  Prefactor  = 35.0542
  Normalizat = 0.542741
  Prefactor  = 1.30325
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.314     FROM HESSE     STATUS=OK           301 CALLS     2395 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51135        .94469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6282        .76704        .36568E-04   -1.5384    
   3  Prefactor     23.076        14.786        .83389E-04   -1.4747    
   4  Prefactor     .10000E-03    11.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.113        15.579        .12021E-03   -1.5041    
   7  Prefactor     .10000E-03    6.3031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.724        48.749        .89958E-04   -1.4819    
   9  Prefactor     .10000E-03    28.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65255        .82663        .93323E-03   -1.5546    
  12  Prefactor     .10000E-03    2.5213        .12559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9471        2.6729        .12151E-03   -1.5365    
  14  Prefactor     2.3586        6.3181        .13341E-02   -1.5401    
  15  Prefactor     .10000E-03    2.0630        .11395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65610        .64074        .47137E-03   -1.5546    
  17  Prefactor     4.0628        9.8778        .10006E-02   -1.5305    
  18  Prefactor     35.054        24.937        .67674E-04   -1.4523    
  19  Normalizat    .54274        .20355        .33314E-03   -1.1047    
  20  Prefactor     1.3033        .17402        .19780E-03   -.83210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38174e-10
Minuit parameter uncertainties:
  1  2.41519e-07
  2  0.76704
  3  14.7884
  4  6.91661e-06
  5  1.43401e-05
  6  15.5846
  7  9.27909e-05
  8  48.8476
  9  0.000208017
  10  3.39416e-05
  11  0.826647
  12  6.16594e-06
  13  2.67302
  14  6.31986
  15  7.60944e-07
  16  0.640745
  17  9.88176
  18  24.9444
  19  0.203829
  20  0.174099
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.080e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.303e+00  1.741e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  5.427e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804823/likelihoodResults_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.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) = 6626.31463519
delta logL = -0.000168088157807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6626.31446704
delta logL = 5.57729435968e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3607       1.0000          .0000       10.000    
     3 'Normalizat'    .54274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6626.314     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1069.9        .90712E-02** at limit **
   2  Index         2.3773        5.3358        .50000       -.53294E-05
   3  Normalizat    .54274        .26844E-01    .75234E-01    .19883E-04
   4  Prefactor     1.3033        .23918E-01    .32553E-01    .12617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.37734
  Normalizat = 0.54274
  Prefactor  = 1.30325
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.314     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6691.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3773        7.7476        .50000       -.55217    
   3  Normalizat    .54274        .58300E-01    .33312E-03   -1.1047    
   4  Prefactor     1.3033        .52077E-01    .19781E-03   -.83210    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2115e-08
Minuit parameter uncertainties:
  1  0.00296026
  2  48.5386
  3  0.0583061
  4  0.0520793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804823': 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) = 6626.314467
delta logL = 9.59735189099e-08

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.960e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.377e+00  4.854e+01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.303e+00  5.208e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  5.427e-01  5.831e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

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/804823/cmap_HighResolution_375667201_375926401_4FGL_J1018.4+0528_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-01 17:43:07.381793', job_id='804823', GAL2='1.30', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1630543387.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='9.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='526' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:43:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 804823: <4FGL_J1018.4+0528_daily_bin526> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin526> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:25 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:31:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:31:38 2021
Terminated at Wed Sep  1 17:43:08 2021
Results reported at Wed Sep  1 17:43:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin526 154.617 5.4702 375667201 375926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   492.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            763 sec.

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

