/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 224 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin339
RA = 154.617, Dec = 5.4702
tmin = 327196801, tmax = 327456001
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='803769', job_status='RUN', time_executed='2021-09-01 17:30:53.149128', time_epoch_executed='1630542653.15' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803769/ft1_4FGL_J1018.4+0528_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803769/ft2_4FGL_J1018.4+0528_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803769/ft1_4FGL_J1018.4+0528_daily_bin339.fits outfile=/scratch/kocevski/803769/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin339.fits ra=154.617 dec=5.4702 rad=12.0 tmin=327196801.0 tmax=327456001.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.32
user 3.09
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803769/ft1_filtered_4FGL_J1018.4+0528_daily_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/803769/ft2_4FGL_J1018.4+0528_daily_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/803769/ltcube_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.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/803769/ft2_4FGL_J1018.4+0528_daily_bin339.fits
.....................!
real 16.22
user 15.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803769/ft1_filtered_4FGL_J1018.4+0528_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/803769/ft2_4FGL_J1018.4+0528_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/803769/ltcube_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.fits outfile=/scratch/kocevski/803769/expmap_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.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/803769/ltcube_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.fits
.....................!
real 196.73
user 190.95
sys 4.96

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/803769/ft1_filtered_4FGL_J1018.4+0528_daily_bin339.fits scfile=/scratch/kocevski/803769/ft2_4FGL_J1018.4+0528_daily_bin339.fits outfile=/scratch/kocevski/803769/cmap_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803769/ft1_filtered_4FGL_J1018.4+0528_daily_bin339.fits scfile=/scratch/kocevski/803769/ft2_4FGL_J1018.4+0528_daily_bin339.fits outfile=/scratch/kocevski/803769/cmap_HighResolution_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5007       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17794       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   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      '    2.9160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1314       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1267       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=   5794.719     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2026 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5007        1.2043       -.39933E-07   -.28770E-03
   2  norm          2.2417        .88381       -.22574E-08   -.26594E-03
   3  Prefactor     .10000E-03    6.1751       -.32785E-06** at limit **
   4  Prefactor     39.803        40.557       -.25327E-05   -.44084E-04
   5  Prefactor     .10000E-03    45.636        .32940E-04** at limit **
   6  norm          16.473        16.718        .11802E-06    .85830E-04
   7  Prefactor     13.157        11.723       -.99904E-07    .26428E-04
   8  Prefactor     .10000E-03    58.965       -.41698E-04** at limit **
   9  Prefactor     .10000E-03    51.304        .71310E-05** at limit **
  10  Prefactor     .10000E-03    7.7775        .18713E-05** at limit **
  11  norm          .17616        1.0857       -.57866E-06   -.68734E-03
  12  Prefactor     .10000E-03    4.5596        .10281E-09** at limit **
  13  Prefactor     .10000E-03    .83293        .85938E-07** at limit **
  14  Prefactor     .10000E-03    22.003       -.62075E-05** at limit **
  15  Prefactor     .10000E-03    2.0843       -.27454E-07** at limit **
  16  norm          2.9162        .87271       -.54999E-07   -.17757E-02
  17  Prefactor     .10000E-03    10.415        .10147E-04** at limit **
  18  Prefactor     .10000E-03    9.6751       -.10368E-04** at limit **
  19  Normalizat    1.1313        .20224        .22768E-06    .10728E-03
  20  Prefactor     1.1268        .17304        .27160E-06    .54865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50067
  norm       = 2.24174
  Prefactor  = 0.0001
  Prefactor  = 39.8032
  Prefactor  = 0.0001
  norm       = 16.4735
  Prefactor  = 13.1567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.176162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13133
  Prefactor  = 1.12676
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.719     FROM HESSE     STATUS=OK           287 CALLS     2313 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5007        1.1925        .72011E-04   -1.5463    
   2  norm          2.2417        .88088        .42865E-04   -1.5409    
   3  Prefactor     .10000E-03    6.1867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.803        40.555        .63531E-04   -1.4445    
   5  Prefactor     .10000E-03    45.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.473        16.711        .98680E-04   -1.4896    
   7  Prefactor     13.157        11.708        .11042E-03   -1.4982    
   8  Prefactor     .10000E-03    59.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .17616        2.2646        .15077E-02   -1.5624    
  12  Prefactor     .10000E-03    4.5933        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .83695        .67834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0865        .10732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9162        .87191        .37490E-04   -1.5366    
  17  Prefactor     .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1313        .23733        .28073E-03   -.88752    
  20  Prefactor     1.1268        .20402        .24053E-03   -.88616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74822e-10
Minuit parameter uncertainties:
  1  1.19252
  2  0.880881
  3  2.01962e-06
  4  40.5834
  5  1.58852e-05
  6  16.716
  7  11.7097
  8  0.000118581
  9  6.57526e-06
  10  8.9342e-07
  11  1.26294
  12  4.97349e-06
  13  2.24239e-08
  14  0.000100428
  15  6.36215e-07
  16  0.871916
  17  1.84839e-05
  18  2.12018e-06
  19  0.237552
  20  0.204167
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  6.575e-06  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.127e+00  2.042e-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.131e+00  2.376e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803769/likelihoodResults_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.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) = 5794.7186339
delta logL = -9.24530622797e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5794.71854162
delta logL = -1.70733073901e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4033       1.0000          .0000       10.000    
     3 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1268       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=   5794.719     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      254 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.452        .90712E-02** at limit **
   2  Index         2.3650        5.0489        .50000        .65710E-05
   3  Normalizat    1.1313        .37897E-02    .63466E-01    .22595E-03
   4  Prefactor     1.1268        .32557E-02    .54400E-01    .30908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36504
  Normalizat = 1.13133
  Prefactor  = 1.12676
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.719     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3650        8.5186        .50000       -.55506    
   3  Normalizat    1.1313        .89747E-02    .28073E-03   -.88752    
   4  Prefactor     1.1268        .77138E-02    .24053E-03   -.88616    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7032e-08
Minuit parameter uncertainties:
  1  0.000305764
  2  126.563
  3  0.00897474
  4  0.00771381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803769': 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) = 5794.71854155
delta logL = -1.02853846329e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.058e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.365e+00  1.266e+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.127e+00  7.714e-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:  1.131e+00  8.975e-03  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/803769/cmap_HighResolution_327196801_327456001_4FGL_J1018.4+0528_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-01 17:40:12.376116', job_id='803769', GAL2='1.13', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630543212.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='339' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 803769: <4FGL_J1018.4+0528_daily_bin339> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin339> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:44 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:27:00 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:27:00 2021
Terminated at Wed Sep  1 17:40:13 2021
Results reported at Wed Sep  1 17:40:13 2021

Your job looked like:

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

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

