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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1364
RA = 154.591, Dec = -31.4032
tmin = 592876801, tmax = 593136001
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='801942', job_status='RUN', time_executed='2021-09-01 17:21:55.960456', time_epoch_executed='1630542115.96' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801942

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801942/ft1_4FGL_J1018.3-3124_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801942/ft1_4FGL_J1018.3-3124_daily_bin1364.fits outfile=/scratch/kocevski/801942/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1364.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=592876801.0 tmax=593136001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.83
user 3.61
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.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/801942/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1364.fits evtable="EVENTS" outfile="/scratch/kocevski/801942/ft1_filtered_4FGL_J1018.3-3124_daily_bin1364.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801942/ft1_filtered_4FGL_J1018.3-3124_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/801942/ltcube_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.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/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.fits
.....................!
real 14.17
user 13.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801942/ft1_filtered_4FGL_J1018.3-3124_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/801942/ltcube_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.fits outfile=/scratch/kocevski/801942/expmap_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.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/801942/ltcube_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.fits
.....................!
real 193.36
user 188.75
sys 4.23

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/801942/ft1_filtered_4FGL_J1018.3-3124_daily_bin1364.fits scfile=/scratch/kocevski/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.fits outfile=/scratch/kocevski/801942/cmap_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801942/ft1_filtered_4FGL_J1018.3-3124_daily_bin1364.fits scfile=/scratch/kocevski/801942/ft2_4FGL_J1018.3-3124_daily_bin1364.fits outfile=/scratch/kocevski/801942/cmap_HighResolution_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10471E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3196       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9088       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.5196       1.0000         .10000E-03   10000.    
    10 'norm      '    9.3719       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6864       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.605       1.0000         .10000E-03   10000.    
    13 'norm      '    .19334       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95318       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.954       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0008       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0152       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88154       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0919       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=   8701.681     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2134 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.111       -.16114E-07** at limit **
   2  norm          .10000E-03    3.5502        .25086E-06** at limit **
   3  norm          .10000E-03    8.6234        .55794E-08** at limit **
   4  norm          .10000E-03    2.3445        .44786E-08** at limit **
   5  norm          1.3199        1.4353        .26491E-06    .11818E-03
   6  norm          3.9104        7.9235        .67387E-06    .40012E-04
   7  Prefactor     5.5610        28.358        .83385E-06    .21428E-05
   8  Prefactor     .10000E-03    4.2802        .12617E-07** at limit **
   9  norm          9.5195        14.768       -.78574E-07   -.95681E-05
  10  norm          9.3720        10.786        .27114E-07   -.16584E-04
  11  Prefactor     1.6916        74.921        .20976E-05    .65451E-04
  12  Prefactor     34.612        24.212        .36888E-06    .31294E-03
  13  norm          .18375        3.7585       -.10059E-05    .81521E-03
  14  Prefactor     17.384        25.591       -.12508E-05   -.70927E-04
  15  Prefactor     .96111        4.5791        .11730E-05    .36541E-04
  16  Prefactor     12.949        12.408       -.98970E-06   -.19616E-03
  17  Prefactor     9.0006        7.9054        .87177E-06   -.60409E-05
  18  Prefactor     5.0157        5.9016       -.15191E-06   -.75760E-04
  19  Normalizat    .88172        .25495       -.32436E-05   -.94161E-04
  20  Prefactor     1.0918        .96927E-01    .38631E-06   -.35394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.31991
  norm       = 3.91039
  Prefactor  = 5.56101
  Prefactor  = 0.0001
  norm       = 9.51946
  norm       = 9.37203
  Prefactor  = 1.69158
  Prefactor  = 34.612
  norm       = 0.183752
  Prefactor  = 17.3842
  Prefactor  = 0.961111
  Prefactor  = 12.9485
  Prefactor  = 9.00057
  Prefactor  = 5.01574
  Normalizat = 0.881717
  Prefactor  = 1.0918
 **********
 **   18 **HESSE 
 **********

 FCN=   8701.681     FROM HESSE     STATUS=OK           305 CALLS     2439 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    30.201        .33889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.6647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3453        .13949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3199        1.4217        .10945E-03   -1.5478    
   6  norm          3.9104        7.9134        .20407E-03   -1.5312    
   7  Prefactor     5.5610        28.202        .17038E-03   -1.5236    
   8  Prefactor     .10000E-03    4.2818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.5195        14.608        .12989E-03   -1.5091    
  10  norm          9.3720        10.699        .13091E-03   -1.5096    
  11  Prefactor     1.6916        68.361        .32425E-03   -1.5448    
  12  Prefactor     34.612        28.843        .68122E-04   -1.4531    
  13  norm          .18375        44.506        .25671E-02   -1.5622    
  14  Prefactor     17.384        24.636        .96048E-04   -1.4874    
  15  Prefactor     .96111        14.402        .28184E-02   -1.5512    
  16  Prefactor     12.949        12.592        .11129E-03   -1.4988    
  17  Prefactor     9.0006        7.8335        .66797E-03   -1.5108    
  18  Prefactor     5.0157        5.8999        .17956E-03   -1.5260    
  19  Normalizat    .88172        .27864        .41688E-03   -.97106    
  20  Prefactor     1.0918        .10856        .16341E-03   -.89729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14399e-08
Minuit parameter uncertainties:
  1  9.36831e-06
  2  0.000104057
  3  8.06531e-06
  4  8.13481e-07
  5  1.42171
  6  7.91547
  7  25.0648
  8  1.46693e-06
  9  14.6131
  10  10.7009
  11  21.5328
  12  28.8549
  13  5.72221
  14  24.6506
  15  7.44281
  16  12.5946
  17  7.83437
  18  5.90061
  19  0.279099
  20  0.108587
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  9.519e+00  1.461e+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.092e+00  1.086e-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:  8.817e-01  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 154.591 -31.403
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/801942/likelihoodResults_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.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) = 8701.12883898
delta logL = 0.552326555011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8701.12564934
delta logL = 0.555516196084

Fit tolerance = 1e-08

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

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

 FCN=   8701.126     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4292        111.19        .39556E-02    .42195E-03
   2  alpha         3.4449        4.1510        .45674        .65401E-04
   3  Normalizat    .82883        .75098E-01    .96696E-01    .23929E-04
   4  Prefactor     1.1046        .31874E-01    .37410E-01   -.29912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.42918
  alpha      = 3.44489
  Normalizat = 0.828832
  Prefactor  = 1.10464
 **********
 **   18 **HESSE 
 **********

 FCN=   8701.126     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4292        10.899        .15822E-03   -1.5201    
   2  alpha         3.4449        1.1626        .19622E-01    .38759    
   3  Normalizat    .82883        .25193        .42843E-03   -.99008    
   4  Prefactor     1.1046        .10689        .16249E-03   -.89318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42773e-11
Minuit parameter uncertainties:
  1  10.9019
  2  1.21804
  3  0.252282
  4  0.106909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801942': 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) = 8701.12564838
delta logL = 0.555517157096

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  6.429e+00  1.090e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  3.445e+00  1.218e+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.105e+00  1.069e-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:  8.288e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 3.44 +/- 1.22
Photon Flux (Free Index): 8.66e-08 +/- 7.18e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.34e-05

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/801942/cmap_HighResolution_592876801_593136001_4FGL_J1018.3-3124_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-05', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='5.56e-01', photon_flux2='8.66e-08', job_status='DONE', time_completed='2021-09-01 17:34:52.751574', photon_index_error2='1.22', photon_index2='3.44', ts='0.70', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.34e-05', EG='0.88', time_epoch_completed='1630542892.75', return_code='0', job_id='801942', GAL2='1.10', EG2='0.83', return_code2='0', photon_flux_error2='7.18e-08', ts2='1.90', photon_index='2.46' WHERE bin_id='1364' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 801942: <4FGL_J1018.3-3124_daily_bin1364> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1364> 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) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:20:46 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:46 2021
Terminated at Wed Sep  1 17:34:53 2021
Results reported at Wed Sep  1 17:34:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1364 154.591 -31.4032 592876801 593136001 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            862 sec.

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

