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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin251
RA = 154.617, Dec = 5.4702
tmin = 304387201, tmax = 304646401
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='803636', job_status='RUN', time_executed='2021-09-01 17:29:13.671954', time_epoch_executed='1630542553.67' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803636/ft1_4FGL_J1018.4+0528_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803636/ft2_4FGL_J1018.4+0528_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803636/ft1_4FGL_J1018.4+0528_daily_bin251.fits outfile=/scratch/kocevski/803636/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin251.fits ra=154.617 dec=5.4702 rad=12.0 tmin=304387201.0 tmax=304646401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.12
user 3.88
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803636/ft1_filtered_4FGL_J1018.4+0528_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/803636/ft2_4FGL_J1018.4+0528_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/803636/ltcube_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.fits outfile=/scratch/kocevski/803636/expmap_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.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/803636/ltcube_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.fits
.....................!
real 192.38
user 185.76
sys 5.40

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/803636/ft1_filtered_4FGL_J1018.4+0528_daily_bin251.fits scfile=/scratch/kocevski/803636/ft2_4FGL_J1018.4+0528_daily_bin251.fits outfile=/scratch/kocevski/803636/cmap_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.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/803636/ft1_filtered_4FGL_J1018.4+0528_daily_bin251.fits scfile=/scratch/kocevski/803636/ft2_4FGL_J1018.4+0528_daily_bin251.fits outfile=/scratch/kocevski/803636/cmap_HighResolution_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4407       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4798       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83955E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .11889E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33207E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.701       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24308E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5164       1.0000         .10000E-03   10000.    
    16 'norm      '    .91326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62729E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90896       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.8568       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=   6488.617     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     2440 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4405        1.2880        .84178E-04   -.16882E-04
   2  norm          1.4796        .89745        .57006E-04    .27920E-04
   3  Prefactor     43.934        22.178        .60526E-04    .12352E-03
   4  Prefactor     74.502        47.584        .46511E-04    .20141E-04
   5  Prefactor     .10002E-03    38.663        .14440    ** at limit **
   6  norm          .10000E-03    54.680        .18142E-02** at limit **
   7  Prefactor     .10000E-03    8.9561        .18142E-02** at limit **
   8  Prefactor     .10000E-03    452.59        .21346E-02** at limit **
   9  Prefactor     40.059        119.07        .63309E-04    .22626E-04
  10  Prefactor     13.752        41.739        .10821E-03    .28052E-04
  11  norm          .10000E-03    .49231        .54919E-03** at limit **
  12  Prefactor     .10000E-03    9.4075        .36285E-03** at limit **
  13  Prefactor     .10000E-03    7.7666        .21400E-02** at limit **
  14  Prefactor     .10000E-03    3.1021        .13840E-02** at limit **
  15  Prefactor     3.5119        9.6259        .21559E-03   -.18931E-04
  16  norm          .91387        .63903        .53734E-03   -.18895E-02
  17  Prefactor     .10001E-03    29.946        .41151E-02** at limit **
  18  Prefactor     .10000E-03    50.950        .18142E-02** at limit **
  19  Normalizat    .90915        .27839        .36580E-03    .71109E-04
  20  Prefactor     1.8568        .24244        .24218E-03   -.54596E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44055
  norm       = 1.4796
  Prefactor  = 43.9341
  Prefactor  = 74.5022
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0592
  Prefactor  = 13.7518
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.51195
  norm       = 0.913869
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Normalizat = 0.909151
  Prefactor  = 1.85675
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.617     FROM HESSE     STATUS=OK           281 CALLS     2721 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4405        1.2880        .33671E-05   -1.5468    
   2  norm          1.4796        .89743        .22803E-05   -1.5465    
   3  Prefactor     43.934        22.176        .12105E-04   -1.4381    
   4  Prefactor     74.502        47.584        .93023E-05   -1.3980    
   5  Prefactor     .10002E-03    38.923        .14370       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    54.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    452.81        .42693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.059        119.07        .12662E-04   -1.4441    
  10  Prefactor     13.752        41.741        .43284E-05   -1.4966    
  11  norm          .10000E-03    .49232        .10984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4079        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8089        .42799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1022        .27679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5119        9.6224        .86235E-05   -1.5333    
  16  norm          .91387        .63745        .21494E-04   -1.5517    
  17  Prefactor     .10001E-03    30.153        .82302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90915        .27858        .14632E-04   -.96139    
  20  Prefactor     1.8568        .24266        .96870E-05   -.67981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59527e-10
Minuit parameter uncertainties:
  1  1.28801
  2  0.897434
  3  22.1799
  4  47.6081
  5  0.0015881
  6  0.000184463
  7  3.69672e-06
  8  7.76121e-05
  9  119.783
  10  41.8298
  11  5.57583e-07
  12  1.60809e-05
  13  0.000264755
  14  1.83269e-07
  15  9.62659
  16  0.637455
  17  0.00103226
  18  0.000203164
  19  0.279024
  20  0.242821
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  4.006e+01  1.198e+02  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.857e+00  2.428e-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:  9.092e-01  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803636/likelihoodResults_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.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) = 6488.6019166
delta logL = 0.0147111914412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6488.59142819
delta logL = 0.0251996056204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.644       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5030       1.0000          .0000       10.000    
     3 'Normalizat'    .90208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8605       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=   6488.591     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      255 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.644        1719.7        .18397E-02    .10801E-03
   2  Index         2.5030        6.2411        .14350        .11616E-03
   3  Normalizat    .90198        .84804E-01    .82914E-01    .23173E-04
   4  Prefactor     1.8606        .65111E-01    .54735E-01   -.44992E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6441
  Index      = 2.503
  Normalizat = 0.901977
  Prefactor  = 1.86064
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.591     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.644        85.513        .73586E-04   -1.4618    
   2  Index         2.5030        1.2407        .86893E-02   -.52291    
   3  Normalizat    .90198        .27143        .36708E-03   -.96391    
   4  Prefactor     1.8606        .24212        .24197E-03   -.67882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56811e-10
Minuit parameter uncertainties:
  1  85.8692
  2  1.25828
  3  0.271845
  4  0.242273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803636': 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): 0
logL (Free Index) = 6488.59142811
delta logL = 0.0251996810121

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  2.964e+01  8.587e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.503e+00  1.258e+00  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.861e+00  2.423e-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:  9.020e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/803636/cmap_HighResolution_304387201_304646401_4FGL_J1018.4+0528_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-01 17:39:39.114614', job_id='803636', GAL2='1.86', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1630543179.11', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.86', dlogl='2.52e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='251' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 803636: <4FGL_J1018.4+0528_daily_bin251> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin251> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:34 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:26:19 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:26:19 2021
Terminated at Wed Sep  1 17:39:39 2021
Results reported at Wed Sep  1 17:39:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin251 154.617 5.4702 304387201 304646401 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 :                                   623.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             223.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            845 sec.

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

