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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin947
RA = 154.617, Dec = 5.4702
tmin = 484790401, tmax = 485049601
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='806550', job_status='RUN', time_executed='2021-09-01 17:40:38.136069', time_epoch_executed='1630543238.14' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806550/ft1_4FGL_J1018.4+0528_daily_bin947.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806550/ft1_4FGL_J1018.4+0528_daily_bin947.fits outfile=/scratch/kocevski/806550/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin947.fits ra=154.617 dec=5.4702 rad=12.0 tmin=484790401.0 tmax=485049601.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.59
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.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/806550/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin947.fits evtable="EVENTS" outfile="/scratch/kocevski/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.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.55
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.fits" evtable="EVENTS" scfile=/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits sctable="SC_DATA" outfile=/scratch/kocevski/806550/ltcube_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.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/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits
.....................!
real 15.93
user 15.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits sctable="SC_DATA" expcube=/scratch/kocevski/806550/ltcube_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.fits outfile=/scratch/kocevski/806550/expmap_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.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/806550/ltcube_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.fits
.....................!
real 190.88
user 186.34
sys 4.09

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/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.fits scfile=/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits outfile=/scratch/kocevski/806550/cmap_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.fits scfile=/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits outfile=/scratch/kocevski/806550/cmap_HighResolution_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.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.58
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.fits', '/scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits', expMap='/scratch/kocevski/806550/expmap_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.fits', expCube='/scratch/kocevski/806550/ltcube_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806550/Model_4FGL_J1018.4+0528_daily_bin947.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/806550/ft1_filtered_4FGL_J1018.4+0528_daily_bin947.fits
Spacecraft file(s): /scratch/kocevski/806550/ft2_4FGL_J1018.4+0528_daily_bin947.fits
Exposure map: /scratch/kocevski/806550/expmap_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.fits
Exposure cube: /scratch/kocevski/806550/ltcube_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806550/Model_4FGL_J1018.4+0528_daily_bin947.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) = 5835.71296858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1256       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.4410       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1906       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2141       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0153       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2848       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1032       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=   5835.528     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1790 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1257        1.3086        .31668E-07   -.59600E-04
   2  norm          1.9056        .88697        .13468E-07    .91211E-04
   3  Prefactor     .10000E-03    3.6885        .16931E-07** at limit **
   4  Prefactor     .10000E-03    63.587       -.16792E-04** at limit **
   5  Prefactor     .10000E-03    26.603       -.24150E-04** at limit **
   6  norm          7.4406        9.5826        .50759E-07   -.63562E-06
   7  Prefactor     .10000E-03    7.9824       -.17066E-06** at limit **
   8  Prefactor     13.923        47.716       -.39243E-06   -.26935E-05
   9  Prefactor     .10000E-03    17.372        .31469E-05** at limit **
  10  Prefactor     .10000E-03    5.1817        .82022E-07** at limit **
  11  norm          5.1906        2.2011        .21098E-07    .12720E-03
  12  Prefactor     .10000E-03    4.3318       -.45269E-07** at limit **
  13  Prefactor     .10000E-03    2.7707       -.21999E-06** at limit **
  14  Prefactor     .10000E-03    3.1989       -.63513E-08** at limit **
  15  Prefactor     1.2107        2.8475        .11290E-05   -.15229E-02
  16  norm          1.0807        .57701       -.94730E-08   -.20864E-03
  17  Prefactor     2.0150        5.6867       -.28734E-06   -.90711E-04
  18  Prefactor     .10000E-03    33.461        .31759E-04** at limit **
  19  Normalizat    1.2847        .21078       -.21242E-06   -.26214E-04
  20  Prefactor     1.1033        .17913       -.84856E-07   -.63551E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12568
  norm       = 1.90564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.4406
  Prefactor  = 0.0001
  Prefactor  = 13.9234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.19065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21065
  norm       = 1.08074
  Prefactor  = 2.01501
  Prefactor  = 0.0001
  Normalizat = 1.2847
  Prefactor  = 1.10327
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.528     FROM HESSE     STATUS=OK           289 CALLS     2079 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1257        1.2820        .89783E-04   -1.5496    
   2  norm          1.9056        .88387        .46648E-04   -1.5432    
   3  Prefactor     .10000E-03    3.6902        .14328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.4406        9.5761        .14703E-03   -1.5162    
   7  Prefactor     .10000E-03    8.0800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.923        47.895        .10734E-03   -1.4962    
   9  Prefactor     .10000E-03    17.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1838        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1906        2.2011        .70277E-04   -1.5252    
  12  Prefactor     .10000E-03    4.3566        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8774        .24808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2044        .13343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2107        16.898        .20509E-02   -1.5488    
  16  norm          1.0807        .58004        .39805E-04   -1.5500    
  17  Prefactor     2.0150        5.6818        .28767E-03   -1.5424    
  18  Prefactor     .10000E-03    33.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2847        .25320        .26996E-03   -.84024    
  20  Prefactor     1.1033        .21410        .24804E-03   -.89362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51289e-08
Minuit parameter uncertainties:
  1  1.28207
  2  0.883877
  3  4.25804e-07
  4  2.95264e-06
  5  6.72452e-05
  6  9.57804
  7  1.17393e-06
  8  48.0277
  9  1.59263e-05
  10  5.26227e-07
  11  2.20117
  12  1.8244e-06
  13  1.02953e-07
  14  9.13185e-08
  15  9.04879
  16  0.580044
  17  5.68337
  18  0.000121315
  19  0.253446
  20  0.214269
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.593e-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.103e+00  2.143e-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:  1.285e+00  2.534e-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: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806550/likelihoodResults_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.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) = 5835.5285635
delta logL = -0.000273259042842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5835.52829158
delta logL = -1.3392582332e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6075       1.0000          .0000       10.000    
     3 'Normalizat'    1.2847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1033       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=   5835.528     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      278 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10226E-03    2.5129        .18142E-01** at limit **
   2  Index         2.5372        7.2752        .50000        .21477E-04
   3  Normalizat    1.2847        .23737E-02    .26996E-03   -.61328E-03
   4  Prefactor     1.1033        .20503E-02    .24804E-03   -.61060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102262
  Index      = 2.53715
  Normalizat = 1.2847
  Prefactor  = 1.10327
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.528     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10226E-03    50.244        .26830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5372        8.6875        .50000       -.51504    
   3  Normalizat    1.2847        .10639E-01    .53991E-04   -.84024    
   4  Prefactor     1.1033        .91894E-02    .49608E-04   -.89362    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.03598e-09
Minuit parameter uncertainties:
  1  0.0213382
  2  181.49
  3  0.0106389
  4  0.00918941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806550': 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) = 5835.5282913
delta logL = -1.06098832475e-06

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.023e-04  2.134e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.537e+00  1.815e+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.103e+00  9.189e-03  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:  1.285e+00  1.064e-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/806550/cmap_HighResolution_484790401_485049601_4FGL_J1018.4+0528_daily_bin947.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-01 17:49:43.406486', job_id='806550', GAL2='1.10', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630543783.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='947' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:49:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 806550: <4FGL_J1018.4+0528_daily_bin947> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin947> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:57 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:37:19 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:37:19 2021
Terminated at Wed Sep  1 17:49:44 2021
Results reported at Wed Sep  1 17:49:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin947 154.617 5.4702 484790401 485049601 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 :                                   545.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            827 sec.

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

