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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1196
RA = 154.591, Dec = -31.4032
tmin = 549331201, tmax = 549590401
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='800544', job_status='RUN', time_executed='2021-09-01 17:16:45.291425', time_epoch_executed='1630541805.29' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800544/ft1_4FGL_J1018.3-3124_daily_bin1196.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800544/ft1_4FGL_J1018.3-3124_daily_bin1196.fits outfile=/scratch/kocevski/800544/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1196.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=549331201.0 tmax=549590401.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.89
user 2.68
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800544/ft1_filtered_4FGL_J1018.3-3124_daily_bin1196.fits" evtable="EVENTS" scfile=/scratch/kocevski/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits sctable="SC_DATA" outfile=/scratch/kocevski/800544/ltcube_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.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/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits
.....................!
real 17.54
user 17.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800544/ft1_filtered_4FGL_J1018.3-3124_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits sctable="SC_DATA" expcube=/scratch/kocevski/800544/ltcube_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.fits outfile=/scratch/kocevski/800544/expmap_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.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/800544/ltcube_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.fits
.....................!
real 192.48
user 187.34
sys 4.74

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/800544/ft1_filtered_4FGL_J1018.3-3124_daily_bin1196.fits scfile=/scratch/kocevski/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits outfile=/scratch/kocevski/800544/cmap_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800544/ft1_filtered_4FGL_J1018.3-3124_daily_bin1196.fits scfile=/scratch/kocevski/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits outfile=/scratch/kocevski/800544/cmap_HighResolution_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/800544/ft1_filtered_4FGL_J1018.3-3124_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/800544/ft2_4FGL_J1018.3-3124_daily_bin1196.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/800544/Model_4FGL_J1018.3-3124_daily_bin1196.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/800544/ft1_filtered_4FGL_J1018.3-3124_daily_bin1196.fits.....................!
real 120.29
user 118.77
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3647       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0023       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5653       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3811       1.0000         .10000E-03   10000.    
     6 'norm      '    12.813       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19290E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0110       1.0000         .10000E-03   10000.    
    13 'norm      '    8.0876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.421       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88677       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=   11149.36     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1836 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3384        19.983       -.38983E-05    .19983E-04
   2  norm          .99988        2.6677        .85189E-06    .26315E-03
   3  norm          .10000E-03    7.1783       -.64293E-07** at limit **
   4  norm          2.5652        4.1126        .15549E-05   -.38112E-04
   5  norm          1.3805        1.3021        .74298E-07   -.55588E-04
   6  norm          12.814        8.5702        .40711E-06    .35247E-04
   7  Prefactor     .10000E-03    12.033       -.92708E-07** at limit **
   8  Prefactor     .10001E-03    5.9138       -.85755E-06** at limit **
   9  norm          .10000E-03    6.6989        .30154E-06** at limit **
  10  norm          10.732        7.1563       -.39700E-06    .48103E-04
  11  Prefactor     .10013E-03    8.3580        .10802E-06** at limit **
  12  Prefactor     9.0085        15.277       -.52037E-06   -.23563E-04
  13  norm          8.0900        3.9922        .27596E-06   -.19274E-03
  14  Prefactor     7.6086        12.004       -.12020E-05   -.12060E-03
  15  Prefactor     .10000E-03    1.9576       -.60887E-08** at limit **
  16  Prefactor     13.408        9.0701        .12733E-06   -.12205E-04
  17  Prefactor     3.6003        4.0217        .20141E-05   -.61159E-04
  18  Prefactor     13.419        9.2381        .10707E-06    .19682E-05
  19  Normalizat    1.3658        .19908       -.75302E-06   -.86821E-04
  20  Prefactor     .88665        .79399E-01    .19604E-06   -.13429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33842
  norm       = 0.999881
  norm       = 0.0001
  norm       = 2.56517
  norm       = 1.3805
  norm       = 12.8138
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 10.7325
  Prefactor  = 0.000100127
  Prefactor  = 9.00847
  norm       = 8.09004
  Prefactor  = 7.6086
  Prefactor  = 0.0001
  Prefactor  = 13.4079
  Prefactor  = 3.60027
  Prefactor  = 13.419
  Normalizat = 1.36577
  Prefactor  = 0.886652
 **********
 **   18 **HESSE 
 **********

 FCN=   11149.36     FROM HESSE     STATUS=OK           311 CALLS     2147 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3384        19.915        .13096E-03   -1.5097    
   2  norm          .99988        2.7371        .27119E-02   -1.5508    
   3  norm          .10000E-03    7.2106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5652        4.0996        .12744E-02   -1.5388    
   5  norm          1.3805        1.2939        .11022E-03   -1.5473    
   6  norm          12.814        8.5514        .11190E-03   -1.4992    
   7  Prefactor     .10000E-03    12.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    29.196        .49100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.8099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.732        7.1339        .12229E-03   -1.5053    
  11  Prefactor     .10013E-03    9.8574        .84801E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0085        15.227        .13352E-03   -1.5108    
  13  norm          8.0900        3.9809        .63139E-03   -1.5139    
  14  Prefactor     7.6086        12.087        .14567E-03   -1.5156    
  15  Prefactor     .10000E-03    1.9855        .14390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.408        9.0883        .10937E-03   -1.4975    
  17  Prefactor     3.6003        4.0263        .10647E-02   -1.5328    
  18  Prefactor     13.419        9.2380        .10933E-03   -1.4975    
  19  Normalizat    1.3658        .23246        .33925E-03   -.81624    
  20  Prefactor     .88665        .93023E-01    .17494E-03   -.96609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98513e-10
Minuit parameter uncertainties:
  1  19.9296
  2  2.73743
  3  7.7047e-06
  4  4.10008
  5  1.29393
  6  8.55224
  7  4.02074e-06
  8  0.000909855
  9  3.82007e-05
  10  7.13443
  11  0.00223769
  12  15.2338
  13  3.981
  14  12.0911
  15  1.02799e-06
  16  9.08927
  17  4.02659
  18  9.23896
  19  0.232641
  20  0.0930393
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.867e-01  9.304e-02  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.366e+00  2.326e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/800544/likelihoodResults_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.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) = 11149.3609064
delta logL = -0.000700125288859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11149.3602092
delta logL = -2.9068251024e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4643       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88655       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=   11149.36     FROM MIGRAD    STATUS=FAILED        88 CALLS      234 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    1410.6        .18142E-02** at limit **
   2  alpha         2.5033        3.7287        .16463       -.12665E-05
   3  Normalizat    1.3658        .12885        .33925E-03   -.50937E-04
   4  Prefactor     .88665        .55244E-01    .17494E-03   -.76813E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11149.36     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      395 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    1410.6        .41109E-03** at limit **
   2  alpha         2.5033        3.7287        .71411E-05   -.12665E-05
   3  Normalizat    1.3658        .12885        .42192E-06   -.50937E-04
   4  Prefactor     .88665        .55244E-01    .25633E-06   -.76813E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11149.36     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      426 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8555        .36285E-03** at limit **
   2  alpha         2.5475        3.5952        .65851E-02   -.27623E-08
   3  Normalizat    1.3658        .21283        .13570E-04    .36192E-04
   4  Prefactor     .88665        .91328E-01    .69976E-05    .74084E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.54745
  Normalizat = 1.36577
  Prefactor  = 0.886652
 **********
 **   18 **HESSE 
 **********

 FCN=   11149.36     FROM HESSE     STATUS=OK            23 CALLS      449 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8545        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5475        3.5137        .13170E-02    .18981E-01
   3  Normalizat    1.3658        .21309        .27140E-05   -.81624    
   4  Prefactor     .88665        .91436E-01    .13995E-05   -.96609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8169e-12
Minuit parameter uncertainties:
  1  3.37641e-06
  2  295.998
  3  0.21323
  4  0.0914518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800544': 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) = 11149.3602062
delta logL = 4.28553903475e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.867e-01  9.145e-02  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.366e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/800544/cmap_HighResolution_549331201_549590401_4FGL_J1018.3-3124_daily_bin1196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-01 17:31:47.081739', job_id='800544', GAL2='0.89', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630542707.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1196' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 800544: <4FGL_J1018.3-3124_daily_bin1196> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1196> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:15:24 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:15:56 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:15:56 2021
Terminated at Wed Sep  1 17:31:47 2021
Results reported at Wed Sep  1 17:31:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1196 154.591 -31.4032 549331201 549590401 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 :                                   900.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            983 sec.

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

