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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1544
RA = 154.607, Dec = 35.6802
tmin = 639532801, tmax = 639792001
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='816851', job_status='RUN', time_executed='2021-09-01 18:12:43.429131', time_epoch_executed='1630545163.43' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816851/ft1_4FGL_J1018.4+3540_daily_bin1544.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816851/ft2_4FGL_J1018.4+3540_daily_bin1544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816851/ft1_4FGL_J1018.4+3540_daily_bin1544.fits outfile=/scratch/kocevski/816851/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1544.fits ra=154.607 dec=35.6802 rad=12.0 tmin=639532801.0 tmax=639792001.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.63
user 3.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816851/ft1_filtered_4FGL_J1018.4+3540_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/816851/ft2_4FGL_J1018.4+3540_daily_bin1544.fits sctable="SC_DATA" expcube=/scratch/kocevski/816851/ltcube_639532801_639792001_4FGL_J1018.4+3540_daily_bin1544.fits outfile=/scratch/kocevski/816851/expmap_639532801_639792001_4FGL_J1018.4+3540_daily_bin1544.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/816851/ltcube_639532801_639792001_4FGL_J1018.4+3540_daily_bin1544.fits
.....................!
real 192.98
user 187.85
sys 4.43

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/816851/ft1_filtered_4FGL_J1018.4+3540_daily_bin1544.fits scfile=/scratch/kocevski/816851/ft2_4FGL_J1018.4+3540_daily_bin1544.fits outfile=/scratch/kocevski/816851/cmap_639532801_639792001_4FGL_J1018.4+3540_daily_bin1544.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816851/ft1_filtered_4FGL_J1018.4+3540_daily_bin1544.fits scfile=/scratch/kocevski/816851/ft2_4FGL_J1018.4+3540_daily_bin1544.fits outfile=/scratch/kocevski/816851/cmap_HighResolution_639532801_639792001_4FGL_J1018.4+3540_daily_bin1544.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/816851/ft1_filtered_4FGL_J1018.4+3540_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/816851/ft2_4FGL_J1018.4+3540_daily_bin1544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816851/Model_4FGL_J1018.4+3540_daily_bin1544.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/816851/ft1_filtered_4FGL_J1018.4+3540_daily_bin1544.fits.....................!
real 49.07
user 47.72
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0586       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30926       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9220       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9537       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.212       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11650E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7612       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.055       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5787       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.542       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9270       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2724       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .58263       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=   5581.638     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3268 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0585        3.6377        .46598E-06   -.10336E-02
   2  norm          1.3625        17.059       -.56507E-06   -.33573E-03
   3  Prefactor     24.495        24.118        .25500E-06    .76515E-07
   4  Prefactor     .10000E-03    10.076        .54536E-05** at limit **
   5  Prefactor     .10000E-03    11.372       -.27214E-05** at limit **
   6  Prefactor     1.7088        6.7078       -.48390E-06   -.54828E-03
   7  Prefactor     .30084        6.2993        .13467E-05   -.52380E-03
   8  Prefactor     .10000E-03    .88379       -.63914E-08** at limit **
   9  norm          6.8525        8.4473        .71645E-08   -.11166E-03
  10  Prefactor     2.8540        3.2045       -.37129E-06   -.11238E-03
  11  Prefactor     35.509        30.602       -.16390E-05   -.14008E-04
  12  Prefactor     5.9223        4.2407        .89083E-06   -.38884E-04
  13  norm          2.9566        9.7417        .23577E-05    .50347E-04
  14  Prefactor     .10000E-03    18.740        .76848E-07** at limit **
  15  Prefactor     58.187        34.305       -.16423E-04   -.65151E-04
  16  Prefactor     3.5209        5.3569       -.17292E-05   -.81662E-04
  17  Prefactor     .10000E-03    2.6986        .88441E-06** at limit **
  18  Prefactor     8.7633        31.144        .73741E-05    .22388E-05
  19  Prefactor     .10000E-03    9.4116       -.29843E-05** at limit **
  20  Prefactor     .10000E-03    79.121        .16449E-05** at limit **
  21  Prefactor     27.055        13.231       -.99226E-07    .62622E-05
  22  norm          1.5788        .36278        .36881E-09    .10894E-03
  23  Prefactor     24.542        14.496        .93168E-07    .21332E-05
  24  Prefactor     .10000E-03    5.1095        .68644E-07** at limit **
  25  norm          2.9255        10.568        .35981E-06   -.16173E-03
  26  Normalizat    1.2723        .17865        .11751E-05   -.18927E-03
  27  Prefactor     .58273        .20486       -.10754E-06   -.14465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05848
  norm       = 1.36252
  Prefactor  = 24.4946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70884
  Prefactor  = 0.300843
  Prefactor  = 0.0001
  norm       = 6.85246
  Prefactor  = 2.85402
  Prefactor  = 35.5089
  Prefactor  = 5.92226
  norm       = 2.95658
  Prefactor  = 0.0001
  Prefactor  = 58.1871
  Prefactor  = 3.52085
  Prefactor  = 0.000100002
  Prefactor  = 8.76332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0548
  norm       = 1.57875
  Prefactor  = 24.5418
  Prefactor  = 0.0001
  norm       = 2.92548
  Normalizat = 1.27233
  Prefactor  = 0.582733
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.638     FROM HESSE     STATUS=OK           498 CALLS     3766 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0585        9.1075        .21557E-02   -1.5502    
   2  norm          1.3625        20.053        .18715E-02   -1.5475    
   3  Prefactor     24.495        24.101        .80940E-04   -1.4718    
   4  Prefactor     .10000E-03    10.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7088        8.0237        .16076E-02   -1.5447    
   7  Prefactor     .30084        30.627        .35828E-02   -1.5598    
   8  Prefactor     .10000E-03    .89597        .68529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.8525        8.4369        .76636E-03   -1.5184    
  10  Prefactor     2.8540        3.1891        .13059E-03   -1.5370    
  11  Prefactor     35.509        30.554        .67251E-04   -1.4515    
  12  Prefactor     5.9223        4.2333        .11989E-03   -1.5221    
  13  norm          2.9566        9.6597        .23630E-03   -1.5364    
  14  Prefactor     .10000E-03    18.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     58.187        34.352        .26291E-03   -1.4181    
  16  Prefactor     3.5209        5.3139        .18485E-03   -1.5333    
  17  Prefactor     .10000E-03    2.7472        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7633        30.985        .67710E-03   -1.5116    
  19  Prefactor     .10000E-03    9.4356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    79.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.055        13.238        .77020E-04   -1.4667    
  22  norm          1.5788        .36376        .20577E-04   -1.5457    
  23  Prefactor     24.542        14.497        .80859E-04   -1.4717    
  24  Prefactor     .10000E-03    5.1128        .16492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9255        10.688        .11872E-02   -1.5366    
  26  Normalizat    1.2723        .20238        .20522E-03   -.84396    
  27  Prefactor     .58273        .22932        .34573E-03   -1.0832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88388e-09
Minuit parameter uncertainties:
  1  6.2107
  2  10.4579
  3  24.1106
  4  3.07877e-06
  5  5.18206e-06
  6  7.40711
  7  6.07305
  8  2.25966e-06
  9  8.43834
  10  3.18927
  11  30.567
  12  4.23354
  13  9.66477
  14  2.67248e-06
  15  34.3639
  16  5.31466
  17  0.000145355
  18  31.0422
  19  4.78086e-07
  20  1.36247e-07
  21  13.2399
  22  0.363759
  23  14.4989
  24  1.02587e-06
  25  10.6945
  26  0.202508
  27  0.229688
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.922e+00  4.234e+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:  5.827e-01  2.297e-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.272e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.00
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 9.18e-06

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) = 5580.82627015
delta logL = 0.811408361651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5580.81164758
delta logL = 0.826030924923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1698       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6900       1.0000          .0000       10.000    
     3 'Normalizat'    1.3124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55310       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=   5580.812     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1698        3.9981        .44202E-02   -.44430E-02
   2  Index         1.6901        .41702        .21327       -.39769E-04
   3  Normalizat    1.3124        .17168        .32587E-01   -.34195E-05
   4  Prefactor     .55309        .20306        .79934E-01    .32880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16979
  Index      = 1.69006
  Normalizat = 1.31238
  Prefactor  = 0.553089
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.812     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1698        4.8534        .12745E-03   -1.5253    
   2  Index         1.6901        .59016        .80694E-02   -.72347    
   3  Normalizat    1.3124        .18996        .20267E-03   -.83198    
   4  Prefactor     .55309        .22386        .35403E-03   -1.0960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51922e-09
Minuit parameter uncertainties:
  1  4.85373
  2  0.592629
  3  0.190066
  4  0.224216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816851': 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) = 5580.81164758
delta logL = 0.826030927714

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.170e+00  4.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  1.690e+00  5.926e-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:  5.531e-01  2.242e-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.312e+00  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 154.607 35.680
Photon Index (Free Index): 1.69 +/- 0.59
Photon Flux (Free Index): 1.78e-08 +/- 2.01e-08
Energy Flux (Free Index): 3.00e-05 +/- 3.97e-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/816851/cmap_HighResolution_639532801_639792001_4FGL_J1018.4+3540_daily_bin1544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='3.00e-05', photon_flux_error='3.47e-08', dlogl='8.26e-01', energy_flux='1.28e-05', photon_flux2='1.78e-08', job_status='DONE', time_completed='2021-09-01 18:24:18.984758', photon_index_error2='0.59', photon_index2='1.69', ts='5.00', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='3.97e-05', EG='1.27', time_epoch_completed='1630545858.98', return_code='0', job_id='816851', GAL2='0.55', EG2='1.31', return_code2='0', energy_flux_error='9.18e-06', photon_flux_error2='2.01e-08', ts2='6.66', photon_index='2.59' WHERE bin_id='1544' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:24:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 816851: <4FGL_J1018.4+3540_daily_bin1544> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1544> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:20 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:22 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:10:22 2021
Terminated at Wed Sep  1 18:24:19 2021
Results reported at Wed Sep  1 18:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1544 154.607 35.6802 639532801 639792001 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 :                                   692.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

