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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin995
RA = 154.617, Dec = 5.4702
tmin = 497232001, tmax = 497491201
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='806607', job_status='RUN', time_executed='2021-09-01 17:40:24.916212', time_epoch_executed='1630543224.92' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806607/ft1_4FGL_J1018.4+0528_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806607/ft2_4FGL_J1018.4+0528_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806607/ft1_4FGL_J1018.4+0528_daily_bin995.fits outfile=/scratch/kocevski/806607/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin995.fits ra=154.617 dec=5.4702 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.78
user 6.48
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806607/ft1_filtered_4FGL_J1018.4+0528_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/806607/ft2_4FGL_J1018.4+0528_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/806607/ltcube_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.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/806607/ft2_4FGL_J1018.4+0528_daily_bin995.fits
.....................!
real 17.61
user 17.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806607/ft1_filtered_4FGL_J1018.4+0528_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/806607/ft2_4FGL_J1018.4+0528_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/806607/ltcube_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.fits outfile=/scratch/kocevski/806607/expmap_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.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/806607/ltcube_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.fits
.....................!
real 191.87
user 187.13
sys 4.16

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/806607/ft1_filtered_4FGL_J1018.4+0528_daily_bin995.fits scfile=/scratch/kocevski/806607/ft2_4FGL_J1018.4+0528_daily_bin995.fits outfile=/scratch/kocevski/806607/cmap_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806607/ft1_filtered_4FGL_J1018.4+0528_daily_bin995.fits scfile=/scratch/kocevski/806607/ft2_4FGL_J1018.4+0528_daily_bin995.fits outfile=/scratch/kocevski/806607/cmap_HighResolution_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.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.60
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1664       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1281       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9492       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11758E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8384       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8701       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0256       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=   3505.511     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1789 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1669        2.3522        .28712E-06   -.20170E-03
   2  norm          1.1280        1.0334       -.35421E-06   -.14147E-02
   3  Prefactor     .10000E-03    17.215       -.80452E-06** at limit **
   4  Prefactor     19.146        69.708        .14869E-03    .59238E-04
   5  Prefactor     8.9153        120.70       -.10883E-03   -.64252E-04
   6  norm          .10000E-03    12.640        .30408E-06** at limit **
   7  Prefactor     .10000E-03    8.8123        .33695E-07** at limit **
   8  Prefactor     .10000E-03    47.633       -.28582E-04** at limit **
   9  Prefactor     .10000E-03    52.502        .28504E-04** at limit **
  10  Prefactor     .10000E-03    22.155        .20764E-06** at limit **
  11  norm          4.3302        2.5775       -.80709E-06   -.25484E-03
  12  Prefactor     .10000E-03    4.8404       -.11779E-06** at limit **
  13  Prefactor     7.8389        6.9984        .19720E-06   -.14073E-03
  14  Prefactor     28.861        18.605        .20141E-05   -.19757E-04
  15  Prefactor     6.8691        12.254        .10189E-05   -.10213E-03
  16  norm          .10000E-03    .83099        .15721E-06** at limit **
  17  Prefactor     .10000E-03    8.1122        .12474E-06** at limit **
  18  Prefactor     .10000E-03    24.915        .25270E-05** at limit **
  19  Normalizat    1.1334        .29659       -.59842E-05    .87884E-04
  20  Prefactor     1.0258        .22586        .35118E-06   -.11610E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.16687
  norm       = 1.12804
  Prefactor  = 0.0001
  Prefactor  = 19.1464
  Prefactor  = 8.9153
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.3302
  Prefactor  = 0.0001
  Prefactor  = 7.83895
  Prefactor  = 28.8614
  Prefactor  = 6.86907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13342
  Prefactor  = 1.02578
 **********
 **   18 **HESSE 
 **********

 FCN=   3505.511     FROM HESSE     STATUS=OK           293 CALLS     2082 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1669        2.3726        .51420E-04   -1.5211    
   2  norm          1.1280        1.0086        .53536E-04   -1.5496    
   3  Prefactor     .10000E-03    17.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.146        69.675        .91745E-04   -1.4833    
   5  Prefactor     8.9153        121.66        .13398E-03   -1.5111    
   6  norm          .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8292        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    159.26        .54084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3302        2.5759        .70656E-04   -1.5292    
  12  Prefactor     .10000E-03    4.8591        .12721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8389        7.0148        .13855E-03   -1.5148    
  14  Prefactor     28.861        18.644        .74566E-04   -1.4633    
  15  Prefactor     6.8691        12.207        .15307E-03   -1.5184    
  16  norm          .10000E-03    2.8685        .10406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1373        .16459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1334        .35000        .29107E-03   -.88686    
  20  Prefactor     1.0258        .26547        .24666E-03   -.91875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14709e-09
Minuit parameter uncertainties:
  1  2.37263
  2  1.00865
  3  4.18584e-05
  4  69.9733
  5  66.0307
  6  1.67048e-05
  7  1.50061e-06
  8  5.91054e-05
  9  9.37078e-06
  10  0.00108402
  11  2.576
  12  2.0865e-05
  13  7.01551
  14  18.6477
  15  12.2119
  16  2.3633e-05
  17  8.47263e-06
  18  1.9054e-05
  19  0.350717
  20  0.26581
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  9.371e-06  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.026e+00  2.658e-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.133e+00  3.507e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806607/likelihoodResults_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.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) = 3505.51158809
delta logL = -9.06176278477e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3505.5114989
delta logL = -1.42345334098e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4781       1.0000          .0000       10.000    
     3 'Normalizat'    1.1334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0258       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=   3505.511     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      275 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    12.621        .18142E-01** at limit **
   2  Index         2.3990        8.7734        .50000        .85147E-05
   3  Normalizat    1.1334        .38176E-02    .29107E-03   -.27321E-04
   4  Prefactor     1.0258        .31130E-02    .24666E-03    .59226E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102619
  Index      = 2.39902
  Normalizat = 1.13341
  Prefactor  = 1.02579
 **********
 **   18 **HESSE 
 **********

 FCN=   3505.511     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    107.73        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3990        8.7138        .50000       -.54708    
   3  Normalizat    1.1334        .11169E-01    .11643E-04   -.88686    
   4  Prefactor     1.0258        .91069E-02    .98665E-05   -.91875    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09756e-09
Minuit parameter uncertainties:
  1  0.0336523
  2  206.73
  3  0.0111685
  4  0.00910694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806607': 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) = 3505.5114977
delta logL = -2.21075424633e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.026e-04  3.365e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.399e+00  2.067e+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.026e+00  9.107e-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.133e+00  1.117e-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/806607/cmap_HighResolution_497232001_497491201_4FGL_J1018.4+0528_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-01 17:48:16.943641', job_id='806607', GAL2='1.03', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630543696.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-2.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='995' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:48:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 806607: <4FGL_J1018.4+0528_daily_bin995> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin995> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:36:04 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:37:50 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:50 2021
Terminated at Wed Sep  1 17:48:17 2021
Results reported at Wed Sep  1 17:48:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin995 154.617 5.4702 497232001 497491201 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 :                                   470.57 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            733 sec.

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

