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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1456
RA = 154.607, Dec = 35.6802
tmin = 616723201, tmax = 616982401
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='815719', job_status='RUN', time_executed='2021-09-01 18:08:14.491413', time_epoch_executed='1630544894.49' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815719/ft1_4FGL_J1018.4+3540_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815719/ft2_4FGL_J1018.4+3540_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815719/ft1_4FGL_J1018.4+3540_daily_bin1456.fits outfile=/scratch/kocevski/815719/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1456.fits ra=154.607 dec=35.6802 rad=12.0 tmin=616723201.0 tmax=616982401.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.05
user 2.85
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815719/ft1_filtered_4FGL_J1018.4+3540_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/815719/ft2_4FGL_J1018.4+3540_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/815719/ltcube_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.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/815719/ft2_4FGL_J1018.4+3540_daily_bin1456.fits
.....................!
real 14.73
user 14.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815719/ft1_filtered_4FGL_J1018.4+3540_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/815719/ft2_4FGL_J1018.4+3540_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/815719/ltcube_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.fits outfile=/scratch/kocevski/815719/expmap_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.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/815719/ltcube_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.fits
.....................!
real 190.32
user 185.54
sys 4.38

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/815719/ft1_filtered_4FGL_J1018.4+3540_daily_bin1456.fits scfile=/scratch/kocevski/815719/ft2_4FGL_J1018.4+3540_daily_bin1456.fits outfile=/scratch/kocevski/815719/cmap_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815719/ft1_filtered_4FGL_J1018.4+3540_daily_bin1456.fits scfile=/scratch/kocevski/815719/ft2_4FGL_J1018.4+3540_daily_bin1456.fits outfile=/scratch/kocevski/815719/cmap_HighResolution_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.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.52
user 0.39
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    108.86       1.0000         .10000E-03   10000.    
     2 'norm      '    .10512E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19658E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.051       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    82.184       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5495       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3293       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.650       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.157       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .59376       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4048       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=   2657.391     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3900 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          108.81        113.74        .22062E-06    .64858E-05
   2  norm          .10000E-03    49.427       -.40271E-05** at limit **
   3  Prefactor     37.432        89.863       -.49155E-06    .26323E-06
   4  Prefactor     .10000E-03    330.23       -.40616E-04** at limit **
   5  Prefactor     65.800        124.84        .19475E-05    .49953E-05
   6  Prefactor     9.8207        24.051        .17711E-06   -.12154E-04
   7  Prefactor     22.219        28.174       -.15365E-07    .43088E-06
   8  Prefactor     .10000E-03    5.9559        .17964E-06** at limit **
   9  norm          82.191        36.308        .48928E-07   -.21178E-04
  10  Prefactor     11.085        11.010       -.66556E-07   -.15167E-05
  11  Prefactor     45.429        51.046       -.22552E-06    .79821E-05
  12  Prefactor     6.5474        10.853        .29678E-07   -.14695E-05
  13  norm          .10000E-03    7.8946        .29913E-07** at limit **
  14  Prefactor     98.510        144.48       -.42684E-06   -.26098E-05
  15  Prefactor     .10000E-03    17.684        .10942E-06** at limit **
  16  Prefactor     .10000E-03    3.5335        .22733E-06** at limit **
  17  Prefactor     .10000E-03    3.0645        .14422E-06** at limit **
  18  Prefactor     .10000E-03    22.348        .18360E-06** at limit **
  19  Prefactor     .10000E-03    10.574        .14188E-06** at limit **
  20  Prefactor     .10000E-03    52.586        .46799E-06** at limit **
  21  Prefactor     .10000E-03    29.108        .16833E-05** at limit **
  22  norm          2.3292        .51048        .10200E-07   -.13782E-03
  23  Prefactor     20.643        18.918        .10627E-06   -.26419E-05
  24  Prefactor     .10000E-03    24.003        .30616E-06** at limit **
  25  norm          10.157        17.093        .24788E-06   -.11761E-04
  26  Normalizat    .59410        .29851        .37223E-05   -.32058E-04
  27  Prefactor     1.4044        .35568       -.34722E-05    .49393E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 108.81
  norm       = 0.0001
  Prefactor  = 37.4319
  Prefactor  = 0.000100002
  Prefactor  = 65.7996
  Prefactor  = 9.82072
  Prefactor  = 22.2187
  Prefactor  = 0.0001
  norm       = 82.1913
  Prefactor  = 11.0846
  Prefactor  = 45.4286
  Prefactor  = 6.54741
  norm       = 0.0001
  Prefactor  = 98.5099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.32924
  Prefactor  = 20.6434
  Prefactor  = 0.0001
  norm       = 10.1565
  Normalizat = 0.594104
  Prefactor  = 1.40436
 **********
 **   18 **HESSE 
 **********

 FCN=   2657.391     FROM HESSE     STATUS=OK           482 CALLS     4382 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          108.81        113.82        .19274E-03   -1.3618    
   2  norm          .10000E-03    49.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.432        89.867        .65513E-04   -1.4484    
   4  Prefactor     .10000E-03    335.91        .20244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.800        125.10        .24691E-03   -1.4084    
   6  Prefactor     9.8207        24.012        .12790E-03   -1.5081    
   7  Prefactor     22.219        28.169        .84977E-04   -1.4765    
   8  Prefactor     .10000E-03    6.0242        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          82.191        36.286        .44306E-04   -1.3892    
  10  Prefactor     11.085        11.026        .12033E-03   -1.5042    
  11  Prefactor     45.429        51.067        .59486E-04   -1.4359    
  12  Prefactor     6.5474        10.865        .15681E-03   -1.5196    
  13  norm          .10000E-03    7.9241        .14145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     98.510        144.69        .40502E-04   -1.3720    
  15  Prefactor     .10000E-03    17.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5497        .94586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0729        .88105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.577        .16374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3292        .51153        .16245E-04   -1.5403    
  23  Prefactor     20.643        18.927        .88140E-04   -1.4799    
  24  Prefactor     .10000E-03    24.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.157        17.091        .12573E-03   -1.5070    
  26  Normalizat    .59410        .33620        .33350E-03   -1.0823    
  27  Prefactor     1.4044        .40506        .28232E-03   -.80255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13734e-10
Minuit parameter uncertainties:
  1  114.048
  2  0.000154365
  3  90.1942
  4  0.00152203
  5  125.608
  6  24.0353
  7  28.1859
  8  2.25379e-06
  9  36.2958
  10  11.0284
  11  51.1166
  12  10.8684
  13  2.49394e-06
  14  145.208
  15  1.90898e-07
  16  2.93791e-07
  17  9.07957e-07
  18  2.12621e-05
  19  4.70325e-07
  20  6.23127e-05
  21  1.57294e-05
  22  0.51153
  23  18.9329
  24  2.24756e-05
  25  17.0989
  26  0.337359
  27  0.405981
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  6.547e+00  1.087e+01  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.404e+00  4.060e-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:  5.941e-01  3.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/815719/likelihoodResults_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.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) = 2657.3769876
delta logL = 0.0137257521178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2657.37171995
delta logL = 0.0189933986308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6082       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8124       1.0000          .0000       10.000    
     3 'Normalizat'    .58591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4113       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2657.372     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      249 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6076        10.242        .15681E-03    .48778E-03
   2  Index         2.8129        1.2492        .85705E-02    .91170E-04
   3  Normalizat    .58578        .32392        .33567E-03   -.11119E-03
   4  Prefactor     1.4113        .40060        .28173E-03   -.12723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60761
  Index      = 2.81294
  Normalizat = 0.585785
  Prefactor  = 1.41125
 **********
 **   18 **HESSE 
 **********

 FCN=   2657.372     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6076        9.6421        .62724E-05   -1.5234    
   2  Index         2.8129        1.1765        .34282E-03   -.45272    
   3  Normalizat    .58578        .32409        .13427E-04   -1.0859    
   4  Prefactor     1.4113        .40072        .56346E-04   -.80057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86041e-10
Minuit parameter uncertainties:
  1  9.64476
  2  1.19035
  3  0.325147
  4  0.401607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815719': 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) = 2657.37171938
delta logL = 0.0189939707234

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.608e+00  9.645e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.813e+00  1.190e+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.411e+00  4.016e-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:  5.858e-01  3.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.66
Ra Dec: 154.607 35.680

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/815719/cmap_HighResolution_616723201_616982401_4FGL_J1018.4+3540_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', job_status='DONE', photon_flux_upper_limit='2.34e-07', time_completed='2021-09-01 18:17:26.169511', job_id='815719', GAL2='1.41', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630545446.17', return_code2='0', ts='0.66', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.90e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1456' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:17:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 815719: <4FGL_J1018.4+3540_daily_bin1456> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1456> 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) <bullet0124>, 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:17:26 2021
Results reported at Wed Sep  1 18:17:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1456 154.607 35.6802 616723201 616982401 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 :                                   549.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            697 sec.

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

