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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin116
RA = 154.617, Dec = 5.4702
tmin = 269395201, tmax = 269654401
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='802408', job_status='RUN', time_executed='2021-09-01 17:25:15.029239', time_epoch_executed='1630542315.03' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802408/ft1_4FGL_J1018.4+0528_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802408/ft2_4FGL_J1018.4+0528_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802408/ft1_4FGL_J1018.4+0528_daily_bin116.fits outfile=/scratch/kocevski/802408/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin116.fits ra=154.617 dec=5.4702 rad=12.0 tmin=269395201.0 tmax=269654401.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.82
user 1.62
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802408/ft2_4FGL_J1018.4+0528_daily_bin116.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/802408/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin116.fits evtable="EVENTS" outfile="/scratch/kocevski/802408/ft1_filtered_4FGL_J1018.4+0528_daily_bin116.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802408/ft1_filtered_4FGL_J1018.4+0528_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/802408/ft2_4FGL_J1018.4+0528_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/802408/ltcube_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.fits outfile=/scratch/kocevski/802408/expmap_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.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/802408/ltcube_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.fits
.....................!
real 192.01
user 187.02
sys 4.24

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/802408/ft1_filtered_4FGL_J1018.4+0528_daily_bin116.fits scfile=/scratch/kocevski/802408/ft2_4FGL_J1018.4+0528_daily_bin116.fits outfile=/scratch/kocevski/802408/cmap_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802408/ft1_filtered_4FGL_J1018.4+0528_daily_bin116.fits scfile=/scratch/kocevski/802408/ft2_4FGL_J1018.4+0528_daily_bin116.fits outfile=/scratch/kocevski/802408/cmap_HighResolution_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1526       1.0000         .10000E-03   10000.    
     2 'norm      '    .27337       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.872       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.1743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8613       1.0000         .10000E-03   10000.    
    16 'norm      '    .29064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.948       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1030       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79296       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=   7462.869     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2058 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1528        1.1842        .69990E-06   -.22598E-03
   2  norm          .27339        .38823        .13770E-06    .49064E-03
   3  Prefactor     20.104        12.559       -.14244E-06   -.88492E-04
   4  Prefactor     16.873        18.376        .14656E-06   -.33099E-05
   5  Prefactor     .10000E-03    7.7449        .66584E-08** at limit **
   6  norm          9.1741        9.4320       -.10985E-06   -.36722E-04
   7  Prefactor     28.545        11.166       -.21691E-06   -.18297E-03
   8  Prefactor     17.077        51.784        .47320E-05    .71547E-04
   9  Prefactor     .10000E-03    53.579        .12881E-06** at limit **
  10  Prefactor     .10000E-03    5.5277        .38891E-06** at limit **
  11  norm          .10000E-03    .58485       -.53898E-08** at limit **
  12  Prefactor     12.694        6.9197        .43141E-07   -.17244E-03
  13  Prefactor     3.8098        3.1919        .13421E-07   -.14106E-03
  14  Prefactor     .10000E-03    4.2372        .36829E-07** at limit **
  15  Prefactor     1.8618        8.3137        .17378E-05   -.18073E-04
  16  norm          .29061        .42104        .16225E-07   -.17122E-03
  17  Prefactor     .10000E-03    5.5764       -.50430E-06** at limit **
  18  Prefactor     33.948        20.862       -.32904E-07   -.20159E-04
  19  Normalizat    1.1028        .17684       -.15095E-05    .11738E-04
  20  Prefactor     .79312        .13233        .37841E-06   -.13221E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15279
  norm       = 0.273389
  Prefactor  = 20.1044
  Prefactor  = 16.8731
  Prefactor  = 0.0001
  norm       = 9.17412
  Prefactor  = 28.5451
  Prefactor  = 17.0768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6939
  Prefactor  = 3.80982
  Prefactor  = 0.0001
  Prefactor  = 1.86179
  norm       = 0.290615
  Prefactor  = 0.0001
  Prefactor  = 33.948
  Normalizat = 1.10277
  Prefactor  = 0.793117
 **********
 **   18 **HESSE 
 **********

 FCN=   7462.869     FROM HESSE     STATUS=OK           301 CALLS     2359 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1528        1.1895        .21533E-03   -1.5493    
   2  norm          .27339        .36149        .61772E-03   -1.5603    
   3  Prefactor     20.104        12.607        .89329E-04   -1.4811    
   4  Prefactor     16.873        18.373        .97506E-04   -1.4886    
   5  Prefactor     .10000E-03    7.7536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.1741        9.4306        .13232E-03   -1.5102    
   7  Prefactor     28.545        11.274        .74989E-04   -1.4639    
   8  Prefactor     17.077        53.425        .96994E-04   -1.4881    
   9  Prefactor     .10000E-03    53.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0891        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.694        6.9344        .11243E-03   -1.4995    
  13  Prefactor     3.8098        3.1492        .12647E-03   -1.5318    
  14  Prefactor     .10000E-03    4.2730        .17365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8618        7.9839        .30543E-03   -1.5435    
  16  norm          .29061        .38891        .62639E-03   -1.5600    
  17  Prefactor     .10000E-03    5.6384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.948        20.858        .68776E-04   -1.4542    
  19  Normalizat    1.1028        .20702        .24506E-03   -.89663    
  20  Prefactor     .79312        .15647        .23469E-03   -.99983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85192e-09
Minuit parameter uncertainties:
  1  1.18955
  2  0.361494
  3  12.6083
  4  18.3787
  5  3.64288e-06
  6  9.4321
  7  11.2753
  8  53.5756
  9  3.29497e-05
  10  2.5407e-05
  11  2.39591e-05
  12  6.93484
  13  3.14932
  14  5.40755e-06
  15  7.7124
  16  0.388908
  17  3.42887e-05
  18  20.8625
  19  0.207177
  20  0.156553
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.295e-05  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:  7.931e-01  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.103e+00  2.072e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802408/likelihoodResults_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.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) = 7462.86878202
delta logL = -8.8652964223e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7462.86869345
delta logL = -8.97280187928e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3391       1.0000          .0000       10.000    
     3 'Normalizat'    1.1028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79312       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=   7462.869     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1820.4        .90712E-02** at limit **
   2  Index         2.3202        5.2533        .50000        .30266E-05
   3  Normalizat    1.1028        .26020E-01    .55420E-01    .27171E-04
   4  Prefactor     .79312        .21594E-01    .43628E-01    .28798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32022
  Normalizat = 1.10277
  Prefactor  = 0.793118
 **********
 **   18 **HESSE 
 **********

 FCN=   7462.869     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8848.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3202        5.8335        .50000       -.56564    
   3  Normalizat    1.1028        .11353        .24506E-03   -.89663    
   4  Prefactor     .79312        .94213E-01    .23468E-03   -.99982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.61447e-09
Minuit parameter uncertainties:
  1  0.00379113
  2  63.0583
  3  0.113555
  4  0.0942316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802408': 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) = 7462.86869339
delta logL = -2.46036506724e-08

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.791e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.320e+00  6.306e+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:  7.931e-01  9.423e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.103e+00  1.136e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/802408/cmap_HighResolution_269395201_269654401_4FGL_J1018.4+0528_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-01 17:35:36.620931', job_id='802408', GAL2='0.79', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630542936.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-2.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='116' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:35:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 802408: <4FGL_J1018.4+0528_daily_bin116> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin116> 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) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:21 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:21 2021
Terminated at Wed Sep  1 17:35:37 2021
Results reported at Wed Sep  1 17:35:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin116 154.617 5.4702 269395201 269654401 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 :                                   620.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            869 sec.

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

