/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 6 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 = 7574
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.3-3124_daily_bin288
RA = 154.591, Dec = -31.4032
tmin = 313977601, tmax = 314236801
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='795742', job_status='RUN', time_executed='2021-09-01 17:02:32.869932', time_epoch_executed='1630540952.87' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/795742

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/795742/ft1_4FGL_J1018.3-3124_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/795742/ft1_4FGL_J1018.3-3124_daily_bin288.fits outfile=/scratch/kocevski/795742/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin288.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=313977601.0 tmax=314236801.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.98
user 2.61
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.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/795742/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin288.fits evtable="EVENTS" outfile="/scratch/kocevski/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.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.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/795742/ltcube_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.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/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits
.....................!
real 14.66
user 14.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/795742/ltcube_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.fits outfile=/scratch/kocevski/795742/expmap_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.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/795742/ltcube_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.fits
.....................!
real 157.65
user 152.84
sys 4.30

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/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits scfile=/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits outfile=/scratch/kocevski/795742/cmap_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits scfile=/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits outfile=/scratch/kocevski/795742/cmap_HighResolution_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.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.35
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/795742/Model_4FGL_J1018.3-3124_daily_bin288.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/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits.....................!
real 62.96
user 60.89
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits', '/scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits', expMap='/scratch/kocevski/795742/expmap_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.fits', expCube='/scratch/kocevski/795742/ltcube_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/795742/Model_4FGL_J1018.3-3124_daily_bin288.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/795742/ft1_filtered_4FGL_J1018.3-3124_daily_bin288.fits
Spacecraft file(s): /scratch/kocevski/795742/ft2_4FGL_J1018.3-3124_daily_bin288.fits
Exposure map: /scratch/kocevski/795742/expmap_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.fits
Exposure cube: /scratch/kocevski/795742/ltcube_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/795742/Model_4FGL_J1018.3-3124_daily_bin288.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) = 6547.84288141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    26.156       1.0000         .10000E-03   10000.    
     3 'norm      '    15.689       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4269       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3175       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.955       1.0000         .10000E-03   10000.    
     9 'norm      '    .29697       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4240       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0277       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6547.835     FROM MIGRAD    STATUS=FAILED       721 CALLS     2383 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.583        .18142E-02** at limit **
   2  norm          26.159        10.741        .78329E-04   -.65604E-04
   3  norm          15.697        21.085        .10112E-03   -.11243E-05
   4  norm          .10000E-03    3.9685        .15739E-02** at limit **
   5  norm          4.4272        2.2223        .80749E-04   -.26483E-03
   6  norm          .10000E-03    5.1504        .17914E-02** at limit **
   7  Prefactor     1.3339        168.19        .38359E-03    .83578E-05
   8  Prefactor     23.966        22.842        .81843E-04   -.17225E-04
   9  norm          .25800        224.46        .46571E-02    .29089E-04
  10  norm          .10000E-03    4.6060        .16919E-02** at limit **
  11  Prefactor     .10001E-03    31.717        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.8513        .18142E-02** at limit **
  13  norm          .10000E-03    1.4126        .93731E-03** at limit **
  14  Prefactor     12.784        22.868        .11198E-03   -.10975E-03
  15  Prefactor     3.0210        6.4237        .23334E-03   -.17998E-03
  16  Prefactor     56.303        21.946        .53464E-04   -.69747E-04
  17  Prefactor     .25944        63.500        .34619E-02    .92753E-03
  18  Prefactor     2.4254        7.7657        .26287E-03   -.67986E-04
  19  Normalizat    1.0730        .35393        .41829E-03   -.10521E-03
  20  Prefactor     1.0276        .13400        .17576E-03   -.64512E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6547.835     FROM SIMPLEX   STATUS=UNCHANGED   1069 CALLS     3452 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.583        .46601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.159        10.741        .43802E-06   -1.4685    
   3  norm          15.697        21.085        .44215E-06   -1.4915    
   4  norm          .10000E-03    3.9685        .22830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4272        2.2223        .45567E-06   -1.5287    
   6  norm          .10000E-03    5.1504        .30460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3339        168.19        .60919E-06   -1.5477    
   8  Prefactor     23.966        22.842        .45192E-06   -1.4728    
   9  norm          .25800        224.46        .23866E-05   -1.5606    
  10  norm          .10000E-03    4.6060        .19033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    31.717        .59654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8513        .35930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4126        .70140E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.784        22.868        .45154E-06   -1.4993    
  15  Prefactor     3.0210        6.4237        .46609E-06   -1.5360    
  16  Prefactor     56.303        21.946        .43721E-06   -1.4206    
  17  Prefactor     .25944        63.500        .11466E-05   -1.5606    
  18  Prefactor     2.4254        7.7657        .48945E-06   -1.5396    
  19  Normalizat    1.0730        .35393        .30640E-06   -.90623    
  20  Prefactor     1.0276        .13400        .27913E-06   -.91816    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6547.835     FROM MIGRAD    STATUS=CONVERGED    278 CALLS     3730 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.583        .36285E-03** at limit **
   2  norm          26.159        10.737        .31332E-05    .72570E-06
   3  norm          15.697        21.079        .40448E-05    .22486E-06
   4  norm          .10000E-03    3.9686        .31478E-03** at limit **
   5  norm          4.4272        2.2208        .32300E-05    .14079E-05
   6  norm          .10000E-03    5.1508        .35828E-03** at limit **
   7  Prefactor     1.3338        166.52        .15344E-04    .44456E-06
   8  Prefactor     23.966        21.981        .32737E-05    .41673E-05
   9  norm          .25798        209.06        .18628E-03   -.61029E-07
  10  norm          .10000E-03    4.6064        .33837E-03** at limit **
  11  Prefactor     .10000E-03    31.737        .36285E-03** at limit **
  12  Prefactor     .10000E-03    8.8519        .36285E-03** at limit **
  13  norm          .10000E-03    1.4127        .18746E-03** at limit **
  14  Prefactor     12.784        22.844        .44791E-05    .30458E-05
  15  Prefactor     3.0210        6.4209        .93336E-05    .21925E-05
  16  Prefactor     56.303        21.935        .21385E-05    .10632E-05
  17  Prefactor     .25945        64.088        .69237E-03    .36961E-04
  18  Prefactor     2.4254        7.7647        .10515E-04    .51897E-06
  19  Normalizat    1.0730        .35167        .16732E-04    .27179E-05
  20  Prefactor     1.0276        .13404        .35151E-04    .38810E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 26.1592
  norm       = 15.6971
  norm       = 0.0001
  norm       = 4.42722
  norm       = 0.0001
  Prefactor  = 1.33379
  Prefactor  = 23.9659
  norm       = 0.25798
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7842
  Prefactor  = 3.02104
  Prefactor  = 56.3032
  Prefactor  = 0.259453
  Prefactor  = 2.42544
  Normalizat = 1.07302
  Prefactor  = 1.02758
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.835     FROM HESSE     STATUS=OK           273 CALLS     4003 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.583        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.159        10.745        .62663E-06   -1.4685    
   3  norm          15.697        21.078        .40448E-05   -1.4915    
   4  norm          .10000E-03    3.9686        .62956E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4272        2.2208        .64599E-06   -1.5287    
   6  norm          .10000E-03    5.1508        .71657E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3338        167.11        .30687E-05   -1.5477    
   8  Prefactor     23.966        21.966        .65474E-06   -1.4728    
   9  norm          .25798        207.44        .74514E-05   -1.5606    
  10  norm          .10000E-03    4.6065        .67675E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.737        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8519        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4127        .37493E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.784        22.862        .89582E-06   -1.4993    
  15  Prefactor     3.0210        6.4209        .18667E-05   -1.5360    
  16  Prefactor     56.303        21.918        .42771E-06   -1.4206    
  17  Prefactor     .25945        63.967        .13847E-03   -1.5606    
  18  Prefactor     2.4254        7.7648        .10515E-04   -1.5396    
  19  Normalizat    1.0730        .35143        .33463E-05   -.90623    
  20  Prefactor     1.0276        .13405        .70303E-05   -.91816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41772e-13
Minuit parameter uncertainties:
  1  1.34577e-07
  2  10.7456
  3  21.0877
  4  4.67133e-08
  5  2.22081
  6  1.35237e-07
  7  29.944
  8  21.9735
  9  14.6791
  10  3.99617e-08
  11  3.97377e-06
  12  2.91053e-07
  13  3.37565e-08
  14  22.8771
  15  6.42235
  16  21.9211
  17  8.15496
  18  7.76804
  19  0.352194
  20  0.134099
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.580e-01  1.468e+01  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:  1.028e+00  1.341e-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.073e+00  3.522e-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: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/795742/likelihoodResults_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.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) = 6547.83498706
delta logL = 7.18459887139e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6547.83498664
delta logL = 1.13969326776e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25798       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4672       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0276       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6547.835     FROM MIGRAD    STATUS=FAILED        93 CALLS      250 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25799        9944.4        .46867E-02    .68349E-04
   2  alpha         2.4762        3.7464        .16462       -.32852E-04
   3  Normalizat    1.0730        .26426        .41828E-03    .14949E-05
   4  Prefactor     1.0276        .91855E-01    .17576E-03    .16171E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6547.835     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      347 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25799        9944.4        .18220E-02    .68349E-04
   2  alpha         2.4762        3.7464        .58665E-03   -.32852E-04
   3  Normalizat    1.0730        .26426        .39527E-04    .14949E-05
   4  Prefactor     1.0276        .91855E-01    .77925E-05    .16171E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6547.835     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      381 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25793        200.04        .18747E-02    .30485E-04
   2  alpha         2.4762        2.9684        .32925E-01    .20358E-05
   3  Normalizat    1.0730        .31544        .16731E-04   -.10872E-05
   4  Prefactor     1.0276        .13000        .70303E-05   -.12937E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.257932
  alpha      = 2.47619
  Normalizat = 1.073
  Prefactor  = 1.02759
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.835     FROM HESSE     STATUS=OK            25 CALLS      406 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25793        171.76        .74988E-04   -1.5606    
   2  alpha         2.4762        2.6614        .13170E-02   -.95235E-02
   3  Normalizat    1.0730        .31531        .33463E-05   -.90624    
   4  Prefactor     1.0276        .13008        .14061E-05   -.91815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80418e-11
Minuit parameter uncertainties:
  1  13.348
  2  8.12942
  3  0.315865
  4  0.130123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/795742': 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) = 6547.83498603
delta logL = 1.74153774424e-06

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  2.579e-01  1.335e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.476e+00  8.129e+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:  1.028e+00  1.301e-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.073e+00  3.159e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/795742/cmap_HighResolution_313977601_314236801_4FGL_J1018.3-3124_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-01 17:13:25.819728', job_id='795742', GAL2='1.03', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630541605.82', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.74e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='288' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:13:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 795742: <4FGL_J1018.3-3124_daily_bin288> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin288> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 17:00:58 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:01:58 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:01:58 2021
Terminated at Wed Sep  1 17:13:26 2021
Results reported at Wed Sep  1 17:13:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin288 154.591 -31.4032 313977601 314236801 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            748 sec.

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

