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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin779
RA = 154.617, Dec = 5.4702
tmin = 441244801, tmax = 441504001
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='806306', job_status='RUN', time_executed='2021-09-01 17:40:00.432520', time_epoch_executed='1630543200.43' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806306/ft1_4FGL_J1018.4+0528_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806306/ft1_4FGL_J1018.4+0528_daily_bin779.fits outfile=/scratch/kocevski/806306/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin779.fits ra=154.617 dec=5.4702 rad=12.0 tmin=441244801.0 tmax=441504001.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 2.84
user 2.62
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.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/806306/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin779.fits evtable="EVENTS" outfile="/scratch/kocevski/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.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.47
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.fits" evtable="EVENTS" scfile=/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits sctable="SC_DATA" outfile=/scratch/kocevski/806306/ltcube_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.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/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits
.....................!
real 13.56
user 13.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/806306/ltcube_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.fits outfile=/scratch/kocevski/806306/expmap_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.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/806306/ltcube_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.fits
.....................!
real 156.55
user 151.24
sys 4.85

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/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.fits scfile=/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits outfile=/scratch/kocevski/806306/cmap_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.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.77
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.fits scfile=/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits outfile=/scratch/kocevski/806306/cmap_HighResolution_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.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.51
user 0.32
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.fits', '/scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits', expMap='/scratch/kocevski/806306/expmap_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.fits', expCube='/scratch/kocevski/806306/ltcube_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806306/Model_4FGL_J1018.4+0528_daily_bin779.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/806306/ft1_filtered_4FGL_J1018.4+0528_daily_bin779.fits
Spacecraft file(s): /scratch/kocevski/806306/ft2_4FGL_J1018.4+0528_daily_bin779.fits
Exposure map: /scratch/kocevski/806306/expmap_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.fits
Exposure cube: /scratch/kocevski/806306/ltcube_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806306/Model_4FGL_J1018.4+0528_daily_bin779.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) = 7725.70006415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6085       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11275E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12834E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5588       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12339E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5142       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9668       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7847       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6047       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9679       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99873       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=   7725.519     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1810 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6080        1.6932        .42408E-02    .13776E-03
   2  norm          .10000E-03    .30569        .16354E-01** at limit **
   3  Prefactor     .10000E-03    6.4384        .90712E-02** at limit **
   4  Prefactor     .10000E-03    13.509        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.7850        .90712E-02** at limit **
   6  norm          11.130        13.712        .30030E-02    .26943E-02
   7  Prefactor     .10000E-03    9.1887        .90712E-01** at limit **
   8  Prefactor     .10000E-03    24.272        .90712E-02** at limit **
   9  Prefactor     1.2566        844.46        .85219E-02    .89528E-04
  10  Prefactor     .10000E-03    14.717        .90712E-02** at limit **
  11  norm          2.1400        1.3275        .70439E-02    .61467E-04
  12  Prefactor     3.5146        4.7778        .53915E-02    .51468E-03
  13  Prefactor     4.8333        2.6165        .45748E-02    .16501E-04
  14  Prefactor     6.2117        8.6235        .40270E-02    .23124E-03
  15  Prefactor     2.9680        6.1366        .58935E-02    .50892E-03
  16  norm          1.7847        .67728        .78299E-02   -.28157E-03
  17  Prefactor     8.6096        8.1399        .34163E-02    .22297E-03
  18  Prefactor     8.9402        21.457        .33460E-02   -.25824E-03
  19  Normalizat    1.0732        .17824        .61236E-01    .53170E-04
  20  Prefactor     .99885        .14116        .46251E-01    .53786E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.60804
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1304
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 1.25661
  Prefactor  = 0.0001
  norm       = 2.14001
  Prefactor  = 3.5146
  Prefactor  = 4.83333
  Prefactor  = 6.21173
  Prefactor  = 2.96803
  norm       = 1.78471
  Prefactor  = 8.60957
  Prefactor  = 8.94022
  Normalizat = 1.07315
  Prefactor  = 0.998849
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.519     FROM HESSE     STATUS=OK           299 CALLS     2109 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6080        1.6961        .59590E-04   -1.5234    
   2  norm          .10000E-03    .71587        .92839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.130        13.563        .12012E-03   -1.5041    
   7  Prefactor     .10000E-03    26.572        .37723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2566        482.48        .34088E-03   -1.5484    
  10  Prefactor     .10000E-03    14.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1400        1.3226        .75566E-04   -1.5415    
  12  Prefactor     3.5146        4.7596        .21321E-03   -1.5333    
  13  Prefactor     4.8333        2.6133        .10029E-03   -1.5268    
  14  Prefactor     6.2117        8.6468        .16108E-03   -1.5209    
  15  Prefactor     2.9680        6.0960        .23574E-03   -1.5363    
  16  norm          1.7847        .68163        .39559E-04   -1.5441    
  17  Prefactor     8.6096        8.2177        .13665E-03   -1.5121    
  18  Prefactor     8.9402        21.468        .13384E-03   -1.5110    
  19  Normalizat    1.0732        .20839        .27084E-03   -.90619    
  20  Prefactor     .99885        .16608        .23520E-03   -.92768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19317e-08
Minuit parameter uncertainties:
  1  1.69616
  2  5.28994e-06
  3  2.93621e-06
  4  1.82211e-05
  5  1.13075e-05
  6  13.567
  7  0.000339302
  8  0.000551314
  9  49.6521
  10  3.67649e-05
  11  1.32262
  12  4.76009
  13  2.61332
  14  8.64852
  15  6.09732
  16  0.681633
  17  8.21877
  18  21.4867
  19  0.20855
  20  0.166167
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.257e+00  4.965e+01  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:  9.988e-01  1.662e-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:  1.073e+00  2.085e-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: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806306/likelihoodResults_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.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) = 7724.90225403
delta logL = 0.616606247996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7724.89682464
delta logL = 0.622035630572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4611       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8953       1.0000          .0000       10.000    
     3 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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=   7724.897     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      226 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4611        28.331        .88986E-02    .16003E-03
   2  Index         3.8954        2.5545        .90533E-01    .26478E-03
   3  Normalizat    1.0045        .46129E-01    .46224E-01    .16639E-04
   4  Prefactor     1.0323        .38616E-01    .41082E-01    .80291E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46107
  Index      = 3.89537
  Normalizat = 1.00454
  Prefactor  = 1.03228
 **********
 **   18 **HESSE 
 **********

 FCN=   7724.897     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4611        65.659        .97953E-04   -1.5466    
   2  Index         3.8954        6.8393        .50676E-02   -.22276    
   3  Normalizat    1.0045        .17009        .27861E-03   -.92878    
   4  Prefactor     1.0323        .14106        .23176E-03   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.54815e-08
Minuit parameter uncertainties:
  1  19.6113
  2  5.13245
  3  0.170179
  4  0.141114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806306': 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) = 7724.89682464
delta logL = 0.622035633647

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.461e+00  1.961e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.895e+00  5.132e+00  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.032e+00  1.411e-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:  1.005e+00  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 154.617 5.470
Photon Index (Free Index): 3.90 +/- 5.13
Photon Flux (Free Index): 5.41e-08 +/- 5.16e-08
Energy Flux (Free Index): 8.25e-06 +/- 1.05e-05

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/806306/cmap_HighResolution_441244801_441504001_4FGL_J1018.4+0528_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', comment='SUCCESS', energy_flux2='8.25e-06', dlogl='6.22e-01', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-09-01 17:48:31.575710', photon_index_error2='5.13', photon_index2='3.90', ts='0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.09e-08', energy_flux_error2='1.05e-05', EG='1.07', time_epoch_completed='1630543711.58', return_code='0', job_id='806306', GAL2='1.03', EG2='1.00', return_code2='102', photon_flux_error2='5.16e-08', ts2='1.33', photon_index='2.28' WHERE bin_id='779' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 806306: <4FGL_J1018.4+0528_daily_bin779> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin779> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:37 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:35:56 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:35:56 2021
Terminated at Wed Sep  1 17:48:31 2021
Results reported at Wed Sep  1 17:48:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin779 154.617 5.4702 441244801 441504001 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 :                                   506.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            774 sec.

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

