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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin762
RA = 154.607, Dec = 35.6802
tmin = 436838401, tmax = 437097601
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='812654', job_status='RUN', time_executed='2021-09-01 17:56:00.369688', time_epoch_executed='1630544160.37' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812654/ft1_4FGL_J1018.4+3540_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812654/ft2_4FGL_J1018.4+3540_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812654/ft1_4FGL_J1018.4+3540_daily_bin762.fits outfile=/scratch/kocevski/812654/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin762.fits ra=154.607 dec=35.6802 rad=12.0 tmin=436838401.0 tmax=437097601.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 5.07
user 4.79
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812654/ft1_filtered_4FGL_J1018.4+3540_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/812654/ft2_4FGL_J1018.4+3540_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/812654/ltcube_436838401_437097601_4FGL_J1018.4+3540_daily_bin762.fits outfile=/scratch/kocevski/812654/expmap_436838401_437097601_4FGL_J1018.4+3540_daily_bin762.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/812654/ltcube_436838401_437097601_4FGL_J1018.4+3540_daily_bin762.fits
.....................!
real 193.02
user 188.12
sys 4.42

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/812654/ft1_filtered_4FGL_J1018.4+3540_daily_bin762.fits scfile=/scratch/kocevski/812654/ft2_4FGL_J1018.4+3540_daily_bin762.fits outfile=/scratch/kocevski/812654/cmap_436838401_437097601_4FGL_J1018.4+3540_daily_bin762.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.949       1.0000         .10000E-03   10000.    
     2 'norm      '    14.601       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35183       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3888       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3620       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7756       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6767       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1072       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.620       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7285       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83729       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0936       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=   5287.335     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3318 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.943        10.016        .67939E-07    .41566E-04
   2  norm          14.599        14.590       -.65821E-07   -.81154E-04
   3  Prefactor     .10000E-03    17.510        .86217E-07** at limit **
   4  Prefactor     14.268        28.443       -.36217E-06   -.82752E-04
   5  Prefactor     .10000E-03    11.637       -.28899E-07** at limit **
   6  Prefactor     .18163        10.224       -.97879E-06    .27776E-03
   7  Prefactor     .10000E-03    2.9658        .40918E-07** at limit **
   8  Prefactor     3.3972        3.1005        .63525E-07    .17065E-03
   9  norm          .10000E-03    5.6116        .14206E-07** at limit **
  10  Prefactor     6.2095        5.1126        .11557E-06    .53115E-04
  11  Prefactor     5.3260        43.142       -.38363E-05   -.90173E-04
  12  Prefactor     3.7729        4.6036        .45570E-07   -.58850E-04
  13  norm          .10000E-03    3.0334       -.12784E-06** at limit **
  14  Prefactor     34.084        34.609       -.64097E-06   -.10781E-03
  15  Prefactor     13.256        18.470        .55420E-06    .11841E-03
  16  Prefactor     4.6733        4.7057        .27263E-05   -.14771E-02
  17  Prefactor     .10000E-03    2.7078       -.20249E-07** at limit **
  18  Prefactor     5.0017        48.369       -.11417E-04   -.24962E-03
  19  Prefactor     .10000E-03    28.865        .39233E-06** at limit **
  20  Prefactor     .10006E-03    139.44        .82659E-05** at limit **
  21  Prefactor     32.599        19.427        .77390E-06    .38079E-03
  22  norm          1.7282        .38799        .17215E-08   -.29808E-04
  23  Prefactor     .10000E-03    8.9766        .73738E-07** at limit **
  24  Prefactor     .10000E-03    8.3453        .46449E-07** at limit **
  25  norm          .10000E-03    17.275        .12371E-07** at limit **
  26  Normalizat    .83769        .18544       -.30714E-06    .10623E-03
  27  Prefactor     1.0939        .20985       -.32404E-06    .11296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.9427
  norm       = 14.5991
  Prefactor  = 0.0001
  Prefactor  = 14.2676
  Prefactor  = 0.0001
  Prefactor  = 0.181632
  Prefactor  = 0.0001
  Prefactor  = 3.39725
  norm       = 0.0001
  Prefactor  = 6.20949
  Prefactor  = 5.326
  Prefactor  = 3.77288
  norm       = 0.0001
  Prefactor  = 34.0842
  Prefactor  = 13.2558
  Prefactor  = 4.67331
  Prefactor  = 0.0001
  Prefactor  = 5.00168
  Prefactor  = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 32.5992
  norm       = 1.72818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.837694
  Prefactor  = 1.09388
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.335     FROM HESSE     STATUS=OK           494 CALLS     3812 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.943        10.020        .87511E-04   -1.4792    
   2  norm          14.599        14.597        .10482E-03   -1.4944    
   3  Prefactor     .10000E-03    17.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.268        28.674        .10590E-03   -1.4952    
   5  Prefactor     .10000E-03    11.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18163        13.869        .59527E-01   -1.5623    
   7  Prefactor     .10000E-03    2.9712        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3972        3.0941        .11323E-03   -1.5339    
   9  norm          .10000E-03    5.6625        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2095        5.0929        .13074E-03   -1.5210    
  11  Prefactor     5.3260        43.884        .17355E-03   -1.5246    
  12  Prefactor     3.7729        4.5746        .15310E-03   -1.5319    
  13  norm          .10000E-03    3.0377        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.084        34.716        .68632E-04   -1.4540    
  15  Prefactor     13.256        18.504        .11000E-03   -1.4980    
  16  Prefactor     4.6733        4.8964        .75335E-03   -1.5276    
  17  Prefactor     .10000E-03    2.7418        .11663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0017        52.468        .17791E-03   -1.5261    
  19  Prefactor     .10000E-03    29.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10006E-03    145.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.599        19.540        .70159E-04   -1.4565    
  22  norm          1.7282        .38871        .20734E-04   -1.5445    
  23  Prefactor     .10000E-03    9.0110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    17.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83769        .22119        .24938E-03   -.98685    
  27  Prefactor     1.0939        .24919        .26843E-03   -.89662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0608e-09
Minuit parameter uncertainties:
  1  10.0209
  2  14.601
  3  1.81154e-05
  4  28.7019
  5  8.09517e-06
  6  3.17423
  7  1.95669e-06
  8  3.09427
  9  2.39018e-06
  10  5.09327
  11  30.6066
  12  4.57503
  13  9.49026e-07
  14  34.7362
  15  18.5123
  16  4.89678
  17  8.30428e-07
  18  32.4356
  19  5.82111e-05
  20  0.00612648
  21  19.5438
  22  0.388706
  23  3.93027e-06
  24  4.52122e-06
  25  3.87846e-05
  26  0.221429
  27  0.249454
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.773e+00  4.575e+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:  1.094e+00  2.495e-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:  8.377e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 8.19e-06 +/- 9.93e-06

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

Saving results to:
/scratch/kocevski/812654/likelihoodResults_436838401_437097601_4FGL_J1018.4+3540_daily_bin762.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) = 5287.30981277
delta logL = 0.0251998402282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5287.30101348
delta logL = 0.0339991377896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1774       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9447       1.0000          .0000       10.000    
     3 'Normalizat'    .82371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1051       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=   5287.301     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1743        77.697        .56836E-02    .28984E-03
   2  Index         2.9455        6.4526        .22237        .49542E-04
   3  Normalizat    .82358        .55025E-01    .43919E-01    .11258E-05
   4  Prefactor     1.1054        .59303E-01    .60428E-01   -.89609E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17432
  Index      = 2.9455
  Normalizat = 0.823576
  Prefactor  = 1.10535
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.301     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1743        5.4858        .12811E-03   -1.5352    
   2  Index         2.9455        1.6166        .92255E-02   -.42344    
   3  Normalizat    .82358        .21145        .25125E-03   -.99200    
   4  Prefactor     1.1054        .24997        .26724E-03   -.89296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96937e-09
Minuit parameter uncertainties:
  1  5.48662
  2  1.65258
  3  0.211666
  4  0.250231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812654': 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) = 5287.30101287
delta logL = 0.0339997402707

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.174e+00  5.487e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.946e+00  1.653e+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:  1.105e+00  2.502e-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:  8.236e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.95 +/- 1.65
Photon Flux (Free Index): 4.15e-08 +/- 5.66e-08
Energy Flux (Free Index): 8.52e-06 +/- 8.90e-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/812654/cmap_HighResolution_436838401_437097601_4FGL_J1018.4+3540_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='8.52e-06', photon_flux_error='3.75e-08', dlogl='3.40e-02', energy_flux='8.19e-06', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-01 18:08:19.866943', photon_index_error2='1.65', photon_index2='2.95', ts='1.24', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='8.90e-06', EG='0.84', time_epoch_completed='1630544899.87', return_code='0', job_id='812654', GAL2='1.11', EG2='0.82', return_code2='0', energy_flux_error='9.93e-06', photon_flux_error2='5.66e-08', ts2='1.33', photon_index='2.59' WHERE bin_id='762' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:08:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 812654: <4FGL_J1018.4+3540_daily_bin762> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin762 154.607 35.6802 436838401 437097601 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 :                                   737.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            759 sec.

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

