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


Performing analysis on: 4FGL_J1018.3-3124_daily_bin1279
RA = 154.591, Dec = -31.4032
tmin = 570844801, tmax = 571104001
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='801819', job_status='RUN', time_executed='2021-09-01 17:22:34.633394', time_epoch_executed='1630542154.63' WHERE source_name='4FGL J1018.3-3124' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801819

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801819/ft1_4FGL_J1018.3-3124_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801819/ft1_4FGL_J1018.3-3124_daily_bin1279.fits outfile=/scratch/kocevski/801819/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1279.fits ra=154.591 dec=-31.4032 rad=12.0 tmin=570844801.0 tmax=571104001.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.05
user 2.82
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.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/801819/ft1_filteredMKT_4FGL_J1018.3-3124_daily_bin1279.fits evtable="EVENTS" outfile="/scratch/kocevski/801819/ft1_filtered_4FGL_J1018.3-3124_daily_bin1279.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/801819/ft1_filtered_4FGL_J1018.3-3124_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/801819/ltcube_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.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/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.fits
.....................!
real 16.80
user 16.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801819/ft1_filtered_4FGL_J1018.3-3124_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/801819/ltcube_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.fits outfile=/scratch/kocevski/801819/expmap_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.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/801819/ltcube_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.fits
.....................!
real 191.28
user 186.63
sys 4.19

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/801819/ft1_filtered_4FGL_J1018.3-3124_daily_bin1279.fits scfile=/scratch/kocevski/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.fits outfile=/scratch/kocevski/801819/cmap_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801819/ft1_filtered_4FGL_J1018.3-3124_daily_bin1279.fits scfile=/scratch/kocevski/801819/ft2_4FGL_J1018.3-3124_daily_bin1279.fits outfile=/scratch/kocevski/801819/cmap_HighResolution_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8204       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7517       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0898       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0029       1.0000         .10000E-03   10000.    
     6 'norm      '    18.962       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39029       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10990E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.641       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0329       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3102       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5013       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80028       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=   8359.548     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1754 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.744        .71708E-06** at limit **
   2  norm          1.8214        5.9980        .53885E-06   -.11888E-03
   3  norm          3.7471        17.429        .31147E-05   -.45461E-04
   4  norm          4.0899        8.3698        .77425E-07   -.21882E-04
   5  norm          1.0035        1.7762        .11453E-06    .92593E-04
   6  norm          18.961        11.553        .16042E-05    .17330E-03
   7  Prefactor     .10000E-03    26.295       -.94749E-05** at limit **
   8  Prefactor     .42676        51.837        .44000E-04    .33959E-04
   9  norm          .10000E-03    3.5499        .17896E-07** at limit **
  10  norm          3.2882        8.0222        .21289E-06   -.58346E-05
  11  Prefactor     24.381        20.409       -.18608E-05   -.38622E-04
  12  Prefactor     .10000E-03    8.9438       -.16030E-06** at limit **
  13  norm          9.9304        4.6949       -.10278E-06   -.21516E-03
  14  Prefactor     .10000E-03    14.686        .17308E-05** at limit **
  15  Prefactor     .50706        4.3041        .13306E-05   -.25482E-03
  16  Prefactor     16.642        12.378       -.37993E-06   -.18496E-03
  17  Prefactor     1.0396        6.4724        .18026E-05    .15721E-04
  18  Prefactor     2.3099        2.7469        .60190E-06   -.17700E-02
  19  Normalizat    1.5008        .24153       -.80329E-06    .16351E-05
  20  Prefactor     .80043        .89270E-01    .99914E-07    .59796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.82138
  norm       = 3.74714
  norm       = 4.08985
  norm       = 1.00346
  norm       = 18.9614
  Prefactor  = 0.0001
  Prefactor  = 0.426755
  norm       = 0.0001
  norm       = 3.28822
  Prefactor  = 24.381
  Prefactor  = 0.0001
  norm       = 9.93037
  Prefactor  = 0.000100001
  Prefactor  = 0.507057
  Prefactor  = 16.6423
  Prefactor  = 1.03965
  Prefactor  = 2.30993
  Normalizat = 1.50078
  Prefactor  = 0.800426
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.548     FROM HESSE     STATUS=OK           305 CALLS     2059 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8214        6.0047        .30950E-03   -1.5438    
   3  norm          3.7471        17.468        .20845E-03   -1.5321    
   4  norm          4.0899        8.3566        .19935E-03   -1.5303    
   5  norm          1.0035        1.5141        .15532E-02   -1.5508    
   6  norm          18.961        11.553        .91977E-04   -1.4837    
   7  Prefactor     .10000E-03    26.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42676        50.957        .49089E-02   -1.5577    
   9  norm          .10000E-03    3.5535        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2882        8.0124        .22331E-03   -1.5345    
  11  Prefactor     24.381        20.466        .81129E-04   -1.4720    
  12  Prefactor     .10000E-03    8.9683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9304        4.6734        .12716E-03   -1.5078    
  14  Prefactor     .10000E-03    14.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50706        4.4629        .36162E-03   -1.5566    
  16  Prefactor     16.642        12.350        .98180E-04   -1.4892    
  17  Prefactor     1.0396        18.474        .43903E-02   -1.5504    
  18  Prefactor     2.3099        5.8698        .13497E-02   -1.5404    
  19  Normalizat    1.5008        .28328        .34604E-03   -.77756    
  20  Prefactor     .80043        .10523        .17693E-03   -.99713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7915e-09
Minuit parameter uncertainties:
  1  4.30052e-05
  2  6.00672
  3  16.1885
  4  8.35898
  5  1.51412
  6  11.5544
  7  0.000120439
  8  9.33359
  9  2.18459e-05
  10  8.01503
  11  20.4722
  12  8.31178e-07
  13  4.67362
  14  0.000211963
  15  3.00863
  16  12.3522
  17  8.76778
  18  5.87125
  19  0.283575
  20  0.105254
Done.

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

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  2.185e-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.004e-01  1.053e-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.501e+00  2.836e-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: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/801819/likelihoodResults_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8359.54886135
delta logL = -0.00133932334938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8359.54752202
delta logL = 9.66247171164e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4534       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80041       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=   8359.548     FROM MIGRAD    STATUS=FAILED        89 CALLS      235 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    801.57        .16854E-02** at limit **
   2  alpha         2.1643        3.4785        .16464       -.37011E-07
   3  Normalizat    1.5008        .16532        .34604E-03    .12859E-03
   4  Prefactor     .80042        .64516E-01    .17693E-03    .27465E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8359.548     FROM SIMPLEX   STATUS=UNCHANGED    196 CALLS      431 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    801.57        .28491E-03** at limit **
   2  alpha         2.1643        3.4785        .51702E-06   -.37011E-07
   3  Normalizat    1.5008        .16532        .35225E-07    .12859E-03
   4  Prefactor     .80042        .64516E-01    .28787E-08    .27465E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8359.548     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      459 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7218        .33708E-03** at limit **
   2  alpha         2.1667        3.6221        .65857E-02    .49026E-07
   3  Normalizat    1.5008        .25950        .13841E-04    .12879E-03
   4  Prefactor     .80042        .10131        .35386E-04    .27463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.16673
  Normalizat = 1.50079
  Prefactor  = 0.800423
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.548     FROM HESSE     STATUS=OK            23 CALLS      482 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7212        .67416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1667        3.8915        .13171E-02   -.13370    
   3  Normalizat    1.5008        .25956        .27683E-05   -.77756    
   4  Prefactor     .80042        .10133        .70772E-05   -.99713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94654e-11
Minuit parameter uncertainties:
  1  2.75067e-05
  2  260.927
  3  0.259789
  4  0.101354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801819': 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) = 8359.5475214
delta logL = 6.33974195807e-07

Extracting fit parameters...

4FGL J1018.3-3124
   Spectrum: LogParabola
338         norm:  1.000e-04  2.751e-05  1.000e-04  1.000e+04 ( 1.000e-12)
339        alpha:  2.167e+00  2.609e+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.004e-01  1.014e-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.501e+00  2.598e-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/801819/cmap_HighResolution_570844801_571104001_4FGL_J1018.3-3124_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-05', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-01 17:34:46.851781', job_id='801819', GAL2='0.80', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630542886.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1279' AND source_name='4FGL J1018.3-3124' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:34:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 801819: <4FGL_J1018.3-3124_daily_bin1279> in cluster <slac> Done

Job <4FGL_J1018.3-3124_daily_bin1279> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:20:23 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:20: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:20:24 2021
Terminated at Wed Sep  1 17:34:47 2021
Results reported at Wed Sep  1 17:34:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.3-3124_daily_bin1279 154.591 -31.4032 570844801 571104001 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 :                                   724.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            864 sec.

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

