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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin1265
RA = 154.617, Dec = 5.4702
tmin = 567216001, tmax = 567475201
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='808060', job_status='RUN', time_executed='2021-09-01 17:42:03.302651', time_epoch_executed='1630543323.3' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808060/ft1_4FGL_J1018.4+0528_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808060/ft2_4FGL_J1018.4+0528_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808060/ft1_4FGL_J1018.4+0528_daily_bin1265.fits outfile=/scratch/kocevski/808060/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin1265.fits ra=154.617 dec=5.4702 rad=12.0 tmin=567216001.0 tmax=567475201.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.89
user 2.67
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808060/ft1_filtered_4FGL_J1018.4+0528_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/808060/ft2_4FGL_J1018.4+0528_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/808060/ltcube_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.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/808060/ft2_4FGL_J1018.4+0528_daily_bin1265.fits
.....................!
real 18.38
user 17.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808060/ft1_filtered_4FGL_J1018.4+0528_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/808060/ft2_4FGL_J1018.4+0528_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/808060/ltcube_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.fits outfile=/scratch/kocevski/808060/expmap_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.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/808060/ltcube_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.fits
.....................!
real 192.31
user 186.80
sys 4.58

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/808060/ft1_filtered_4FGL_J1018.4+0528_daily_bin1265.fits scfile=/scratch/kocevski/808060/ft2_4FGL_J1018.4+0528_daily_bin1265.fits outfile=/scratch/kocevski/808060/cmap_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808060/ft1_filtered_4FGL_J1018.4+0528_daily_bin1265.fits scfile=/scratch/kocevski/808060/ft2_4FGL_J1018.4+0528_daily_bin1265.fits outfile=/scratch/kocevski/808060/cmap_HighResolution_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11416E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.362       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8313       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.242       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88989       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=   6273.166     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     2004 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .52545       -.14458E-07** at limit **
   2  norm          1.2424        .80603       -.11277E-06   -.81023E-03
   3  Prefactor     6.7923        8.5649        .79223E-06   -.77736E-04
   4  Prefactor     .10000E-03    11.905       -.35865E-05** at limit **
   5  Prefactor     .10000E-03    9.2126        .11368E-04** at limit **
   6  norm          .10000E-03    8.4071       -.57804E-05** at limit **
   7  Prefactor     .10001E-03    8.4526       -.43921E-05** at limit **
   8  Prefactor     39.472        48.210       -.22043E-04    .15228E-03
   9  Prefactor     5.0381        201.59        .18533E-03    .10394E-03
  10  Prefactor     28.340        25.126       -.32266E-04    .41215E-03
  11  norm          2.8026        1.4057        .22774E-07   -.16655E-03
  12  Prefactor     2.7648        4.3699       -.72160E-06   -.36212E-03
  13  Prefactor     .10000E-03    1.3178       -.18378E-07** at limit **
  14  Prefactor     4.1734        4.9190       -.11870E-06   -.88837E-04
  15  Prefactor     .10000E-03    4.0481        .42021E-07** at limit **
  16  norm          .10000E-03    .21205        .58804E-08** at limit **
  17  Prefactor     9.8316        7.0606       -.26553E-06   -.19487E-04
  18  Prefactor     20.240        18.647       -.24354E-05    .99564E-04
  19  Normalizat    1.2361        .19034        .98571E-06   -.14424E-03
  20  Prefactor     .89005        .15574        .64751E-06   -.84298E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.24238
  Prefactor  = 6.79227
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 39.4718
  Prefactor  = 5.03808
  Prefactor  = 28.3402
  norm       = 2.80262
  Prefactor  = 2.76479
  Prefactor  = 0.0001
  Prefactor  = 4.17339
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.83157
  Prefactor  = 20.24
  Normalizat = 1.23609
  Prefactor  = 0.89005
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.166     FROM HESSE     STATUS=OK           291 CALLS     2295 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .53433        .56022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2424        .79400        .54093E-04   -1.5485    
   3  Prefactor     6.7923        8.5553        .15397E-03   -1.5187    
   4  Prefactor     .10000E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.4156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    8.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.472        48.234        .63787E-04   -1.4451    
   9  Prefactor     5.0381        202.28        .17990E-03   -1.5259    
  10  Prefactor     28.340        25.103        .75228E-04   -1.4643    
  11  norm          2.8026        1.4031        .63724E-04   -1.5373    
  12  Prefactor     2.7648        4.3550        .20016E-03   -1.5375    
  13  Prefactor     .10000E-03    1.3385        .88716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1734        4.9165        .18553E-03   -1.5299    
  15  Prefactor     .10000E-03    4.1006        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .31607        .67957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8316        6.7904        .12780E-03   -1.5081    
  18  Prefactor     20.240        18.656        .89025E-04   -1.4808    
  19  Normalizat    1.2361        .22538        .25014E-03   -.85495    
  20  Prefactor     .89005        .18387        .24271E-03   -.96490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02381e-09
Minuit parameter uncertainties:
  1  1.18992e-06
  2  0.794003
  3  8.55684
  4  9.38204e-05
  5  0.000278613
  6  0.000121809
  7  0.000531181
  8  48.2812
  9  64.079
  10  25.112
  11  1.40312
  12  4.35554
  13  2.80872e-06
  14  4.91699
  15  1.00079e-07
  16  1.46043e-07
  17  6.79094
  18  18.6614
  19  0.225553
  20  0.183996
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.038e+00  6.408e+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:  8.901e-01  1.840e-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.236e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808060/likelihoodResults_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.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) = 6273.15660908
delta logL = 0.00889674349401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6273.07714441
delta logL = 0.0883614145223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19741E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1920       1.0000          .0000       10.000    
     3 'Normalizat'    1.2095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90563       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=   6273.077     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      310 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19417E-01    .48163        .56446E-02    .90998E-02
   2  Index         5.1999        2.4319        .11862        .19627E-03
   3  Normalizat    1.2099        .23169E-01    .57065E-01   -.53317E-04
   4  Prefactor     .90538        .19540E-01    .45077E-01   -.24757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0194168
  Index      = 5.19988
  Normalizat = 1.2099
  Prefactor  = 0.905376
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.077     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      343 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19417E-01    5.0693        .22486E-03   -1.5680    
   2  Index         5.1999        7.0157        .82362E-02    .39987E-01
   3  Normalizat    1.2099        .12140        .25235E-03   -.86298    
   4  Prefactor     .90538        .10103        .24089E-03   -.95953    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11392e-10
Minuit parameter uncertainties:
  1  0.625905
  2  11.5333
  3  0.121433
  4  0.101056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808060': 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) = 6273.07713778
delta logL = 0.0883680508787

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.942e-02  6.259e-01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  5.200e+00  1.153e+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:  9.054e-01  1.011e-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.210e+00  1.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/808060/cmap_HighResolution_567216001_567475201_4FGL_J1018.4+0528_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-01 17:51:45.403463', job_id='808060', GAL2='0.91', fit_tolerance='1e-08', EG2='1.21', EG='1.24', time_epoch_completed='1630543905.4', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.84e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1265' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 808060: <4FGL_J1018.4+0528_daily_bin1265> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin1265> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:40:55 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:41:47 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:41:47 2021
Terminated at Wed Sep  1 17:51:46 2021
Results reported at Wed Sep  1 17:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin1265 154.617 5.4702 567216001 567475201 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 :                                   579.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            651 sec.

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

