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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin52
RA = 154.617, Dec = 5.4702
tmin = 252806401, tmax = 253065601
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='802317', job_status='RUN', time_executed='2021-09-01 17:23:29.949109', time_epoch_executed='1630542209.95' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802317

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802317/ft1_4FGL_J1018.4+0528_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802317/ft2_4FGL_J1018.4+0528_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802317/ft1_4FGL_J1018.4+0528_daily_bin52.fits outfile=/scratch/kocevski/802317/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin52.fits ra=154.617 dec=5.4702 rad=12.0 tmin=252806401.0 tmax=253065601.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.45
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802317/ft1_filtered_4FGL_J1018.4+0528_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/802317/ft2_4FGL_J1018.4+0528_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/802317/ltcube_252806401_253065601_4FGL_J1018.4+0528_daily_bin52.fits outfile=/scratch/kocevski/802317/expmap_252806401_253065601_4FGL_J1018.4+0528_daily_bin52.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/802317/ltcube_252806401_253065601_4FGL_J1018.4+0528_daily_bin52.fits
.....................!
real 192.05
user 187.22
sys 4.10

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/802317/ft1_filtered_4FGL_J1018.4+0528_daily_bin52.fits scfile=/scratch/kocevski/802317/ft2_4FGL_J1018.4+0528_daily_bin52.fits outfile=/scratch/kocevski/802317/cmap_252806401_253065601_4FGL_J1018.4+0528_daily_bin52.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802317/ft1_filtered_4FGL_J1018.4+0528_daily_bin52.fits scfile=/scratch/kocevski/802317/ft2_4FGL_J1018.4+0528_daily_bin52.fits outfile=/scratch/kocevski/802317/cmap_HighResolution_252806401_253065601_4FGL_J1018.4+0528_daily_bin52.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.893       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.598       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7972       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3656       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87852       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=   8723.831     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     2678 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .53671        .10183E-02** at limit **
   2  norm          .10000E-03    1.0145        .87325E-03** at limit **
   3  Prefactor     9.5754        9.5264        .12947E-03   -.73058E-04
   4  Prefactor     19.154        25.170        .91382E-04   -.52998E-04
   5  Prefactor     .10000E-03    21.409        .18142E-02** at limit **
   6  norm          .10000E-03    7.2122        .18142E-02** at limit **
   7  Prefactor     25.880        11.009        .78725E-04    .72205E-05
   8  Prefactor     .10000E-03    19.409        .18142E-02** at limit **
   9  Prefactor     .10000E-03    62.518        .15389    ** at limit **
  10  Prefactor     12.580        16.268        .11286E-03   -.68298E-04
  11  norm          .10000E-03    .43520        .10129E-02** at limit **
  12  Prefactor     1.8908        4.2372        .27604E-03    .11285E-04
  13  Prefactor     1.1342        1.7304        .14925E-03    .61395E-04
  14  Prefactor     .10000E-03    9.5933        .36285E-03** at limit **
  15  Prefactor     7.7963        6.1911        .14360E-03    .26917E-05
  16  norm          1.3558        .48223        .35924E-04   -.54433E-04
  17  Prefactor     7.3657        5.7744        .14778E-03   -.80005E-05
  18  Prefactor     .10000E-03    5.9700        .18142E-02** at limit **
  19  Normalizat    1.2051        .18028        .24458E-03   -.31522E-03
  20  Prefactor     .87853        .14895        .23683E-03   -.21823E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.57543
  Prefactor  = 19.1544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.8801
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.5798
  norm       = 0.0001
  Prefactor  = 1.89084
  Prefactor  = 1.13423
  Prefactor  = 0.0001
  Prefactor  = 7.79629
  norm       = 1.35576
  Prefactor  = 7.36571
  Prefactor  = 0.0001
  Normalizat = 1.20509
  Prefactor  = 0.878525
 **********
 **   18 **HESSE 
 **********

 FCN=   8723.831     FROM HESSE     STATUS=OK           281 CALLS     2959 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .53732        .20366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0313        .17465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5754        9.5257        .51788E-05   -1.5089    
   4  Prefactor     19.154        25.155        .36553E-05   -1.4832    
   5  Prefactor     .10000E-03    21.412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.2129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.880        11.008        .31490E-05   -1.4690    
   8  Prefactor     .10000E-03    19.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.901        .15341       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.580        16.278        .45143E-05   -1.4998    
  11  norm          .10000E-03    .43553        .20259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8908        4.2365        .11042E-04   -1.5433    
  13  Prefactor     1.1342        1.7302        .59700E-05   -1.5495    
  14  Prefactor     .10000E-03    9.5937        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7963        6.1906        .57441E-05   -1.5149    
  16  norm          1.3558        .48222        .14369E-05   -1.5475    
  17  Prefactor     7.3657        5.7741        .59113E-05   -1.5165    
  18  Prefactor     .10000E-03    5.9701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2051        .18042        .48916E-04   -.86446    
  20  Prefactor     .87853        .14907        .94730E-05   -.96896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84583e-10
Minuit parameter uncertainties:
  1  7.29294e-06
  2  3.06513e-05
  3  9.52716
  4  25.1688
  5  4.30135e-05
  6  7.48672e-06
  7  11.0092
  8  1.18109e-06
  9  0.000697418
  10  16.2838
  11  4.65444e-07
  12  4.23717
  13  1.73031
  14  1.03132e-06
  15  6.19115
  16  0.48222
  17  5.77457
  18  5.39802e-06
  19  0.18051
  20  0.149137
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  6.974e-04  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:  8.785e-01  1.491e-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.205e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/802317/likelihoodResults_252806401_253065601_4FGL_J1018.4+0528_daily_bin52.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8723.8312632
delta logL = -1.0550071238e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8723.8312632
delta logL = -1.05494327727e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2836       1.0000          .0000       10.000    
     3 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87853       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8723.780     FROM MIGRAD    STATUS=CONVERGED    171 CALLS      354 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.491        58.880        .18142E-02    .28003E-04
   2  Index         1.7015        1.1263        .65998E-02   -.67353E-05
   3  Normalizat    1.2041        .17579        .24462E-03    .43222E-04
   4  Prefactor     .87751        .14855        .23687E-03    .91097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.491
  Index      = 1.70147
  Normalizat = 1.20411
  Prefactor  = 0.877506
 **********
 **   18 **HESSE 
 **********

 FCN=   8723.780     FROM HESSE     STATUS=OK            25 CALLS      379 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.491        58.885        .36285E-03   -1.4871    
   2  Index         1.7015        1.1266        .26399E-03   -.72043    
   3  Normalizat    1.2041        .17597        .97846E-05   -.86476    
   4  Prefactor     .87751        .14871        .94747E-05   -.96932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34777e-11
Minuit parameter uncertainties:
  1  59.0818
  2  1.14417
  3  0.176061
  4  0.148776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802317': 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) = 8723.78028956
delta logL = 0.050963082409

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.749e+01  5.908e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.701e+00  1.144e+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:  8.775e-01  1.488e-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.204e+00  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-01 17:35:43.084622', job_id='802317', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1630542943.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.10e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='52' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 802317: <4FGL_J1018.4+0528_daily_bin52> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin52> 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) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:08 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:08 2021
Terminated at Wed Sep  1 17:35:43 2021
Results reported at Wed Sep  1 17:35:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin52 154.617 5.4702 252806401 253065601 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 :                                   731.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            881 sec.

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

