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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin710
RA = 154.617, Dec = 5.4702
tmin = 423360001, tmax = 423619201
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='805123', job_status='RUN', time_executed='2021-09-01 17:37:25.779527', time_epoch_executed='1630543045.78' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805123/ft1_4FGL_J1018.4+0528_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805123/ft2_4FGL_J1018.4+0528_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805123/ft1_4FGL_J1018.4+0528_daily_bin710.fits outfile=/scratch/kocevski/805123/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin710.fits ra=154.617 dec=5.4702 rad=12.0 tmin=423360001.0 tmax=423619201.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 6.00
user 5.68
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805123/ft2_4FGL_J1018.4+0528_daily_bin710.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/805123/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin710.fits evtable="EVENTS" outfile="/scratch/kocevski/805123/ft1_filtered_4FGL_J1018.4+0528_daily_bin710.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805123/ft1_filtered_4FGL_J1018.4+0528_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/805123/ft2_4FGL_J1018.4+0528_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/805123/ltcube_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.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/805123/ft2_4FGL_J1018.4+0528_daily_bin710.fits
.....................!
real 16.73
user 16.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805123/ft1_filtered_4FGL_J1018.4+0528_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/805123/ft2_4FGL_J1018.4+0528_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/805123/ltcube_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.fits outfile=/scratch/kocevski/805123/expmap_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.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/805123/ltcube_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.fits
.....................!
real 195.97
user 190.14
sys 5.19

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/805123/ft1_filtered_4FGL_J1018.4+0528_daily_bin710.fits scfile=/scratch/kocevski/805123/ft2_4FGL_J1018.4+0528_daily_bin710.fits outfile=/scratch/kocevski/805123/cmap_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805123/ft1_filtered_4FGL_J1018.4+0528_daily_bin710.fits scfile=/scratch/kocevski/805123/ft2_4FGL_J1018.4+0528_daily_bin710.fits outfile=/scratch/kocevski/805123/cmap_HighResolution_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.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.60
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7793       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.749       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.501       1.0000         .10000E-03   10000.    
     6 'norm      '    19.808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12737E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7622       1.0000         .10000E-03   10000.    
    16 'norm      '    .57847       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83104       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=   5917.272     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2024 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7802        2.4048        .41767E-02    .28108E-03
   2  norm          3.1442        .94469        .57156E-02    .95176E-03
   3  Prefactor     26.724        24.866        .19365E-02   -.15827E-02
   4  Prefactor     .10000E-03    20.143        .90712E-02** at limit **
   5  Prefactor     49.507        34.052        .14249E-02   -.26965E-03
   6  norm          19.798        20.362        .22499E-02   -.41124E-03
   7  Prefactor     10.002        10.342        .31671E-02   -.14541E-02
   8  Prefactor     .10001E-03    181.77        .90712E-02** at limit **
   9  Prefactor     .10000E-03    62.589        .90712E-02** at limit **
  10  Prefactor     .10000E-03    12.483        .90712E-02** at limit **
  11  norm          4.9222        1.8893        .45324E-02    .28252E-03
  12  Prefactor     .10000E-03    2.7243        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.3573        .90712E-02** at limit **
  14  Prefactor     14.594        10.832        .26212E-02   -.54121E-03
  15  Prefactor     4.7632        7.6195        .46093E-02   -.44281E-03
  16  norm          .57870        .57036        .11587E-01    .28183E-03
  17  Prefactor     .10000E-03    6.3480        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.665        .90712E-02** at limit **
  19  Normalizat    1.2576        .22761        .63393E-01    .15025E-03
  20  Prefactor     .83129        .17222        .44120E-01    .21085E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.78019
  norm       = 3.14416
  Prefactor  = 26.7242
  Prefactor  = 0.0001
  Prefactor  = 49.5073
  norm       = 19.7979
  Prefactor  = 10.0023
  Prefactor  = 0.000100014
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.92217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5944
  Prefactor  = 4.76321
  norm       = 0.578705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2576
  Prefactor  = 0.831294
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.272     FROM HESSE     STATUS=OK           287 CALLS     2311 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7802        2.4180        .72909E-04   -1.5227    
   2  norm          3.1442        .94482        .38860E-04   -1.5353    
   3  Prefactor     26.724        24.922        .77458E-04   -1.4674    
   4  Prefactor     .10000E-03    20.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.507        34.069        .56997E-04   -1.4300    
   6  norm          19.798        20.344        .89994E-04   -1.4818    
   7  Prefactor     10.002        10.330        .12668E-03   -1.5075    
   8  Prefactor     .10001E-03    182.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9222        1.8897        .61982E-04   -1.5264    
  12  Prefactor     .10000E-03    2.7402        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3660        .87469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.594        10.839        .10485E-03   -1.4944    
  15  Prefactor     4.7632        7.5975        .18437E-03   -1.5271    
  16  norm          .57870        .54293        .54459E-03   -1.5556    
  17  Prefactor     .10000E-03    6.3768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2576        .26844        .28040E-03   -.84841    
  20  Prefactor     .83129        .20160        .26580E-03   -.98585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43424e-09
Minuit parameter uncertainties:
  1  2.41808
  2  0.944829
  3  24.932
  4  9.78047e-05
  5  34.0822
  6  20.3513
  7  10.3323
  8  0.00317813
  9  0.00105466
  10  5.48005e-06
  11  1.88968
  12  6.20994e-06
  13  6.51071e-06
  14  10.8409
  15  7.59905
  16  0.542933
  17  2.16452e-05
  18  1.32474e-05
  19  0.268732
  20  0.201782
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.055e-03  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:  8.313e-01  2.018e-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.258e+00  2.687e-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: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805123/likelihoodResults_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.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) = 5917.2720576
delta logL = -7.58519345254e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5917.27198205
delta logL = -3.00189640257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5685       1.0000          .0000       10.000    
     3 'Normalizat'    1.2576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83129       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=   5917.272     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      240 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.030        .90712E-02** at limit **
   2  Index         2.5365        8.2740        .50000        .58587E-05
   3  Normalizat    1.2576        .34858E-02    .63393E-01   -.66096E-04
   4  Prefactor     .83129        .27621E-02    .44123E-01   -.17643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5365
  Normalizat = 1.2576
  Prefactor  = 0.831293
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.272     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    258.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5365        6.5970        .50000       -.51519    
   3  Normalizat    1.2576        .12912E-01    .28040E-03   -.84841    
   4  Prefactor     .83129        .10236E-01    .26580E-03   -.98585    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65893e-07
Minuit parameter uncertainties:
  1  0.000399296
  2  379.854
  3  0.0129116
  4  0.0102355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805123': 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) = 5917.271982
delta logL = -2.4985820346e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.993e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.537e+00  3.799e+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:  8.313e-01  1.024e-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.258e+00  1.291e-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/805123/cmap_HighResolution_423360001_423619201_4FGL_J1018.4+0528_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-01 17:47:02.296087', job_id='805123', GAL2='0.83', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630543622.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-2.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='710' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 805123: <4FGL_J1018.4+0528_daily_bin710> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin710 154.617 5.4702 423360001 423619201 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 :                                   574.58 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            977 sec.

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

