/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 8 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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin448
RA = 154.607, Dec = 35.6802
tmin = 355449601, tmax = 355708801
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='811183', job_status='RUN', time_executed='2021-09-01 17:51:33.140562', time_epoch_executed='1630543893.14' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811183/ft1_4FGL_J1018.4+3540_daily_bin448.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811183/ft2_4FGL_J1018.4+3540_daily_bin448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811183/ft1_4FGL_J1018.4+3540_daily_bin448.fits outfile=/scratch/kocevski/811183/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin448.fits ra=154.607 dec=35.6802 rad=12.0 tmin=355449601.0 tmax=355708801.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.38
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811183/ft2_4FGL_J1018.4+3540_daily_bin448.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/811183/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin448.fits evtable="EVENTS" outfile="/scratch/kocevski/811183/ft1_filtered_4FGL_J1018.4+3540_daily_bin448.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811183/ft1_filtered_4FGL_J1018.4+3540_daily_bin448.fits" evtable="EVENTS" scfile=/scratch/kocevski/811183/ft2_4FGL_J1018.4+3540_daily_bin448.fits sctable="SC_DATA" outfile=/scratch/kocevski/811183/ltcube_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.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/811183/ft2_4FGL_J1018.4+3540_daily_bin448.fits
.....................!
real 18.00
user 17.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811183/ft1_filtered_4FGL_J1018.4+3540_daily_bin448.fits evtable="EVENTS" scfile=/scratch/kocevski/811183/ft2_4FGL_J1018.4+3540_daily_bin448.fits sctable="SC_DATA" expcube=/scratch/kocevski/811183/ltcube_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.fits outfile=/scratch/kocevski/811183/expmap_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.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/811183/ltcube_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.fits
.....................!
real 194.90
user 187.74
sys 4.99

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/811183/ft1_filtered_4FGL_J1018.4+3540_daily_bin448.fits scfile=/scratch/kocevski/811183/ft2_4FGL_J1018.4+3540_daily_bin448.fits outfile=/scratch/kocevski/811183/cmap_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811183/ft1_filtered_4FGL_J1018.4+3540_daily_bin448.fits scfile=/scratch/kocevski/811183/ft2_4FGL_J1018.4+3540_daily_bin448.fits outfile=/scratch/kocevski/811183/cmap_HighResolution_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8362       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.367       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.7519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37811E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0522       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7277       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8071       1.0000         .10000E-03   10000.    
    22 'norm      '    .79050       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80955       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89381       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=   4997.720     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3264 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5084        .51845E-07** at limit **
   2  norm          .10000E-03    4.0727        .36599E-08** at limit **
   3  Prefactor     9.8366        22.952        .34178E-06   -.13720E-05
   4  Prefactor     20.367        17.643       -.49072E-07   -.44611E-05
   5  Prefactor     8.7586        26.592        .63783E-06   -.36663E-05
   6  Prefactor     9.5703        7.5271        .30291E-07   -.33864E-03
   7  Prefactor     .10000E-03    5.3230        .59114E-08** at limit **
   8  Prefactor     .10000E-03    .65348       -.52343E-08** at limit **
   9  norm          6.7520        6.0894        .97062E-09   -.98289E-05
  10  Prefactor     .38955E-01    1.9079        .15342E-06   -.15839E-03
  11  Prefactor     9.0550        25.216        .28722E-05    .11219E-05
  12  Prefactor     4.7245        3.9508        .59212E-07   -.55005E-03
  13  norm          .10000E-03    3.6723       -.18438E-07** at limit **
  14  Prefactor     37.500        49.974       -.43614E-05   -.14739E-04
  15  Prefactor     .10000E-03    56.950       -.49897E-06** at limit **
  16  Prefactor     12.603        5.6659       -.12616E-06   -.84901E-04
  17  Prefactor     1.5929        5.2909       -.11506E-06   -.12032E-03
  18  Prefactor     .10000E-03    19.770        .43974E-05** at limit **
  19  Prefactor     .10000E-03    17.782       -.52213E-05** at limit **
  20  Prefactor     79.307        73.656        .20132E-05    .29438E-05
  21  Prefactor     2.8074        4.2862        .25741E-06   -.63553E-03
  22  norm          .79054        .28978       -.49064E-08   -.23318E-03
  23  Prefactor     14.523        16.022        .14306E-06   -.38726E-06
  24  Prefactor     .10000E-03    12.361        .22051E-05** at limit **
  25  norm          .10000E-03    10.720       -.11593E-05** at limit **
  26  Normalizat    .80951        .16881       -.14139E-06   -.21854E-04
  27  Prefactor     .89381        .19307        .14047E-06   -.20241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.83656
  Prefactor  = 20.3669
  Prefactor  = 8.75859
  Prefactor  = 9.57027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.75195
  Prefactor  = 0.0389551
  Prefactor  = 9.05502
  Prefactor  = 4.72448
  norm       = 0.0001
  Prefactor  = 37.5
  Prefactor  = 0.0001
  Prefactor  = 12.6032
  Prefactor  = 1.59292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.307
  Prefactor  = 2.80736
  norm       = 0.790541
  Prefactor  = 14.5225
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.809509
  Prefactor  = 0.893812
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.720     FROM HESSE     STATUS=OK           492 CALLS     3756 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6160        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0729        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8366        22.949        .12777E-03   -1.5081    
   4  Prefactor     20.367        17.632        .88750E-04   -1.4805    
   5  Prefactor     8.7586        26.646        .13544E-03   -1.5116    
   6  Prefactor     9.5703        7.7427        .64771E-03   -1.5089    
   7  Prefactor     .10000E-03    5.3625        .15923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .66615        .55783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.7520        6.0873        .15442E-03   -1.5188    
  10  Prefactor     .38955E-01    72.746        .17303E-02   -1.5669    
  11  Prefactor     9.0550        25.278        .13321E-03   -1.5106    
  12  Prefactor     4.7245        4.2654        .57621E-03   -1.5273    
  13  norm          .10000E-03    3.6779        .13226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.500        50.094        .65445E-04   -1.4482    
  15  Prefactor     .10000E-03    56.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.603        5.6842        .10518E-03   -1.4998    
  17  Prefactor     1.5929        5.2626        .27282E-03   -1.5456    
  18  Prefactor     .10000E-03    19.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     79.307        73.717        .45097E-04   -1.3925    
  21  Prefactor     2.8074        9.5399        .12140E-02   -1.5373    
  22  norm          .79054        .29046        .21626E-04   -1.5530    
  23  Prefactor     14.523        16.108        .10511E-03   -1.4946    
  24  Prefactor     .10000E-03    12.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80951        .20251        .21884E-03   -.99717    
  27  Prefactor     .89381        .22782        .25686E-03   -.96358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8412e-09
Minuit parameter uncertainties:
  1  1.3466e-06
  2  4.05432e-07
  3  22.9696
  4  17.6368
  5  26.6821
  6  7.74352
  7  1.24247e-06
  8  2.17599e-07
  9  6.08782
  10  3.36656
  11  25.3077
  12  4.26563
  13  3.8507e-06
  14  50.1506
  15  2.15779e-05
  16  5.6844
  17  5.26412
  18  3.09034e-05
  19  2.27321e-05
  20  73.8024
  21  9.54507
  22  0.290465
  23  16.1123
  24  7.61031e-06
  25  5.0485e-06
  26  0.202694
  27  0.228063
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  4.724e+00  4.266e+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:  8.938e-01  2.281e-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.095e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.41
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 9.25e-06

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

Saving results to:
/scratch/kocevski/811183/likelihoodResults_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.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) = 4997.26324689
delta logL = 0.456407384896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4997.24886403
delta logL = 0.470790247256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9503       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6528       1.0000          .0000       10.000    
     3 'Normalizat'    .75753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93895       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=   4997.249     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      240 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9466        19.940        .74289E-02    .25953E-03
   2  Index         3.6540        3.5141        .13725        .96935E-04
   3  Normalizat    .75750        .53383E-01    .43053E-01   -.24919E-05
   4  Prefactor     .93898        .62331E-01    .45500E-01   -.39504E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9466
  Index      = 3.65402
  Normalizat = 0.7575
  Prefactor  = 0.938985
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9466        6.6248        .56662E-04   -1.5429    
   2  Index         3.6540        2.4019        .51778E-02   -.27256    
   3  Normalizat    .75750        .19897        .22538E-03   -1.0167    
   4  Prefactor     .93898        .23774        .25141E-03   -.94792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65228e-08
Minuit parameter uncertainties:
  1  6.62727
  2  2.51467
  3  0.199161
  4  0.238007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811183': 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) = 4997.24886338
delta logL = 0.470790903911

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.947e+00  6.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.654e+00  2.515e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.390e-01  2.380e-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:  7.575e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.65 +/- 2.51
Photon Flux (Free Index): 7.08e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.13e-05 +/- 7.11e-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/811183/cmap_HighResolution_355449601_355708801_4FGL_J1018.4+3540_daily_bin448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.13e-05', photon_flux_error='3.49e-08', dlogl='4.71e-01', energy_flux='1.03e-05', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-09-01 18:03:49.858929', photon_index_error2='2.51', photon_index2='3.65', ts='3.41', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='7.11e-06', EG='0.81', time_epoch_completed='1630544629.86', return_code='0', job_id='811183', GAL2='0.94', EG2='0.76', return_code2='0', energy_flux_error='9.25e-06', photon_flux_error2='5.28e-08', ts2='4.50', photon_index='2.59' WHERE bin_id='448' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:03:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 811183: <4FGL_J1018.4+3540_daily_bin448> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin448> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:50:56 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:51:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:51:14 2021
Terminated at Wed Sep  1 18:03:50 2021
Results reported at Wed Sep  1 18:03:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin448 154.607 35.6802 355449601 355708801 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 :                                   733.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            774 sec.

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

