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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin671
RA = 154.617, Dec = 5.4702
tmin = 413251201, tmax = 413510401
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='807703', job_status='RUN', time_executed='2021-09-01 17:40:44.211355', time_epoch_executed='1630543244.21' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807703/ft1_4FGL_J1018.4+0528_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807703/ft2_4FGL_J1018.4+0528_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807703/ft1_4FGL_J1018.4+0528_daily_bin671.fits outfile=/scratch/kocevski/807703/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin671.fits ra=154.617 dec=5.4702 rad=12.0 tmin=413251201.0 tmax=413510401.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 5.80
user 5.51
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807703/ft1_filtered_4FGL_J1018.4+0528_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/807703/ft2_4FGL_J1018.4+0528_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/807703/ltcube_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.fits outfile=/scratch/kocevski/807703/expmap_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.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/807703/ltcube_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.fits
.....................!
real 191.23
user 186.68
sys 4.02

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/807703/ft1_filtered_4FGL_J1018.4+0528_daily_bin671.fits scfile=/scratch/kocevski/807703/ft2_4FGL_J1018.4+0528_daily_bin671.fits outfile=/scratch/kocevski/807703/cmap_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807703/ft1_filtered_4FGL_J1018.4+0528_daily_bin671.fits scfile=/scratch/kocevski/807703/ft2_4FGL_J1018.4+0528_daily_bin671.fits outfile=/scratch/kocevski/807703/cmap_HighResolution_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9982       1.0000         .10000E-03   10000.    
     2 'norm      '    .54642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.870       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2553       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .35285E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.576       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1728       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80674       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=   5591.719     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2060 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9986        1.6829        .15133E-06   -.31265E-03
   2  norm          .54638        .49195        .50989E-08   -.93802E-03
   3  Prefactor     9.9384        10.865       -.39907E-06   -.14985E-04
   4  Prefactor     .10000E-03    103.60        .23796E-05** at limit **
   5  Prefactor     .10000E-03    19.976        .15472E-06** at limit **
   6  norm          1.7879        17.947       -.53522E-05   -.23992E-03
   7  Prefactor     .10000E-03    6.1356        .22417E-06** at limit **
   8  Prefactor     48.625        54.146        .16360E-04   -.13306E-03
   9  Prefactor     .10000E-03    31.834        .24901E-05** at limit **
  10  Prefactor     18.872        17.513       -.24084E-05    .26790E-04
  11  norm          2.2552        1.3002       -.32537E-07   -.25376E-03
  12  Prefactor     9.4006        8.1736        .23691E-05   -.32013E-03
  13  Prefactor     4.4090        4.3484       -.20405E-06   -.42036E-03
  14  Prefactor     .10000E-03    7.7193        .25755E-07** at limit **
  15  Prefactor     .10000E-03    6.0577        .43080E-06** at limit **
  16  norm          .35064E-01    .67943       -.37797E-06   -.10474E-02
  17  Prefactor     22.951        13.170        .81742E-06    .29297E-03
  18  Prefactor     21.578        20.807       -.20356E-06    .96126E-05
  19  Normalizat    1.1726        .20384       -.23386E-05    .15300E-03
  20  Prefactor     .80683        .15936        .55728E-06   -.37628E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99861
  norm       = 0.546379
  Prefactor  = 9.93845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78789
  Prefactor  = 0.0001
  Prefactor  = 48.6246
  Prefactor  = 0.0001
  Prefactor  = 18.872
  norm       = 2.25525
  Prefactor  = 9.40061
  Prefactor  = 4.40899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0350642
  Prefactor  = 22.951
  Prefactor  = 21.5783
  Normalizat = 1.17261
  Prefactor  = 0.806827
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.719     FROM HESSE     STATUS=OK           299 CALLS     2359 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9986        1.6845        .59647E-04   -1.5308    
   2  norm          .54638        .47147        .47502E-03   -1.5560    
   3  Prefactor     9.9384        10.827        .12713E-03   -1.5077    
   4  Prefactor     .10000E-03    105.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7879        18.633        .31247E-03   -1.5441    
   7  Prefactor     .10000E-03    6.1585        .18075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.625        53.675        .57516E-04   -1.4312    
   9  Prefactor     .10000E-03    31.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.872        17.482        .92201E-04   -1.4839    
  11  norm          2.2552        1.2970        .62066E-04   -1.5408    
  12  Prefactor     9.4006        8.0808        .13070E-03   -1.5095    
  13  Prefactor     4.4090        4.3832        .14439E-03   -1.5288    
  14  Prefactor     .10000E-03    7.8167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1000        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .35064E-01    2.2205        .99664E-03   -1.5671    
  17  Prefactor     22.951        13.087        .83612E-04   -1.4749    
  18  Prefactor     21.578        20.817        .86230E-04   -1.4779    
  19  Normalizat    1.1726        .23819        .25060E-03   -.87453    
  20  Prefactor     .80683        .18602        .24543E-03   -.99477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73273e-09
Minuit parameter uncertainties:
  1  1.6845
  2  0.471472
  3  10.8287
  4  0.000193646
  5  7.52449e-06
  6  11.548
  7  1.87699e-05
  8  53.7282
  9  0.000118158
  10  17.4872
  11  1.29704
  12  8.08171
  13  4.38354
  14  1.4056e-05
  15  2.17004e-06
  16  0.557293
  17  13.0889
  18  20.8235
  19  0.238414
  20  0.186163
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.182e-04  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.068e-01  1.862e-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.173e+00  2.384e-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: 7.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/807703/likelihoodResults_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.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): 0
logL (Free Index) = 5591.71917322
delta logL = -0.000149661059368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5591.69319857
delta logL = 0.0258249860271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7976       1.0000          .0000       10.000    
     3 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81344       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=   5591.719     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      304 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    34.687        .41556E-04** at limit **
   2  Index         1.7036        1.2872       -.14112E-04   -.11481E-05
   3  Normalizat    1.1726        .21871        .21793E-04    .45438E-04
   4  Prefactor     .80683        .18418       -.24246E-04   -.17549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 1.70359
  Normalizat = 1.17261
  Prefactor  = 0.806826
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.719     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      341 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     .10001E-03    363.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7036        8.4909        .50000       -.71986    
   3  Normalizat    1.1726        .16225E-01    .56670E-01   -.87453    
   4  Prefactor     .80683        .13508E-01    .43892E-01   -.99477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.72908e-07
Minuit parameter uncertainties:
  1  0.00340681
  2  1860.28
  3  0.0162247
  4  0.0135084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807703': 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) = 5591.71902344
delta logL = 1.17761373986e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.407e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.704e+00  1.860e+03  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.068e-01  1.351e-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.173e+00  1.622e-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/807703/cmap_HighResolution_413251201_413510401_4FGL_J1018.4+0528_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.79e-08', time_completed='2021-09-01 17:50:10.529293', job_id='807703', GAL2='0.81', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630543810.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='671' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 807703: <4FGL_J1018.4+0528_daily_bin671> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin671> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 17:40:29 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:40:31 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:40:31 2021
Terminated at Wed Sep  1 17:50:11 2021
Results reported at Wed Sep  1 17:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin671 154.617 5.4702 413251201 413510401 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 :                                   569.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            582 sec.

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

