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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1410
RA = 154.607, Dec = 35.6802
tmin = 604800001, tmax = 605059201
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='815654', job_status='RUN', time_executed='2021-09-01 18:09:42.415275', time_epoch_executed='1630544982.42' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815654/ft1_4FGL_J1018.4+3540_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815654/ft2_4FGL_J1018.4+3540_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815654/ft1_4FGL_J1018.4+3540_daily_bin1410.fits outfile=/scratch/kocevski/815654/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1410.fits ra=154.607 dec=35.6802 rad=12.0 tmin=604800001.0 tmax=605059201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.08
user 4.84
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815654/ft1_filtered_4FGL_J1018.4+3540_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/815654/ft2_4FGL_J1018.4+3540_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/815654/ltcube_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.fits outfile=/scratch/kocevski/815654/expmap_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.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/815654/ltcube_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.fits
.....................!
real 193.33
user 187.79
sys 5.01

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/815654/ft1_filtered_4FGL_J1018.4+3540_daily_bin1410.fits scfile=/scratch/kocevski/815654/ft2_4FGL_J1018.4+3540_daily_bin1410.fits outfile=/scratch/kocevski/815654/cmap_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815654/ft1_filtered_4FGL_J1018.4+3540_daily_bin1410.fits scfile=/scratch/kocevski/815654/ft2_4FGL_J1018.4+3540_daily_bin1410.fits outfile=/scratch/kocevski/815654/cmap_HighResolution_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.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/815654/ft1_filtered_4FGL_J1018.4+3540_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/815654/ft2_4FGL_J1018.4+3540_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/815654/Model_4FGL_J1018.4+3540_daily_bin1410.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/815654/ft1_filtered_4FGL_J1018.4+3540_daily_bin1410.fits.....................!
real 46.24
user 44.84
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9903       1.0000         .10000E-03   10000.    
     2 'norm      '    .14390E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11544E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0629       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9387       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .77316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.992       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2080       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75328       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=   5012.019     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3265 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9875        8.2202        .24432E-05    .21253E-04
   2  norm          .10000E-03    52.127        .46264E-05** at limit **
   3  Prefactor     .10000E-03    78.730       -.10373E-05** at limit **
   4  Prefactor     7.8725        29.465       -.15941E-05   -.39407E-04
   5  Prefactor     .10000E-03    20.888        .52358E-06** at limit **
   6  Prefactor     .10000E-03    5.6331        .20315E-06** at limit **
   7  Prefactor     .10000E-03    3.6321        .22789E-06** at limit **
   8  Prefactor     3.0640        4.0857        .89494E-06    .18857E-04
   9  norm          4.0374        10.156        .94961E-06   -.86979E-05
  10  Prefactor     4.0678        6.5890        .57862E-06    .40082E-04
  11  Prefactor     .10000E-03    10.421        .85963E-07** at limit **
  12  Prefactor     8.9367        7.2483       -.12566E-06    .15384E-04
  13  norm          .10000E-03    3.4616        .16472E-06** at limit **
  14  Prefactor     71.172        71.012        .21435E-05   -.21224E-04
  15  Prefactor     14.434        28.538        .66683E-06    .49033E-05
  16  Prefactor     .10003E-03    2.4954       -.37981E-06** at limit **
  17  Prefactor     .10000E-03    4.4750       -.84263E-08** at limit **
  18  Prefactor     .10000E-03    14.646        .11052E-06** at limit **
  19  Prefactor     .10000E-03    10.840        .44699E-07** at limit **
  20  Prefactor     1.2328        1399.5       -.66667E-04    .11166E-04
  21  Prefactor     .10000E-03    8.7411        .38369E-06** at limit **
  22  norm          .77318        .29781       -.36662E-07    .80847E-04
  23  Prefactor     40.000        22.566        .28166E-06   -.70420E-05
  24  Prefactor     .10000E-03    12.673        .28254E-06** at limit **
  25  norm          .10000E-03    15.684        .28973E-06** at limit **
  26  Normalizat    1.2081        .19279       -.13333E-05   -.56456E-04
  27  Prefactor     .75340        .22095       -.24956E-05   -.48823E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9875
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.87251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06399
  norm       = 4.03743
  Prefactor  = 4.06782
  Prefactor  = 0.0001
  Prefactor  = 8.93669
  norm       = 0.0001
  Prefactor  = 71.1719
  Prefactor  = 14.4343
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23276
  Prefactor  = 0.0001
  norm       = 0.773177
  Prefactor  = 40.0003
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20808
  Prefactor  = 0.753397
 **********
 **   18 **HESSE 
 **********

 FCN=   5012.019     FROM HESSE     STATUS=OK           486 CALLS     3751 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9875        8.2970        .29368E-03   -1.5426    
   2  norm          .10000E-03    53.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    79.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8725        29.387        .14315E-03   -1.5147    
   5  Prefactor     .10000E-03    20.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6615        .16404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6382        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0640        4.0947        .15241E-03   -1.5358    
   9  norm          4.0374        10.170        .20062E-03   -1.5306    
  10  Prefactor     4.0678        6.5144        .18426E-03   -1.5305    
  11  Prefactor     .10000E-03    10.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9367        7.1819        .13406E-03   -1.5110    
  13  norm          .10000E-03    3.4701        .12866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.172        71.098        .47575E-04   -1.4019    
  15  Prefactor     14.434        28.254        .10538E-03   -1.4948    
  16  Prefactor     .10003E-03    9.5542        .21434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4895        .14478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2328        1454.4        .35776E-02   -1.5486    
  21  Prefactor     .10000E-03    8.8302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .77318        .29887        .22560E-04   -1.5532    
  23  Prefactor     40.000        22.598        .63384E-04   -1.4442    
  24  Prefactor     .10000E-03    12.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    15.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2081        .23051        .22118E-03   -.86353    
  27  Prefactor     .75340        .26259        .31685E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01668e-09
Minuit parameter uncertainties:
  1  8.12337
  2  0.000336606
  3  0.000339839
  4  29.441
  5  5.95636e-05
  6  2.79261e-06
  7  4.43878e-06
  8  4.09506
  9  10.1741
  10  6.51557
  11  1.98843e-05
  12  7.18259
  13  8.93119e-06
  14  71.1833
  15  28.2804
  16  0.00102904
  17  1.12989e-05
  18  1.60901e-05
  19  1.84757e-05
  20  86.888
  21  2.06871e-05
  22  0.298875
  23  22.6027
  24  1.91429e-05
  25  3.94632e-05
  26  0.230706
  27  0.263028
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  8.937e+00  7.183e+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:  7.534e-01  2.630e-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.208e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.33e-08 +/- 5.88e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/815654/likelihoodResults_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.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) = 5011.95176498
delta logL = 0.0669335669736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5011.94849563
delta logL = 0.0702029198328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.400       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3666       1.0000          .0000       10.000    
     3 'Normalizat'    1.2202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74127       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5011.948     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      305 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.411        7.7282        .62122E-03   -.25786E-04
   2  Index         2.3677        .56699        .69754E-02    .11316E-03
   3  Normalizat    1.2205        .22562        .22021E-03   -.16262E-04
   4  Prefactor     .74092        .25931        .31911E-03    .15426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4111
  Index      = 2.36774
  Normalizat = 1.22046
  Prefactor  = 0.740917
 **********
 **   18 **HESSE 
 **********

 FCN=   5011.948     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.411        7.6118        .24849E-04   -1.5063    
   2  Index         2.3677        .55833        .13951E-02   -.55442    
   3  Normalizat    1.2205        .22581        .88085E-05   -.85973    
   4  Prefactor     .74092        .25948        .12765E-04   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8584e-12
Minuit parameter uncertainties:
  1  7.61248
  2  0.559943
  3  0.225993
  4  0.259902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815654': 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) = 5011.94848922
delta logL = 0.0702093310219

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.041e+01  7.612e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.368e+00  5.599e-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:  7.409e-01  2.599e-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.220e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.37 +/- 0.56
Photon Flux (Free Index): 6.53e-08 +/- 5.09e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.77e-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/815654/cmap_HighResolution_604800001_605059201_4FGL_J1018.4+3540_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.33e-08', energy_flux2='2.24e-05', photon_flux_error='5.88e-08', dlogl='7.02e-02', energy_flux='1.94e-05', photon_flux2='6.53e-08', job_status='DONE', time_completed='2021-09-01 18:21:31.284808', photon_index_error2='0.56', photon_index2='2.37', ts='3.40', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.77e-05', EG='1.21', time_epoch_completed='1630545691.28', return_code='0', job_id='815654', GAL2='0.74', EG2='1.22', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.09e-08', ts2='3.55', photon_index='2.59' WHERE bin_id='1410' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:21:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 815654: <4FGL_J1018.4+3540_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1410 154.607 35.6802 604800001 605059201 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

