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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin755
RA = 154.617, Dec = 5.4702
tmin = 435024001, tmax = 435283201
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='806267', job_status='RUN', time_executed='2021-09-01 17:39:34.980942', time_epoch_executed='1630543174.98' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806267/ft1_4FGL_J1018.4+0528_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806267/ft2_4FGL_J1018.4+0528_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806267/ft1_4FGL_J1018.4+0528_daily_bin755.fits outfile=/scratch/kocevski/806267/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin755.fits ra=154.617 dec=5.4702 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.50
user 4.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806267/ft1_filtered_4FGL_J1018.4+0528_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/806267/ft2_4FGL_J1018.4+0528_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/806267/ltcube_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.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/806267/ft2_4FGL_J1018.4+0528_daily_bin755.fits
.....................!
real 26.46
user 16.36
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806267/ft1_filtered_4FGL_J1018.4+0528_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/806267/ft2_4FGL_J1018.4+0528_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/806267/ltcube_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.fits outfile=/scratch/kocevski/806267/expmap_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.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/806267/ltcube_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.fits
.....................!
real 191.77
user 187.02
sys 4.20

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/806267/ft1_filtered_4FGL_J1018.4+0528_daily_bin755.fits scfile=/scratch/kocevski/806267/ft2_4FGL_J1018.4+0528_daily_bin755.fits outfile=/scratch/kocevski/806267/cmap_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1919       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.193       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11548E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11555E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9075       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7214       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89867       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1872       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=   5565.758     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     2355 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1921        1.8493        .58000E-04   -.69976E-04
   2  norm          2.3599        .86603        .40181E-04   -.10073E-03
   3  Prefactor     10.031        10.292        .12651E-03    .60031E-04
   4  Prefactor     39.187        48.061        .64024E-04    .12962E-04
   5  Prefactor     .10000E-03    60.503        .18142E-02** at limit **
   6  norm          .10000E-03    6.1750        .18100E-02** at limit **
   7  Prefactor     .10002E-03    14.559        .64994E-01** at limit **
   8  Prefactor     32.597        52.520        .70158E-04    .22686E-04
   9  Prefactor     .10000E-03    62.336        .18142E-02** at limit **
  10  Prefactor     .10000E-03    12.035        .18142E-02** at limit **
  11  norm          4.0215        2.0355        .71480E-04    .12199E-03
  12  Prefactor     9.6349        8.2962        .12910E-03    .25537E-04
  13  Prefactor     1.4588        2.6962        .16193E-03    .15727E-04
  14  Prefactor     .10000E-03    4.6100        .15624E-02** at limit **
  15  Prefactor     5.9080        6.5168        .16522E-03    .46447E-04
  16  norm          2.7214        .88153        .38217E-04   -.35103E-04
  17  Prefactor     .10000E-03    4.8866        .16080E-02** at limit **
  18  Prefactor     .10000E-03    26.603        .18142E-02** at limit **
  19  Normalizat    .89844        .25922        .31681E-03    .49414E-04
  20  Prefactor     1.1874        .21325        .23736E-03    .71252E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.19205
  norm       = 2.35994
  Prefactor  = 10.0314
  Prefactor  = 39.1872
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 32.5965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.02148
  Prefactor  = 9.63491
  Prefactor  = 1.45878
  Prefactor  = 0.0001
  Prefactor  = 5.90799
  norm       = 2.72142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.898436
  Prefactor  = 1.1874
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.758     FROM HESSE     STATUS=OK           281 CALLS     2636 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1921        1.8493        .23200E-05   -1.5252    
   2  norm          2.3599        .86601        .16072E-05   -1.5401    
   3  Prefactor     10.031        10.291        .50602E-05   -1.5074    
   4  Prefactor     39.187        48.033        .25610E-05   -1.4455    
   5  Prefactor     .10000E-03    60.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.1751        .36201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    12.427        .72015E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.597        52.479        .28063E-05   -1.4565    
   9  Prefactor     .10000E-03    62.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0215        2.0355        .28592E-05   -1.5307    
  12  Prefactor     9.6349        8.2958        .51641E-05   -1.5087    
  13  Prefactor     1.4588        2.6960        .64772E-05   -1.5466    
  14  Prefactor     .10000E-03    4.6104        .31247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9080        6.5165        .66088E-05   -1.5222    
  16  norm          2.7214        .88151        .15287E-05   -1.5378    
  17  Prefactor     .10000E-03    4.8868        .32159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89844        .25942        .12672E-04   -.96515    
  20  Prefactor     1.1874        .21343        .47471E-04   -.86720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60925e-11
Minuit parameter uncertainties:
  1  1.84932
  2  0.866019
  3  10.2925
  4  48.0806
  5  0.000230638
  6  4.87726e-06
  7  0.00108329
  8  52.553
  9  0.000124344
  10  7.93636e-06
  11  2.03552
  12  8.29677
  13  2.69619
  14  1.43279e-05
  15  6.51731
  16  0.881511
  17  5.25818e-06
  18  0.000100118
  19  0.259779
  20  0.213587
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.243e-04  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.187e+00  2.136e-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:  8.984e-01  2.598e-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: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806267/likelihoodResults_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5565.75768695
delta logL = -7.63411999287e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5565.75761054
delta logL = 7.29596649762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3364       1.0000          .0000       10.000    
     3 'Normalizat'    .89843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1874       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.

 FCN=   5565.758     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      245 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2277.7        .90712E-02** at limit **
   2  Index         2.3861        6.2004        .50000       -.70821E-05
   3  Normalizat    .89844        .33068E-01    .71596E-01    .38055E-04
   4  Prefactor     1.1874        .28191E-01    .53685E-01    .80181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.38605
  Normalizat = 0.898435
  Prefactor  = 1.1874
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.758     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3861        6.0744        .50000       -.55012    
   3  Normalizat    .89844        .24638        .31680E-03   -.96515    
   4  Prefactor     1.1874        .21046        .23736E-03   -.86720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87483e-10
Minuit parameter uncertainties:
  1  0.00076254
  2  5.6686
  3  0.246691
  4  0.210611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806267': 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) = 5565.75761046
delta logL = 1.508378773e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  7.625e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.386e+00  5.669e+00  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.187e+00  2.106e-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:  8.984e-01  2.467e-01  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/806267/cmap_HighResolution_435024001_435283201_4FGL_J1018.4+0528_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-01 17:49:13.954249', job_id='806267', GAL2='1.19', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630543753.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='755' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:49:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 806267: <4FGL_J1018.4+0528_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin755 154.617 5.4702 435024001 435283201 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 :                                   568.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             263.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            822 sec.

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

