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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin887
RA = 154.607, Dec = 35.6802
tmin = 469238401, tmax = 469497601
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='812821', job_status='RUN', time_executed='2021-09-01 17:56:13.856583', time_epoch_executed='1630544173.86' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812821

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812821/ft1_4FGL_J1018.4+3540_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812821/ft2_4FGL_J1018.4+3540_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812821/ft1_4FGL_J1018.4+3540_daily_bin887.fits outfile=/scratch/kocevski/812821/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin887.fits ra=154.607 dec=35.6802 rad=12.0 tmin=469238401.0 tmax=469497601.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.50
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812821/ft1_filtered_4FGL_J1018.4+3540_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/812821/ft2_4FGL_J1018.4+3540_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/812821/ltcube_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.fits outfile=/scratch/kocevski/812821/expmap_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.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/812821/ltcube_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.fits
.....................!
real 192.27
user 187.36
sys 4.14

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/812821/ft1_filtered_4FGL_J1018.4+3540_daily_bin887.fits scfile=/scratch/kocevski/812821/ft2_4FGL_J1018.4+3540_daily_bin887.fits outfile=/scratch/kocevski/812821/cmap_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812821/ft1_filtered_4FGL_J1018.4+3540_daily_bin887.fits scfile=/scratch/kocevski/812821/ft2_4FGL_J1018.4+3540_daily_bin887.fits outfile=/scratch/kocevski/812821/cmap_HighResolution_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3245       1.0000         .10000E-03   10000.    
     2 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2480       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31973E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.975       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8430       1.0000         .10000E-03   10000.    
    13 'norm      '    19.129       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9066       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.608       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2830       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5821       1.0000         .10000E-03   10000.    
    25 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82684       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2285       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=   7006.511     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3303 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3227        8.8383        .29485E-05   -.68864E-03
   2  norm          .10000E-03    4.7769        .33288E-06** at limit **
   3  Prefactor     .10000E-03    23.635       -.33536E-05** at limit **
   4  Prefactor     9.1974        26.961       -.81745E-05   -.40344E-03
   5  Prefactor     12.883        34.174        .28223E-05   -.16835E-04
   6  Prefactor     25.132        9.4706       -.79473E-07   -.11191E-03
   7  Prefactor     .10000E-03    4.5548       -.25594E-06** at limit **
   8  Prefactor     .10000E-03    1.1488        .32938E-06** at limit **
   9  norm          .10000E-03    3.6447       -.45206E-08** at limit **
  10  Prefactor     .10000E-03    1.9869        .19133E-06** at limit **
  11  Prefactor     35.967        28.638       -.94944E-06   -.18199E-03
  12  Prefactor     5.8391        4.4856       -.72309E-07   -.64044E-03
  13  norm          19.127        10.632        .19671E-07   -.87663E-04
  14  Prefactor     .10000E-03    14.802        .19390E-05** at limit **
  15  Prefactor     .10001E-03    34.652        .52783E-05** at limit **
  16  Prefactor     1.9072        3.8516        .46271E-06   -.21689E-03
  17  Prefactor     19.606        6.6692        .27992E-07   -.37410E-03
  18  Prefactor     .10000E-03    17.352        .14768E-05** at limit **
  19  Prefactor     10.758        20.542       -.69665E-06   -.85371E-04
  20  Prefactor     .10000E-03    27.743       -.21652E-05** at limit **
  21  Prefactor     .10000E-03    5.9229       -.10945E-06** at limit **
  22  norm          1.2830        .29679       -.34756E-07    .35427E-03
  23  Prefactor     .10000E-03    3.5800        .30940E-07** at limit **
  24  Prefactor     3.5829        7.1310        .39344E-05   -.80122E-03
  25  norm          .10000E-03    12.199       -.18414E-05** at limit **
  26  Normalizat    .82724        .16610        .12320E-05   -.25446E-03
  27  Prefactor     1.2279        .19077       -.14734E-05   -.34481E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32269
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 9.19737
  Prefactor  = 12.8835
  Prefactor  = 25.1318
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 35.9671
  Prefactor  = 5.83911
  norm       = 19.127
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 1.90721
  Prefactor  = 19.6056
  Prefactor  = 0.000100001
  Prefactor  = 10.7582
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.28297
  Prefactor  = 0.0001
  Prefactor  = 3.58295
  norm       = 0.000100001
  Normalizat = 0.82724
  Prefactor  = 1.22788
 **********
 **   18 **HESSE 
 **********

 FCN=   7006.511     FROM HESSE     STATUS=OK           488 CALLS     3791 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3227        9.0845        .79805E-03   -1.5205    
   2  norm          .10000E-03    4.7845        .17873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1974        28.270        .13179E-03   -1.5101    
   5  Prefactor     12.883        34.258        .11155E-03   -1.4990    
   6  Prefactor     25.132        9.4166        .79893E-04   -1.4705    
   7  Prefactor     .10000E-03    4.5900        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5476        .16978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.6753        .15604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3622        .20467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.967        28.715        .66816E-04   -1.4508    
  12  Prefactor     5.8391        4.1082        .13415E-03   -1.5225    
  13  norm          19.127        10.606        .91576E-04   -1.4833    
  14  Prefactor     .10000E-03    14.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    35.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9072        3.8252        .21793E-03   -1.5432    
  17  Prefactor     19.606        6.6630        .90451E-04   -1.4822    
  18  Prefactor     .10000E-03    17.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.758        20.572        .12210E-03   -1.5052    
  20  Prefactor     .10000E-03    27.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2830        .29765        .21073E-04   -1.5481    
  23  Prefactor     .10000E-03    3.5855        .15466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5829        7.4509        .10676E-02   -1.5329    
  25  norm          .10000E-03    12.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82724        .19364        .26008E-03   -.99066    
  27  Prefactor     1.2279        .22333        .26887E-03   -.85478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57398e-09
Minuit parameter uncertainties:
  1  9.08644
  2  3.54787e-05
  3  0.000644055
  4  28.3115
  5  34.31
  6  9.41714
  7  2.74336e-05
  8  0.000210746
  9  3.38879e-06
  10  0.000214107
  11  28.7265
  12  4.10843
  13  10.6068
  14  0.000282639
  15  0.00121049
  16  3.82571
  17  6.66326
  18  0.00023045
  19  20.5857
  20  0.00045157
  21  1.7116e-05
  22  0.29765
  23  8.17258e-07
  24  7.45279
  25  0.000248073
  26  0.193803
  27  0.223505
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.839e+00  4.108e+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.228e+00  2.235e-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.272e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.79e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 8.91e-06

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

Saving results to:
/scratch/kocevski/812821/likelihoodResults_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.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) = 7005.63788241
delta logL = 0.873390945496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7005.63029543
delta logL = 0.880977926503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2667       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6807       1.0000          .0000       10.000    
     3 'Normalizat'    .77785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2689       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=   7005.630     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      246 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2680        18.802        .68202E-02    .51913E-03
   2  Index         3.6804        3.1231        .13874        .14568E-03
   3  Normalizat    .77785        .53573E-01    .43321E-01    .18985E-04
   4  Prefactor     1.2689        .64039E-01    .59953E-01   -.39090E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26797
  Index      = 3.68041
  Normalizat = 0.777851
  Prefactor  = 1.26895
 **********
 **   18 **HESSE 
 **********

 FCN=   7005.630     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2680        4.5970        .64625E-04   -1.5407    
   2  Index         3.6804        1.3987        .52392E-02   -.26708    
   3  Normalizat    .77785        .18536        .26712E-03   -1.0090    
   4  Prefactor     1.2689        .22492        .26512E-03   -.84235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63235e-11
Minuit parameter uncertainties:
  1  4.59766
  2  1.41907
  3  0.185512
  4  0.225091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812821': 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) = 7005.63029532
delta logL = 0.880978038631

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.268e+00  4.598e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.680e+00  1.419e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.269e+00  2.251e-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.779e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.68 +/- 1.42
Photon Flux (Free Index): 8.58e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.37e-05 +/- 7.65e-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/812821/cmap_HighResolution_469238401_469497601_4FGL_J1018.4+3540_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', comment='SUCCESS', photon_flux='4.79e-08', energy_flux2='1.37e-05', photon_flux_error='3.36e-08', dlogl='8.81e-01', energy_flux='1.27e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-01 18:10:56.722096', photon_index_error2='1.42', photon_index2='3.68', ts='3.32', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='7.65e-06', EG='0.83', time_epoch_completed='1630545056.72', return_code='0', job_id='812821', GAL2='1.27', EG2='0.78', return_code2='0', energy_flux_error='8.91e-06', photon_flux_error2='4.93e-08', ts2='5.27', photon_index='2.59' WHERE bin_id='887' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:10:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 812821: <4FGL_J1018.4+3540_daily_bin887> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin887> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:55:56 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:00 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:56:00 2021
Terminated at Wed Sep  1 18:10:57 2021
Results reported at Wed Sep  1 18:10:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin887 154.607 35.6802 469238401 469497601 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 :                                   879.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            901 sec.

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

