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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin650
RA = 154.607, Dec = 35.6802
tmin = 407808001, tmax = 408067201
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='812486', job_status='RUN', time_executed='2021-09-01 17:58:35.111844', time_epoch_executed='1630544315.11' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812486/ft1_4FGL_J1018.4+3540_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812486/ft1_4FGL_J1018.4+3540_daily_bin650.fits outfile=/scratch/kocevski/812486/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin650.fits ra=154.607 dec=35.6802 rad=12.0 tmin=407808001.0 tmax=408067201.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.41
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.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/812486/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.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.45
user 0.32
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/812486/ltcube_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.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/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits
.....................!
real 15.10
user 14.78
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/812486/ltcube_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.fits outfile=/scratch/kocevski/812486/expmap_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.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/812486/ltcube_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.fits
.....................!
real 151.67
user 147.88
sys 3.45

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/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.fits scfile=/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits outfile=/scratch/kocevski/812486/cmap_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.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.47
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.fits scfile=/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits outfile=/scratch/kocevski/812486/cmap_HighResolution_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.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.47
user 0.33
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.fits', '/scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits', expMap='/scratch/kocevski/812486/expmap_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.fits', expCube='/scratch/kocevski/812486/ltcube_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/812486/Model_4FGL_J1018.4+3540_daily_bin650.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/812486/ft1_filtered_4FGL_J1018.4+3540_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/812486/ft2_4FGL_J1018.4+3540_daily_bin650.fits
Exposure map: /scratch/kocevski/812486/expmap_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.fits
Exposure cube: /scratch/kocevski/812486/ltcube_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/812486/Model_4FGL_J1018.4+3540_daily_bin650.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) = 3882.55039619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4326       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58045       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2697       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.791       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9515       1.0000         .10000E-03   10000.    
    13 'norm      '    .31127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1251       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.652       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.895       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0977       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9044       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.737       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94426       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70309       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=   3882.478     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3848 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2051       -.50955E-07** at limit **
   2  norm          3.4321        11.927       -.20452E-06    .33944E-04
   3  Prefactor     .10000E-03    20.955       -.10241E-05** at limit **
   4  Prefactor     .10000E-03    41.339        .15657E-06** at limit **
   5  Prefactor     .58031        38.709        .36704E-05    .18119E-04
   6  Prefactor     .10000E-03    3.0374       -.95776E-07** at limit **
   7  Prefactor     .10000E-03    4.7265       -.28344E-06** at limit **
   8  Prefactor     5.2690        3.4893       -.16659E-06    .11134E-03
   9  norm          .10000E-03    5.0783       -.11440E-06** at limit **
  10  Prefactor     1.3567        4.8039       -.11838E-05   -.85995E-04
  11  Prefactor     25.748        41.629       -.95147E-05   -.65937E-04
  12  Prefactor     3.9537        6.2424        .21249E-06   -.19842E-04
  13  norm          .10000E-03    163.68       -.35575E-04** at limit **
  14  Prefactor     .10000E-03    21.161       -.99358E-06** at limit **
  15  Prefactor     .10000E-03    23.970       -.18267E-05** at limit **
  16  Prefactor     3.1257        5.0969       -.45282E-06   -.18418E-03
  17  Prefactor     4.9074        6.3022       -.25314E-05    .13289E-03
  18  Prefactor     .10000E-03    14.445       -.18969E-05** at limit **
  19  Prefactor     23.642        22.441       -.99651E-06    .27956E-04
  20  Prefactor     29.993        177.07        .22726E-04   -.13059E-04
  21  Prefactor     2.0957        10.245       -.10911E-05    .41291E-05
  22  norm          1.9043        .43802       -.45993E-07   -.15912E-03
  23  Prefactor     .10000E-03    9.2808       -.65249E-06** at limit **
  24  Prefactor     .10000E-03    12.611        .80180E-06** at limit **
  25  norm          13.739        13.618       -.17449E-06    .80175E-05
  26  Normalizat    .94468        .19410        .16459E-05   -.47120E-04
  27  Prefactor     .70269        .21207        .45243E-06    .59963E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.43207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.580309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26896
  norm       = 0.0001
  Prefactor  = 1.35672
  Prefactor  = 25.7478
  Prefactor  = 3.95367
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12571
  Prefactor  = 4.90739
  Prefactor  = 0.0001
  Prefactor  = 23.6417
  Prefactor  = 29.9931
  Prefactor  = 2.09569
  norm       = 1.90429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7387
  Normalizat = 0.944683
  Prefactor  = 0.702694
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.478     FROM HESSE     STATUS=OK           500 CALLS     4348 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2106        .10894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4321        12.020        .21832E-03   -1.5337    
   3  Prefactor     .10000E-03    21.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58031        533.62        .69399E-02   -1.5556    
   6  Prefactor     .10000E-03    3.0466        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7368        .13228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2690        3.4961        .88468E-04   -1.5249    
   9  norm          .10000E-03    5.1056        .13712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3567        4.6207        .21009E-03   -1.5475    
  11  Prefactor     25.748        43.122        .78881E-04   -1.4693    
  12  Prefactor     3.9537        6.0303        .15971E-03   -1.5310    
  13  norm          .10000E-03    15.526        .62266E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1257        5.0791        .16904E-03   -1.5354    
  17  Prefactor     4.9074        6.2549        .83216E-03   -1.5265    
  18  Prefactor     .10000E-03    14.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.642        22.443        .82365E-04   -1.4735    
  20  Prefactor     29.993        179.80        .73278E-04   -1.4612    
  21  Prefactor     2.0957        10.200        .28496E-03   -1.5418    
  22  norm          1.9043        .43855        .19117E-04   -1.5432    
  23  Prefactor     .10000E-03    9.3094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.739        13.618        .10807E-03   -1.4966    
  26  Normalizat    .94468        .23776        .21056E-03   -.94907    
  27  Prefactor     .70269        .25423        .28304E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44366e-10
Minuit parameter uncertainties:
  1  5.51001e-06
  2  12.0286
  3  1.5836e-05
  4  0.000157459
  5  35.5134
  6  6.58073e-06
  7  7.1572e-06
  8  3.49628
  9  1.8961e-05
  10  4.62187
  11  43.1739
  12  6.0312
  13  0.000186015
  14  4.4748e-06
  15  0.000144823
  16  5.07981
  17  6.25577
  18  2.54792e-05
  19  22.4514
  20  147.538
  21  9.24914
  22  0.438546
  23  1.63128e-05
  24  4.45539e-05
  25  13.6207
  26  0.238026
  27  0.254649
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.954e+00  6.031e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.027e-01  2.546e-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:  9.447e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812486/likelihoodResults_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.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) = 3882.47752646
delta logL = 0.000119715852179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3882.47749623
delta logL = 0.000149945635258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9918       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5713       1.0000          .0000       10.000    
     3 'Normalizat'    .94530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70227       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=   3882.477     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      266 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9976        6.2169        .80382E-03   -.28503E-03
   2  Index         2.5726        1.0283        .95219E-02   -.45367E-04
   3  Normalizat    .94516        .21370        .21051E-03   -.37450E-03
   4  Prefactor     .70228        .24819        .28312E-03   -.21891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9976
  Index      = 2.57259
  Normalizat = 0.945156
  Prefactor  = 0.70228
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.477     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9976        5.9844        .32153E-04   -1.5308    
   2  Index         2.5726        .98997        .38087E-03   -.50691    
   3  Normalizat    .94516        .21389        .42103E-04   -.94891    
   4  Prefactor     .70228        .24830        .11325E-04   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33299e-10
Minuit parameter uncertainties:
  1  5.98531
  2  0.998632
  3  0.214083
  4  0.248695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812486': 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) = 3882.47749375
delta logL = 0.000152419157985

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.998e+00  5.985e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.573e+00  9.986e-01  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:  7.023e-01  2.487e-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:  9.452e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/812486/cmap_HighResolution_407808001_408067201_4FGL_J1018.4+3540_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-01 18:07:28.040984', job_id='812486', GAL2='0.70', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1630544848.04', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.52e-04', ts2='0.73', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='650' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:07:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 812486: <4FGL_J1018.4+3540_daily_bin650> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin650> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:55:31 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:55:32 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:55:32 2021
Terminated at Wed Sep  1 18:07:28 2021
Results reported at Wed Sep  1 18:07:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin650 154.607 35.6802 407808001 408067201 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 :                                   531.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            717 sec.

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

