/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 167 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_bin730
RA = 154.617, Dec = 5.4702
tmin = 428544001, tmax = 428803201
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='806228', job_status='RUN', time_executed='2021-09-01 17:38:29.435817', time_epoch_executed='1630543109.44' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806228/ft1_4FGL_J1018.4+0528_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806228/ft2_4FGL_J1018.4+0528_daily_bin730.fits


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

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

Done.
real 6.26
user 5.94
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806228/ft1_filtered_4FGL_J1018.4+0528_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/806228/ft2_4FGL_J1018.4+0528_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/806228/ltcube_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.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/806228/ft2_4FGL_J1018.4+0528_daily_bin730.fits
.....................!
real 14.48
user 14.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806228/ft1_filtered_4FGL_J1018.4+0528_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/806228/ft2_4FGL_J1018.4+0528_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/806228/ltcube_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.fits outfile=/scratch/kocevski/806228/expmap_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.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/806228/ltcube_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.fits
.....................!
real 192.38
user 186.74
sys 5.17

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/806228/ft1_filtered_4FGL_J1018.4+0528_daily_bin730.fits scfile=/scratch/kocevski/806228/ft2_4FGL_J1018.4+0528_daily_bin730.fits outfile=/scratch/kocevski/806228/cmap_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806228/ft1_filtered_4FGL_J1018.4+0528_daily_bin730.fits scfile=/scratch/kocevski/806228/ft2_4FGL_J1018.4+0528_daily_bin730.fits outfile=/scratch/kocevski/806228/cmap_HighResolution_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.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.64
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2409       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5178       1.0000         .10000E-03   10000.    
     6 'norm      '    17.329       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    136.71       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16347E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1927       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17924       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89228E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1170       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97019       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=   4757.419     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2431 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2409        .92835        .27080E-08   -.80315E-05
   2  norm          5.3714        1.1829        .14214E-07   -.59153E-04
   3  Prefactor     .10000E-03    17.014       -.22400E-06** at limit **
   4  Prefactor     .10000E-03    20.884        .65917E-07** at limit **
   5  Prefactor     4.5353        118.46        .63654E-06    .31535E-05
   6  norm          17.327        20.940       -.85295E-07   -.69952E-04
   7  Prefactor     .10000E-03    11.545        .37355E-05** at limit **
   8  Prefactor     .10000E-03    62.411        .14854E-05** at limit **
   9  Prefactor     136.81        74.770       -.36868E-06   -.14147E-04
  10  Prefactor     .10000E-03    33.773        .74600E-05** at limit **
  11  norm          3.1805        1.7474        .18742E-07   -.57382E-04
  12  Prefactor     14.051        8.2887        .20136E-07   -.27266E-04
  13  Prefactor     .10000E-03    .94390        .30747E-07** at limit **
  14  Prefactor     2.1932        8.7880        .12133E-05    .26392E-05
  15  Prefactor     .10000E-03    4.6552       -.59563E-07** at limit **
  16  norm          .17928        .48759        .25677E-06    .28722E-04
  17  Prefactor     .10000E-03    8.5728       -.27344E-06** at limit **
  18  Prefactor     .10122E-03    26.584        .19508E-05** at limit **
  19  Normalizat    1.1171        .22628       -.14176E-05   -.10005E-03
  20  Prefactor     .97002        .18932        .10450E-05   -.16472E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24092
  norm       = 5.37135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53525
  norm       = 17.3266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 136.808
  Prefactor  = 0.0001
  norm       = 3.18049
  Prefactor  = 14.0512
  Prefactor  = 0.0001
  Prefactor  = 2.19323
  Prefactor  = 0.0001
  norm       = 0.179279
  Prefactor  = 0.0001
  Prefactor  = 0.000101215
  Normalizat = 1.11713
  Prefactor  = 0.970024
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.419     FROM HESSE     STATUS=OK           301 CALLS     2732 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2409        .93324        .55744E-04   -1.5485    
   2  norm          5.3714        1.1838        .33644E-04   -1.5244    
   3  Prefactor     .10000E-03    17.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5353        118.19        .18941E-03   -1.5282    
   6  norm          17.327        20.878        .96213E-04   -1.4875    
   7  Prefactor     .10000E-03    11.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     136.81        74.704        .17223E-03   -1.3363    
  10  Prefactor     .10000E-03    33.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1805        1.7463        .65093E-04   -1.5351    
  12  Prefactor     14.051        8.2856        .10685E-03   -1.4958    
  13  Prefactor     .10000E-03    .94617        .65434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1932        8.7767        .27792E-03   -1.5412    
  15  Prefactor     .10000E-03    4.6798        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17928        .48810        .76171E-04   -1.5623    
  17  Prefactor     .10000E-03    8.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10122E-03    28.430        .10541       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1171        .26142        .27416E-03   -.89204    
  20  Prefactor     .97002        .21896        .24802E-03   -.93735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96858e-10
Minuit parameter uncertainties:
  1  0.933248
  2  1.18383
  3  3.09491e-06
  4  7.03786e-07
  5  46.4055
  6  20.8867
  7  5.89029e-05
  8  6.18595e-05
  9  74.7557
  10  0.000207216
  11  1.74636
  12  8.28626
  13  1.86159e-07
  14  8.77684
  15  3.5817e-06
  16  0.48811
  17  3.37258e-05
  18  0.0117622
  19  0.261724
  20  0.219163
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.368e+02  7.476e+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:  9.700e-01  2.192e-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.117e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.81
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.46e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 2.01e-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) = 4756.7577554
delta logL = 0.660786676723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4756.75627139
delta logL = 0.662270694183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    231.66       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8277       1.0000          .0000       10.000    
     3 'Normalizat'    1.1534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95061       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=   4756.756     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      310 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     231.69        139.43        .13295E-03    .41045E-05
   2  Index         1.8276        .37910        .51258E-02    .23378E-03
   3  Normalizat    1.1535        .25619        .27048E-03    .54642E-05
   4  Prefactor     .95055        .21727        .25016E-03   -.99979E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 231.688
  Index      = 1.82763
  Normalizat = 1.1535
  Prefactor  = 0.950545
 **********
 **   18 **HESSE 
 **********

 FCN=   4756.756     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     231.69        138.05        .26590E-04   -1.2652    
   2  Index         1.8276        .37523        .10252E-02   -.68733    
   3  Normalizat    1.1535        .25637        .10819E-04   -.88052    
   4  Prefactor     .95055        .21745        .10007E-04   -.94397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62244e-12
Minuit parameter uncertainties:
  1  138.248
  2  0.375825
  3  0.256647
  4  0.217653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806228': 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) = 4756.75627132
delta logL = 0.662270761766

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  2.317e+02  1.382e+02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.828e+00  3.758e-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.505e-01  2.177e-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.153e+00  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.13
Ra Dec: 154.617 5.470
Photon Index (Free Index): 1.83 +/- 0.38
Photon Flux (Free Index): 6.38e-08 +/- 4.52e-08
Energy Flux (Free Index): 7.04e-05 +/- 6.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/806228/cmap_HighResolution_428544001_428803201_4FGL_J1018.4+0528_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.46e-08', energy_flux2='7.04e-05', photon_flux_error='5.17e-08', dlogl='6.62e-01', energy_flux='3.68e-05', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-09-01 17:47:08.351366', photon_index_error2='0.38', photon_index2='1.83', ts='7.81', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='6.05e-05', EG='1.12', time_epoch_completed='1630543628.35', return_code='0', job_id='806228', GAL2='0.95', EG2='1.15', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='4.52e-08', ts2='9.13', photon_index='2.28' WHERE bin_id='730' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 806228: <4FGL_J1018.4+0528_daily_bin730> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin730 154.617 5.4702 428544001 428803201 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 :                                   517.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             278.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            700 sec.

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

