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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin933
RA = 154.617, Dec = 5.4702
tmin = 481161601, tmax = 481420801
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='806536', job_status='RUN', time_executed='2021-09-01 17:41:20.091223', time_epoch_executed='1630543280.09' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806536/ft1_4FGL_J1018.4+0528_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806536/ft2_4FGL_J1018.4+0528_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806536/ft1_4FGL_J1018.4+0528_daily_bin933.fits outfile=/scratch/kocevski/806536/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin933.fits ra=154.617 dec=5.4702 rad=12.0 tmin=481161601.0 tmax=481420801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.68
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806536/ft1_filtered_4FGL_J1018.4+0528_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/806536/ft2_4FGL_J1018.4+0528_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/806536/ltcube_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.fits outfile=/scratch/kocevski/806536/expmap_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.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/806536/ltcube_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.fits
.....................!
real 192.13
user 187.11
sys 4.30

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/806536/ft1_filtered_4FGL_J1018.4+0528_daily_bin933.fits scfile=/scratch/kocevski/806536/ft2_4FGL_J1018.4+0528_daily_bin933.fits outfile=/scratch/kocevski/806536/cmap_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.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.55
user 0.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806536/ft1_filtered_4FGL_J1018.4+0528_daily_bin933.fits scfile=/scratch/kocevski/806536/ft2_4FGL_J1018.4+0528_daily_bin933.fits outfile=/scratch/kocevski/806536/cmap_HighResolution_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0098       1.0000         .10000E-03   10000.    
     2 'norm      '    .36471       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8564       1.0000         .10000E-03   10000.    
     6 'norm      '    .99261E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2462       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8690       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7895       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.559       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0182       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6238.215     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1730 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0093        1.1080       -.88833E-06    .79461E-03
   2  norm          .36457        .41857       -.11002E-06    .24420E-03
   3  Prefactor     8.8102        11.156        .92761E-05   -.17821E-04
   4  Prefactor     .10000E-03    95.220        .26055E-04** at limit **
   5  Prefactor     9.8650        1.1551       -.43766E-06    .22818E-03
   6  norm          .10046E-03    287.22       -.45904E-05** at limit **
   7  Prefactor     6.2528        10.419       -.25108E-04    .28609E-03
   8  Prefactor     .10000E-03    16.760        .33951E-05** at limit **
   9  Prefactor     .10000E-03    33.104       -.24697E-05** at limit **
  10  Prefactor     .10000E-03    9.0008        .98513E-06** at limit **
  11  norm          2.8693        1.5256        .19120E-06   -.87281E-04
  12  Prefactor     .10000E-03    3.7107        .86956E-06** at limit **
  13  Prefactor     .10000E-03    1.2133       -.18378E-05** at limit **
  14  Prefactor     2.7880        1.8742        .51893E-05   -.20989E-03
  15  Prefactor     .10000E-03    3.7901        .75582E-07** at limit **
  16  norm          2.6075        .69521        .16432E-06   -.15249E-02
  17  Prefactor     .10000E-03    3.2098       -.12258E-06** at limit **
  18  Prefactor     22.557        1.0664        .18837E-06   -.20944E-04
  19  Normalizat    1.0182        .22477       -.25403E-06   -.10024E-03
  20  Prefactor     1.0152        .18842        .31508E-05   -.20467E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00933
  norm       = 0.36457
  Prefactor  = 8.81023
  Prefactor  = 0.000100005
  Prefactor  = 9.86503
  norm       = 0.000100462
  Prefactor  = 6.25284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78801
  Prefactor  = 0.0001
  norm       = 2.60753
  Prefactor  = 0.0001
  Prefactor  = 22.5574
  Normalizat = 1.01815
  Prefactor  = 1.01516
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.215     FROM HESSE     STATUS=OK           335 CALLS     2065 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0093        1.2062        .19559E-01   -1.5507    
   2  norm          .36457        .45265        .10705E-01   -1.5587    
   3  Prefactor     8.8102        12.578        .33860E-02   -1.5114    
   4  Prefactor     .10000E-03    94.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8650        24.360        .31909E-02   -1.5080    
   6  norm          .10046E-03    14.833        .95077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2528        10.789        .40155E-02   -1.5208    
   8  Prefactor     .10000E-03    16.783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8693        1.5321        .59995E-02   -1.5369    
  12  Prefactor     .10000E-03    3.6571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7880        15.495        .60904E-02   -1.5374    
  15  Prefactor     .10000E-03    3.7271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6075        .69561        .63155E-02   -1.5385    
  17  Prefactor     .10000E-03    3.2046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.557        22.971        .21083E-02   -1.4758    
  19  Normalizat    1.0182        .20128        .43623E-01   -.92425    
  20  Prefactor     1.0152        .16141        .42673E-01   -.92226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75258e-08
Minuit parameter uncertainties:
  1  1.20618
  2  0.452659
  3  12.5821
  4  0.00132962
  5  24.3844
  6  0.00523423
  7  10.7922
  8  0.00013465
  9  0.000132521
  10  9.58006e-06
  11  1.53213
  12  1.98949e-05
  13  2.33248e-05
  14  13.1502
  15  3.17811e-06
  16  0.695615
  17  7.70482e-07
  18  22.9802
  19  0.201433
  20  0.161489
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.015e+00  1.615e-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.018e+00  2.014e-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: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806536/likelihoodResults_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.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) = 6238.21519002
delta logL = -0.000143368199133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6238.21504685
delta logL = -2.02842784347e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4611       1.0000          .0000       10.000    
     3 'Normalizat'    1.0181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0152       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=   6238.215     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.382        .90712E-02** at limit **
   2  Index         2.4409        6.2091        .50000        .55964E-05
   3  Normalizat    1.0182        .34652E-02    .43635E-01    .29446E-04
   4  Prefactor     1.0152        .29310E-02    .42659E-01    .24516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44094
  Normalizat = 1.01815
  Prefactor  = 1.01516
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.215     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4409        8.0096        .50000       -.53729    
   3  Normalizat    1.0182        .89470E-02    .26964E-03   -.92425    
   4  Prefactor     1.0152        .75684E-02    .22724E-03   -.92226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57088e-08
Minuit parameter uncertainties:
  1  0.000345701
  2  149.416
  3  0.008947
  4  0.00756845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806536': 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) = 6238.2150468
delta logL = -1.47037098941e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.457e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.441e+00  1.494e+02  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.015e+00  7.568e-03  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.018e+00  8.947e-03  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/806536/cmap_HighResolution_481161601_481420801_4FGL_J1018.4+0528_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-09-01 17:50:46.440952', job_id='806536', GAL2='1.02', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630543846.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='933' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 806536: <4FGL_J1018.4+0528_daily_bin933> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin933 154.617 5.4702 481161601 481420801 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 :                                   566.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            892 sec.

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

