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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin526
RA = 154.607, Dec = 35.6802
tmin = 375667201, tmax = 375926401
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='811279', job_status='RUN', time_executed='2021-09-01 17:51:40.753559', time_epoch_executed='1630543900.75' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811279/ft1_4FGL_J1018.4+3540_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811279/ft2_4FGL_J1018.4+3540_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811279/ft1_4FGL_J1018.4+3540_daily_bin526.fits outfile=/scratch/kocevski/811279/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin526.fits ra=154.607 dec=35.6802 rad=12.0 tmin=375667201.0 tmax=375926401.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.94
user 4.65
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811279/ft1_filtered_4FGL_J1018.4+3540_daily_bin526.fits" evtable="EVENTS" scfile=/scratch/kocevski/811279/ft2_4FGL_J1018.4+3540_daily_bin526.fits sctable="SC_DATA" outfile=/scratch/kocevski/811279/ltcube_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.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/811279/ft2_4FGL_J1018.4+3540_daily_bin526.fits
.....................!
real 14.31
user 13.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811279/ft1_filtered_4FGL_J1018.4+3540_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/811279/ft2_4FGL_J1018.4+3540_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/811279/ltcube_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.fits outfile=/scratch/kocevski/811279/expmap_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.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/811279/ltcube_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.fits
.....................!
real 190.95
user 185.76
sys 4.59

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/811279/ft1_filtered_4FGL_J1018.4+3540_daily_bin526.fits scfile=/scratch/kocevski/811279/ft2_4FGL_J1018.4+3540_daily_bin526.fits outfile=/scratch/kocevski/811279/cmap_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811279/ft1_filtered_4FGL_J1018.4+3540_daily_bin526.fits scfile=/scratch/kocevski/811279/ft2_4FGL_J1018.4+3540_daily_bin526.fits outfile=/scratch/kocevski/811279/cmap_HighResolution_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.292       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5817       1.0000         .10000E-03   10000.    
     9 'norm      '    6.9120       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0654       1.0000         .10000E-03   10000.    
    13 'norm      '    .14409E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0573       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.353       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6264       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8238       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.226       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.331       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91910       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=   6323.069     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3986 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.293        8.0266       -.29266E-06   -.19843E-04
   2  norm          .10000E-03    3.5087       -.72918E-07** at limit **
   3  Prefactor     .10000E-03    21.858       -.41866E-05** at limit **
   4  Prefactor     .10000E-03    10.995        .32742E-05** at limit **
   5  Prefactor     .10000E-03    19.734       -.74797E-05** at limit **
   6  Prefactor     10.057        7.5956       -.27610E-06   -.46955E-04
   7  Prefactor     .10000E-03    4.1767       -.21005E-07** at limit **
   8  Prefactor     2.5818        2.7007       -.42242E-06   -.55230E-03
   9  norm          6.9121        7.1164       -.16600E-05   -.18245E-02
  10  Prefactor     3.3941        4.1813       -.87602E-06   -.65732E-03
  11  Prefactor     .10000E-03    11.296        .59113E-05** at limit **
  12  Prefactor     4.0647        5.1103        .61396E-06   -.91841E-03
  13  norm          .10000E-03    5.9409        .42626E-05** at limit **
  14  Prefactor     .10000E-03    39.350       -.34938E-05** at limit **
  15  Prefactor     .10000E-03    9.9055       -.88417E-05** at limit **
  16  Prefactor     1.0596        3.4387        .49515E-05   -.80801E-04
  17  Prefactor     .10000E-03    1.3549        .12485E-06** at limit **
  18  Prefactor     8.0147        36.824       -.86358E-04   -.23191E-03
  19  Prefactor     13.354        13.369       -.13023E-06    .11691E-04
  20  Prefactor     .10000E-03    28.844        .12699E-04** at limit **
  21  Prefactor     3.6268        8.2656       -.85696E-06   -.16322E-03
  22  norm          1.8239        .37088        .47440E-07    .45749E-04
  23  Prefactor     12.229        17.350        .48452E-06   -.65171E-04
  24  Prefactor     .10000E-03    8.5220        .21511E-05** at limit **
  25  norm          21.332        17.459       -.93691E-06   -.28484E-04
  26  Normalizat    1.0042        .16009        .21147E-05   -.82120E-03
  27  Prefactor     .91920        .18634        .21274E-05   -.46246E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.2929
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0568
  Prefactor  = 0.0001
  Prefactor  = 2.58177
  norm       = 6.91205
  Prefactor  = 3.39409
  Prefactor  = 0.0001
  Prefactor  = 4.06466
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05956
  Prefactor  = 0.0001
  Prefactor  = 8.01472
  Prefactor  = 13.3539
  Prefactor  = 0.0001
  Prefactor  = 3.62677
  norm       = 1.82386
  Prefactor  = 12.2292
  Prefactor  = 0.0001
  norm       = 21.3325
  Normalizat = 1.00417
  Prefactor  = 0.919202
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.069     FROM HESSE     STATUS=OK           486 CALLS     4472 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.293        8.0276        .10242E-03   -1.4926    
   2  norm          .10000E-03    3.5092        .14547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.057        7.5854        .12636E-03   -1.5074    
   7  Prefactor     .10000E-03    4.1899        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5818        2.6857        .12541E-03   -1.5387    
   9  norm          6.9121        7.1660        .76300E-03   -1.5182    
  10  Prefactor     3.3941        4.1314        .14950E-03   -1.5339    
  11  Prefactor     .10000E-03    11.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0647        5.0401        .16564E-03   -1.5305    
  13  norm          .10000E-03    37.371        .35836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0596        3.2671        .23839E-03   -1.5502    
  17  Prefactor     .10000E-03    1.3602        .90378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0147        36.344        .14127E-03   -1.5142    
  19  Prefactor     13.354        13.370        .10961E-03   -1.4977    
  20  Prefactor     .10000E-03    28.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6268        8.2498        .21216E-03   -1.5327    
  22  norm          1.8239        .37211        .20527E-04   -1.5438    
  23  Prefactor     12.229        17.357        .11457E-03   -1.5008    
  24  Prefactor     .10000E-03    8.5336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.332        17.431        .86723E-04   -1.4784    
  26  Normalizat    1.0042        .18765        .22823E-03   -.92891    
  27  Prefactor     .91920        .21926        .28692E-03   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97571e-09
Minuit parameter uncertainties:
  1  8.02815
  2  2.33085e-06
  3  2.14625e-05
  4  2.97554e-05
  5  5.68832e-05
  6  7.58611
  7  1.01136e-05
  8  2.6858
  9  7.16685
  10  4.13176
  11  2.41052e-05
  12  5.04062
  13  0.000519183
  14  6.00897e-05
  15  0.000109999
  16  3.26766
  17  3.00016e-05
  18  34.1683
  19  13.3733
  20  1.87945e-05
  21  8.25241
  22  0.37211
  23  17.3646
  24  8.36036e-06
  25  17.435
  26  0.187771
  27  0.219471
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.065e+00  5.041e+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:  9.192e-01  2.195e-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:  1.004e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 8.82e-06 +/- 1.09e-05

TS (Fixed Index): 1.09
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811279/likelihoodResults_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.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) = 6322.24640521
delta logL = 0.823024667774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6322.23025877
delta logL = 0.839171109119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5556       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8775       1.0000          .0000       10.000    
     3 'Normalizat'    .94524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96546       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.

 FCN=   6322.230     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      240 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5535        16.016        .85332E-02    .60745E-03
   2  Index         3.8783        3.1284        .15543        .11208E-03
   3  Normalizat    .94522        .44596E-01    .45477E-01    .28538E-05
   4  Prefactor     .96547        .53282E-01    .45834E-01    .88416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55349
  Index      = 3.87835
  Normalizat = 0.945218
  Prefactor  = 0.965474
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.230     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5535        4.7021        .63763E-04   -1.5459    
   2  Index         3.8783        1.9575        .55478E-02   -.22626    
   3  Normalizat    .94522        .18944        .23424E-03   -.94889    
   4  Prefactor     .96547        .22300        .28051E-03   -.93889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7723e-08
Minuit parameter uncertainties:
  1  4.7032
  2  2.01439
  3  0.189575
  4  0.223214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811279': 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) = 6322.23025842
delta logL = 0.839171463352

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.553e+00  4.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.878e+00  2.014e+00  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:  9.655e-01  2.232e-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  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.88 +/- 2.01
Photon Flux (Free Index): 7.95e-08 +/- 5.64e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.93e-06

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/811279/cmap_HighResolution_375667201_375926401_4FGL_J1018.4+3540_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.22e-05', photon_flux_error='4.13e-08', dlogl='8.39e-01', energy_flux='8.82e-06', photon_flux2='7.95e-08', job_status='DONE', time_completed='2021-09-01 18:06:16.539577', photon_index_error2='2.01', photon_index2='3.88', ts='1.09', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='8.93e-06', EG='1.00', time_epoch_completed='1630544776.54', return_code='0', job_id='811279', GAL2='0.97', EG2='0.95', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.64e-08', ts2='2.93', photon_index='2.59' WHERE bin_id='526' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:06:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 811279: <4FGL_J1018.4+3540_daily_bin526> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin526> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:51:05 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:51:28 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:51:28 2021
Terminated at Wed Sep  1 18:06:16 2021
Results reported at Wed Sep  1 18:06:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin526 154.607 35.6802 375667201 375926401 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 :                                   874.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            911 sec.

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

