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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin522
RA = 154.617, Dec = 5.4702
tmin = 374630401, tmax = 374889601
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='804817', job_status='RUN', time_executed='2021-09-01 17:35:21.908627', time_epoch_executed='1630542921.91' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804817

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804817/ft1_4FGL_J1018.4+0528_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804817/ft2_4FGL_J1018.4+0528_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804817/ft1_4FGL_J1018.4+0528_daily_bin522.fits outfile=/scratch/kocevski/804817/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin522.fits ra=154.617 dec=5.4702 rad=12.0 tmin=374630401.0 tmax=374889601.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 4.67
user 4.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804817/ft1_filtered_4FGL_J1018.4+0528_daily_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/804817/ft2_4FGL_J1018.4+0528_daily_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/804817/ltcube_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.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/804817/ft2_4FGL_J1018.4+0528_daily_bin522.fits
.....................!
real 14.06
user 13.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804817/ft1_filtered_4FGL_J1018.4+0528_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/804817/ft2_4FGL_J1018.4+0528_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/804817/ltcube_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.fits outfile=/scratch/kocevski/804817/expmap_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.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/804817/ltcube_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.fits
.....................!
real 190.67
user 186.45
sys 3.83

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/804817/ft1_filtered_4FGL_J1018.4+0528_daily_bin522.fits scfile=/scratch/kocevski/804817/ft2_4FGL_J1018.4+0528_daily_bin522.fits outfile=/scratch/kocevski/804817/cmap_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.617 yref=5.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804817/ft1_filtered_4FGL_J1018.4+0528_daily_bin522.fits scfile=/scratch/kocevski/804817/ft2_4FGL_J1018.4+0528_daily_bin522.fits outfile=/scratch/kocevski/804817/cmap_HighResolution_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18575E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.112       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4294       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3343       1.0000         .10000E-03   10000.    
    16 'norm      '    .28282       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1265       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1186       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=   5849.134     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2156 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60811        .28032E-07** at limit **
   2  norm          1.9709        .78367        .11314E-06    .10592E-02
   3  Prefactor     .10000E-03    9.9056       -.22481E-06** at limit **
   4  Prefactor     .10013E-03    144.90        .51963E-05** at limit **
   5  Prefactor     34.101        34.361        .19950E-05    .51666E-03
   6  norm          .10000E-03    5.9205       -.10984E-06** at limit **
   7  Prefactor     .10000E-03    4.5845       -.20111E-06** at limit **
   8  Prefactor     .10017E-03    194.84       -.50529E-05** at limit **
   9  Prefactor     .10000E-03    21.212       -.25586E-06** at limit **
  10  Prefactor     .10000E-03    6.3267       -.13571E-06** at limit **
  11  norm          .10000E-03    .39175        .16192E-08** at limit **
  12  Prefactor     1.4326        10.111        .12631E-04   -.26898E-03
  13  Prefactor     6.6251        3.8969       -.58304E-07   -.95078E-03
  14  Prefactor     .10000E-03    10.144        .26315E-07** at limit **
  15  Prefactor     5.3345        7.6715        .17096E-06   -.15050E-03
  16  norm          .28285        .58124        .57334E-07   -.55015E-04
  17  Prefactor     5.1267        7.6107        .96234E-07   -.27196E-04
  18  Prefactor     .10000E-03    66.595       -.49158E-06** at limit **
  19  Normalizat    1.0722        .20056       -.31785E-05   -.36849E-03
  20  Prefactor     1.1186        .16816        .34427E-06   -.30423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.97091
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 34.1014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.43256
  Prefactor  = 6.62511
  Prefactor  = 0.0001
  Prefactor  = 5.33452
  norm       = 0.282848
  Prefactor  = 5.12667
  Prefactor  = 0.000100001
  Normalizat = 1.07217
  Prefactor  = 1.11861
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.134     FROM HESSE     STATUS=OK           287 CALLS     2443 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .63733        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9709        .78131        .40714E-04   -1.5427    
   3  Prefactor     .10000E-03    9.9804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    150.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.101        34.974        .68612E-04   -1.4539    
   6  norm          .10000E-03    5.9254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6007        .15993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10017E-03    200.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .39544        .46734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4326        10.226        .18069E-02   -1.5469    
  13  Prefactor     6.6251        3.9083        .10847E-03   -1.5193    
  14  Prefactor     .10000E-03    10.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3345        7.6274        .17401E-03   -1.5246    
  16  norm          .28285        .50887        .72472E-03   -1.5602    
  17  Prefactor     5.1267        7.2993        .17757E-03   -1.5255    
  18  Prefactor     .10000E-03    68.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0722        .23271        .26911E-03   -.90650    
  20  Prefactor     1.1186        .19624        .22797E-03   -.88874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96883e-09
Minuit parameter uncertainties:
  1  2.33634e-06
  2  0.78131
  3  4.67798e-05
  4  0.00882803
  5  34.9953
  6  1.94244e-05
  7  3.16473e-05
  8  0.0116166
  9  8.39732e-05
  10  2.52468e-05
  11  2.09333e-07
  12  7.65654
  13  3.9084
  14  7.45976e-06
  15  7.62875
  16  0.508877
  17  7.30061
  18  0.000469207
  19  0.232936
  20  0.196364
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  8.397e-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:  1.119e+00  1.964e-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.072e+00  2.329e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804817/likelihoodResults_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.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) = 5849.13429794
delta logL = -0.000224142125262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5849.13407463
delta logL = -8.32637852e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6297       1.0000          .0000       10.000    
     3 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1186       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=   5849.134     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    91.902        .18142E-02** at limit **
   2  Index         2.5796        8.3340        .50000        .12394E-04
   3  Normalizat    1.0722        .11706E-01    .26911E-03   -.32428E-03
   4  Prefactor     1.1186        .10159E-01    .22797E-03   -.50806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101158
  Index      = 2.57957
  Normalizat = 1.07218
  Prefactor  = 1.11861
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.134     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10116E-03    434.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5796        8.2118        .50000       -.50532    
   3  Normalizat    1.0722        .26199E-01    .53822E-04   -.90650    
   4  Prefactor     1.1186        .22735E-01    .45595E-04   -.88874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56209e-08
Minuit parameter uncertainties:
  1  0.045215
  2  516.03
  3  0.0261993
  4  0.022735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804817': 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) = 5849.13407448
delta logL = -6.77811840433e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.012e-04  4.521e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.580e+00  5.160e+02  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.119e+00  2.274e-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.072e+00  2.620e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/804817/cmap_HighResolution_374630401_374889601_4FGL_J1018.4+0528_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-01 17:44:46.774070', job_id='804817', GAL2='1.12', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630543486.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-6.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='522' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:44:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 804817: <4FGL_J1018.4+0528_daily_bin522> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin522> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:30:25 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:31:35 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:31:35 2021
Terminated at Wed Sep  1 17:44:47 2021
Results reported at Wed Sep  1 17:44:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin522 154.617 5.4702 374630401 374889601 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 :                                   565.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            862 sec.

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

