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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1371
RA = 154.591, Dec = -31.4032
tmin = 594691201, tmax = 594950401
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='801952', job_status='RUN', time_executed='2021-09-01 17:24:28.712535', time_epoch_executed='1630542268.71' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801952/ft1_4FGL_J1018.3-3124_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801952/ft1_4FGL_J1018.3-3124_daily_bin1371.fits outfile=/scratch/kocevski/801952/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1371.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=594691201.0 tmax=594950401.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 2.96
user 2.76
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.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/801952/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1371.fits evtable="EVENTS" outfile="/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/801952/ltcube_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.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/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits
.....................!
real 20.94
user 20.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/801952/ltcube_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.fits outfile=/scratch/kocevski/801952/expmap_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.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/801952/ltcube_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.fits
.....................!
real 157.10
user 151.91
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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.3-3124 @ 154.591 -31.4032

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits scfile=/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits outfile=/scratch/kocevski/801952/cmap_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.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.591 yref=-31.4032 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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits scfile=/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits outfile=/scratch/kocevski/801952/cmap_HighResolution_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.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.591 yref=-31.4032 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.49
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801952/Model_4FGL_J1018.3-3124_daily_bin1371.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/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits.....................!
real 83.85
user 82.53
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits', '/scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits', expMap='/scratch/kocevski/801952/expmap_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.fits', expCube='/scratch/kocevski/801952/ltcube_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/801952/Model_4FGL_J1018.3-3124_daily_bin1371.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.3-3124'

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  6.868e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.461e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/801952/ft1_filtered_4FGL_J1018.3-3124_daily_bin1371.fits
Spacecraft file(s): /scratch/kocevski/801952/ft2_4FGL_J1018.3-3124_daily_bin1371.fits
Exposure map: /scratch/kocevski/801952/expmap_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.fits
Exposure cube: /scratch/kocevski/801952/ltcube_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/801952/Model_4FGL_J1018.3-3124_daily_bin1371.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) = 9477.61565709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9727       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0350       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8470       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24630E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .32285E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .62802E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18454E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6831       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75232       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.8343       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86953       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9477.560     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2116 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9719        31.714        .16347E-07   -.11415E-04
   2  norm          .10000E-03    2.4383        .13636E-06** at limit **
   3  norm          .10000E-03    10.842        .36502E-06** at limit **
   4  norm          .10000E-03    4.4112        .46328E-07** at limit **
   5  norm          3.0346        1.7974        .10625E-06    .98084E-04
   6  norm          1.8472        1.9298        .30774E-06   -.38025E-03
   7  Prefactor     .10001E-03    88.716        .48585E-05** at limit **
   8  Prefactor     .10000E-03    5.3855       -.16158E-06** at limit **
   9  norm          .10000E-03    58.456        .51284E-05** at limit **
  10  norm          .10000E-03    9.3027        .65445E-06** at limit **
  11  Prefactor     8.4067        14.613       -.16922E-05   -.27227E-03
  12  Prefactor     .10000E-03    7.7258        .38671E-06** at limit **
  13  norm          .10000E-03    4.9180       -.59416E-06** at limit **
  14  Prefactor     .10000E-03    9.2028        .18121E-05** at limit **
  15  Prefactor     .10001E-03    4.1567       -.16104E-05** at limit **
  16  Prefactor     3.6862        9.0633       -.97026E-06   -.15487E-03
  17  Prefactor     .10000E-03    2.7134        .19585E-06** at limit **
  18  Prefactor     .74674        5.2360        .34457E-06   -.75185E-04
  19  Normalizat    1.8346        .22884       -.64547E-06   -.27811E-03
  20  Prefactor     .86938        .90460E-01   -.11807E-06   -.48865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.97189
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.03457
  norm       = 1.84716
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 8.4067
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 3.68619
  Prefactor  = 0.0001
  Prefactor  = 0.746743
  Normalizat = 1.83462
  Prefactor  = 0.869377
 **********
 **   18 **HESSE 
 **********

 FCN=   9477.560     FROM HESSE     STATUS=OK           295 CALLS     2411 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9719        31.691        .15193E-03   -1.5180    
   2  norm          .10000E-03    2.4510        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0346        1.8087        .94777E-04   -1.5360    
   6  norm          1.8472        5.0247        .15341E-02   -1.5436    
   7  Prefactor     .10001E-03    93.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    64.947        .37871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.5540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4067        14.858        .13829E-03   -1.5128    
  12  Prefactor     .10000E-03    7.7595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    25.094        .22985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    5.2406        .28783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6862        9.5247        .10523E-02   -1.5324    
  17  Prefactor     .10000E-03    2.7361        .15675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .74674        16.482        .43025E-02   -1.5535    
  19  Normalizat    1.8346        .26567        .32812E-03   -.68764    
  20  Prefactor     .86938        .10620        .18801E-03   -.97220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80757e-08
Minuit parameter uncertainties:
  1  29.7546
  2  8.55233e-06
  3  5.2794e-07
  4  4.73915e-06
  5  1.80877
  6  5.02588
  7  0.00183407
  8  2.45395e-06
  9  0.00108746
  10  9.88008e-05
  11  14.8641
  12  3.75234e-05
  13  0.000213859
  14  0.000227544
  15  0.000353044
  16  9.52865
  17  1.39957e-05
  18  7.01816
  19  0.265876
  20  0.106227
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  1.087e-03  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.461e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.694e-01  1.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.835e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.591 -31.403
Photon Flux Upper Limit: 8.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/801952/likelihoodResults_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.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) = 9477.56054555
delta logL = -7.12966339051e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9477.56044055
delta logL = 3.37026194757e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47710E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8421       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9477.559     FROM MIGRAD    STATUS=FAILED       132 CALLS      332 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29197        2001.5        .38077E-02    .19702E-02
   2  alpha         2.9241        3.8914        .50000        .28393E-04
   3  Normalizat    1.8327        .60983E-01    .32826E-03   -.28468E-04
   4  Prefactor     .86961        .24680E-01    .18799E-03    .16086E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9477.559     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      423 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29197        2001.5        .77461E-03    .19702E-02
   2  alpha         2.9241        3.8914        .32239E-02    .28393E-04
   3  Normalizat    1.8327        .60983E-01    .32142E-04   -.28468E-04
   4  Prefactor     .86961        .24680E-01    .11253E-04    .16086E-04
                               ERR DEF=  .500    

 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=   9477.559     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      493 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29202        37.002        .30462E-04   -.89571E-04
   2  alpha         2.9241        3.8882        .32906E-01   -.54954E-05
   3  Normalizat    1.8327        .25379        .26261E-05    .34633E-05
   4  Prefactor     .86961        .10499        .15039E-05    .54428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.292017
  alpha      = 2.92406
  Normalizat = 1.83266
  Prefactor  = 0.869611
 **********
 **   18 **HESSE 
 **********

 FCN=   9477.559     FROM HESSE     STATUS=OK            23 CALLS      516 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29202        33.316        .60923E-05   -1.5600    
   2  alpha         2.9241        3.9265        .13162E-02    .17045    
   3  Normalizat    1.8327        .25073        .52522E-06   -.68814    
   4  Prefactor     .86961        .10360        .30078E-06   -.97211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99339e-10
Minuit parameter uncertainties:
  1  6.24068
  2  4.87911
  3  0.250907
  4  0.103621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801952': 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) = 9477.55933226
delta logL = 0.00114198904157

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.920e-01  6.241e+00  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.924e+00  4.879e+00  0.000e+00  5.000e+00 ( 1.000e+00)
340         beta:  1.460e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
341           Eb:  5.841e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.696e-01  1.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.833e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.591 -31.403

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/801952/cmap_HighResolution_594691201_594950401_4FGL_J1018.3-3124_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-01 17:36:30.040757', job_id='801952', GAL2='0.87', fit_tolerance='1e-08', EG2='1.83', EG='1.83', time_epoch_completed='1630542990.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.14e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1371' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 801952: <4FGL_J1018.3-3124_daily_bin1371> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1371> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:20:31 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:20:49 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:20:49 2021
Terminated at Wed Sep  1 17:36:31 2021
Results reported at Wed Sep  1 17:36:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1371 154.591 -31.4032 594691201 594950401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.3-3124 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            960 sec.

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

