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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1253
RA = 154.607, Dec = 35.6802
tmin = 564105601, tmax = 564364801
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='815418', job_status='RUN', time_executed='2021-09-01 18:05:38.901958', time_epoch_executed='1630544738.9' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815418/ft1_4FGL_J1018.4+3540_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815418/ft2_4FGL_J1018.4+3540_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815418/ft1_4FGL_J1018.4+3540_daily_bin1253.fits outfile=/scratch/kocevski/815418/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1253.fits ra=154.607 dec=35.6802 rad=12.0 tmin=564105601.0 tmax=564364801.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.26
user 3.05
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815418/ft1_filtered_4FGL_J1018.4+3540_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/815418/ft2_4FGL_J1018.4+3540_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/815418/ltcube_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.fits outfile=/scratch/kocevski/815418/expmap_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.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/815418/ltcube_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.fits
.....................!
real 191.86
user 186.41
sys 5.06

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/815418/ft1_filtered_4FGL_J1018.4+3540_daily_bin1253.fits scfile=/scratch/kocevski/815418/ft2_4FGL_J1018.4+3540_daily_bin1253.fits outfile=/scratch/kocevski/815418/cmap_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.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/815418/ft1_filtered_4FGL_J1018.4+3540_daily_bin1253.fits scfile=/scratch/kocevski/815418/ft2_4FGL_J1018.4+3540_daily_bin1253.fits outfile=/scratch/kocevski/815418/cmap_HighResolution_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.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/815418/ft1_filtered_4FGL_J1018.4+3540_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/815418/ft2_4FGL_J1018.4+3540_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/815418/Model_4FGL_J1018.4+3540_daily_bin1253.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/815418/ft1_filtered_4FGL_J1018.4+3540_daily_bin1253.fits.....................!
real 62.95
user 61.66
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12828E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.2260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6940       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.278       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1611       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.527       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2948       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0779       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2002       1.0000         .10000E-03   10000.    
    25 'norm      '    .12216E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96988       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0920       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=   7917.702     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3307 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0803       -.27849E-07** at limit **
   2  norm          .10017E-03    9.6575       -.19538E-05** at limit **
   3  Prefactor     39.228        28.077       -.84652E-06    .18246E-06
   4  Prefactor     8.8175        21.089       -.21129E-05    .13231E-03
   5  Prefactor     25.744        35.961        .32078E-05    .14317E-03
   6  Prefactor     .10000E-03    2.2371        .80067E-07** at limit **
   7  Prefactor     .10000E-03    4.4896        .14775E-06** at limit **
   8  Prefactor     .10000E-03    .90697       -.25821E-07** at limit **
   9  norm          6.2263        7.1020        .16565E-05   -.92280E-04
  10  Prefactor     1.7286        2.3741       -.23319E-06   -.63697E-03
  11  Prefactor     .10000E-03    23.901       -.96228E-06** at limit **
  12  Prefactor     2.6932        3.3270       -.23938E-06   -.50839E-03
  13  norm          .10000E-03    6.8864        .56042E-06** at limit **
  14  Prefactor     .10000E-03    21.631       -.25887E-06** at limit **
  15  Prefactor     20.274        37.315       -.32980E-05   -.45800E-05
  16  Prefactor     2.1239        2.9650       -.34912E-06   -.72575E-03
  17  Prefactor     5.1596        7.4062        .60877E-06   -.38583E-03
  18  Prefactor     .10000E-03    75.085       -.75350E-07** at limit **
  19  Prefactor     13.515        30.371       -.86964E-05   -.33183E-04
  20  Prefactor     .10000E-03    23.810        .32304E-06** at limit **
  21  Prefactor     8.2936        12.620       -.82878E-07   -.59533E-04
  22  norm          1.4302        .29871        .88593E-08   -.66841E-03
  23  Prefactor     8.0685        12.536       -.84076E-06   -.25286E-03
  24  Prefactor     5.2013        10.558       -.23909E-06   -.14277E-03
  25  norm          .10003E-03    10.476        .15918E-05** at limit **
  26  Normalizat    .97000        .15077        .21568E-06    .38413E-05
  27  Prefactor     1.0918        .17546        .74410E-06    .56373E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100168
  Prefactor  = 39.2283
  Prefactor  = 8.81748
  Prefactor  = 25.7435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.22633
  Prefactor  = 1.72865
  Prefactor  = 0.0001
  Prefactor  = 2.69322
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.274
  Prefactor  = 2.12386
  Prefactor  = 5.15964
  Prefactor  = 0.0001
  Prefactor  = 13.5155
  Prefactor  = 0.0001
  Prefactor  = 8.29362
  norm       = 1.43019
  Prefactor  = 8.06854
  Prefactor  = 5.20133
  norm       = 0.000100026
  Normalizat = 0.970001
  Prefactor  = 1.09185
 **********
 **   18 **HESSE 
 **********

 FCN=   7917.702     FROM HESSE     STATUS=OK           494 CALLS     3801 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0955        .15251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10017E-03    50.541        .49752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.228        28.097        .63994E-04   -1.4454    
   4  Prefactor     8.8175        20.466        .13507E-03   -1.5114    
   5  Prefactor     25.744        35.641        .78965E-04   -1.4693    
   6  Prefactor     .10000E-03    2.2416        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .92679        .82698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2263        7.0205        .16088E-03   -1.5209    
  10  Prefactor     1.7286        2.3512        .15070E-03   -1.5445    
  11  Prefactor     .10000E-03    24.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6932        3.3049        .16674E-03   -1.5380    
  13  norm          .10000E-03    7.0487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.274        36.689        .88945E-04   -1.4807    
  16  Prefactor     2.1239        2.9956        .17477E-03   -1.5416    
  17  Prefactor     5.1596        7.3264        .17696E-03   -1.5254    
  18  Prefactor     .10000E-03    76.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.515        30.304        .10891E-03   -1.4973    
  20  Prefactor     .10000E-03    23.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2936        12.623        .13920E-03   -1.5132    
  22  norm          1.4302        .30087        .20637E-04   -1.5469    
  23  Prefactor     8.0685        12.147        .14107E-03   -1.5140    
  24  Prefactor     5.2013        10.593        .17628E-03   -1.5252    
  25  norm          .10003E-03    48.533        .52906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97000        .17914        .23951E-03   -.94042    
  27  Prefactor     1.0918        .20748        .27671E-03   -.89727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.423e-09
Minuit parameter uncertainties:
  1  2.68001e-06
  2  0.00582513
  3  28.1062
  4  20.4823
  5  35.6703
  6  2.13825e-06
  7  3.4104e-06
  8  1.75702e-06
  9  7.02142
  10  2.3513
  11  1.90197e-05
  12  3.30512
  13  1.36007e-06
  14  2.64145e-06
  15  36.7298
  16  2.99585
  17  7.32769
  18  0.000145605
  19  30.3384
  20  2.36172e-06
  21  12.6267
  22  0.30087
  23  12.1507
  24  10.5964
  25  0.00225669
  26  0.179251
  27  0.207632
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.693e+00  3.305e+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.092e+00  2.076e-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.700e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 5.84e-06 +/- 7.17e-06

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

Saving results to:
/scratch/kocevski/815418/likelihoodResults_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.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) = 7917.62862508
delta logL = 0.0730539926808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7917.61957507
delta logL = 0.082104006352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1416       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2341       1.0000          .0000       10.000    
     3 'Normalizat'    .97727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0856       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=   7917.620     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1420        185.23        .57177E-02    .34781E-03
   2  Index         2.2342        5.1917        .24596        .20220E-05
   3  Normalizat    .97724        .80548E-01    .45881E-01    .65246E-05
   4  Prefactor     1.0856        .92013E-01    .62711E-01    .11439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.142
  Index      = 2.23419
  Normalizat = 0.977238
  Prefactor  = 1.08559
 **********
 **   18 **HESSE 
 **********

 FCN=   7917.620     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1420        3.6791        .17829E-03   -1.5353    
   2  Index         2.2342        .82957        .13415E-01   -.58616    
   3  Normalizat    .97724        .16930        .23871E-03   -.93797    
   4  Prefactor     1.0856        .20573        .27737E-03   -.89929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46029e-13
Minuit parameter uncertainties:
  1  3.67932
  2  0.835155
  3  0.169396
  4  0.205881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815418': 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) = 7917.61957504
delta logL = 0.0821040373521

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.142e+00  3.679e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.234e+00  8.352e-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:  1.086e+00  2.059e-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.772e-01  1.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.23 +/- 0.84
Photon Flux (Free Index): 1.70e-08 +/- 2.41e-08
Energy Flux (Free Index): 7.17e-06 +/- 9.60e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/815418/cmap_HighResolution_564105601_564364801_4FGL_J1018.4+3540_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='7.17e-06', photon_flux_error='2.71e-08', dlogl='8.21e-02', energy_flux='5.84e-06', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-09-01 18:21:14.230548', photon_index_error2='0.84', photon_index2='2.23', ts='1.07', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='8.50e-08', energy_flux_error2='9.60e-06', EG='0.97', time_epoch_completed='1630545674.23', return_code='0', job_id='815418', GAL2='1.09', EG2='0.98', return_code2='0', energy_flux_error='7.17e-06', photon_flux_error2='2.41e-08', ts2='1.24', photon_index='2.59' WHERE bin_id='1253' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:21:14 PDT 2021


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

Job <4FGL_J1018.4+3540_daily_bin1253> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:25 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05:27 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:05:27 2021
Terminated at Wed Sep  1 18:21:14 2021
Results reported at Wed Sep  1 18:21:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1253 154.607 35.6802 564105601 564364801 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 :                                   932.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

