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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin981
RA = 154.591, Dec = -31.4032
tmin = 493603201, tmax = 493862401
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='799151', job_status='RUN', time_executed='2021-09-01 17:12:36.786465', time_epoch_executed='1630541556.79' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799151

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799151/ft1_4FGL_J1018.3-3124_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799151/ft1_4FGL_J1018.3-3124_daily_bin981.fits outfile=/scratch/kocevski/799151/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin981.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=493603201.0 tmax=493862401.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799151/ft1_filtered_4FGL_J1018.3-3124_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/799151/ltcube_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.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/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits
.....................!
real 16.91
user 16.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799151/ft1_filtered_4FGL_J1018.3-3124_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/799151/ltcube_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.fits outfile=/scratch/kocevski/799151/expmap_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.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/799151/ltcube_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.fits
.....................!
real 193.67
user 188.64
sys 4.43

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/799151/ft1_filtered_4FGL_J1018.3-3124_daily_bin981.fits scfile=/scratch/kocevski/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits outfile=/scratch/kocevski/799151/cmap_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799151/ft1_filtered_4FGL_J1018.3-3124_daily_bin981.fits scfile=/scratch/kocevski/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits outfile=/scratch/kocevski/799151/cmap_HighResolution_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799151/ft1_filtered_4FGL_J1018.3-3124_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/799151/ft2_4FGL_J1018.3-3124_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799151/Model_4FGL_J1018.3-3124_daily_bin981.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/799151/ft1_filtered_4FGL_J1018.3-3124_daily_bin981.fits.....................!
real 78.34
user 76.82
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.035       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5993       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4122       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6659       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .88817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.104       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.076       1.0000         .10000E-03   10000.    
    13 'norm      '    .72742       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.314       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5344       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98389       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=   6728.979     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2125 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.028        46.085       -.14490E-04    .15088E-04
   2  norm          7.5972        9.4932       -.65466E-05   -.38474E-04
   3  norm          8.4012        22.186        .85897E-05   -.12082E-04
   4  norm          .10000E-03    4.9951       -.10753E-07** at limit **
   5  norm          1.6657        1.5877       -.15228E-06   -.32136E-03
   6  norm          .10000E-03    4.7727       -.13194E-06** at limit **
   7  Prefactor     .48760        45.995       -.26775E-05    .27681E-04
   8  Prefactor     .10000E-03    61.585        .71236E-06** at limit **
   9  norm          16.123        13.662        .28117E-06    .11231E-03
  10  norm          8.5302        11.129        .17556E-05   -.95233E-05
  11  Prefactor     .10000E-03    41.426       -.83458E-06** at limit **
  12  Prefactor     52.089        38.499       -.42809E-05    .56778E-05
  13  norm          .72507        5.0201        .20671E-06   -.23045E-04
  14  Prefactor     .10000E-03    20.920        .28945E-06** at limit **
  15  Prefactor     .10000E-03    1.9608        .46591E-07** at limit **
  16  Prefactor     14.311        13.856       -.55965E-06   -.13234E-04
  17  Prefactor     .10000E-03    9.2615       -.33449E-07** at limit **
  18  Prefactor     .10000E-03    4.6425        .50773E-07** at limit **
  19  Normalizat    1.5347        .29526        .39276E-05    .45699E-04
  20  Prefactor     .98399        .11540       -.25711E-06    .32803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0282
  norm       = 7.59725
  norm       = 8.40117
  norm       = 0.0001
  norm       = 1.66566
  norm       = 0.0001
  Prefactor  = 0.487597
  Prefactor  = 0.0001
  norm       = 16.1226
  norm       = 8.53018
  Prefactor  = 0.0001
  Prefactor  = 52.0887
  norm       = 0.725067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53467
  Prefactor  = 0.983992
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.979     FROM HESSE     STATUS=OK           303 CALLS     2428 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.028        46.027        .85330E-04   -1.4769    
   2  norm          7.5972        9.5326        .14547E-03   -1.5157    
   3  norm          8.4012        22.183        .13822E-03   -1.5128    
   4  norm          .10000E-03    5.0027        .17905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6657        1.5804        .97240E-04   -1.5450    
   6  norm          .10000E-03    4.7787        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .48760        58.070        .13306       -1.5568    
   8  Prefactor     .10000E-03    64.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.123        13.662        .99806E-04   -1.4905    
  10  norm          8.5302        11.101        .13725E-03   -1.5124    
  11  Prefactor     .10000E-03    42.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.089        42.088        .55577E-04   -1.4263    
  13  norm          .72507        18.333        .26384E-02   -1.5538    
  14  Prefactor     .10000E-03    21.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9660        .11210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.311        13.889        .10586E-03   -1.4951    
  17  Prefactor     .10000E-03    9.4010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6546        .17261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5347        .34414        .37815E-03   -.76809    
  20  Prefactor     .98399        .13513        .18776E-03   -.93265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53453e-08
Minuit parameter uncertainties:
  1  46.1012
  2  9.53454
  3  22.2043
  4  6.28524e-06
  5  1.58041
  6  8.9201e-06
  7  10.6518
  8  0.000123451
  9  13.6642
  10  11.1034
  11  2.23158e-05
  12  42.1125
  13  7.29374
  14  2.79696e-05
  15  1.01513e-05
  16  13.8926
  17  2.57121e-05
  18  5.62541e-06
  19  0.34467
  20  0.13518
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.612e+01  1.366e+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:  9.840e-01  1.352e-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.535e+00  3.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.68e-05

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) = 6728.73320436
delta logL = 0.245753612846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6728.7236389
delta logL = 0.255319073663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.312       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8744       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97889       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=   6728.724     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.285        12.852        .26469E-02   -.44850E-03
   2  alpha         1.8735        .64216        .42911       -.63773E-05
   3  Normalizat    1.5628        .27621        .84834E-01   -.20413E-03
   4  Prefactor     .97898        .11325        .46003E-01   -.49359E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2847
  alpha      = 1.8735
  Normalizat = 1.56278
  Prefactor  = 0.978983
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.724     FROM HESSE     STATUS=OK            27 CALLS      238 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.285        14.918        .10587E-03   -1.4952    
   2  alpha         1.8735        .85089        .21008E-01   -.25330    
   3  Normalizat    1.5628        .32108        .37555E-03   -.76029    
   4  Prefactor     .97898        .13161        .18824E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4285e-10
Minuit parameter uncertainties:
  1  14.9219
  2  0.869471
  3  0.321504
  4  0.131655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799151': 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) = 6728.72363705
delta logL = 0.25532092991

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.428e+01  1.492e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  1.874e+00  8.695e-01  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:  9.790e-01  1.317e-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.563e+00  3.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 1.87 +/- 0.87
Photon Flux (Free Index): 3.63e-08 +/- 5.19e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/799151/cmap_HighResolution_493603201_493862401_4FGL_J1018.3-3124_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='2.04e-05', photon_flux_error='5.74e-08', dlogl='2.55e-01', energy_flux='1.98e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-01 17:22:51.436597', photon_index_error2='0.87', photon_index2='1.87', ts='5.13', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.53', time_epoch_completed='1630542171.44', return_code='0', job_id='799151', GAL2='0.98', EG2='1.56', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.19e-08', ts2='5.64', photon_index='2.46' WHERE bin_id='981' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:22:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 799151: <4FGL_J1018.3-3124_daily_bin981> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin981> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:10:42 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:12:24 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:12:24 2021
Terminated at Wed Sep  1 17:22:52 2021
Results reported at Wed Sep  1 17:22:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin981 154.591 -31.4032 493603201 493862401 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 :                                   613.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            730 sec.

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

