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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1025
RA = 154.607, Dec = 35.6802
tmin = 505008001, tmax = 505267201
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='813005', job_status='RUN', time_executed='2021-09-01 17:58:24.605853', time_epoch_executed='1630544304.61' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813005/ft1_4FGL_J1018.4+3540_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813005/ft1_4FGL_J1018.4+3540_daily_bin1025.fits outfile=/scratch/kocevski/813005/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1025.fits ra=154.607 dec=35.6802 rad=12.0 tmin=505008001.0 tmax=505267201.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.55
user 4.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.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/813005/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/813005/ft1_filtered_4FGL_J1018.4+3540_daily_bin1025.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.57
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813005/ft1_filtered_4FGL_J1018.4+3540_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/813005/ltcube_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.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/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.fits
.....................!
real 17.27
user 16.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813005/ft1_filtered_4FGL_J1018.4+3540_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/813005/ltcube_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.fits outfile=/scratch/kocevski/813005/expmap_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.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/813005/ltcube_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.fits
.....................!
real 193.08
user 186.80
sys 5.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/813005/ft1_filtered_4FGL_J1018.4+3540_daily_bin1025.fits scfile=/scratch/kocevski/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.fits outfile=/scratch/kocevski/813005/cmap_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813005/ft1_filtered_4FGL_J1018.4+3540_daily_bin1025.fits scfile=/scratch/kocevski/813005/ft2_4FGL_J1018.4+3540_daily_bin1025.fits outfile=/scratch/kocevski/813005/cmap_HighResolution_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7082       1.0000         .10000E-03   10000.    
     2 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    26.096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    126.89       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.973       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3968       1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.805       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    25.664       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97160       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0492       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=   6092.060     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3229 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7081        10.299       -.20722E-08   -.35241E-04
   2  norm          .10000E-03    12.803       -.23394E-05** at limit **
   3  Prefactor     .10000E-03    21.880        .15411E-05** at limit **
   4  Prefactor     7.6923        18.579        .17547E-05    .14646E-03
   5  Prefactor     .10000E-03    12.057        .17925E-05** at limit **
   6  Prefactor     2.0710        5.8978        .40281E-06   -.17503E-03
   7  Prefactor     .10000E-03    4.9947        .65328E-08** at limit **
   8  Prefactor     .10000E-03    .83717        .48905E-08** at limit **
   9  norm          26.097        11.561       -.14703E-07   -.16276E-04
  10  Prefactor     4.2262        3.1579        .95008E-06   -.17700E-02
  11  Prefactor     .10000E-03    27.620        .26387E-06** at limit **
  12  Prefactor     .10000E-03    3.4525       -.32092E-06** at limit **
  13  norm          10.574        12.784        .36946E-08    .15649E-04
  14  Prefactor     .10000E-03    28.594       -.14150E-05** at limit **
  15  Prefactor     .10000E-03    21.036        .51075E-06** at limit **
  16  Prefactor     3.5958        4.2062        .62906E-06    .28042E-03
  17  Prefactor     .10000E-03    5.5883       -.35303E-07** at limit **
  18  Prefactor     .10000E-03    20.369       -.25412E-06** at limit **
  19  Prefactor     22.445        30.524       -.28665E-05   -.22520E-03
  20  Prefactor     126.89        82.340       -.71769E-06   -.43714E-04
  21  Prefactor     17.973        16.913        .41049E-07   -.37391E-04
  22  norm          2.3968        .43790        .77514E-08    .15970E-04
  23  Prefactor     36.803        24.564       -.24917E-06   -.78479E-04
  24  Prefactor     .10000E-03    6.1441       -.52573E-07** at limit **
  25  norm          25.665        20.143        .28133E-06    .11057E-04
  26  Normalizat    .97168        .18068       -.47166E-06    .97433E-05
  27  Prefactor     1.0491        .20752        .95846E-07   -.14114E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.70813
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 7.69235
  Prefactor  = 0.000100001
  Prefactor  = 2.07097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.0965
  Prefactor  = 4.22621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4452
  Prefactor  = 126.889
  Prefactor  = 17.9727
  norm       = 2.39683
  Prefactor  = 36.8033
  Prefactor  = 0.0001
  norm       = 25.6648
  Normalizat = 0.97168
  Prefactor  = 1.04913
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.060     FROM HESSE     STATUS=OK           486 CALLS     3715 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7081        10.311        .13583E-03   -1.5118    
   2  norm          .10000E-03    13.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6923        18.775        .14462E-03   -1.5153    
   5  Prefactor     .10000E-03    12.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0710        5.9187        .28707E-03   -1.5420    
   7  Prefactor     .10000E-03    5.0200        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .84628        .69705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.097        11.561        .78418E-04   -1.4686    
  10  Prefactor     4.2262        3.7651        .68103E-03   -1.5297    
  11  Prefactor     .10000E-03    27.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5244        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.574        12.768        .12320E-03   -1.5058    
  14  Prefactor     .10000E-03    28.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5958        4.2058        .16379E-03   -1.5329    
  17  Prefactor     .10000E-03    5.6929        .17996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.445        31.420        .84535E-04   -1.4760    
  20  Prefactor     126.89        82.528        .35737E-04   -1.3450    
  21  Prefactor     17.973        16.946        .94474E-04   -1.4860    
  22  norm          2.3968        .43914        .20836E-04   -1.5398    
  23  Prefactor     36.803        24.643        .66062E-04   -1.4494    
  24  Prefactor     .10000E-03    6.1491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.665        20.140        .79074E-04   -1.4694    
  26  Normalizat    .97168        .21368        .25526E-03   -.93985    
  27  Prefactor     1.0491        .24455        .29254E-03   -.91109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75494e-09
Minuit parameter uncertainties:
  1  10.3129
  2  0.000328133
  3  0.000227212
  4  18.7898
  5  0.000189689
  6  5.92032
  7  7.75334e-07
  8  2.56897e-08
  9  11.5619
  10  3.76529
  11  1.32169e-05
  12  2.02734e-05
  13  12.7711
  14  0.000235383
  15  6.94998e-05
  16  4.20611
  17  4.8122e-06
  18  4.97078e-05
  19  31.4433
  20  82.6029
  21  16.9505
  22  0.439137
  23  24.6498
  24  2.03157e-06
  25  20.1456
  26  0.213863
  27  0.244807
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.027e-05  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.049e+00  2.448e-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:  9.717e-01  2.139e-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: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813005/likelihoodResults_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.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) = 6092.06106535
delta logL = -0.00135315873558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6092.05971243
delta logL = -2.44001967076e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5732       1.0000          .0000       10.000    
     3 'Normalizat'    .97164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6092.060     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    77.595        .14338E-02** at limit **
   2  Index         2.5048        8.7471        .50000        .28377E-04
   3  Normalizat    .97168        .20643E-01    .25526E-03    .43558E-04
   4  Prefactor     1.0491        .24588E-01    .29254E-03    .41194E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6092.060     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      368 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    77.595        .38337E-03** at limit **
   2  Index         2.5048        8.7471        .55189E-03    .28377E-04
   3  Normalizat    .97168        .20643E-01    .39983E-05    .43558E-04
   4  Prefactor     1.0491        .24588E-01    .47253E-05    .41194E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6092.060     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      409 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    438.92        .28676E-03** at limit **
   2  Index         2.3362        6.1578        .50000        .13110E-06
   3  Normalizat    .97168        .55897E-01    .10210E-04   -.29462E-03
   4  Prefactor     1.0491        .66571E-01    .11702E-04   -.24969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33616
  Normalizat = 0.971679
  Prefactor  = 1.04913
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.060     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9536        .57351E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3362        6.0326        .50000       -.56187    
   3  Normalizat    .97168        .20409        .20421E-05   -.93985    
   4  Prefactor     1.0491        .24306        .23403E-05   -.91109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16852e-10
Minuit parameter uncertainties:
  1  3.3812e-06
  2  116.752
  3  0.204249
  4  0.243317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813005': 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) = 6092.05971096
delta logL = 1.23218796944e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.381e-06  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.336e+00  1.168e+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:  1.049e+00  2.433e-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:  9.717e-01  2.042e-01  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/813005/cmap_HighResolution_505008001_505267201_4FGL_J1018.4+3540_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-01 18:11:56.594432', job_id='813005', GAL2='1.05', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630545116.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1025' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:11:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 813005: <4FGL_J1018.4+3540_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1025> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:10 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:56:21 2021
Terminated at Wed Sep  1 18:11:57 2021
Results reported at Wed Sep  1 18:11:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1025 154.607 35.6802 505008001 505267201 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 :                                   809.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            947 sec.

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

