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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin954
RA = 154.617, Dec = 5.4702
tmin = 486604801, tmax = 486864001
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='806557', job_status='RUN', time_executed='2021-09-01 17:39:58.499504', time_epoch_executed='1630543198.5' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806557

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806557/ft1_4FGL_J1018.4+0528_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806557/ft2_4FGL_J1018.4+0528_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806557/ft1_4FGL_J1018.4+0528_daily_bin954.fits outfile=/scratch/kocevski/806557/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin954.fits ra=154.617 dec=5.4702 rad=12.0 tmin=486604801.0 tmax=486864001.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.63
user 3.41
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806557/ft1_filtered_4FGL_J1018.4+0528_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/806557/ft2_4FGL_J1018.4+0528_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/806557/ltcube_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.fits outfile=/scratch/kocevski/806557/expmap_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.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/806557/ltcube_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.fits
.....................!
real 191.12
user 186.05
sys 4.67

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/806557/ft1_filtered_4FGL_J1018.4+0528_daily_bin954.fits scfile=/scratch/kocevski/806557/ft2_4FGL_J1018.4+0528_daily_bin954.fits outfile=/scratch/kocevski/806557/cmap_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.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.61
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806557/ft1_filtered_4FGL_J1018.4+0528_daily_bin954.fits scfile=/scratch/kocevski/806557/ft2_4FGL_J1018.4+0528_daily_bin954.fits outfile=/scratch/kocevski/806557/cmap_HighResolution_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .50565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .25135E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.277       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.001       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7387       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13400E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .86972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98670       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99024       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=   6844.629     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1779 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .39855        .34307E-07** at limit **
   2  norm          .50580        .60277       -.67420E-07   -.18066E-02
   3  Prefactor     .10000E-03    7.2816       -.14656E-06** at limit **
   4  Prefactor     .10000E-03    13.580        .22499E-05** at limit **
   5  Prefactor     .10000E-03    12.070       -.25551E-05** at limit **
   6  norm          .10000E-03    15.571        .18114E-04** at limit **
   7  Prefactor     .10000E-03    3.8332       -.42353E-06** at limit **
   8  Prefactor     16.186        46.692       -.12669E-04   -.16643E-03
   9  Prefactor     .10001E-03    36.310       -.44940E-05** at limit **
  10  Prefactor     10.270        15.596        .19675E-04   -.72859E-04
  11  norm          4.4274        1.6009       -.97484E-07   -.29767E-03
  12  Prefactor     18.000        7.2208       -.73036E-08   -.73725E-04
  13  Prefactor     6.7369        3.8124       -.73788E-07   -.35381E-03
  14  Prefactor     15.240        11.459       -.15563E-05   -.35078E-04
  15  Prefactor     .10000E-03    5.1460        .70661E-07** at limit **
  16  norm          .86971        .46455        .10491E-07   -.29950E-03
  17  Prefactor     .10000E-03    3.4795        .55216E-08** at limit **
  18  Prefactor     .10000E-03    12.033       -.96881E-06** at limit **
  19  Normalizat    .98728        .18431        .99409E-07   -.20620E-03
  20  Prefactor     .98980        .14766       -.10091E-05   -.13622E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.505797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1863
  Prefactor  = 0.000100008
  Prefactor  = 10.2698
  norm       = 4.42741
  Prefactor  = 17.9996
  Prefactor  = 6.73687
  Prefactor  = 15.2396
  Prefactor  = 0.000100001
  norm       = 0.86971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987277
  Prefactor  = 0.989804
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.629     FROM HESSE     STATUS=OK           293 CALLS     2072 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .62906        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .50580        .58769        .64613E-04   -1.5566    
   3  Prefactor     .10000E-03    7.3408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.723        .21463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8453        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.186        47.099        .99094E-04   -1.4903    
   9  Prefactor     .10001E-03    36.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.270        15.557        .12499E-03   -1.5067    
  11  norm          4.4274        1.5994        .59724E-04   -1.5287    
  12  Prefactor     18.000        7.2192        .94399E-04   -1.4859    
  13  Prefactor     6.7369        3.7459        .11257E-03   -1.5189    
  14  Prefactor     15.240        11.483        .10258E-03   -1.4927    
  15  Prefactor     .10000E-03    17.941        .35017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86971        .45855        .39577E-04   -1.5521    
  17  Prefactor     .10000E-03    3.4970        .15060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98728        .21191        .26947E-03   -.93458    
  20  Prefactor     .98980        .17102        .22754E-03   -.93070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55607e-10
Minuit parameter uncertainties:
  1  3.47686e-06
  2  0.587699
  3  3.70192e-05
  4  3.78361e-06
  5  6.60017e-06
  6  0.000140339
  7  8.01331e-05
  8  47.2073
  9  0.00105589
  10  15.5629
  11  1.59941
  12  7.21957
  13  3.74599
  14  11.4851
  15  0.00021623
  16  0.458553
  17  2.28699e-06
  18  1.01647e-05
  19  0.212094
  20  0.171115
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.056e-03  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:  9.898e-01  1.711e-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:  9.873e-01  2.121e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806557/likelihoodResults_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.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) = 6844.6292259
delta logL = -0.000130455615363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6844.62910089
delta logL = -5.44272279512e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17997E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3274       1.0000          .0000       10.000    
     3 'Normalizat'    .98727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98980       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=   6844.629     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      244 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31149        .55748E-01** at limit **
   2  Index         3.2923        1.2902        .50000        .24586E-04
   3  Normalizat    .98728        .12297E-02    .46007E-01    .76952E-05
   4  Prefactor     .98980        .10450E-02    .46140E-01    .42988E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.29232
  Normalizat = 0.987278
  Prefactor  = 0.989804
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.629     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      279 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.386        .32453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2923        6.1216        .50000       -.34855    
   3  Normalizat    .98728        .83431E-02    .26947E-03   -.93458    
   4  Prefactor     .98980        .70908E-02    .22754E-03   -.93070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43466e-09
Minuit parameter uncertainties:
  1  0.000343045
  2  8.84394
  3  0.0083431
  4  0.00709081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806557': 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) = 6844.62909767
delta logL = -2.22782000492e-06

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.430e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.292e+00  8.844e+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:  9.898e-01  7.091e-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:  9.873e-01  8.343e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/806557/cmap_HighResolution_486604801_486864001_4FGL_J1018.4+0528_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2021-09-01 17:49:36.197866', job_id='806557', GAL2='0.99', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630543776.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-2.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='954' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:49:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 806557: <4FGL_J1018.4+0528_daily_bin954> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin954> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:58 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:37:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:37:24 2021
Terminated at Wed Sep  1 17:49:36 2021
Results reported at Wed Sep  1 17:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin954 154.617 5.4702 486604801 486864001 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 :                                   577.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            818 sec.

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

