/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 208 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin121
RA = 154.617, Dec = 5.4702
tmin = 270691201, tmax = 270950401
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='802415', job_status='RUN', time_executed='2021-09-01 17:26:02.269549', time_epoch_executed='1630542362.27' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802415/ft1_4FGL_J1018.4+0528_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802415/ft2_4FGL_J1018.4+0528_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802415/ft1_4FGL_J1018.4+0528_daily_bin121.fits outfile=/scratch/kocevski/802415/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin121.fits ra=154.617 dec=5.4702 rad=12.0 tmin=270691201.0 tmax=270950401.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 1.70
user 1.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802415/ft1_filtered_4FGL_J1018.4+0528_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/802415/ft2_4FGL_J1018.4+0528_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/802415/ltcube_270691201_270950401_4FGL_J1018.4+0528_daily_bin121.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/802415/ft2_4FGL_J1018.4+0528_daily_bin121.fits
.....................!
real 14.81
user 14.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802415/ft1_filtered_4FGL_J1018.4+0528_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/802415/ft2_4FGL_J1018.4+0528_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/802415/ltcube_270691201_270950401_4FGL_J1018.4+0528_daily_bin121.fits outfile=/scratch/kocevski/802415/expmap_270691201_270950401_4FGL_J1018.4+0528_daily_bin121.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/802415/ltcube_270691201_270950401_4FGL_J1018.4+0528_daily_bin121.fits
.....................!
real 191.76
user 185.52
sys 5.35

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/802415/ft1_filtered_4FGL_J1018.4+0528_daily_bin121.fits scfile=/scratch/kocevski/802415/ft2_4FGL_J1018.4+0528_daily_bin121.fits outfile=/scratch/kocevski/802415/cmap_270691201_270950401_4FGL_J1018.4+0528_daily_bin121.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.56
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4598       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    98.783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1206       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11583       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3820       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.384       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75902       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3942       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=   8879.506     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2099 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4597        1.0888       -.11962E-07   -.83629E-04
   2  norm          1.6409        .69318        .17680E-07   -.16800E-03
   3  Prefactor     3.2062        7.5724        .81278E-06    .23074E-05
   4  Prefactor     .10000E-03    40.557        .28003E-06** at limit **
   5  Prefactor     .10000E-03    14.522        .17050E-06** at limit **
   6  norm          12.879        11.304       -.55224E-06   -.80526E-04
   7  Prefactor     19.488        12.819       -.54224E-06   -.11133E-03
   8  Prefactor     3.0341        326.93        .69863E-05   -.13565E-04
   9  Prefactor     98.995        98.489       -.35973E-06    .31418E-04
  10  Prefactor     1.0556        82.750        .22178E-06   -.11004E-04
  11  norm          .10000E-03    .36682        .16586E-06** at limit **
  12  Prefactor     .10000E-03    1.8088        .85834E-07** at limit **
  13  Prefactor     .10863        1.0356        .63141E-07   -.23895E-03
  14  Prefactor     3.2718        7.4079        .25884E-05    .12134E-03
  15  Prefactor     8.3814        5.8905        .17176E-06   -.15873E-04
  16  norm          1.0510        .44978        .18173E-07   -.16477E-03
  17  Prefactor     .10000E-03    2.0904       -.82294E-08** at limit **
  18  Prefactor     12.384        16.292        .14979E-06   -.75998E-05
  19  Normalizat    .75892        .18431        .20744E-05   -.16621E-03
  20  Prefactor     1.3944        .15378       -.20584E-05   -.47836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45975
  norm       = 1.6409
  Prefactor  = 3.20619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.879
  Prefactor  = 19.4877
  Prefactor  = 3.03413
  Prefactor  = 98.995
  Prefactor  = 1.05556
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.10863
  Prefactor  = 3.27177
  Prefactor  = 8.38136
  norm       = 1.05098
  Prefactor  = 0.0001
  Prefactor  = 12.3845
  Normalizat = 0.758922
  Prefactor  = 1.3944
 **********
 **   18 **HESSE 
 **********

 FCN=   8879.506     FROM HESSE     STATUS=OK           307 CALLS     2406 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4597        1.0894        .35615E-04   -1.5466    
   2  norm          1.6409        .68724        .47759E-04   -1.5452    
   3  Prefactor     3.2062        7.5480        .11317E-02   -1.5350    
   4  Prefactor     .10000E-03    40.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.879        11.318        .11163E-03   -1.4990    
   7  Prefactor     19.488        12.898        .90730E-04   -1.4825    
   8  Prefactor     3.0341        348.12        .22607E-02   -1.5360    
   9  Prefactor     98.995        108.40        .20223E-03   -1.3715    
  10  Prefactor     1.0556        103.13        .44362E-02   -1.5502    
  11  norm          .10000E-03    .62049        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8203        .12375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10863        5.6910        .18164E-02   -1.5642    
  14  Prefactor     3.2718        7.6047        .11194E-02   -1.5346    
  15  Prefactor     8.3814        5.8713        .13847E-03   -1.5129    
  16  norm          1.0510        .44625        .39922E-04   -1.5503    
  17  Prefactor     .10000E-03    2.0959        .13298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.384        16.288        .11383E-03   -1.5004    
  19  Normalizat    .75892        .20500        .32415E-03   -1.0161    
  20  Prefactor     1.3944        .16974        .21768E-03   -.80542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29051e-08
Minuit parameter uncertainties:
  1  1.0894
  2  0.687242
  3  7.55023
  4  3.89462e-05
  5  7.95654e-06
  6  11.3198
  7  12.9003
  8  65.3915
  9  108.618
  10  20.9032
  11  5.14592e-06
  12  1.60692e-06
  13  1.57196
  14  7.60694
  15  5.87173
  16  0.446254
  17  3.31303e-07
  18  16.2938
  19  0.205206
  20  0.169806
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.899e+01  1.086e+02  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.394e+00  1.698e-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:  7.589e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.84e-08 +/- 7.50e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 2.92e-05

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) = 8879.4974069
delta logL = 0.00839586949223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8879.48324705
delta logL = 0.0225557220929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.218       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4220       1.0000          .0000       10.000    
     3 'Normalizat'    .74386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4023       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=   8879.483     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      258 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.218        808.19        .10879E-02    .51081E-03
   2  Index         2.4220        2.9424        .95737E-01    .25057E-03
   3  Normalizat    .74385        .12246        .73887E-01    .36565E-04
   4  Prefactor     1.4023        .61829E-01    .49121E-01   -.27895E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.2182
  Index      = 2.42199
  Normalizat = 0.743848
  Prefactor  = 1.40226
 **********
 **   18 **HESSE 
 **********

 FCN=   8879.483     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.218        104.01        .43517E-04   -1.3859    
   2  Index         2.4220        .82587        .57406E-02   -.54171    
   3  Normalizat    .74385        .21158        .32704E-03   -1.0219    
   4  Prefactor     1.4023        .17421        .21714E-03   -.80315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59919e-09
Minuit parameter uncertainties:
  1  104.234
  2  0.831071
  3  0.21181
  4  0.174287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802415': 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) = 8879.48324705
delta logL = 0.0225557238155

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  8.522e+01  1.042e+02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.422e+00  8.311e-01  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.402e+00  1.743e-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:  7.438e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.70
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.42 +/- 0.83
Photon Flux (Free Index): 8.03e-08 +/- 7.70e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/802415/cmap_HighResolution_270691201_270950401_4FGL_J1018.4+0528_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.84e-08', energy_flux2='2.56e-05', photon_flux_error='7.50e-08', dlogl='2.26e-02', energy_flux='2.66e-05', photon_flux2='8.03e-08', job_status='DONE', time_completed='2021-09-01 17:36:19.552144', photon_index_error2='0.83', photon_index2='2.42', ts='5.52', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.76', time_epoch_completed='1630542979.55', return_code='0', job_id='802415', GAL2='1.40', EG2='0.74', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='7.70e-08', ts2='5.70', photon_index='2.28' WHERE bin_id='121' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:36:19 PDT 2021


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

Job <4FGL_J1018.4+0528_daily_bin121> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:21:08 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:22:23 2021
Terminated at Wed Sep  1 17:36:20 2021
Results reported at Wed Sep  1 17:36:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin121 154.617 5.4702 270691201 270950401 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 :                                   616.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            912 sec.

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

