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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin979
RA = 154.617, Dec = 5.4702
tmin = 493084801, tmax = 493344001
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='806582', job_status='RUN', time_executed='2021-09-01 17:40:43.069128', time_epoch_executed='1630543243.07' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806582

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806582/ft1_4FGL_J1018.4+0528_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806582/ft2_4FGL_J1018.4+0528_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806582/ft1_4FGL_J1018.4+0528_daily_bin979.fits outfile=/scratch/kocevski/806582/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin979.fits ra=154.617 dec=5.4702 rad=12.0 tmin=493084801.0 tmax=493344001.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.65
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806582/ft1_filtered_4FGL_J1018.4+0528_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/806582/ft2_4FGL_J1018.4+0528_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/806582/ltcube_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.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/806582/ft2_4FGL_J1018.4+0528_daily_bin979.fits
.....................!
real 18.19
user 17.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806582/ft1_filtered_4FGL_J1018.4+0528_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/806582/ft2_4FGL_J1018.4+0528_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/806582/ltcube_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.fits outfile=/scratch/kocevski/806582/expmap_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.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/806582/ltcube_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.fits
.....................!
real 191.86
user 186.17
sys 4.91

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/806582/ft1_filtered_4FGL_J1018.4+0528_daily_bin979.fits scfile=/scratch/kocevski/806582/ft2_4FGL_J1018.4+0528_daily_bin979.fits outfile=/scratch/kocevski/806582/cmap_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806582/ft1_filtered_4FGL_J1018.4+0528_daily_bin979.fits scfile=/scratch/kocevski/806582/ft2_4FGL_J1018.4+0528_daily_bin979.fits outfile=/scratch/kocevski/806582/cmap_HighResolution_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.413       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.685       1.0000         .10000E-03   10000.    
    11 'norm      '    .91668       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44634E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3826       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8941       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92674       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5035       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=   5897.188     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2052 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.412        2.6026        .37149E-08    .60220E-04
   2  norm          .10000E-03    .22733       -.19203E-06** at limit **
   3  Prefactor     7.2500        7.1243        .72976E-07   -.25185E-05
   4  Prefactor     48.087        49.636        .87170E-06    .46698E-04
   5  Prefactor     .10000E-03    16.433       -.89923E-06** at limit **
   6  norm          .10000E-03    6.8417        .52458E-06** at limit **
   7  Prefactor     .10000E-03    4.2288        .66801E-06** at limit **
   8  Prefactor     17.446        60.426        .66471E-05    .23242E-05
   9  Prefactor     95.062        89.109       -.26319E-05    .77171E-05
  10  Prefactor     16.667        31.053        .44939E-05    .20974E-04
  11  norm          .91578        1.8415       -.97629E-06   -.20354E-03
  12  Prefactor     10.458        10.885        .36935E-06    .14591E-03
  13  Prefactor     .10000E-03    1.2903       -.10098E-06** at limit **
  14  Prefactor     .10000E-03    31.334       -.73893E-05** at limit **
  15  Prefactor     .10000E-03    4.5588       -.39757E-06** at limit **
  16  norm          1.3827        .79036        .83521E-08    .40598E-04
  17  Prefactor     4.8050        10.792       -.64323E-06    .15032E-04
  18  Prefactor     5.8937        14.400       -.26925E-06    .46196E-05
  19  Normalizat    .92689        .24214       -.15047E-05    .24671E-03
  20  Prefactor     1.5034        .20318        .15089E-05    .10347E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4125
  norm       = 0.0001
  Prefactor  = 7.24998
  Prefactor  = 48.0865
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4456
  Prefactor  = 95.0621
  Prefactor  = 16.6674
  norm       = 0.915778
  Prefactor  = 10.4583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38267
  Prefactor  = 4.805
  Prefactor  = 5.89375
  Normalizat = 0.92689
  Prefactor  = 1.50341
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.188     FROM HESSE     STATUS=OK           295 CALLS     2347 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.412        2.6052        .55702E-04   -1.5032    
   2  norm          .10000E-03    .28820        .70804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2500        7.1278        .14897E-03   -1.5169    
   4  Prefactor     48.087        49.626        .57824E-04   -1.4320    
   5  Prefactor     .10000E-03    16.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.8397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2166        .15391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.446        60.226        .95832E-04   -1.4872    
   9  Prefactor     95.062        89.369        .41227E-04   -1.3755    
  10  Prefactor     16.667        31.285        .98053E-04   -1.4891    
  11  norm          .91578        1.8432        .14005E-03   -1.5517    
  12  Prefactor     10.458        10.810        .12390E-03   -1.5061    
  13  Prefactor     .10000E-03    1.3035        .85176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.925        .39670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6068        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3827        .79884        .44391E-04   -1.5473    
  17  Prefactor     4.8050        10.965        .18352E-03   -1.5270    
  18  Prefactor     5.8937        14.395        .16541E-03   -1.5222    
  19  Normalizat    .92689        .27551        .33647E-03   -.95522    
  20  Prefactor     1.5034        .23536        .24002E-03   -.77444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88308e-10
Minuit parameter uncertainties:
  1  2.60525
  2  2.96833e-06
  3  7.12865
  4  49.6686
  5  7.64848e-06
  6  1.99237e-05
  7  1.66628e-05
  8  60.4374
  9  89.4959
  10  31.3161
  11  1.8433
  12  10.812
  13  1.68993e-06
  14  2.54827e-05
  15  7.01806e-07
  16  0.798848
  17  10.9696
  18  14.403
  19  0.275934
  20  0.235532
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.506e+01  8.950e+01  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.503e+00  2.355e-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.269e-01  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 2.40e-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) = 5897.1843768
delta logL = 0.00343900782991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5897.17910759
delta logL = 0.00870821449917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.251       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3662       1.0000          .0000       10.000    
     3 'Normalizat'    .92047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5068       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=   5897.179     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      274 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.281        108.56        .43509E-04   -.17219E-03
   2  Index         2.3665        .71924        .54452E-02   -.15258E-03
   3  Normalizat    .92007        .27090        .33755E-03    .33475E-03
   4  Prefactor     1.5071        .23472        .23977E-03    .65233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.2806
  Index      = 2.36655
  Normalizat = 0.920072
  Prefactor  = 1.50711
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.179     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.281        95.926        .87018E-05   -1.3858    
   2  Index         2.3665        .63494        .21781E-03   -.55470    
   3  Normalizat    .92007        .26986        .13502E-04   -.95758    
   4  Prefactor     1.5071        .23437        .47954E-04   -.77341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20285e-10
Minuit parameter uncertainties:
  1  96.1013
  2  0.637329
  3  0.270261
  4  0.234542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806582': 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) = 5897.17910578
delta logL = 0.00871002138319

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  8.528e+01  9.610e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.367e+00  6.373e-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.507e+00  2.345e-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.201e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.37 +/- 0.64
Photon Flux (Free Index): 7.09e-08 +/- 6.20e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.89e-05

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/806582/cmap_HighResolution_493084801_493344001_4FGL_J1018.4+0528_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='2.43e-05', photon_flux_error='6.18e-08', dlogl='8.71e-03', energy_flux='2.55e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-01 17:49:35.619573', photon_index_error2='0.64', photon_index2='2.37', ts='4.23', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.93', time_epoch_completed='1630543775.62', return_code='0', job_id='806582', GAL2='1.51', EG2='0.92', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='6.20e-08', ts2='4.28', photon_index='2.28' WHERE bin_id='979' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 806582: <4FGL_J1018.4+0528_daily_bin979> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin979> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:36:01 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:37:39 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:39 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_bin979 154.617 5.4702 493084801 493344001 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 :                                   531.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            815 sec.

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

