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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin724
RA = 154.617, Dec = 5.4702
tmin = 426988801, tmax = 427248001
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='805145', job_status='RUN', time_executed='2021-09-01 17:37:04.516215', time_epoch_executed='1630543024.52' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805145

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805145/ft1_4FGL_J1018.4+0528_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805145/ft2_4FGL_J1018.4+0528_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805145/ft1_4FGL_J1018.4+0528_daily_bin724.fits outfile=/scratch/kocevski/805145/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin724.fits ra=154.617 dec=5.4702 rad=12.0 tmin=426988801.0 tmax=427248001.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 5.93
user 5.63
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805145/ft1_filtered_4FGL_J1018.4+0528_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/805145/ft2_4FGL_J1018.4+0528_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/805145/ltcube_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.fits outfile=/scratch/kocevski/805145/expmap_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.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/805145/ltcube_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.fits
.....................!
real 192.52
user 186.70
sys 5.26

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/805145/ft1_filtered_4FGL_J1018.4+0528_daily_bin724.fits scfile=/scratch/kocevski/805145/ft2_4FGL_J1018.4+0528_daily_bin724.fits outfile=/scratch/kocevski/805145/cmap_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805145/ft1_filtered_4FGL_J1018.4+0528_daily_bin724.fits scfile=/scratch/kocevski/805145/ft2_4FGL_J1018.4+0528_daily_bin724.fits outfile=/scratch/kocevski/805145/cmap_HighResolution_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.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.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98914       1.0000         .10000E-03   10000.    
     2 'norm      '    .14144       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.613       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11623E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40509E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2746       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.650       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2178       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98102       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=   5825.043     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     1476 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98840        1.3901        .45605E-06    .27921E-03
   2  norm          .14103        .48917       -.66909E-07   -.13142E-03
   3  Prefactor     12.162        1.9866       -.26383E-05   -.43551E-02
   4  Prefactor     31.602        1.9696       -.16762E-05    .71973E-03
   5  Prefactor     .10000E-03    24.328        .34295E-05** at limit **
   6  norm          .10000E-03    5.0938       -.29352E-07** at limit **
   7  Prefactor     .10000E-03    3.1005       -.54901E-06** at limit **
   8  Prefactor     15.346        1.0353       -.41724E-06   -.31471E-04
   9  Prefactor     .10001E-03    55.553       -.34568E-04** at limit **
  10  Prefactor     .10001E-03    79.319        .93553E-04** at limit **
  11  norm          .19170        1.4470        .43414E-06    .22423E-05
  12  Prefactor     7.1272        6.5965        .67068E-05    .12540E-03
  13  Prefactor     .10000E-03    .96294       -.50069E-06** at limit **
  14  Prefactor     .10004E-03    137.61       -.56814E-04** at limit **
  15  Prefactor     .10000E-03    5.6311       -.37273E-06** at limit **
  16  norm          1.2747        .64548        .22771E-06    .16731E-02
  17  Prefactor     .10000E-03    10.259        .96258E-06** at limit **
  18  Prefactor     27.645        1.0501       -.23826E-06    .35511E-04
  19  Normalizat    1.2183        .23650       -.78824E-06   -.32646E-03
  20  Prefactor     .98080        .19838       -.18365E-05   -.33133E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.988404
  norm       = 0.141026
  Prefactor  = 12.1617
  Prefactor  = 31.6015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3456
  Prefactor  = 0.000100014
  Prefactor  = 0.000100009
  norm       = 0.191695
  Prefactor  = 7.12717
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  norm       = 1.27468
  Prefactor  = 0.0001
  Prefactor  = 27.6451
  Normalizat = 1.21835
  Prefactor  = 0.980802
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.043     FROM HESSE     STATUS=OK           345 CALLS     1821 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98840        1.4268        .13127E-01   -1.5509    
   2  norm          .14103        .39195        .20258E-01   -1.5633    
   3  Prefactor     12.162        8.9619        .28715E-02   -1.5010    
   4  Prefactor     31.602        29.078        .17816E-02   -1.4583    
   5  Prefactor     .10000E-03    24.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.346        27.055        .25559E-02   -1.4924    
   9  Prefactor     .10001E-03    55.661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    11.210        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19170        .90072        .25676E-01   -1.5620    
  12  Prefactor     7.1272        6.6547        .37559E-02   -1.5174    
  13  Prefactor     .10000E-03    .95774        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    7.8638        .92237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2747        .65553        .95163E-02   -1.5482    
  17  Prefactor     .10000E-03    10.158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.645        24.652        .19047E-02   -1.4656    
  19  Normalizat    1.2183        .20239        .57382E-01   -.86038    
  20  Prefactor     .98080        .16655        .46029E-01   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65527e-08
Minuit parameter uncertainties:
  1  1.42688
  2  0.391953
  3  8.96292
  4  29.0915
  5  0.00012819
  6  8.72945e-05
  7  9.97386e-06
  8  27.0768
  9  0.00174332
  10  0.000619663
  11  0.830858
  12  6.65541
  13  3.25091e-07
  14  0.00108119
  15  6.04606e-05
  16  0.655536
  17  1.80967e-05
  18  24.661
  19  0.202522
  20  0.166641
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.743e-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:  9.808e-01  1.666e-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.218e+00  2.025e-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: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805145/likelihoodResults_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.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) = 5825.04295833
delta logL = -8.51835238791e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5825.04287405
delta logL = -9.03837644728e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13817E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3816       1.0000          .0000       10.000    
     3 'Normalizat'    1.2183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98080       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5825.043     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      283 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10468E-03    11.913        .18142E-01** at limit **
   2  Index         2.2671        5.3927        .50000        .15094E-04
   3  Normalizat    1.2184        .22401E-02    .25376E-03   -.62766E-04
   4  Prefactor     .98080        .19089E-02    .23677E-03   -.13545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104679
  Index      = 2.26709
  Normalizat = 1.21835
  Prefactor  = 0.980801
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.043     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10468E-03    365.12        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2671        6.0126        .50000       -.57828    
   3  Normalizat    1.2184        .12381E-01    .10150E-04   -.86038    
   4  Prefactor     .98080        .10551E-01    .94710E-05   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01621e-09
Minuit parameter uncertainties:
  1  0.0831772
  2  194.293
  3  0.0123814
  4  0.010551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805145': 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) = 5825.04287313
delta logL = 1.8688297132e-08

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.047e-04  8.318e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.267e+00  1.943e+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:  9.808e-01  1.055e-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.218e+00  1.238e-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/805145/cmap_HighResolution_426988801_427248001_4FGL_J1018.4+0528_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-09-01 17:46:05.775566', job_id='805145', GAL2='0.98', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630543565.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='724' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 805145: <4FGL_J1018.4+0528_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin724 154.617 5.4702 426988801 427248001 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 :                                   540.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            918 sec.

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

