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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin773
RA = 154.617, Dec = 5.4702
tmin = 439689601, tmax = 439948801
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='806296', job_status='RUN', time_executed='2021-09-01 17:39:42.560700', time_epoch_executed='1630543182.56' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806296

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806296/ft1_4FGL_J1018.4+0528_daily_bin773.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806296/ft2_4FGL_J1018.4+0528_daily_bin773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806296/ft1_4FGL_J1018.4+0528_daily_bin773.fits outfile=/scratch/kocevski/806296/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin773.fits ra=154.617 dec=5.4702 rad=12.0 tmin=439689601.0 tmax=439948801.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 4.42
user 4.15
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806296/ft1_filtered_4FGL_J1018.4+0528_daily_bin773.fits" evtable="EVENTS" scfile=/scratch/kocevski/806296/ft2_4FGL_J1018.4+0528_daily_bin773.fits sctable="SC_DATA" outfile=/scratch/kocevski/806296/ltcube_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.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/806296/ft2_4FGL_J1018.4+0528_daily_bin773.fits
.....................!
real 13.71
user 13.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806296/ft1_filtered_4FGL_J1018.4+0528_daily_bin773.fits evtable="EVENTS" scfile=/scratch/kocevski/806296/ft2_4FGL_J1018.4+0528_daily_bin773.fits sctable="SC_DATA" expcube=/scratch/kocevski/806296/ltcube_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.fits outfile=/scratch/kocevski/806296/expmap_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.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/806296/ltcube_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.fits
.....................!
real 191.14
user 186.40
sys 4.08

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/806296/ft1_filtered_4FGL_J1018.4+0528_daily_bin773.fits scfile=/scratch/kocevski/806296/ft2_4FGL_J1018.4+0528_daily_bin773.fits outfile=/scratch/kocevski/806296/cmap_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.617 yref=5.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1800       1.0000         .10000E-03   10000.    
     2 'norm      '    .69835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.275       1.0000         .10000E-03   10000.    
     6 'norm      '    .11673E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36651E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16846E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4868       1.0000         .10000E-03   10000.    
    11 'norm      '    .97645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70511       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31229E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17726E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.725       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .58867       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3297       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=   6216.669     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2102 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1805        1.4232       -.17894E-07   -.14430E-03
   2  norm          .69840        .50715       -.15342E-07   -.47125E-03
   3  Prefactor     .10000E-03    8.4425       -.14562E-05** at limit **
   4  Prefactor     8.2255        29.758       -.11881E-04   -.16074E-04
   5  Prefactor     12.359        30.447        .13004E-04    .88876E-05
   6  norm          .10000E-03    6.8141       -.89305E-07** at limit **
   7  Prefactor     .10000E-03    8.5590        .13536E-05** at limit **
   8  Prefactor     .10000E-03    16.137        .81493E-06** at limit **
   9  Prefactor     28.609        41.149        .40564E-05    .57348E-05
  10  Prefactor     6.4431        12.495       -.41238E-07   -.21349E-04
  11  norm          .97687        1.4825       -.19665E-06   -.93722E-03
  12  Prefactor     .69399        3.5137       -.61618E-07   -.43559E-03
  13  Prefactor     .10022E-03    1.6306       -.81207E-06** at limit **
  14  Prefactor     .10000E-03    4.0649       -.10183E-07** at limit **
  15  Prefactor     .10006E-03    6.4104       -.15108E-05** at limit **
  16  norm          1.1201        .71655        .12731E-06    .77408E-03
  17  Prefactor     19.707        11.352       -.77338E-06    .44879E-03
  18  Prefactor     .10000E-03    11.948        .23953E-05** at limit **
  19  Normalizat    .58861        .18608        .68710E-07    .35930E-03
  20  Prefactor     1.3296        .15851        .70430E-07    .47999E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18045
  norm       = 0.698397
  Prefactor  = 0.0001
  Prefactor  = 8.22551
  Prefactor  = 12.3587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6086
  Prefactor  = 6.44305
  norm       = 0.97687
  Prefactor  = 0.69399
  Prefactor  = 0.000100219
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  norm       = 1.12014
  Prefactor  = 19.7067
  Prefactor  = 0.0001
  Normalizat = 0.588606
  Prefactor  = 1.32964
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.669     FROM HESSE     STATUS=OK           299 CALLS     2401 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1805        1.4195        .60033E-04   -1.5351    
   2  norm          .69840        .49130        .45939E-03   -1.5541    
   3  Prefactor     .10000E-03    8.5636        .21298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2255        29.674        .14138E-03   -1.5134    
   5  Prefactor     12.359        30.399        .11433E-03   -1.5005    
   6  norm          .10000E-03    6.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5842        .21303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.609        40.926        .75165E-04   -1.4638    
  10  Prefactor     6.4431        12.485        .15758E-03   -1.5200    
  11  norm          .97687        1.4433        .10931E-03   -1.5510    
  12  Prefactor     .69399        14.683        .27009E-02   -1.5541    
  13  Prefactor     .10022E-03    15.012        .18293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0762        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    17.029        .36085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1201        .70912        .45081E-04   -1.5496    
  17  Prefactor     19.707        11.323        .90181E-04   -1.4820    
  18  Prefactor     .10000E-03    11.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .58861        .19972        .32591E-03   -1.0847    
  20  Prefactor     1.3296        .17608        .20091E-03   -.82430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89637e-08
Minuit parameter uncertainties:
  1  1.41955
  2  0.491307
  3  8.30446e-06
  4  29.7269
  5  30.4368
  6  8.8116e-06
  7  0.000104165
  8  5.15217e-06
  9  40.9664
  10  12.4896
  11  1.44336
  12  6.38555
  13  0.00363035
  14  1.14249e-06
  15  0.00198781
  16  0.70913
  17  11.3238
  18  9.97119e-06
  19  0.199968
  20  0.176157
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  2.861e+01  4.097e+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.330e+00  1.762e-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:  5.886e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806296/likelihoodResults_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.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): 0
logL (Free Index) = 6216.56440641
delta logL = 0.104860938721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6216.56144483
delta logL = 0.107822517448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.488       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8856       1.0000          .0000       10.000    
     3 'Normalizat'    .59649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3252       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=   6216.561     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.555        63.625        .29403E-03    .15195E-04
   2  Index         1.8868        .78346        .10798E-01    .18120E-03
   3  Normalizat    .59653        .19479        .32380E-03    .15800E-04
   4  Prefactor     1.3251        .17475        .20116E-03   -.14298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.5553
  Index      = 1.88682
  Normalizat = 0.596527
  Prefactor  = 1.32509
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.561     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.555        62.071        .11761E-04   -1.4342    
   2  Index         1.8868        .76452        .21597E-02   -.67211    
   3  Normalizat    .59653        .19485        .12952E-04   -1.0813    
   4  Prefactor     1.3251        .17484        .80464E-05   -.82564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52747e-12
Minuit parameter uncertainties:
  1  62.1576
  2  0.769467
  3  0.195072
  4  0.174919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806296': 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) = 6216.56144125
delta logL = 0.107826105204

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  4.656e+01  6.216e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.887e+00  7.695e-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.325e+00  1.749e-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:  5.965e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 154.617 5.470
Photon Index (Free Index): 1.89 +/- 0.77
Photon Flux (Free Index): 1.43e-08 +/- 2.09e-08
Energy Flux (Free Index): 1.33e-05 +/- 2.35e-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/806296/cmap_HighResolution_439689601_439948801_4FGL_J1018.4+0528_daily_bin773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='1.08e-01', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-01 17:49:18.999052', photon_index_error2='0.77', photon_index2='1.89', ts='0.95', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='8.78e-08', energy_flux_error2='2.35e-05', EG='0.59', time_epoch_completed='1630543759.0', return_code='0', job_id='806296', GAL2='1.33', EG2='0.60', return_code2='0', photon_flux_error2='2.09e-08', ts2='1.17', photon_index='2.28' WHERE bin_id='773' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:49:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 806296: <4FGL_J1018.4+0528_daily_bin773> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin773> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:36 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:35:52 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:52 2021
Terminated at Wed Sep  1 17:49:19 2021
Results reported at Wed Sep  1 17:49:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin773 154.617 5.4702 439689601 439948801 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 :                                   575.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            823 sec.

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

