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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin626
RA = 154.617, Dec = 5.4702
tmin = 401587201, tmax = 401846401
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='804986', job_status='RUN', time_executed='2021-09-01 17:36:51.169805', time_epoch_executed='1630543011.17' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804986

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804986/ft1_4FGL_J1018.4+0528_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804986/ft1_4FGL_J1018.4+0528_daily_bin626.fits outfile=/scratch/kocevski/804986/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin626.fits ra=154.617 dec=5.4702 rad=12.0 tmin=401587201.0 tmax=401846401.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.24
user 4.01
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.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/804986/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.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.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/804986/ltcube_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.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/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits
.....................!
real 17.01
user 16.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/804986/ltcube_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.fits outfile=/scratch/kocevski/804986/expmap_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.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/804986/ltcube_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.fits
.....................!
real 192.31
user 187.90
sys 3.89

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits scfile=/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits outfile=/scratch/kocevski/804986/cmap_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.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.617 yref=5.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits scfile=/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits outfile=/scratch/kocevski/804986/cmap_HighResolution_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.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.617 yref=5.4702 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804986/Model_4FGL_J1018.4+0528_daily_bin626.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/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits.....................!
real 51.10
user 49.67
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits', '/scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits', expMap='/scratch/kocevski/804986/expmap_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.fits', expCube='/scratch/kocevski/804986/ltcube_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804986/Model_4FGL_J1018.4+0528_daily_bin626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/804986/ft1_filtered_4FGL_J1018.4+0528_daily_bin626.fits
Spacecraft file(s): /scratch/kocevski/804986/ft2_4FGL_J1018.4+0528_daily_bin626.fits
Exposure map: /scratch/kocevski/804986/expmap_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.fits
Exposure cube: /scratch/kocevski/804986/ltcube_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804986/Model_4FGL_J1018.4+0528_daily_bin626.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) = 4953.04748979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67575       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4931       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
    16 'norm      '    .11906       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.997       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.115       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .58255       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4953.045     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2040 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67580        1.2608        .52543E-06    .26719E-03
   2  norm          1.4930        .71380        .11407E-07   -.14851E-03
   3  Prefactor     4.5873        7.0971       -.72740E-08   -.96364E-05
   4  Prefactor     .10000E-03    23.559        .12713E-06** at limit **
   5  Prefactor     .10000E-03    14.950        .27455E-07** at limit **
   6  norm          .10000E-03    5.5679       -.63993E-06** at limit **
   7  Prefactor     .10000E-03    4.2861       -.69369E-06** at limit **
   8  Prefactor     43.955        54.910       -.70532E-06   -.80813E-04
   9  Prefactor     .10000E-03    19.094       -.72033E-06** at limit **
  10  Prefactor     .10000E-03    7.8604       -.56648E-06** at limit **
  11  norm          2.9226        1.7571        .22246E-07   -.10470E-03
  12  Prefactor     4.7231        8.0264        .51506E-06   -.34083E-04
  13  Prefactor     3.4977        3.0842        .98486E-06   -.87641E-04
  14  Prefactor     28.256        13.620       -.37107E-07   -.30710E-04
  15  Prefactor     10.337        10.245       -.68905E-06   -.14474E-03
  16  norm          .11769        .87445        .43007E-06    .10538E-03
  17  Prefactor     16.014        14.964       -.17511E-05   -.21682E-03
  18  Prefactor     11.147        25.554        .40817E-06    .38230E-04
  19  Normalizat    .58281        .24203        .32525E-05   -.16070E-03
  20  Prefactor     1.4057        .20329       -.30358E-05    .10678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.675802
  norm       = 1.49299
  Prefactor  = 4.58729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92258
  Prefactor  = 4.72314
  Prefactor  = 3.49768
  Prefactor  = 28.256
  Prefactor  = 10.3367
  norm       = 0.117693
  Prefactor  = 16.0137
  Prefactor  = 11.1472
  Normalizat = 0.582806
  Prefactor  = 1.40571
 **********
 **   18 **HESSE 
 **********

 FCN=   4953.045     FROM HESSE     STATUS=OK           301 CALLS     2341 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67580        1.1825        .10213E-02   -1.5544    
   2  norm          1.4930        .70803        .39239E-04   -1.5464    
   3  Prefactor     4.5873        7.0854        .18792E-03   -1.5280    
   4  Prefactor     .10000E-03    23.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.5629        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2840        .14213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.955        54.985        .60421E-04   -1.4381    
   9  Prefactor     .10000E-03    19.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9226        1.7501        .68693E-04   -1.5366    
  12  Prefactor     4.7231        8.0003        .18515E-03   -1.5273    
  13  Prefactor     3.4977        3.0797        .54977E-03   -1.5334    
  14  Prefactor     28.256        13.631        .75360E-04   -1.4644    
  15  Prefactor     10.337        10.252        .12464E-03   -1.5065    
  16  norm          .11769        1.6308        .87430E-03   -1.5639    
  17  Prefactor     16.014        16.198        .10014E-03   -1.4907    
  18  Prefactor     11.147        25.531        .12017E-03   -1.5040    
  19  Normalizat    .58281        .26381        .34589E-03   -1.0872    
  20  Prefactor     1.4057        .22261        .20789E-03   -.80216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70324e-10
Minuit parameter uncertainties:
  1  1.18253
  2  0.708032
  3  7.08672
  4  4.17585e-06
  5  2.20826e-05
  6  3.38963e-06
  7  3.24135e-06
  8  55.0488
  9  4.7674e-05
  10  6.39324e-06
  11  1.75009
  12  8.00213
  13  3.07986
  14  13.6325
  15  10.2535
  16  0.875869
  17  16.2025
  18  25.5556
  19  0.264379
  20  0.222761
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  4.767e-05  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.406e+00  2.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  5.828e-01  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 6.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804986/likelihoodResults_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.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) = 4953.04503038
delta logL = -0.000248482215284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4953.04478385
delta logL = -1.95980464923e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7138       1.0000          .0000       10.000    
     3 'Normalizat'    .58280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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.

 FCN=   4953.045     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      288 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10905E-03    1.5058        .18142E-01** at limit **
   2  Index         2.5503        7.7573        .50000        .23237E-04
   3  Normalizat    .58281        .17256E-02    .34587E-03   -.11504E-04
   4  Prefactor     1.4057        .15558E-02    .20789E-03   -.38827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109053
  Index      = 2.55031
  Normalizat = 0.58281
  Prefactor  = 1.4057
 **********
 **   18 **HESSE 
 **********

 FCN=   4953.045     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10905E-03    69.769        .25463E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5503        5.0404        .50000       -.51202    
   3  Normalizat    .58281        .11801E-01    .13835E-04   -1.0872    
   4  Prefactor     1.4057        .10640E-01    .83157E-05   -.80216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.32517e-09
Minuit parameter uncertainties:
  1  0.0503224
  2  337.955
  3  0.0118013
  4  0.01064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804986': 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): 102
logL (Free Index) = 4953.04478324
delta logL = -1.3440312614e-06

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.091e-04  5.032e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.550e+00  3.380e+02  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.406e+00  1.064e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  5.828e-01  1.180e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/804986/cmap_HighResolution_401587201_401846401_4FGL_J1018.4+0528_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-09-01 17:45:45.236682', job_id='804986', GAL2='1.41', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1630543545.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='-1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='626' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 804986: <4FGL_J1018.4+0528_daily_bin626> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin626> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:36 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:33:23 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:33:23 2021
Terminated at Wed Sep  1 17:45:46 2021
Results reported at Wed Sep  1 17:45:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin626 154.617 5.4702 401587201 401846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   534.20 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             297.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            910 sec.

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

