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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1454
RA = 154.607, Dec = 35.6802
tmin = 616204801, tmax = 616464001
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='815716', job_status='RUN', time_executed='2021-09-01 18:08:48.111939', time_epoch_executed='1630544928.11' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815716/ft1_4FGL_J1018.4+3540_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.fits


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

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

Done.
real 4.04
user 3.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.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/815716/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/815716/ft1_filtered_4FGL_J1018.4+3540_daily_bin1454.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/815716/ft1_filtered_4FGL_J1018.4+3540_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/815716/ltcube_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.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/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.fits
.....................!
real 17.99
user 17.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815716/ft1_filtered_4FGL_J1018.4+3540_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/815716/ltcube_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.fits outfile=/scratch/kocevski/815716/expmap_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.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/815716/ltcube_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.fits
.....................!
real 191.91
user 187.19
sys 4.12

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/815716/ft1_filtered_4FGL_J1018.4+3540_daily_bin1454.fits scfile=/scratch/kocevski/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.fits outfile=/scratch/kocevski/815716/cmap_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.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/815716/ft1_filtered_4FGL_J1018.4+3540_daily_bin1454.fits scfile=/scratch/kocevski/815716/ft2_4FGL_J1018.4+3540_daily_bin1454.fits outfile=/scratch/kocevski/815716/cmap_HighResolution_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    29.057       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5429       1.0000         .10000E-03   10000.    
    13 'norm      '    21.835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.970       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8275       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6553       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88305       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0723       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=   4097.496     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3256 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8514       -.30183E-06** at limit **
   2  norm          2.6136        28.855        .56820E-05    .87441E-04
   3  Prefactor     6.9614        37.674        .24488E-06    .67871E-05
   4  Prefactor     .32717        57.282        .49371E-05   -.35819E-03
   5  Prefactor     .10000E-03    16.084       -.35230E-06** at limit **
   6  Prefactor     .10000E-03    5.7585       -.58422E-06** at limit **
   7  Prefactor     .10000E-03    3.4614       -.18008E-06** at limit **
   8  Prefactor     .10000E-03    .95076       -.28031E-06** at limit **
   9  norm          29.070        13.252       -.43857E-07    .39981E-04
  10  Prefactor     .68274        7.4197        .62373E-06    .12276E-03
  11  Prefactor     .10000E-03    18.476       -.17565E-06** at limit **
  12  Prefactor     7.5252        7.4496        .40252E-06    .33456E-03
  13  norm          21.832        14.336        .17122E-06    .35767E-04
  14  Prefactor     .10000E-03    34.953       -.45872E-06** at limit **
  15  Prefactor     18.971        35.561       -.17275E-06    .33553E-04
  16  Prefactor     .10000E-03    7.2326        .14057E-05** at limit **
  17  Prefactor     .10000E-03    5.0450       -.11792E-05** at limit **
  18  Prefactor     .10000E-03    16.821        .78303E-07** at limit **
  19  Prefactor     .10000E-03    12.069       -.27280E-06** at limit **
  20  Prefactor     70.488        113.54        .41642E-06    .38414E-04
  21  Prefactor     .10000E-03    2.8934       -.58824E-07** at limit **
  22  norm          1.8275        .43405        .98207E-08    .90117E-03
  23  Prefactor     .10000E-03    14.180       -.38284E-06** at limit **
  24  Prefactor     .10000E-03    28.978       -.32531E-06** at limit **
  25  norm          4.6577        15.018        .60311E-06    .54388E-04
  26  Normalizat    .88303        .22011       -.31061E-05    .23978E-03
  27  Prefactor     1.0724        .25909        .50923E-05    .23557E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.61364
  Prefactor  = 6.96142
  Prefactor  = 0.32717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.0697
  Prefactor  = 0.682736
  Prefactor  = 0.0001
  Prefactor  = 7.52524
  norm       = 21.8325
  Prefactor  = 0.0001
  Prefactor  = 18.9712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.4884
  Prefactor  = 0.0001
  norm       = 1.82751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65774
  Normalizat = 0.883033
  Prefactor  = 1.07237
 **********
 **   18 **HESSE 
 **********

 FCN=   4097.496     FROM HESSE     STATUS=OK           486 CALLS     3742 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8734        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6136        32.384        .25459E-03   -1.5385    
   3  Prefactor     6.9614        37.823        .15204E-03   -1.5180    
   4  Prefactor     .32717        61.873        .99554E-01   -1.5594    
   5  Prefactor     .10000E-03    16.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8091        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4669        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .95831        .61006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          29.070        13.260        .74324E-04   -1.4629    
  10  Prefactor     .68274        6.3362        .26180E-03   -1.5543    
  11  Prefactor     .10000E-03    18.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5252        6.8699        .12981E-03   -1.5159    
  13  norm          21.832        14.325        .85719E-04   -1.4773    
  14  Prefactor     .10000E-03    34.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.971        35.452        .91958E-04   -1.4837    
  16  Prefactor     .10000E-03    7.3610        .33371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1183        .14047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.488        113.54        .23954E-03   -1.4027    
  21  Prefactor     .10000E-03    2.8943        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8275        .43384        .19742E-04   -1.5438    
  23  Prefactor     .10000E-03    14.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6577        14.972        .18653E-03   -1.5276    
  26  Normalizat    .88303        .24255        .23819E-03   -.97059    
  27  Prefactor     1.0724        .27972        .27014E-03   -.90355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46286e-09
Minuit parameter uncertainties:
  1  2.91009e-05
  2  18.4119
  3  32.4849
  4  9.00653
  5  8.63111e-05
  6  4.13502e-05
  7  1.11864e-05
  8  8.47515e-06
  9  13.2614
  10  4.16007
  11  2.40383e-05
  12  6.87057
  13  14.3274
  14  9.63222e-05
  15  35.4918
  16  9.50174e-05
  17  8.36197e-05
  18  7.75842e-07
  19  3.15615e-05
  20  113.896
  21  3.24795e-06
  22  0.433836
  23  5.55813e-05
  24  8.26099e-05
  25  14.9837
  26  0.242846
  27  0.280101
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  7.525e+00  6.871e+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.072e+00  2.801e-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.830e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/815716/likelihoodResults_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.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) = 4097.43810439
delta logL = 0.0583073572234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4097.43569849
delta logL = 0.0607132627119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5517       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9123       1.0000          .0000       10.000    
     3 'Normalizat'    .86856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0873       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=   4097.436     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      254 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5517        95.957        .42628E-02    .49192E-03
   2  Index         2.9125        6.4546        .16763        .63816E-04
   3  Normalizat    .86852        .71629E-01    .44499E-01    .93639E-05
   4  Prefactor     1.0874        .85260E-01    .60734E-01    .55431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.5517
  Index      = 2.91246
  Normalizat = 0.868522
  Prefactor  = 1.08735
 **********
 **   18 **HESSE 
 **********

 FCN=   4097.436     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5517        9.1797        .10821E-03   -1.5237    
   2  Index         2.9125        1.2119        .60768E-02   -.43070    
   3  Normalizat    .86852        .22922        .23995E-03   -.97575    
   4  Prefactor     1.0874        .28036        .26859E-03   -.89872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5686e-09
Minuit parameter uncertainties:
  1  9.18207
  2  1.22677
  3  0.229482
  4  0.280735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815716': 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) = 4097.43569846
delta logL = 0.0607132898476

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.552e+00  9.182e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.912e+00  1.227e+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.087e+00  2.807e-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.685e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.91 +/- 1.23
Photon Flux (Free Index): 6.94e-08 +/- 5.46e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.31e-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/815716/cmap_HighResolution_616204801_616464001_4FGL_J1018.4+3540_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='1.45e-05', photon_flux_error='5.63e-08', dlogl='6.07e-02', energy_flux='1.63e-05', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-09-01 18:19:41.964230', photon_index_error2='1.23', photon_index2='2.91', ts='2.27', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.31e-05', EG='0.88', time_epoch_completed='1630545581.96', return_code='0', job_id='815716', GAL2='1.09', EG2='0.87', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.46e-08', ts2='2.41', photon_index='2.59' WHERE bin_id='1454' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:19:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 815716: <4FGL_J1018.4+3540_daily_bin1454> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1454> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:49 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05:51 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:51 2021
Terminated at Wed Sep  1 18:19:42 2021
Results reported at Wed Sep  1 18:19:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1454 154.607 35.6802 616204801 616464001 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 :                                   652.00 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             298.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

