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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1152
RA = 154.607, Dec = 35.6802
tmin = 537926401, tmax = 538185601
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='814196', job_status='RUN', time_executed='2021-09-01 18:03:30.710597', time_epoch_executed='1630544610.71' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814196/ft1_4FGL_J1018.4+3540_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814196/ft1_4FGL_J1018.4+3540_daily_bin1152.fits outfile=/scratch/kocevski/814196/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1152.fits ra=154.607 dec=35.6802 rad=12.0 tmin=537926401.0 tmax=538185601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.64
user 6.31
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.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/814196/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1152.fits evtable="EVENTS" outfile="/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/814196/ltcube_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.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/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits
.....................!
real 17.67
user 17.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/814196/ltcube_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.fits outfile=/scratch/kocevski/814196/expmap_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.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/814196/ltcube_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.fits
.....................!
real 193.07
user 187.71
sys 4.68

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits scfile=/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits outfile=/scratch/kocevski/814196/cmap_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.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.607 yref=35.6802 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits scfile=/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits outfile=/scratch/kocevski/814196/cmap_HighResolution_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.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.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814196/Model_4FGL_J1018.4+3540_daily_bin1152.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/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits.....................!
real 36.43
user 34.92
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits', '/scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits', expMap='/scratch/kocevski/814196/expmap_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.fits', expCube='/scratch/kocevski/814196/ltcube_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/814196/Model_4FGL_J1018.4+3540_daily_bin1152.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/814196/ft1_filtered_4FGL_J1018.4+3540_daily_bin1152.fits
Spacecraft file(s): /scratch/kocevski/814196/ft2_4FGL_J1018.4+3540_daily_bin1152.fits
Exposure map: /scratch/kocevski/814196/expmap_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.fits
Exposure cube: /scratch/kocevski/814196/ltcube_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/814196/Model_4FGL_J1018.4+3540_daily_bin1152.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) = 3612.40654435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11977E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.493       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8193       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2080       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12885E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2899       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.764       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.768       1.0000         .10000E-03   10000.    
    25 'norm      '    7.5560       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79800       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3612.376     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3731 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5989       -.72898E-07** at limit **
   2  norm          .10000E-03    9.3138        .94545E-07** at limit **
   3  Prefactor     .10000E-03    58.517       -.15923E-05** at limit **
   4  Prefactor     26.507        26.302       -.26581E-07    .13868E-04
   5  Prefactor     4.4338        109.91        .16772E-05   -.10411E-05
   6  Prefactor     6.5754        8.4889        .24553E-05   -.22545E-04
   7  Prefactor     .10000E-03    12.278       -.35926E-06** at limit **
   8  Prefactor     .10000E-03    1.2664       -.14758E-06** at limit **
   9  norm          2.8180        9.0946        .29696E-06   -.13208E-04
  10  Prefactor     3.4513        4.2898        .15955E-06    .23603E-05
  11  Prefactor     .10000E-03    20.396       -.11442E-06** at limit **
  12  Prefactor     .10000E-03    1.7950       -.36711E-07** at limit **
  13  norm          6.9578        7.7531       -.28327E-06    .74088E-06
  14  Prefactor     .10000E-03    32.381       -.92640E-07** at limit **
  15  Prefactor     .10000E-03    13.193        .10083E-07** at limit **
  16  Prefactor     6.2092        5.0728        .24109E-06   -.87309E-05
  17  Prefactor     .10000E-03    1.7137       -.94332E-08** at limit **
  18  Prefactor     .10000E-03    65.050        .43515E-06** at limit **
  19  Prefactor     .10000E-03    11.175       -.31553E-07** at limit **
  20  Prefactor     19.144        162.01        .11819E-05    .18463E-04
  21  Prefactor     10.124        15.119        .14881E-06   -.50859E-05
  22  norm          2.2898        .61484        .37173E-07   -.67103E-04
  23  Prefactor     28.752        30.827        .82887E-07   -.16393E-05
  24  Prefactor     35.799        34.556       -.17183E-06   -.11234E-04
  25  norm          7.5520        25.889        .23082E-06    .33970E-05
  26  Normalizat    .79805        .21309        .16781E-06   -.15209E-04
  27  Prefactor     1.2529        .26467       -.10053E-05    .22487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5071
  Prefactor  = 4.43383
  Prefactor  = 6.57544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81804
  Prefactor  = 3.45128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.95782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.144
  Prefactor  = 10.124
  norm       = 2.28979
  Prefactor  = 28.7522
  Prefactor  = 35.7994
  norm       = 7.55198
  Normalizat = 0.798047
  Prefactor  = 1.25291
 **********
 **   18 **HESSE 
 **********

 FCN=   3612.376     FROM HESSE     STATUS=OK           488 CALLS     4219 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6084        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.3160        .17913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.507        26.171        .77831E-04   -1.4678    
   5  Prefactor     4.4338        108.57        .18907E-03   -1.5287    
   6  Prefactor     6.5754        8.5033        .78251E-03   -1.5195    
   7  Prefactor     .10000E-03    12.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2810        .66069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8180        9.0684        .24223E-03   -1.5372    
  10  Prefactor     3.4513        4.2809        .13201E-03   -1.5336    
  11  Prefactor     .10000E-03    20.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8020        .78545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9578        7.7521        .76043E-03   -1.5180    
  14  Prefactor     .10000E-03    32.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2092        5.0722        .11717E-03   -1.5210    
  17  Prefactor     .10000E-03    1.7165        .76836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    65.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.144        161.09        .91897E-04   -1.4833    
  21  Prefactor     10.124        15.116        .12589E-03   -1.5071    
  22  norm          2.2898        .62080        .22012E-04   -1.5405    
  23  Prefactor     28.752        30.667        .74701E-04   -1.4635    
  24  Prefactor     35.799        34.817        .67009E-04   -1.4511    
  25  norm          7.5520        25.726        .14589E-03   -1.5158    
  26  Normalizat    .79805        .25026        .25595E-03   -1.0014    
  27  Prefactor     1.2529        .31054        .26421E-03   -.84718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82449e-11
Minuit parameter uncertainties:
  1  1.07055e-06
  2  6.64911e-07
  3  0.000128107
  4  26.1819
  5  43.9706
  6  8.50485
  7  2.86415e-06
  8  1.59198e-06
  9  9.07282
  10  4.2813
  11  2.29654e-06
  12  7.08757e-07
  13  7.7532
  14  1.27569e-05
  15  7.06151e-06
  16  5.07256
  17  9.12386e-08
  18  0.000152828
  19  2.89843e-06
  20  111.475
  21  15.1212
  22  0.620803
  23  30.6843
  24  34.8365
  25  25.7642
  26  0.250623
  27  0.310993
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  7.088e-07  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.253e+00  3.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  7.980e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814196/likelihoodResults_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.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) = 3612.3786382
delta logL = -0.0025465281301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3612.37609156
delta logL = 1.07963842311e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5782       1.0000          .0000       10.000    
     3 'Normalizat'    .79804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   3612.376     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.550        .79044E-02** at limit **
   2  Index         2.0862        8.4155        .50000        .77773E-07
   3  Normalizat    .79805        .16270E-01    .25595E-03   -.22282E-03
   4  Prefactor     1.2529        .20646E-01    .26421E-03   -.20673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08624
  Normalizat = 0.798048
  Prefactor  = 1.2529
 **********
 **   18 **HESSE 
 **********

 FCN=   3612.376     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    185.89        .84472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0862        8.9315        .50000       -.62211    
   3  Normalizat    .79805        .56035E-01    .51190E-04   -1.0014    
   4  Prefactor     1.2529        .71103E-01    .52843E-04   -.84718    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1819e-10
Minuit parameter uncertainties:
  1  2.42366e-06
  2  910.755
  3  0.0560391
  4  0.0711088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814196': 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) = 3612.37608804
delta logL = 3.63338722309e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.424e-06  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.086e+00  9.108e+02  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.253e+00  7.111e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  7.980e-01  5.604e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/814196/cmap_HighResolution_537926401_538185601_4FGL_J1018.4+3540_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-01 18:14:27.119012', job_id='814196', GAL2='1.25', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630545267.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='3.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1152' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:14:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 814196: <4FGL_J1018.4+3540_daily_bin1152> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1152> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:35 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:00:37 2021
Terminated at Wed Sep  1 18:14:27 2021
Results reported at Wed Sep  1 18:14:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1152 154.607 35.6802 537926401 538185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

