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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin660
RA = 154.617, Dec = 5.4702
tmin = 410400001, tmax = 410659201
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='805044', job_status='RUN', time_executed='2021-09-01 17:35:52.447613', time_epoch_executed='1630542952.45' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805044/ft1_4FGL_J1018.4+0528_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805044/ft2_4FGL_J1018.4+0528_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805044/ft1_4FGL_J1018.4+0528_daily_bin660.fits outfile=/scratch/kocevski/805044/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin660.fits ra=154.617 dec=5.4702 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.70
user 6.39
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805044/ft1_filtered_4FGL_J1018.4+0528_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/805044/ft2_4FGL_J1018.4+0528_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/805044/ltcube_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.fits outfile=/scratch/kocevski/805044/expmap_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.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/805044/ltcube_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.fits
.....................!
real 191.50
user 187.09
sys 3.87

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/805044/ft1_filtered_4FGL_J1018.4+0528_daily_bin660.fits scfile=/scratch/kocevski/805044/ft2_4FGL_J1018.4+0528_daily_bin660.fits outfile=/scratch/kocevski/805044/cmap_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.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.58
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805044/ft1_filtered_4FGL_J1018.4+0528_daily_bin660.fits scfile=/scratch/kocevski/805044/ft2_4FGL_J1018.4+0528_daily_bin660.fits outfile=/scratch/kocevski/805044/cmap_HighResolution_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.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.59
user 0.44
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0601       1.0000         .10000E-03   10000.    
     2 'norm      '    .14944E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.349       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19972E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.573       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7145       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0971       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .38993       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3391       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=   3908.981     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2034 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0598        1.6682        .73040E-07    .29576E-04
   2  norm          .10006E-03    .38938        .33671E-06** at limit **
   3  Prefactor     20.591        14.992       -.59025E-06    .10705E-03
   4  Prefactor     .10000E-03    12.210        .29022E-06** at limit **
   5  Prefactor     19.336        30.558       -.72204E-06   -.18122E-05
   6  norm          4.4322        24.358       -.43363E-05    .78777E-04
   7  Prefactor     .10001E-03    44.391        .15860E-04** at limit **
   8  Prefactor     3.0275        527.66       -.29948E-04    .28498E-04
   9  Prefactor     35.086        120.28       -.91531E-05    .14710E-04
  10  Prefactor     30.562        35.025        .53898E-06   -.59708E-05
  11  norm          5.4669        2.3715        .14111E-06   -.14043E-03
  12  Prefactor     .10000E-03    2.3698        .99766E-07** at limit **
  13  Prefactor     8.6161        5.1733        .32735E-07    .72021E-04
  14  Prefactor     .10000E-03    8.4887        .53656E-06** at limit **
  15  Prefactor     .10000E-03    7.5310        .50263E-06** at limit **
  16  norm          1.7142        .89687        .44058E-07   -.92309E-05
  17  Prefactor     4.0982        9.8065        .65826E-06   -.11881E-04
  18  Prefactor     .10000E-03    18.499       -.91380E-07** at limit **
  19  Normalizat    .39021        .24766       -.24217E-05   -.12834E-04
  20  Prefactor     1.3391        .21100       -.88188E-06   -.46370E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05975
  norm       = 0.000100064
  Prefactor  = 20.5913
  Prefactor  = 0.0001
  Prefactor  = 19.336
  norm       = 4.43221
  Prefactor  = 0.00010001
  Prefactor  = 3.02751
  Prefactor  = 35.0858
  Prefactor  = 30.5625
  norm       = 5.46691
  Prefactor  = 0.0001
  Prefactor  = 8.61614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71421
  Prefactor  = 4.09818
  Prefactor  = 0.0001
  Normalizat = 0.390209
  Prefactor  = 1.33909
 **********
 **   18 **HESSE 
 **********

 FCN=   3908.981     FROM HESSE     STATUS=OK           307 CALLS     2341 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0598        1.6662        .49440E-04   -1.5305    
   2  norm          .10006E-03    1.0319        .12484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.591        14.979        .88244E-04   -1.4800    
   4  Prefactor     .10000E-03    12.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.336        30.592        .91055E-04   -1.4828    
   6  norm          4.4322        24.081        .19155E-03   -1.5287    
   7  Prefactor     .10001E-03    48.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0275        574.15        .22360E-02   -1.5360    
   9  Prefactor     35.086        121.90        .67866E-04   -1.4523    
  10  Prefactor     30.562        34.979        .72463E-04   -1.4602    
  11  norm          5.4669        2.3697        .60470E-04   -1.5240    
  12  Prefactor     .10000E-03    2.3763        .93992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6161        5.1573        .10228E-03   -1.5121    
  14  Prefactor     .10000E-03    8.5520        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6047        .16742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7142        .90736        .38388E-04   -1.5446    
  17  Prefactor     4.0982        9.9442        .19917E-03   -1.5303    
  18  Prefactor     .10000E-03    18.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .39021        .25679        .38208E-03   -1.1781    
  20  Prefactor     1.3391        .22181        .19636E-03   -.82152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97142e-10
Minuit parameter uncertainties:
  1  1.66626
  2  0.000514138
  3  14.9815
  4  2.03637e-06
  5  30.6165
  6  20.6748
  7  0.00140739
  8  84.2156
  9  122.785
  10  35.0025
  11  2.36973
  12  2.28785e-06
  13  5.15758
  14  1.78372e-05
  15  1.54721e-05
  16  0.90737
  17  9.94816
  18  1.92677e-05
  19  0.257569
  20  0.221968
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.509e+01  1.228e+02  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.339e+00  2.220e-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:  3.902e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805044/likelihoodResults_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.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) = 3907.2460218
delta logL = 1.73537624183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3907.18627088
delta logL = 1.79512716057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88937       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4432       1.0000          .0000       10.000    
     3 'Normalizat'    .26089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4103       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=   3907.186     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88883        8.9761        .75507E-02    .32951E-02
   2  Index         4.4437        2.0853        .59338E-01    .50389E-03
   3  Normalizat    .26115        .70578E-01    .10429        .21220E-05
   4  Prefactor     1.4101        .63975E-01    .30921E-01   -.33742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.888829
  Index      = 4.44374
  Normalizat = 0.261155
  Prefactor  = 1.41012
 **********
 **   18 **HESSE 
 **********

 FCN=   3907.186     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88883        15.415        .33841E-04   -1.5519    
   2  Index         4.4437        2.9030        .24428E-02   -.11148    
   3  Normalizat    .26115        .22218        .46160E-03   -1.2523    
   4  Prefactor     1.4101        .20093        .19149E-03   -.80089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.12466e-10
Minuit parameter uncertainties:
  1  7.40486
  2  3.1003
  3  0.22293
  4  0.201043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805044': 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) = 3907.18626864
delta logL = 1.79512939807

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  8.888e-01  7.405e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  4.444e+00  3.100e+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.410e+00  2.010e-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:  2.612e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 154.617 5.470
Photon Index (Free Index): 4.44 +/- 3.10
Photon Flux (Free Index): 1.41e-07 +/- 8.46e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.39e-05

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/805044/cmap_HighResolution_410400001_410659201_4FGL_J1018.4+0528_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.99e-05', dlogl='1.80e+00', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-01 17:44:05.380861', photon_index_error2='3.10', photon_index2='4.44', ts='0.22', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.39e-05', EG='0.39', time_epoch_completed='1630543445.38', return_code='0', job_id='805044', GAL2='1.41', EG2='0.26', return_code2='102', photon_flux_error2='8.46e-08', ts2='4.21', photon_index='2.28' WHERE bin_id='660' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:44:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 805044: <4FGL_J1018.4+0528_daily_bin660> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin660> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:40 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:33: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:33:56 2021
Terminated at Wed Sep  1 17:44:06 2021
Results reported at Wed Sep  1 17:44:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin660 154.617 5.4702 410400001 410659201 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 :                                   491.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            806 sec.

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

