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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1360
RA = 154.607, Dec = 35.6802
tmin = 591840001, tmax = 592099201
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='815581', job_status='RUN', time_executed='2021-09-01 18:05:48.335821', time_epoch_executed='1630544748.34' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815581/ft1_4FGL_J1018.4+3540_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits


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

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

Done.
real 5.29
user 5.01
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.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/815581/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.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/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/815581/ltcube_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.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/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits
.....................!
real 16.96
user 16.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/815581/ltcube_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.fits outfile=/scratch/kocevski/815581/expmap_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.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/815581/ltcube_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.fits
.....................!
real 192.35
user 186.85
sys 4.87

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/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.fits scfile=/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits outfile=/scratch/kocevski/815581/cmap_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.fits scfile=/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits outfile=/scratch/kocevski/815581/cmap_HighResolution_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.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/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/815581/ft2_4FGL_J1018.4+3540_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/815581/Model_4FGL_J1018.4+3540_daily_bin1360.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/815581/ft1_filtered_4FGL_J1018.4+3540_daily_bin1360.fits.....................!
real 48.15
user 46.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2506       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8014       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.676       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0538       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.705       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.8291       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1230       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72521       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=   5421.337     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3254 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5727        .90712E-02** at limit **
   2  norm          .10000E-03    6.3573        .90712E-02** at limit **
   3  Prefactor     .10000E-03    10.228        .90712E-02** at limit **
   4  Prefactor     35.335        31.816        .16854E-02   -.57031E-04
   5  Prefactor     18.855        23.211        .23060E-02    .84887E-04
   6  Prefactor     7.2514        7.7515        .37240E-02    .25651E-02
   7  Prefactor     .10000E-03    4.9938        .90712E-02** at limit **
   8  Prefactor     4.8016        2.9641        .45900E-02    .18014E-03
   9  norm          .10000E-03    4.2461        .90712E-02** at limit **
  10  Prefactor     .10000E-03    2.0225        .90712E-02** at limit **
  11  Prefactor     17.297        29.143        .24076E-02   -.14810E-03
  12  Prefactor     .10000E-03    3.0396        .90712E-02** at limit **
  13  norm          11.540        9.2533        .29482E-02   -.32718E-03
  14  Prefactor     31.739        34.057        .17781E-02   -.15007E-03
  15  Prefactor     24.870        22.944        .20082E-02   -.93761E-04
  16  Prefactor     11.677        6.0576        .29309E-02    .20777E-03
  17  Prefactor     .10000E-03    1.9643        .90712E-02** at limit **
  18  Prefactor     18.051        18.610        .23568E-02    .52970E-04
  19  Prefactor     .10000E-03    88.539        .90712E-02** at limit **
  20  Prefactor     .10000E-03    36.150        .90712E-02** at limit **
  21  Prefactor     .10000E-03    3.8132        .90712E-02** at limit **
  22  norm          1.0538        .32472        .50121E-02   -.75584E-04
  23  Prefactor     21.703        19.514        .21494E-02   -.58468E-03
  24  Prefactor     .10000E-03    9.9492        .90712E-02** at limit **
  25  norm          4.8233        19.809        .45766E-02   -.13152E-03
  26  Normalizat    1.1229        .18644        .37132E-01    .12490E-04
  27  Prefactor     .72533        .20901        .71045E-01    .24777E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.3355
  Prefactor  = 18.8551
  Prefactor  = 7.25135
  Prefactor  = 0.0001
  Prefactor  = 4.80159
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2967
  Prefactor  = 0.0001
  norm       = 11.5402
  Prefactor  = 31.7387
  Prefactor  = 24.87
  Prefactor  = 11.6768
  Prefactor  = 0.0001
  Prefactor  = 18.0507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05382
  Prefactor  = 21.7032
  Prefactor  = 0.0001
  norm       = 4.82332
  Normalizat = 1.12289
  Prefactor  = 0.725328
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.337     FROM HESSE     STATUS=OK           478 CALLS     3732 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.3587        .18129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.335        31.889        .67417E-04   -1.4518    
   5  Prefactor     18.855        23.211        .92238E-04   -1.4839    
   6  Prefactor     7.2514        7.7451        .74481E-03   -1.5169    
   7  Prefactor     .10000E-03    5.0165        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8016        2.9613        .94356E-04   -1.5270    
   9  norm          .10000E-03    4.2651        .14816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0592        .10218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.297        29.160        .96306E-04   -1.4876    
  12  Prefactor     .10000E-03    3.1047        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.540        9.2482        .11793E-03   -1.5028    
  14  Prefactor     31.739        34.072        .71123E-04   -1.4581    
  15  Prefactor     24.870        22.938        .80327E-04   -1.4710    
  16  Prefactor     11.677        6.0769        .11724E-03   -1.5024    
  17  Prefactor     .10000E-03    1.9707        .10071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.051        18.613        .94272E-04   -1.4858    
  19  Prefactor     .10000E-03    89.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8151        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0538        .32566        .22122E-04   -1.5503    
  23  Prefactor     21.703        19.446        .85975E-04   -1.4776    
  24  Prefactor     .10000E-03    9.9765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.8233        19.546        .18306E-03   -1.5269    
  26  Normalizat    1.1229        .21939        .22254E-03   -.89020    
  27  Prefactor     .72533        .24394        .31442E-03   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02241e-09
Minuit parameter uncertainties:
  1  6.44884e-05
  2  5.85303e-07
  3  4.43936e-05
  4  31.904
  5  23.2216
  6  7.74619
  7  7.66867e-07
  8  2.96138
  9  6.43426e-07
  10  2.04064e-07
  11  29.1835
  12  7.59456e-07
  13  9.24931
  14  34.0932
  15  22.946
  16  6.07717
  17  6.18218e-08
  18  18.6186
  19  4.56468e-05
  20  2.64712e-05
  21  9.82216e-07
  22  0.325664
  23  19.4518
  24  0.000109542
  25  19.4303
  26  0.219571
  27  0.244303
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.253e-01  2.443e-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.123e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815581/likelihoodResults_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.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): 102
logL (Free Index) = 5421.33850813
delta logL = -0.00153394151403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5421.33697498
delta logL = -7.89859768702e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6036       1.0000          .0000       10.000    
     3 'Normalizat'    1.1227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72563       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=   5421.337     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      260 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.766        .25210E-02** at limit **
   2  Index         3.5441        6.9276        .50000        .40900E-06
   3  Normalizat    1.1229        .82368E-02    .22254E-03   -.18781E-02
   4  Prefactor     .72532        .95861E-02    .31442E-03   -.14621E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.54413
  Normalizat = 1.12288
  Prefactor  = 0.725324
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.337     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    441.86        .10084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5441        6.3022        .50000       -.29545    
   3  Normalizat    1.1229        .49265E-01    .44508E-04   -.89020    
   4  Prefactor     .72532        .57175E-01    .62883E-04   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59779e-09
Minuit parameter uncertainties:
  1  8.68662e-05
  2  610.175
  3  0.0492675
  4  0.05718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815581': 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): 102
logL (Free Index) = 5421.33696902
delta logL = 5.16968157172e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.253e-01  5.718e-02  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.123e+00  4.927e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/815581/cmap_HighResolution_591840001_592099201_4FGL_J1018.4+3540_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-01 18:18:25.010571', job_id='815581', GAL2='0.73', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630545505.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='5.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1360' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:18:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 815581: <4FGL_J1018.4+3540_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1360 154.607 35.6802 591840001 592099201 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 :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            768 sec.

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

