/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 173 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 = 7409
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin62
RA = 154.617, Dec = 5.4702
tmin = 255398401, tmax = 255657601
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='802329', job_status='RUN', time_executed='2021-09-01 17:25:13.348077', time_epoch_executed='1630542313.35' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802329/ft1_4FGL_J1018.4+0528_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802329/ft2_4FGL_J1018.4+0528_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802329/ft1_4FGL_J1018.4+0528_daily_bin62.fits outfile=/scratch/kocevski/802329/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin62.fits ra=154.617 dec=5.4702 rad=12.0 tmin=255398401.0 tmax=255657601.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 1.91
user 1.67
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802329/ft1_filtered_4FGL_J1018.4+0528_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/802329/ft2_4FGL_J1018.4+0528_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/802329/ltcube_255398401_255657601_4FGL_J1018.4+0528_daily_bin62.fits outfile=/scratch/kocevski/802329/expmap_255398401_255657601_4FGL_J1018.4+0528_daily_bin62.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/802329/ltcube_255398401_255657601_4FGL_J1018.4+0528_daily_bin62.fits
.....................!
real 190.42
user 185.72
sys 4.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/802329/ft1_filtered_4FGL_J1018.4+0528_daily_bin62.fits scfile=/scratch/kocevski/802329/ft2_4FGL_J1018.4+0528_daily_bin62.fits outfile=/scratch/kocevski/802329/cmap_255398401_255657601_4FGL_J1018.4+0528_daily_bin62.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802329/ft1_filtered_4FGL_J1018.4+0528_daily_bin62.fits scfile=/scratch/kocevski/802329/ft2_4FGL_J1018.4+0528_daily_bin62.fits outfile=/scratch/kocevski/802329/cmap_HighResolution_255398401_255657601_4FGL_J1018.4+0528_daily_bin62.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .91507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.118       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2332       1.0000         .10000E-03   10000.    
     9 'Prefactor '    120.14       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5390       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5143       1.0000         .10000E-03   10000.    
    16 'norm      '    .95799       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.643       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73290       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2374       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=   8148.226     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2156 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    .39224        .76485E-07** at limit **
   2  norm          .91494        .57343        .18983E-06    .13997E-03
   3  Prefactor     .10000E-03    5.2292       -.13027E-05** at limit **
   4  Prefactor     28.266        29.817        .10687E-06   -.22067E-04
   5  Prefactor     .10000E-03    6.5723        .23875E-06** at limit **
   6  norm          .10000E-03    4.4874       -.84888E-06** at limit **
   7  Prefactor     27.122        15.214       -.60776E-06   -.54212E-04
   8  Prefactor     3.0819        231.40       -.35973E-06   -.23349E-04
   9  Prefactor     120.17        75.493       -.43105E-05   -.71328E-04
  10  Prefactor     .10000E-03    23.623        .20937E-05** at limit **
  11  norm          .10000E-03    .35671        .41678E-06** at limit **
  12  Prefactor     5.1639        6.6735        .57928E-06   -.18570E-03
  13  Prefactor     .10000E-03    1.3338       -.13490E-06** at limit **
  14  Prefactor     1.5380        7.2118        .24608E-05   -.21886E-05
  15  Prefactor     7.5137        6.1190        .18227E-07   -.39501E-04
  16  norm          .95803        .57923        .58709E-07   -.80595E-04
  17  Prefactor     7.8406        8.9840        .16146E-06   -.58181E-05
  18  Prefactor     10.643        11.583        .44491E-07   -.90484E-05
  19  Normalizat    .73300        .18370        .34541E-05   -.40087E-03
  20  Prefactor     1.2373        .15217       -.47094E-05   -.32258E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  norm       = 0.914937
  Prefactor  = 0.0001
  Prefactor  = 28.2662
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.1222
  Prefactor  = 3.08194
  Prefactor  = 120.167
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 5.16394
  Prefactor  = 0.0001
  Prefactor  = 1.53796
  Prefactor  = 7.51369
  norm       = 0.958026
  Prefactor  = 7.84062
  Prefactor  = 10.6427
  Normalizat = 0.732997
  Prefactor  = 1.23732
 **********
 **   18 **HESSE 
 **********

 FCN=   8148.226     FROM HESSE     STATUS=OK           305 CALLS     2461 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    11.150        .10844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .91494        .55906        .51101E-03   -1.5517    
   3  Prefactor     .10000E-03    5.2301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.266        29.777        .75371E-04   -1.4644    
   5  Prefactor     .10000E-03    6.5751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.122        15.236        .76930E-04   -1.4666    
   8  Prefactor     3.0819        244.15        .22527E-02   -1.5357    
   9  Prefactor     120.17        75.857        .18357E-03   -1.3511    
  10  Prefactor     .10000E-03    24.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .56066        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1639        6.6208        .17688E-03   -1.5253    
  13  Prefactor     .10000E-03    1.3626        .20316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5380        7.3571        .34375E-03   -1.5460    
  15  Prefactor     7.5137        6.1047        .14630E-03   -1.5160    
  16  norm          .95803        .58553        .43689E-04   -1.5512    
  17  Prefactor     7.8406        9.1633        .14320E-03   -1.5148    
  18  Prefactor     10.643        11.582        .12282E-03   -1.5055    
  19  Normalizat    .73300        .19856        .30575E-03   -1.0260    
  20  Prefactor     1.2373        .16268        .21079E-03   -.85190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45558e-09
Minuit parameter uncertainties:
  1  0.000858311
  2  0.559065
  3  3.54811e-05
  4  29.7929
  5  3.96347e-06
  6  1.91624e-05
  7  15.2384
  8  55.0956
  9  75.9184
  10  0.000541474
  11  4.33465e-06
  12  6.62173
  13  9.22454e-06
  14  6.72863
  15  6.10518
  16  0.585535
  17  9.1649
  18  11.584
  19  0.198752
  20  0.162747
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.202e+02  7.592e+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:  1.237e+00  1.627e-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:  7.330e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.76
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 5.25e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.04e-05

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): 0
logL (Free Index) = 8148.22376533
delta logL = 0.00178890955522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8148.22084026
delta logL = 0.00471397707497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    114.02       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3237       1.0000          .0000       10.000    
     3 'Normalizat'    .72958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2384       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=   8148.221     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      261 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.93        91.320        .18838E-03   -.94027E-04
   2  Index         2.3243        .45931        .41357E-02   -.61939E-04
   3  Normalizat    .72923        .18963        .30642E-03   -.24487E-05
   4  Prefactor     1.2394        .16259        .21064E-03    .14681E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.927
  Index      = 2.32428
  Normalizat = 0.72923
  Prefactor  = 1.23936
 **********
 **   18 **HESSE 
 **********

 FCN=   8148.221     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.93        83.645        .75351E-05   -1.3569    
   2  Index         2.3243        .42019        .16543E-03   -.56468    
   3  Normalizat    .72923        .18912        .12257E-04   -1.0275    
   4  Prefactor     1.2394        .16245        .42128E-04   -.85129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25436e-11
Minuit parameter uncertainties:
  1  83.7318
  2  0.420885
  3  0.18929
  4  0.162512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802329': 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): 0
logL (Free Index) = 8148.22080202
delta logL = 0.00475221809666

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.239e+00  1.625e-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:  7.292e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.04
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.32 +/- 0.42
Photon Flux (Free Index): 8.62e-08 +/- 5.06e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/802329/cmap_HighResolution_255398401_255657601_4FGL_J1018.4+0528_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='3.14e-05', photon_flux_error='5.25e-08', dlogl='4.75e-03', energy_flux='3.23e-05', photon_flux2='8.62e-08', job_status='DONE', time_completed='2021-09-01 17:35:11.624088', photon_index_error2='0.42', photon_index2='2.32', ts='8.76', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.73', time_epoch_completed='1630542911.62', return_code='0', job_id='802329', GAL2='1.24', EG2='0.73', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='5.06e-08', ts2='9.04', photon_index='2.28' WHERE bin_id='62' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:35:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 802329: <4FGL_J1018.4+0528_daily_bin62> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin62> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:21:02 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:11 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:22:11 2021
Terminated at Wed Sep  1 17:35:12 2021
Results reported at Wed Sep  1 17:35:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin62 154.617 5.4702 255398401 255657601 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 :                                   598.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            850 sec.

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

