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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1200
RA = 154.607, Dec = 35.6802
tmin = 550368001, tmax = 550627201
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='814265', job_status='RUN', time_executed='2021-09-01 18:03:41.492984', time_epoch_executed='1630544621.49' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814265

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814265/ft1_4FGL_J1018.4+3540_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814265/ft2_4FGL_J1018.4+3540_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814265/ft1_4FGL_J1018.4+3540_daily_bin1200.fits outfile=/scratch/kocevski/814265/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1200.fits ra=154.607 dec=35.6802 rad=12.0 tmin=550368001.0 tmax=550627201.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.02
user 3.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814265/ft1_filtered_4FGL_J1018.4+3540_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/814265/ft2_4FGL_J1018.4+3540_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/814265/ltcube_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.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/814265/ft2_4FGL_J1018.4+3540_daily_bin1200.fits
.....................!
real 13.34
user 12.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814265/ft1_filtered_4FGL_J1018.4+3540_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/814265/ft2_4FGL_J1018.4+3540_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/814265/ltcube_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.fits outfile=/scratch/kocevski/814265/expmap_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.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/814265/ltcube_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.fits
.....................!
real 189.77
user 185.06
sys 4.29

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/814265/ft1_filtered_4FGL_J1018.4+3540_daily_bin1200.fits scfile=/scratch/kocevski/814265/ft2_4FGL_J1018.4+3540_daily_bin1200.fits outfile=/scratch/kocevski/814265/cmap_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.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/814265/ft1_filtered_4FGL_J1018.4+3540_daily_bin1200.fits scfile=/scratch/kocevski/814265/ft2_4FGL_J1018.4+3540_daily_bin1200.fits outfile=/scratch/kocevski/814265/cmap_HighResolution_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .27086E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.073       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3582       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11319E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.444       1.0000         .10000E-03   10000.    
    25 'norm      '    35.478       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5463       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .30725       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=   2940.646     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3382 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.466        .21849E-06** at limit **
   2  norm          .10000E-03    308.71       -.14285E-05** at limit **
   3  Prefactor     .10000E-03    168.86        .31607E-05** at limit **
   4  Prefactor     .10000E-03    42.918        .75381E-06** at limit **
   5  Prefactor     10.914        58.983       -.20506E-08    .18402E-05
   6  Prefactor     .10000E-03    5.2773        .80747E-07** at limit **
   7  Prefactor     .10000E-03    5.1112       -.24798E-07** at limit **
   8  Prefactor     .10000E-03    2.7051        .37837E-06** at limit **
   9  norm          .10000E-03    2.9068        .88946E-07** at limit **
  10  Prefactor     .10000E-03    7.8231       -.16210E-05** at limit **
  11  Prefactor     .10000E-03    21.135        .83350E-06** at limit **
  12  Prefactor     17.087        12.555        .13274E-05    .74602E-03
  13  norm          .10000E-03    6.0742        .20942E-07** at limit **
  14  Prefactor     18.177        114.65        .45914E-05    .18672E-04
  15  Prefactor     .10000E-03    38.982        .42184E-06** at limit **
  16  Prefactor     .10000E-03    4.3251        .29149E-07** at limit **
  17  Prefactor     .10000E-03    15.073       -.13063E-06** at limit **
  18  Prefactor     .10000E-03    26.651       -.74395E-06** at limit **
  19  Prefactor     .10000E-03    53.016        .14130E-05** at limit **
  20  Prefactor     .10000E-03    98.132       -.36571E-05** at limit **
  21  Prefactor     .10000E-03    10.487        .18288E-06** at limit **
  22  norm          2.3594        .88186        .50814E-06   -.52406E-03
  23  Prefactor     .10000E-03    32.689       -.28167E-05** at limit **
  24  Prefactor     18.352        62.035       -.58528E-05    .14990E-04
  25  norm          35.501        34.080        .42677E-06    .58516E-04
  26  Normalizat    1.5463        .28618        .73263E-09    .15629E-03
  27  Prefactor     .30722        .29667       -.41743E-05    .34310E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 17.0865
  norm       = 0.0001
  Prefactor  = 18.177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.35941
  Prefactor  = 0.0001
  Prefactor  = 18.3518
  norm       = 35.5014
  Normalizat = 1.54628
  Prefactor  = 0.307223
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.646     FROM HESSE     STATUS=OK           474 CALLS     3856 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    314.99        .42865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    171.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.914        58.012        .12122E-03   -1.5047    
   6  Prefactor     .10000E-03    5.3144        .12162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1150        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1554        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9208        .90297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.437        .24770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.087        11.504        .96931E-04   -1.4881    
  13  norm          .10000E-03    6.0759        .13054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.177        114.92        .93906E-04   -1.4855    
  15  Prefactor     .10000E-03    39.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3290        .11015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    97.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.535        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3594        .86283        .23635E-04   -1.5401    
  23  Prefactor     .10000E-03    32.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.352        62.080        .93259E-04   -1.4851    
  25  norm          35.501        34.068        .67282E-04   -1.4516    
  26  Normalizat    1.5463        .30677        .20203E-03   -.76486    
  27  Prefactor     .30722        .31113        .43769E-03   -1.2184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6002e-10
Minuit parameter uncertainties:
  1  5.52662e-06
  2  0.000453146
  3  0.0004901
  4  0.000110096
  5  50.4002
  6  1.22473e-05
  7  4.28708e-06
  8  5.93284e-05
  9  4.00233e-06
  10  0.000376731
  11  8.82957e-05
  12  11.5058
  13  9.05067e-07
  14  91.6695
  15  5.49845e-05
  16  4.47766e-07
  17  1.33937e-05
  18  9.40339e-05
  19  0.000109946
  20  0.000847176
  21  1.81777e-05
  22  0.862833
  23  9.42522e-05
  24  62.2999
  25  34.0866
  26  0.307137
  27  0.31284
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.709e+01  1.151e+01  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:  3.072e-01  3.128e-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.546e+00  3.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 9.42e-08
Energy Flux (Fixed Index): 3.71e-05 +/- 2.50e-05

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

Saving results to:
/scratch/kocevski/814265/likelihoodResults_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.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) = 2940.52437032
delta logL = 0.121589195098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2940.52196283
delta logL = 0.123996685265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.356       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3216       1.0000          .0000       10.000    
     3 'Normalizat'    1.5726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28085       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=   2940.522     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      307 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.357        14.009        .88774E-04   -.65625E-03
   2  Index         2.3216        .50832        .54682E-02   -.19704E-03
   3  Normalizat    1.5727        .30494        .20059E-03    .48118E-04
   4  Prefactor     .28079        .30986        .45626E-03    .22126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3568
  Index      = 2.32155
  Normalizat = 1.5727
  Prefactor  = 0.280787
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.522     FROM HESSE     STATUS=OK            23 CALLS      330 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.357        13.902        .17755E-04   -1.4805    
   2  Index         2.3216        .50420        .21873E-03   -.56532    
   3  Normalizat    1.5727        .30485        .80237E-05   -.75755    
   4  Prefactor     .28079        .30965        .18250E-04   -1.2341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42275e-10
Minuit parameter uncertainties:
  1  13.9039
  2  0.505409
  3  0.305208
  4  0.311496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814265': 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) = 2940.5219628
delta logL = 0.123996711355

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.036e+01  1.390e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.322e+00  5.054e-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:  2.808e-01  3.115e-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.573e+00  3.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.32 +/- 0.51
Photon Flux (Free Index): 1.21e-07 +/- 9.17e-08
Energy Flux (Free Index): 4.44e-05 +/- 3.38e-05

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/814265/cmap_HighResolution_550368001_550627201_4FGL_J1018.4+3540_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-02', comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='4.44e-05', photon_flux_error='9.42e-08', dlogl='1.24e-01', energy_flux='3.71e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-01 18:12:56.183157', photon_index_error2='0.51', photon_index2='2.32', ts='3.01', fit_tolerance='1e-08', GAL='0.31', photon_index_error='0.00', photon_flux_upper_limit='3.23e-07', energy_flux_error2='3.38e-05', EG='1.55', time_epoch_completed='1630545176.18', return_code='0', job_id='814265', GAL2='0.28', EG2='1.57', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='9.17e-08', ts2='3.22', photon_index='2.59' WHERE bin_id='1200' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:12:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 814265: <4FGL_J1018.4+3540_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1200 154.607 35.6802 550368001 550627201 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            736 sec.

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

