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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin609
RA = 154.617, Dec = 5.4702
tmin = 397180801, tmax = 397440001
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='804959', job_status='RUN', time_executed='2021-09-01 17:36:33.319003', time_epoch_executed='1630542993.32' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804959

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804959/ft1_4FGL_J1018.4+0528_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804959/ft2_4FGL_J1018.4+0528_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804959/ft1_4FGL_J1018.4+0528_daily_bin609.fits outfile=/scratch/kocevski/804959/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin609.fits ra=154.617 dec=5.4702 rad=12.0 tmin=397180801.0 tmax=397440001.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.98
user 3.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804959/ft1_filtered_4FGL_J1018.4+0528_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/804959/ft2_4FGL_J1018.4+0528_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/804959/ltcube_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.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/804959/ft2_4FGL_J1018.4+0528_daily_bin609.fits
.....................!
real 12.66
user 12.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804959/ft1_filtered_4FGL_J1018.4+0528_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/804959/ft2_4FGL_J1018.4+0528_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/804959/ltcube_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.fits outfile=/scratch/kocevski/804959/expmap_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.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/804959/ltcube_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.fits
.....................!
real 190.96
user 186.81
sys 3.73

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/804959/ft1_filtered_4FGL_J1018.4+0528_daily_bin609.fits scfile=/scratch/kocevski/804959/ft2_4FGL_J1018.4+0528_daily_bin609.fits outfile=/scratch/kocevski/804959/cmap_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804959/ft1_filtered_4FGL_J1018.4+0528_daily_bin609.fits scfile=/scratch/kocevski/804959/ft2_4FGL_J1018.4+0528_daily_bin609.fits outfile=/scratch/kocevski/804959/cmap_HighResolution_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7149       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11485E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    110.24       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.735       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5413       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    101.88       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81248       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4620.404     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     1766 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7151        2.3445        .16970E-06    .13781E-02
   2  norm          .10000E-03    8.5297        .18848E-05** at limit **
   3  Prefactor     18.677        11.483       -.25743E-04   -.10245E-01
   4  Prefactor     21.856        1.4427        .17973E-05   -.45482E-03
   5  Prefactor     .16446E-03    176.33        .32794E-05** at limit **
   6  norm          5.1614        9.7919       -.23475E-04    .71685E-03
   7  Prefactor     .10000E-03    7.1160        .12127E-05** at limit **
   8  Prefactor     110.25        3.0978        .13757E-05   -.17714E-02
   9  Prefactor     .51141E-03    176.72       -.17830E-03** at limit **
  10  Prefactor     27.699        19.771        .16685E-04    .75684E-02
  11  norm          3.1395        1.8362       -.50457E-06    .17742E-03
  12  Prefactor     18.758        9.4094        .40760E-05   -.61816E-03
  13  Prefactor     .10000E-03    3.0797        .68423E-06** at limit **
  14  Prefactor     .10000E-03    3.4033       -.44569E-06** at limit **
  15  Prefactor     3.5425        3.5075        .97623E-05    .27051E-02
  16  norm          1.5207        .68191        .83976E-09    .91371E-03
  17  Prefactor     .10000E-03    5.0459       -.25065E-06** at limit **
  18  Prefactor     101.89        2.0242        .11141E-05   -.51351E-03
  19  Normalizat    .81249        .27161       -.90894E-06    .29343E-03
  20  Prefactor     1.1799        .23257       -.56379E-05    .49872E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.71508
  norm       = 0.0001
  Prefactor  = 18.6767
  Prefactor  = 21.8561
  Prefactor  = 0.000164461
  norm       = 5.16139
  Prefactor  = 0.0001
  Prefactor  = 110.247
  Prefactor  = 0.000511411
  Prefactor  = 27.699
  norm       = 3.13954
  Prefactor  = 18.7577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.54252
  norm       = 1.52072
  Prefactor  = 0.0001
  Prefactor  = 101.887
  Normalizat = 0.812488
  Prefactor  = 1.17992
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.404     FROM HESSE     STATUS=OK           349 CALLS     2115 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7151        2.3473        .33945E-02   -1.5117    
   2  norm          .10000E-03    .36483        .27537E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.677        15.240        .23166E-02   -1.4843    
   4  Prefactor     21.856        45.897        .21422E-02   -1.4773    
   5  Prefactor     .16446E-03    217.43        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1614        21.339        .44220E-02   -1.5254    
   7  Prefactor     .10000E-03    7.1085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     110.25        81.052        .95772E-03   -1.3604    
   9  Prefactor     .51141E-03    464.23        .90712E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.699        23.118        .19018E-02   -1.4655    
  11  norm          3.1395        1.8458        .57197E-02   -1.5354    
  12  Prefactor     18.758        9.9457        .23119E-02   -1.4841    
  13  Prefactor     .10000E-03    2.9943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5425        9.4005        .53699E-02   -1.5332    
  16  norm          1.5207        .68275        .82445E-02   -1.5461    
  17  Prefactor     .10000E-03    5.0306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     101.89        43.924        .99585E-03   -1.3686    
  19  Normalizat    .81249        .24164        .71319E-01   -.99607    
  20  Prefactor     1.1799        .19905        .52572E-01   -.86951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39748e-06
Minuit parameter uncertainties:
  1  2.34733
  2  6.81318e-08
  3  15.2432
  4  45.971
  5  0.237645
  6  21.0021
  7  2.12265e-05
  8  81.1338
  9  0.880955
  10  23.1253
  11  1.84586
  12  9.94656
  13  3.99206e-05
  14  3.17008e-05
  15  9.40442
  16  0.682751
  17  1.40434e-05
  18  43.9379
  19  0.241963
  20  0.199181
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.114e-04  8.810e-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.180e+00  1.992e-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:  8.125e-01  2.420e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804959/likelihoodResults_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.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) = 4620.40399643
delta logL = 1.39152689371e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4620.40399643
delta logL = 1.95541360881e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2836       1.0000          .0000       10.000    
     3 'Normalizat'    .81249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1799       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=   4620.404     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10372E-03    235.01        .42293E-02** at limit **
   2  Index         2.3352        7.4665        .50000        .36275E-05
   3  Normalizat    .81249        .47922E-02    .31560E-03   -.23054E-04
   4  Prefactor     1.1799        .41989E-02    .23242E-03   -.48806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103719
  Index      = 2.3352
  Normalizat = 0.812489
  Prefactor  = 1.17992
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.404     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10372E-03    1157.0        .84585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3352        8.7986        .50000       -.56210    
   3  Normalizat    .81249        .10818E-01    .12624E-04   -.99607    
   4  Prefactor     1.1799        .94791E-02    .46485E-04   -.86951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.1018e-11
Minuit parameter uncertainties:
  1  0.133872
  2  229.52
  3  0.0108184
  4  0.00947908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804959': 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) = 4620.40399604
delta logL = 3.92255060433e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.037e-04  1.339e-01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.335e+00  2.295e+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.180e+00  9.479e-03  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.125e-01  1.082e-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/804959/cmap_HighResolution_397180801_397440001_4FGL_J1018.4+0528_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-01 17:44:50.822875', job_id='804959', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630543490.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='609' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:44:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 804959: <4FGL_J1018.4+0528_daily_bin609> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin609 154.617 5.4702 397180801 397440001 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 :                                   498.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            856 sec.

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

