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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1330
RA = 154.591, Dec = -31.4032
tmin = 584064001, tmax = 584323201
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='801892', job_status='RUN', time_executed='2021-09-01 17:22:18.936533', time_epoch_executed='1630542138.94' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801892/ft1_4FGL_J1018.3-3124_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801892/ft1_4FGL_J1018.3-3124_daily_bin1330.fits outfile=/scratch/kocevski/801892/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1330.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=584064001.0 tmax=584323201.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 4.56
user 4.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801892/ft1_filtered_4FGL_J1018.3-3124_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/801892/ltcube_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.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/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits
.....................!
real 15.41
user 15.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801892/ft1_filtered_4FGL_J1018.3-3124_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/801892/ltcube_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.fits outfile=/scratch/kocevski/801892/expmap_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.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/801892/ltcube_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.fits
.....................!
real 191.08
user 186.12
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/801892/ft1_filtered_4FGL_J1018.3-3124_daily_bin1330.fits scfile=/scratch/kocevski/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits outfile=/scratch/kocevski/801892/cmap_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.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.60
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801892/ft1_filtered_4FGL_J1018.3-3124_daily_bin1330.fits scfile=/scratch/kocevski/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits outfile=/scratch/kocevski/801892/cmap_HighResolution_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801892/ft1_filtered_4FGL_J1018.3-3124_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/801892/ft2_4FGL_J1018.3-3124_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801892/Model_4FGL_J1018.3-3124_daily_bin1330.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/801892/ft1_filtered_4FGL_J1018.3-3124_daily_bin1330.fits.....................!
real 81.31
user 79.83
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8048       1.0000         .10000E-03   10000.    
     3 'norm      '    11.784       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5286       1.0000         .10000E-03   10000.    
     5 'norm      '    11.490       1.0000         .10000E-03   10000.    
     6 'norm      '    18.272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21441E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.164       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.725       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15960E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83891       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2375       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=   7324.100     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1801 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    35.091       -.52379E-05** at limit **
   2  norm          5.8038        10.572        .41830E-06    .41795E-03
   3  norm          11.791        16.900       -.25122E-06   -.41897E-04
   4  norm          5.5280        6.4160        .17065E-06    .64678E-04
   5  norm          11.490        3.0145        .14700E-07    .27260E-04
   6  norm          18.262        13.908        .11073E-06    .27844E-04
   7  Prefactor     .10000E-03    176.27        .68867E-05** at limit **
   8  Prefactor     .10000E-03    8.7866        .14620E-06** at limit **
   9  norm          15.153        14.198        .57300E-06    .12918E-03
  10  norm          7.8673        9.8944        .40381E-06    .13926E-03
  11  Prefactor     .10000E-03    11.525       -.25052E-06** at limit **
  12  Prefactor     .10000E-03    37.668        .42079E-05** at limit **
  13  norm          12.726        7.1877        .63897E-06    .38027E-03
  14  Prefactor     14.691        18.002        .10742E-06   -.13094E-04
  15  Prefactor     17.636        9.8081        .46078E-07    .19834E-03
  16  Prefactor     1.8750        19.811        .41008E-05    .62556E-03
  17  Prefactor     .10173E-03    35.969        .72830E-05** at limit **
  18  Prefactor     .10000E-03    2.9039        .75232E-07** at limit **
  19  Normalizat    .83871        .33207        .10156E-05    .11992E-05
  20  Prefactor     1.2376        .12897       -.48471E-06    .25260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 5.80376
  norm       = 11.7907
  norm       = 5.52797
  norm       = 11.4899
  norm       = 18.262
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 15.1527
  norm       = 7.86727
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 12.7257
  Prefactor  = 14.6909
  Prefactor  = 17.6365
  Prefactor  = 1.87503
  Prefactor  = 0.00010173
  Prefactor  = 0.0001
  Normalizat = 0.838708
  Prefactor  = 1.23757
 **********
 **   18 **HESSE 
 **********

 FCN=   7324.100     FROM HESSE     STATUS=OK           307 CALLS     2108 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    36.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8038        10.673        .83348E-03   -1.5226    
   3  norm          11.791        16.941        .11670E-03   -1.5021    
   4  norm          5.5280        6.4182        .17087E-03   -1.5238    
   5  norm          11.490        3.0152        .72883E-04   -1.5030    
   6  norm          18.262        13.904        .93699E-04   -1.4853    
   7  Prefactor     .10000E-03    179.66        .36519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.153        14.161        .10286E-03   -1.4929    
  10  norm          7.8673        9.8785        .14295E-03   -1.5147    
  11  Prefactor     .10000E-03    11.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.726        7.2074        .11229E-03   -1.4994    
  14  Prefactor     14.691        17.994        .10450E-03   -1.4941    
  15  Prefactor     17.636        9.9018        .95385E-04   -1.4868    
  16  Prefactor     1.8750        23.949        .15211E-02   -1.5434    
  17  Prefactor     .10173E-03    9.3423        .70397E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9053        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83871        .35744        .50753E-03   -.98649    
  20  Prefactor     1.2376        .14051        .17730E-03   -.85183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4764e-09
Minuit parameter uncertainties:
  1  0.000893544
  2  10.6762
  3  16.9475
  4  6.41899
  5  3.01527
  6  13.9064
  7  0.00147389
  8  2.74539e-06
  9  14.164
  10  9.88052
  11  5.35275e-05
  12  0.000476074
  13  7.20788
  14  18.0009
  15  9.90277
  16  13.4084
  17  0.00804077
  18  3.24853e-06
  19  0.358449
  20  0.140555
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.515e+01  1.416e+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.238e+00  1.406e-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.387e-01  3.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 154.591 -31.403
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 5.95e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/801892/likelihoodResults_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.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) = 7323.83700467
delta logL = 0.262861756284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7323.81773086
delta logL = 0.282135558854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.098       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6945       1.0000          .0000       5.0000    
     3 'Normalizat'    .88005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2288       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=   7323.818     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.085        12.038        .28792E-02    .34037E-04
   2  alpha         1.6941        .64511        .44243       -.36930E-04
   3  Normalizat    .88018        .30057        .11202        .11021E-03
   4  Prefactor     1.2287        .12512        .33984E-01   -.20706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0849
  alpha      = 1.69407
  Normalizat = 0.880176
  Prefactor  = 1.22874
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.818     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.085        16.798        .11517E-03   -1.5013    
   2  alpha         1.6941        1.0453        .22922E-01   -.32823    
   3  Normalizat    .88018        .32912        .49666E-03   -.97160    
   4  Prefactor     1.2287        .13704        .17788E-03   -.85451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12595e-09
Minuit parameter uncertainties:
  1  16.8042
  2  1.08266
  3  0.32987
  4  0.137083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801892': 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) = 7323.81773048
delta logL = 0.28213594209

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.208e+01  1.680e+01  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  1.694e+00  1.083e+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.229e+00  1.371e-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.802e-01  3.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 154.591 -31.403
Photon Index (Free Index): 1.69 +/- 1.08
Photon Flux (Free Index): 2.77e-08 +/- 4.99e-08
Energy Flux (Free Index): 2.07e-05 +/- 2.19e-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/801892/cmap_HighResolution_584064001_584323201_4FGL_J1018.3-3124_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='2.07e-05', photon_flux_error='5.95e-08', dlogl='2.82e-01', energy_flux='1.86e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-01 17:33:30.802835', photon_index_error2='1.08', photon_index2='1.69', ts='2.09', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='2.19e-05', EG='0.84', time_epoch_completed='1630542810.8', return_code='0', job_id='801892', GAL2='1.23', EG2='0.88', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.99e-08', ts2='2.65', photon_index='2.46' WHERE bin_id='1330' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:33:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 801892: <4FGL_J1018.3-3124_daily_bin1330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1330 154.591 -31.4032 584064001 584323201 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 :                                   667.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            783 sec.

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

