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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin579
RA = 154.617, Dec = 5.4702
tmin = 389404801, tmax = 389664001
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='804909', job_status='RUN', time_executed='2021-09-01 17:35:55.851016', time_epoch_executed='1630542955.85' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804909/ft1_4FGL_J1018.4+0528_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804909/ft2_4FGL_J1018.4+0528_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804909/ft1_4FGL_J1018.4+0528_daily_bin579.fits outfile=/scratch/kocevski/804909/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin579.fits ra=154.617 dec=5.4702 rad=12.0 tmin=389404801.0 tmax=389664001.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 4.12
user 3.86
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804909/ft1_filtered_4FGL_J1018.4+0528_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/804909/ft2_4FGL_J1018.4+0528_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/804909/ltcube_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.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/804909/ft2_4FGL_J1018.4+0528_daily_bin579.fits
.....................!
real 13.31
user 12.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804909/ft1_filtered_4FGL_J1018.4+0528_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/804909/ft2_4FGL_J1018.4+0528_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/804909/ltcube_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.fits outfile=/scratch/kocevski/804909/expmap_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.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/804909/ltcube_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.fits
.....................!
real 192.61
user 186.06
sys 6.16

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/804909/ft1_filtered_4FGL_J1018.4+0528_daily_bin579.fits scfile=/scratch/kocevski/804909/ft2_4FGL_J1018.4+0528_daily_bin579.fits outfile=/scratch/kocevski/804909/cmap_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.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.72
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804909/ft1_filtered_4FGL_J1018.4+0528_daily_bin579.fits scfile=/scratch/kocevski/804909/ft2_4FGL_J1018.4+0528_daily_bin579.fits outfile=/scratch/kocevski/804909/cmap_HighResolution_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.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.68
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3245       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .49341E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15693E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25385E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12497E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .39922       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5255       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5362       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14880E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.345       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0540       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0478       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=   6373.206     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2043 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3254        1.5932        .67254E-02    .44464E-03
   2  norm          1.7487        .79221        .79277E-02    .50335E-03
   3  Prefactor     8.4867        9.2629        .34418E-02    .10243E-02
   4  Prefactor     .10000E-03    9.1457        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.3844        .90712E-02** at limit **
   6  norm          .10004E-03    7.6051        .10582    ** at limit **
   7  Prefactor     2.6508        13.158        .62811E-02   -.82960E-03
   8  Prefactor     .10000E-03    90.380        .90712E-02** at limit **
   9  Prefactor     .10009E-03    62.538        .10729E-01** at limit **
  10  Prefactor     .10000E-03    16.082        .90712E-02** at limit **
  11  norm          .39931        .95974        .25232E-01    .15250E-02
  12  Prefactor     .10000E-03    3.8626        .90712E-02** at limit **
  13  Prefactor     8.5273        4.0447        .34322E-02   -.16881E-03
  14  Prefactor     .10000E-03    5.5045        .90712E-02** at limit **
  15  Prefactor     5.5049        9.5693        .42689E-02    .18725E-02
  16  norm          .10000E-03    .13586        .90712E-02** at limit **
  17  Prefactor     .10000E-03    10.451        .90712E-02** at limit **
  18  Prefactor     24.353        25.175        .20296E-02   -.91959E-03
  19  Normalizat    1.0539        .20138        .62094E-01   -.16377E-04
  20  Prefactor     1.0477        .16000        .40041E-01   -.12809E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32538
  norm       = 1.74872
  Prefactor  = 8.48665
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100039
  Prefactor  = 2.65082
  Prefactor  = 0.000100001
  Prefactor  = 0.00010009
  Prefactor  = 0.000100003
  norm       = 0.399308
  Prefactor  = 0.0001
  Prefactor  = 8.52727
  Prefactor  = 0.0001
  Prefactor  = 5.50487
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.353
  Normalizat = 1.05387
  Prefactor  = 1.04766
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.206     FROM HESSE     STATUS=OK           293 CALLS     2336 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3254        1.5887        .78623E-04   -1.5403    
   2  norm          1.7487        .78694        .45044E-04   -1.5443    
   3  Prefactor     8.4867        9.1786        .13767E-03   -1.5125    
   4  Prefactor     .10000E-03    9.1492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10004E-03    55.366        .41709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6508        12.624        .25124E-03   -1.5382    
   8  Prefactor     .10000E-03    90.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    62.550        .21459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .39931        .86725        .11533E-02   -1.5582    
  12  Prefactor     .10000E-03    3.9146        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5273        4.0381        .10232E-03   -1.5124    
  14  Prefactor     .10000E-03    5.5543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5049        9.5418        .17075E-03   -1.5239    
  16  norm          .10000E-03    .14038        .57339E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.353        25.164        .81185E-04   -1.4721    
  19  Normalizat    1.0539        .23836        .27464E-03   -.91247    
  20  Prefactor     1.0477        .18935        .22959E-03   -.91157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40374e-08
Minuit parameter uncertainties:
  1  1.58872
  2  0.786942
  3  9.18014
  4  0.000146552
  5  4.83346e-05
  6  0.00295136
  7  11.5735
  8  0.000694362
  9  0.00474886
  10  0.00041558
  11  0.867282
  12  4.37254e-06
  13  4.0382
  14  2.18859e-07
  15  9.54444
  16  1.55859e-08
  17  0.000160181
  18  25.1749
  19  0.238604
  20  0.189476
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.001e-04  4.749e-03  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.048e+00  1.895e-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.054e+00  2.386e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804909/likelihoodResults_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.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) = 6373.2062155
delta logL = -7.60786224419e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6373.20613949
delta logL = -7.14562702342e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2309       1.0000          .0000       10.000    
     3 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0477       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=   6373.206     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6587.9        .90712E-02** at limit **
   2  Index         2.2620        5.8121        .50000       -.49201E-05
   3  Normalizat    1.0539        .40209E-01    .62094E-01   -.13644E-04
   4  Prefactor     1.0477        .33681E-01    .40049E-01   -.65304E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26202
  Normalizat = 1.05387
  Prefactor  = 1.04766
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.206     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7564.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2620        8.8661        .50000       -.57949    
   3  Normalizat    1.0539        .57855E-01    .27464E-03   -.91247    
   4  Prefactor     1.0477        .48518E-01    .22959E-03   -.91157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77343e-09
Minuit parameter uncertainties:
  1  0.00303644
  2  43.3775
  3  0.0578583
  4  0.0485202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804909': 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) = 6373.20613945
delta logL = -2.49392542173e-08

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.036e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.262e+00  4.338e+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.048e+00  4.852e-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:  1.054e+00  5.786e-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/804909/cmap_HighResolution_389404801_389664001_4FGL_J1018.4+0528_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-01 17:45:29.982293', job_id='804909', GAL2='1.05', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630543529.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='579' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:45:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 804909: <4FGL_J1018.4+0528_daily_bin579> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin579> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:31 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:32:46 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:32:46 2021
Terminated at Wed Sep  1 17:45:30 2021
Results reported at Wed Sep  1 17:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin579 154.617 5.4702 389404801 389664001 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 :                                   572.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             234.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            899 sec.

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

