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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1013
RA = 154.607, Dec = 35.6802
tmin = 501897601, tmax = 502156801
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='812988', job_status='RUN', time_executed='2021-09-01 17:56:37.459723', time_epoch_executed='1630544197.46' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812988/ft1_4FGL_J1018.4+3540_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812988/ft1_4FGL_J1018.4+3540_daily_bin1013.fits outfile=/scratch/kocevski/812988/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1013.fits ra=154.607 dec=35.6802 rad=12.0 tmin=501897601.0 tmax=502156801.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.66
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.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/812988/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/812988/ft1_filtered_4FGL_J1018.4+3540_daily_bin1013.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/812988/ft1_filtered_4FGL_J1018.4+3540_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/812988/ltcube_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.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/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.fits
.....................!
real 16.73
user 16.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812988/ft1_filtered_4FGL_J1018.4+3540_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/812988/ltcube_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.fits outfile=/scratch/kocevski/812988/expmap_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.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/812988/ltcube_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.fits
.....................!
real 194.59
user 186.76
sys 5.22

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/812988/ft1_filtered_4FGL_J1018.4+3540_daily_bin1013.fits scfile=/scratch/kocevski/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.fits outfile=/scratch/kocevski/812988/cmap_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812988/ft1_filtered_4FGL_J1018.4+3540_daily_bin1013.fits scfile=/scratch/kocevski/812988/ft2_4FGL_J1018.4+3540_daily_bin1013.fits outfile=/scratch/kocevski/812988/cmap_HighResolution_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    30.788       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88789       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .93584       1.0000         .10000E-03   10000.    
     9 'norm      '    22.458       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27117E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9809       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5504       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6968       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13321E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86139       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0479       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=   6037.017     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     2921 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1538       -.31836E-07** at limit **
   2  norm          30.790        30.222       -.22313E-05    .13452E-03
   3  Prefactor     .10000E-03    38.387        .53808E-05** at limit **
   4  Prefactor     44.817        35.986        .10616E-06    .19211E-03
   5  Prefactor     18.352        42.063        .14559E-05    .14007E-03
   6  Prefactor     .88821        3.5183       -.16474E-05   -.10317E-02
   7  Prefactor     2.4889        5.0403       -.31996E-06   -.32815E-03
   8  Prefactor     .93537        1.9273       -.13630E-06   -.88766E-03
   9  norm          22.457        10.227       -.12588E-07    .55344E-04
  10  Prefactor     .10000E-03    1.5594       -.42032E-07** at limit **
  11  Prefactor     .10007E-03    26.125       -.11871E-04** at limit **
  12  Prefactor     .10000E-03    1.0609       -.52264E-07** at limit **
  13  norm          2.9844        8.1801        .16373E-04    .12150E-03
  14  Prefactor     .10000E-03    29.813       -.42469E-05** at limit **
  15  Prefactor     .10000E-03    29.511        .10346E-05** at limit **
  16  Prefactor     7.5503        4.3663       -.11055E-05    .10944E-02
  17  Prefactor     3.4128        4.5446       -.10148E-05   -.30292E-03
  18  Prefactor     2.6971        72.670       -.76060E-06   -.17097E-04
  19  Prefactor     .10000E-03    56.239       -.53474E-05** at limit **
  20  Prefactor     .10000E-03    135.13        .14093E-04** at limit **
  21  Prefactor     .10000E-03    8.9967        .38093E-07** at limit **
  22  norm          1.7216        .34871        .66576E-09    .20335E-03
  23  Prefactor     .10000E-03    10.021       -.24312E-08** at limit **
  24  Prefactor     .10000E-03    21.813        .67907E-06** at limit **
  25  norm          .10000E-03    7.6201        .12916E-06** at limit **
  26  Normalizat    .86162        .16113       -.33605E-06    .78457E-03
  27  Prefactor     1.0477        .19447        .31085E-06    .48410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 30.7897
  Prefactor  = 0.000100001
  Prefactor  = 44.817
  Prefactor  = 18.3522
  Prefactor  = 0.88821
  Prefactor  = 2.48888
  Prefactor  = 0.935368
  norm       = 22.4568
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  norm       = 2.98444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55032
  Prefactor  = 3.41277
  Prefactor  = 2.69715
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.72156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.861619
  Prefactor  = 1.04774
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.017     FROM HESSE     STATUS=OK           492 CALLS     3413 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1632        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          30.790        30.342        .72210E-04   -1.4598    
   3  Prefactor     .10000E-03    39.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.817        36.014        .59883E-04   -1.4368    
   5  Prefactor     18.352        42.069        .93461E-04   -1.4851    
   6  Prefactor     .88821        3.5119        .28496E-03   -1.5519    
   7  Prefactor     2.4889        5.0202        .24090E-03   -1.5392    
   8  Prefactor     .93537        1.7475        .14576E-02   -1.5515    
   9  norm          22.457        10.219        .84522E-04   -1.4760    
  10  Prefactor     .10000E-03    2.6463        .18712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    30.841        .10359       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0655        .78100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9844        8.3035        .23515E-03   -1.5362    
  14  Prefactor     .10000E-03    29.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5503        4.3287        .11293E-03   -1.5158    
  17  Prefactor     3.4128        4.5294        .18046E-03   -1.5338    
  18  Prefactor     2.6971        71.954        .24808E-03   -1.5379    
  19  Prefactor     .10000E-03    57.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    135.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7216        .34873        .19979E-04   -1.5446    
  23  Prefactor     .10000E-03    10.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.6594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86162        .19132        .23339E-03   -.97822    
  27  Prefactor     1.0477        .23282        .26741E-03   -.91155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14869e-09
Minuit parameter uncertainties:
  1  1.4593e-06
  2  30.3567
  3  0.000363732
  4  36.0313
  5  42.1374
  6  3.51272
  7  5.02101
  8  1.74762
  9  10.2203
  10  1.27209e-05
  11  0.00287682
  12  1.71716e-06
  13  8.3067
  14  0.000231703
  15  5.14377e-06
  16  4.32885
  17  4.52987
  18  27.8986
  19  0.000485358
  20  0.00160814
  21  7.29902e-07
  22  0.348727
  23  1.68286e-06
  24  3.6796e-05
  25  2.104e-06
  26  0.191472
  27  0.233049
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.717e-06  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.048e+00  2.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.616e-01  1.915e-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: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812988/likelihoodResults_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.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) = 6037.02153121
delta logL = -0.00440751561018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6037.01712399
delta logL = -2.94410710922e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5784       1.0000          .0000       10.000    
     3 'Normalizat'    .86162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0478       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=   6037.017     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      253 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.484        .78554E-02** at limit **
   2  Index         2.0984        5.5025        .50000        .12808E-06
   3  Normalizat    .86162        .12421E-01    .23339E-03    .16952E-03
   4  Prefactor     1.0477        .15618E-01    .26741E-03    .16836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09835
  Normalizat = 0.861616
  Prefactor  = 1.04775
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.017     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.44        .83593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0984        5.6455        .50000       -.61913    
   3  Normalizat    .86162        .42248E-01    .93355E-05   -.97822    
   4  Prefactor     1.0477        .53120E-01    .10696E-04   -.91154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05737e-10
Minuit parameter uncertainties:
  1  2.10509e-05
  2  717.896
  3  0.0422493
  4  0.0531231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812988': 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) = 6037.0171179
delta logL = 5.78698109166e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.105e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.098e+00  7.179e+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.048e+00  5.312e-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:  8.616e-01  4.225e-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/812988/cmap_HighResolution_501897601_502156801_4FGL_J1018.4+3540_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-01 18:09:47.850167', job_id='812988', GAL2='1.05', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630544987.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1013' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 812988: <4FGL_J1018.4+3540_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1013> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:56:09 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:56:20 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:20 2021
Terminated at Wed Sep  1 18:09:48 2021
Results reported at Wed Sep  1 18:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1013 154.607 35.6802 501897601 502156801 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            819 sec.

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

