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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1624
RA = 154.607, Dec = 35.6802
tmin = 660268801, tmax = 660528001
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='294412', job_status='RUN', time_executed='2021-12-07 20:56:03.506075', time_epoch_executed='1638939363.51' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294412/ft1_4FGL_J1018.4+3540_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294412/ft2_4FGL_J1018.4+3540_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294412/ft1_4FGL_J1018.4+3540_daily_bin1624.fits outfile=/scratch/kocevski/294412/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1624.fits ra=154.607 dec=35.6802 rad=12.0 tmin=660268801.0 tmax=660528001.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.85
user 3.62
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294412/ft1_filtered_4FGL_J1018.4+3540_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/294412/ft2_4FGL_J1018.4+3540_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/294412/ltcube_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.fits outfile=/scratch/kocevski/294412/expmap_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.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/294412/ltcube_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.fits
.....................!
real 192.56
user 186.55
sys 5.50

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/294412/ft1_filtered_4FGL_J1018.4+3540_daily_bin1624.fits scfile=/scratch/kocevski/294412/ft2_4FGL_J1018.4+3540_daily_bin1624.fits outfile=/scratch/kocevski/294412/cmap_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294412/ft1_filtered_4FGL_J1018.4+3540_daily_bin1624.fits scfile=/scratch/kocevski/294412/ft2_4FGL_J1018.4+3540_daily_bin1624.fits outfile=/scratch/kocevski/294412/cmap_HighResolution_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.023       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11573E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.309       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 '    .36057       1.0000         .10000E-03   10000.    
     9 'norm      '    11.407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.127       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2749       1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.520       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    95.949       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.868       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5637       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3435       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1505       1.0000         .10000E-03   10000.    
    25 'norm      '    8.4820       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92081       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1591       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=   6881.795     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3257 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.807        .70432E-06** at limit **
   2  norm          .10000E-03    12.413       -.97518E-06** at limit **
   3  Prefactor     43.027        34.891       -.37816E-06    .54646E-04
   4  Prefactor     .10000E-03    28.100       -.34313E-05** at limit **
   5  Prefactor     11.293        37.120       -.50199E-05   -.39192E-04
   6  Prefactor     .10000E-03    3.2681        .65736E-07** at limit **
   7  Prefactor     .10000E-03    4.2679       -.77841E-07** at limit **
   8  Prefactor     .35606        1.7659       -.29097E-06   -.14910E-03
   9  norm          11.408        7.3759       -.18402E-06    .45139E-05
  10  Prefactor     .10000E-03    3.2539       -.28453E-06** at limit **
  11  Prefactor     11.116        24.768        .21106E-05   -.67488E-04
  12  Prefactor     2.2678        4.2062        .47615E-06    .15550E-04
  13  norm          .10000E-03    5.7129       -.26433E-06** at limit **
  14  Prefactor     .10000E-03    33.724        .27141E-05** at limit **
  15  Prefactor     27.521        32.822        .19564E-05   -.31950E-04
  16  Prefactor     .85613        5.4133        .25817E-05   -.10613E-02
  17  Prefactor     .10000E-03    3.9003       -.10086E-05** at limit **
  18  Prefactor     95.857        50.685       -.21491E-05   -.75371E-03
  19  Prefactor     .10000E-03    8.0000       -.17259E-06** at limit **
  20  Prefactor     .10000E-03    50.053        .42475E-06** at limit **
  21  Prefactor     19.869        12.508       -.24754E-06   -.36819E-05
  22  norm          1.5637        .34437       -.77336E-07   -.19251E-03
  23  Prefactor     4.3473        15.341        .11044E-04    .87349E-04
  24  Prefactor     7.1502        8.5668       -.53222E-06   -.56122E-04
  25  norm          8.4812        14.409       -.30657E-05   -.79591E-04
  26  Normalizat    .92070        .17479        .34395E-05   -.14150E-03
  27  Prefactor     1.1591        .19553       -.13138E-05    .11629E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 43.0271
  Prefactor  = 0.0001
  Prefactor  = 11.2927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.356059
  norm       = 11.4077
  Prefactor  = 0.0001
  Prefactor  = 11.1157
  Prefactor  = 2.2678
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5214
  Prefactor  = 0.856128
  Prefactor  = 0.0001
  Prefactor  = 95.8575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8694
  norm       = 1.5637
  Prefactor  = 4.34725
  Prefactor  = 7.15024
  norm       = 8.48121
  Normalizat = 0.920696
  Prefactor  = 1.15906
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.795     FROM HESSE     STATUS=OK           492 CALLS     3749 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.027        34.857        .61119E-04   -1.4395    
   4  Prefactor     .10000E-03    28.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.293        37.178        .11913E-03   -1.5036    
   6  Prefactor     .10000E-03    3.2883        .14641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2933        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .35606        3.4894        .20367E-02   -1.5589    
   9  norm          11.408        7.3765        .11862E-03   -1.5032    
  10  Prefactor     .10000E-03    3.3270        .28986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.116        24.728        .12011E-03   -1.5041    
  12  Prefactor     2.2678        4.1595        .21540E-03   -1.5407    
  13  norm          .10000E-03    5.7483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.521        32.747        .76367E-04   -1.4658    
  16  Prefactor     .85613        8.6879        .29204E-02   -1.5523    
  17  Prefactor     .10000E-03    3.9731        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     95.857        51.366        .20517E-03   -1.3747    
  19  Prefactor     .10000E-03    8.0070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.869        12.509        .89857E-04   -1.4816    
  22  norm          1.5637        .34555        .21516E-04   -1.5458    
  23  Prefactor     4.3473        15.535        .96637E-03   -1.5291    
  24  Prefactor     7.1502        8.5742        .15001E-03   -1.5173    
  25  norm          8.4812        14.428        .13764E-03   -1.5125    
  26  Normalizat    .92070        .20387        .25184E-03   -.95737    
  27  Prefactor     1.1591        .23176        .27612E-03   -.87601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40032e-08
Minuit parameter uncertainties:
  1  6.78757e-06
  2  8.65093e-06
  3  34.8734
  4  0.000227911
  5  37.2545
  6  4.69417e-06
  7  1.4905e-05
  8  2.22915
  9  7.37709
  10  4.73961e-05
  11  24.7505
  12  4.16006
  13  4.9364e-05
  14  0.000257892
  15  32.7681
  16  5.45523
  17  5.66956e-05
  18  51.3895
  19  2.17844e-05
  20  2.05996e-05
  21  12.5108
  22  0.345553
  23  15.5495
  24  8.57567
  25  14.4338
  26  0.204044
  27  0.231959
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.268e+00  4.160e+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.159e+00  2.320e-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.207e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/294412/likelihoodResults_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.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) = 6881.79502883
delta logL = 9.25174690565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6881.79499257
delta logL = 0.000128774307996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5681       1.0000          .0000       10.000    
     3 'Normalizat'    .92113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1587       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=   6881.795     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3092        163.94        .67548E-02    .51859E-03
   2  Index         2.5692        5.8484        .25328        .37307E-05
   3  Normalizat    .92100        .43512E-01    .45171E-01   -.89435E-04
   4  Prefactor     1.1587        .54276E-01    .62437E-01   -.22891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30922
  Index      = 2.56917
  Normalizat = 0.921004
  Prefactor  = 1.15872
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.795     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3092        5.2996        .21732E-03   -1.5404    
   2  Index         2.5692        1.3711        .14072E-01   -.50770    
   3  Normalizat    .92100        .19052        .25180E-03   -.95726    
   4  Prefactor     1.1587        .23015        .27615E-03   -.87611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33954e-10
Minuit parameter uncertainties:
  1  5.3007
  2  1.39465
  3  0.190655
  4  0.230345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294412': 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) = 6881.79499076
delta logL = 0.000130589423861

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.309e+00  5.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.569e+00  1.395e+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.159e+00  2.303e-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.210e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
Ra Dec: 154.607 35.680

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/294412/cmap_HighResolution_660268801_660528001_4FGL_J1018.4+3540_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.58e-08', time_completed='2021-12-07 21:10:07.242658', job_id='294412', GAL2='1.16', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1638940207.24', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.31e-04', ts2='0.35', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1624' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:10:07 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 294412: <4FGL_J1018.4+3540_daily_bin1624> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1624> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 20:55:13 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:55:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:55:59 2021
Terminated at Tue Dec  7 21:10:07 2021
Results reported at Tue Dec  7 21:10:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1624 154.607 35.6802 660268801 660528001 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 :                                   842.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            894 sec.

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

