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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin164
RA = 154.617, Dec = 5.4702
tmin = 281836801, tmax = 282096001
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='802476', job_status='RUN', time_executed='2021-09-01 17:25:25.136650', time_epoch_executed='1630542325.14' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802476/ft1_4FGL_J1018.4+0528_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802476/ft2_4FGL_J1018.4+0528_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802476/ft1_4FGL_J1018.4+0528_daily_bin164.fits outfile=/scratch/kocevski/802476/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin164.fits ra=154.617 dec=5.4702 rad=12.0 tmin=281836801.0 tmax=282096001.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.08
user 3.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802476/ft1_filtered_4FGL_J1018.4+0528_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/802476/ft2_4FGL_J1018.4+0528_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/802476/ltcube_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.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/802476/ft2_4FGL_J1018.4+0528_daily_bin164.fits
.....................!
real 13.91
user 13.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802476/ft1_filtered_4FGL_J1018.4+0528_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/802476/ft2_4FGL_J1018.4+0528_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/802476/ltcube_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.fits outfile=/scratch/kocevski/802476/expmap_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.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/802476/ltcube_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.fits
.....................!
real 191.26
user 186.09
sys 4.75

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/802476/ft1_filtered_4FGL_J1018.4+0528_daily_bin164.fits scfile=/scratch/kocevski/802476/ft2_4FGL_J1018.4+0528_daily_bin164.fits outfile=/scratch/kocevski/802476/cmap_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7515       1.0000         .10000E-03   10000.    
     2 'norm      '    .73224       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.093       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    112.15       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11756E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.056       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.666       1.0000         .10000E-03   10000.    
    16 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1841       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90648       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=   4841.656     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2096 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7513        2.1428       -.14565E-06    .69430E-04
   2  norm          .73225        .72763        .52159E-07    .21173E-03
   3  Prefactor     .10000E-03    5.8464       -.13347E-05** at limit **
   4  Prefactor     .10000E-03    16.485        .14236E-06** at limit **
   5  Prefactor     35.089        34.696       -.40043E-07   -.14385E-04
   6  norm          .10000E-03    7.3234       -.11733E-05** at limit **
   7  Prefactor     .10000E-03    7.2805       -.17863E-05** at limit **
   8  Prefactor     112.00        75.864       -.31300E-05   -.18338E-03
   9  Prefactor     .10000E-03    51.635       -.27024E-05** at limit **
  10  Prefactor     25.044        19.119       -.63854E-07    .45495E-04
  11  norm          .10000E-03    .52526        .23796E-07** at limit **
  12  Prefactor     5.8980        7.7525        .47442E-07   -.42291E-04
  13  Prefactor     .10000E-03    1.0008       -.11776E-06** at limit **
  14  Prefactor     .10000E-03    6.1091       -.66179E-06** at limit **
  15  Prefactor     19.664        10.678       -.58000E-06   -.44860E-03
  16  norm          .10000E-03    .56730        .12341E-05** at limit **
  17  Prefactor     19.942        12.144       -.23556E-05   -.16453E-02
  18  Prefactor     .10000E-03    7.2902        .50791E-07** at limit **
  19  Normalizat    1.1844        .27245        .10009E-04   -.55551E-03
  20  Prefactor     .90616        .21482       -.95619E-05   -.55308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.75126
  norm       = 0.732245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.999
  Prefactor  = 0.0001
  Prefactor  = 25.0443
  norm       = 0.0001
  Prefactor  = 5.89797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.664
  norm       = 0.0001
  Prefactor  = 19.9423
  Prefactor  = 0.0001
  Normalizat = 1.18444
  Prefactor  = 0.90616
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.656     FROM HESSE     STATUS=OK           289 CALLS     2385 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7513        2.1432        .54131E-04   -1.5188    
   2  norm          .73225        .70154        .55948E-03   -1.5537    
   3  Prefactor     .10000E-03    5.8524        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.089        34.698        .67649E-04   -1.4523    
   6  norm          .10000E-03    7.3284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     112.00        75.963        .18992E-03   -1.3587    
   9  Prefactor     .10000E-03    51.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.044        19.101        .80027E-04   -1.4707    
  11  norm          .10000E-03    .53346        .49209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8980        7.7476        .16538E-03   -1.5222    
  13  Prefactor     .10000E-03    1.0036        .67948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.749        .33200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.664        10.676        .90316E-04   -1.4821    
  16  norm          .10000E-03    1.0091        .95026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.942        12.538        .89588E-04   -1.4815    
  18  Prefactor     .10000E-03    7.2939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1844        .27706        .26254E-03   -.87085    
  20  Prefactor     .90616        .21794        .24848E-03   -.95926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52908e-09
Minuit parameter uncertainties:
  1  2.14326
  2  0.701549
  3  3.4449e-05
  4  1.23561e-05
  5  34.7175
  6  1.0147e-05
  7  5.70726e-05
  8  76.0294
  9  0.000171422
  10  19.106
  11  3.45929e-07
  12  7.74888
  13  1.49754e-06
  14  0.000138811
  15  10.6771
  16  3.16878e-06
  17  12.5393
  18  1.13586e-05
  19  0.277402
  20  0.218151
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.714e-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:  9.062e-01  2.182e-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.184e+00  2.774e-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: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802476/likelihoodResults_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.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) = 4841.6564903
delta logL = -9.20672091524e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4841.6563983
delta logL = -6.58219505567e-08

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.5592       1.0000          .0000       10.000    
     3 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90616       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=   4841.656     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    16.417        .90712E-02** at limit **
   2  Index         2.5526        8.6597        .50000        .12112E-05
   3  Normalizat    1.1845        .32364E-02    .59359E-01   -.14745E-03
   4  Prefactor     .90615        .27329E-02    .45083E-01   -.35464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Index      = 2.55261
  Normalizat = 1.18446
  Prefactor  = 0.906149
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.656     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    198.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5526        6.2722        .50000       -.51149    
   3  Normalizat    1.1845        .11291E-01    .26252E-03   -.87084    
   4  Prefactor     .90615        .95381E-02    .24848E-03   -.95927    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.248e-11
Minuit parameter uncertainties:
  1  0.00616459
  2  250.925
  3  0.011291
  4  0.00953815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802476': 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) = 4841.65639829
delta logL = -6.00339262746e-08

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  6.165e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.553e+00  2.509e+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:  9.061e-01  9.538e-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.184e+00  1.129e-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/802476/cmap_HighResolution_281836801_282096001_4FGL_J1018.4+0528_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-01 17:34:11.027569', job_id='802476', GAL2='0.91', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630542851.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-6.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='164' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:34:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 802476: <4FGL_J1018.4+0528_daily_bin164> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin164> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 17:21:12 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:22:33 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:22:33 2021
Terminated at Wed Sep  1 17:34:11 2021
Results reported at Wed Sep  1 17:34:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin164 154.617 5.4702 281836801 282096001 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 :                                   525.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            779 sec.

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

