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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin563
RA = 154.617, Dec = 5.4702
tmin = 385257601, tmax = 385516801
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='804881', job_status='RUN', time_executed='2021-09-01 17:36:33.255908', time_epoch_executed='1630542993.26' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804881/ft1_4FGL_J1018.4+0528_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804881/ft2_4FGL_J1018.4+0528_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804881/ft1_4FGL_J1018.4+0528_daily_bin563.fits outfile=/scratch/kocevski/804881/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin563.fits ra=154.617 dec=5.4702 rad=12.0 tmin=385257601.0 tmax=385516801.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.65
user 3.35
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804881/ft1_filtered_4FGL_J1018.4+0528_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/804881/ft2_4FGL_J1018.4+0528_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/804881/ltcube_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.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/804881/ft2_4FGL_J1018.4+0528_daily_bin563.fits
.....................!
real 17.79
user 17.25
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804881/ft1_filtered_4FGL_J1018.4+0528_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/804881/ft2_4FGL_J1018.4+0528_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/804881/ltcube_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.fits outfile=/scratch/kocevski/804881/expmap_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.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/804881/ltcube_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.fits
.....................!
real 193.71
user 188.18
sys 4.79

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/804881/ft1_filtered_4FGL_J1018.4+0528_daily_bin563.fits scfile=/scratch/kocevski/804881/ft2_4FGL_J1018.4+0528_daily_bin563.fits outfile=/scratch/kocevski/804881/cmap_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.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.60
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804881/ft1_filtered_4FGL_J1018.4+0528_daily_bin563.fits scfile=/scratch/kocevski/804881/ft2_4FGL_J1018.4+0528_daily_bin563.fits outfile=/scratch/kocevski/804881/cmap_HighResolution_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.617 yref=5.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3086       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6531       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.935       1.0000         .10000E-03   10000.    
     6 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.861       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19954E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3866       1.0000         .10000E-03   10000.    
    16 'norm      '    .82251       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4103       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .34557       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1637       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=   6293.246     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2031 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3086        1.6021        .42082E-07   -.46359E-04
   2  norm          3.6531        .76772        .15123E-07    .72894E-05
   3  Prefactor     26.238        14.667       -.44117E-06   -.22362E-04
   4  Prefactor     .10000E-03    15.070        .62178E-07** at limit **
   5  Prefactor     26.936        23.719        .11854E-06   -.25285E-05
   6  norm          .10000E-03    6.6350       -.12412E-05** at limit **
   7  Prefactor     .10000E-03    6.8903        .14016E-05** at limit **
   8  Prefactor     .10000E-03    63.464        .18268E-06** at limit **
   9  Prefactor     63.873        44.445        .51790E-05    .46574E-03
  10  Prefactor     .10000E-03    9.1624       -.18843E-07** at limit **
  11  norm          .10000E-03    .50760       -.15263E-08** at limit **
  12  Prefactor     .10000E-03    1.6936        .14612E-07** at limit **
  13  Prefactor     14.424        4.5342       -.16491E-06    .10620E-03
  14  Prefactor     12.797        11.032        .43417E-06    .77113E-04
  15  Prefactor     6.3868        7.0705        .22309E-05   -.14793E-02
  16  norm          .82252        .40848       -.36277E-07   -.90934E-04
  17  Prefactor     .10000E-03    2.2438       -.64712E-07** at limit **
  18  Prefactor     5.4053        27.799       -.36929E-05   -.11496E-03
  19  Normalizat    .34556        .20527       -.18845E-05   -.45910E-04
  20  Prefactor     1.1637        .16017        .25579E-06   -.13371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.30864
  norm       = 3.6531
  Prefactor  = 26.238
  Prefactor  = 0.0001
  Prefactor  = 26.9355
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.8728
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4238
  Prefactor  = 12.7965
  Prefactor  = 6.38682
  norm       = 0.822521
  Prefactor  = 0.0001
  Prefactor  = 5.40529
  Normalizat = 0.345559
  Prefactor  = 1.16365
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.246     FROM HESSE     STATUS=OK           295 CALLS     2326 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3086        1.5945        .57381E-04   -1.5293    
   2  norm          3.6531        .76582        .30254E-04   -1.5326    
   3  Prefactor     26.238        14.663        .78205E-04   -1.4683    
   4  Prefactor     .10000E-03    15.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.936        23.692        .77190E-04   -1.4670    
   6  norm          .10000E-03    6.7367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    63.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.873        46.737        .50217E-04   -1.4108    
  10  Prefactor     .10000E-03    9.2018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5573        .10857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7038        .10078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.424        4.5910        .86204E-04   -1.4948    
  14  Prefactor     12.797        10.996        .11198E-03   -1.4992    
  15  Prefactor     6.3868        8.8536        .79411E-03   -1.5202    
  16  norm          .82252        .40658        .34451E-04   -1.5527    
  17  Prefactor     .10000E-03    2.2482        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4053        27.654        .17276E-03   -1.5243    
  19  Normalizat    .34556        .20579        .39624E-03   -1.2022    
  20  Prefactor     1.1637        .16533        .19389E-03   -.87457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51805e-09
Minuit parameter uncertainties:
  1  1.59447
  2  0.765827
  3  14.6648
  4  1.12587e-05
  5  23.7003
  6  0.000122369
  7  9.90098e-06
  8  0.000338632
  9  46.7635
  10  0.000111364
  11  1.03575e-05
  12  1.5475e-06
  13  4.59108
  14  10.9973
  15  8.85544
  16  0.406581
  17  1.47225e-06
  18  24.4699
  19  0.206237
  20  0.165406
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  6.387e+01  4.676e+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.164e+00  1.654e-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:  3.456e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.26e-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) = 6293.01763504
delta logL = 0.227915191477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6293.00676473
delta logL = 0.23878550646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.607       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8098       1.0000          .0000       10.000    
     3 'Normalizat'    .30481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1859       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=   6293.007     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      275 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.513        324.59        .17818E-02    .18078E-03
   2  Index         2.8118        2.4220        .11150        .17813E-03
   3  Normalizat    .30474        .73359E-01    .95054E-01    .75894E-04
   4  Prefactor     1.1859        .50858E-01    .34973E-01    .12587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5134
  Index      = 2.8118
  Normalizat = 0.304738
  Prefactor  = 1.1859
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.007     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.513        79.233        .35635E-03   -1.4585    
   2  Index         2.8118        1.2893        .38964E-02   -.45297    
   3  Normalizat    .30474        .20892        .42098E-03   -1.2256    
   4  Prefactor     1.1859        .17296        .19224E-03   -.86766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32208e-10
Minuit parameter uncertainties:
  1  79.4989
  2  1.30764
  3  0.20946
  4  0.173038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804881': 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) = 6293.00676073
delta logL = 0.238789503433

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  3.151e+01  7.950e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.812e+00  1.308e+00  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.186e+00  1.730e-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:  3.047e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.05
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.81 +/- 1.31
Photon Flux (Free Index): 7.43e-08 +/- 6.90e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.01e-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/804881/cmap_HighResolution_385257601_385516801_4FGL_J1018.4+0528_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='1.65e-05', photon_flux_error='3.23e-08', dlogl='2.39e-01', energy_flux='1.72e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-09-01 17:45:31.067335', photon_index_error2='1.31', photon_index2='2.81', ts='4.45', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.35', time_epoch_completed='1630543531.07', return_code='0', job_id='804881', GAL2='1.19', EG2='0.30', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.90e-08', ts2='5.05', photon_index='2.28' WHERE bin_id='563' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 804881: <4FGL_J1018.4+0528_daily_bin563> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin563> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:30 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:32:27 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:32:27 2021
Terminated at Wed Sep  1 17:45:31 2021
Results reported at Wed Sep  1 17:45:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin563 154.617 5.4702 385257601 385516801 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 :                                   537.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            901 sec.

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

