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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1283
RA = 154.607, Dec = 35.6802
tmin = 571881601, tmax = 572140801
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='815463', job_status='RUN', time_executed='2021-09-01 18:08:04.242564', time_epoch_executed='1630544884.24' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815463/ft1_4FGL_J1018.4+3540_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815463/ft2_4FGL_J1018.4+3540_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815463/ft1_4FGL_J1018.4+3540_daily_bin1283.fits outfile=/scratch/kocevski/815463/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1283.fits ra=154.607 dec=35.6802 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.58
user 2.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815463/ft1_filtered_4FGL_J1018.4+3540_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/815463/ft2_4FGL_J1018.4+3540_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/815463/ltcube_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.fits outfile=/scratch/kocevski/815463/expmap_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.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/815463/ltcube_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.fits
.....................!
real 191.46
user 185.91
sys 4.95

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815463/ft1_filtered_4FGL_J1018.4+3540_daily_bin1283.fits scfile=/scratch/kocevski/815463/ft2_4FGL_J1018.4+3540_daily_bin1283.fits outfile=/scratch/kocevski/815463/cmap_HighResolution_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/815463/ft1_filtered_4FGL_J1018.4+3540_daily_bin1283.fits', '/scratch/kocevski/815463/ft2_4FGL_J1018.4+3540_daily_bin1283.fits', expMap='/scratch/kocevski/815463/expmap_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.fits', expCube='/scratch/kocevski/815463/ltcube_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/815463/Model_4FGL_J1018.4+3540_daily_bin1283.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/815463/ft1_filtered_4FGL_J1018.4+3540_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/815463/ft2_4FGL_J1018.4+3540_daily_bin1283.fits
Exposure map: /scratch/kocevski/815463/expmap_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.fits
Exposure cube: /scratch/kocevski/815463/ltcube_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/815463/Model_4FGL_J1018.4+3540_daily_bin1283.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 196.691143354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 193.715531906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3766       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16105E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .71739       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65655E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14665       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.257       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27661E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63840E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46915E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.734       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12834E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6269       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .99659E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .62924E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    173.93       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .12878       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78696       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   193.5449     FROM MIGRAD    STATUS=CONVERGED    321 CALLS      587 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        1.0114         .0000         .0000    
   2  norm          .41202E-01    .18795        .31280E-04   -.15343E-02
   3  Prefactor     6.2732        1.0032         .0000         .0000    
   4  Prefactor     .72702E-01    .17331       -.64189E-05    .11269E-02
   5  Prefactor     1.1607        .41598       -.12931E-04    .78022E-02
   6  Prefactor     4.1118        1.0076         .0000         .0000    
   7  Prefactor     .32092E-01    .25603        .78268E-05   -.61384E-03
   8  Prefactor     1.0098        1.3253         .0000         .0000    
   9  norm          .38165E-03    .47855E-01   -.34284E-04** at limit **
  10  Prefactor     .10000E-03    .20717        .85603E-07** at limit **
  11  Prefactor     .10000E-03    .36774        .43114E-05** at limit **
  12  Prefactor     .10000E-03    .27603        .40555E-06** at limit **
  13  norm          .10000E-03    .23675        .22967E-04** at limit **
  14  Prefactor     .32396E-02    .86450E-01    .59690E-04    .13318E-02
  15  Prefactor     .10000E-03    .42189       -.13416E-05** at limit **
  16  Prefactor     19.588        .96029        .64925E-05    .59395E-03
  17  Prefactor     .10000E-03    .20978        .78460E-05** at limit **
  18  Prefactor     .10015E-03    .21797       -.11751E-04** at limit **
  19  Prefactor     .10043E-03    .28060        .32895E-07** at limit **
  20  Prefactor     349.52        4.9624        .14231E-04    .12927E-03
  21  Prefactor     .10000E-03    .20571        .15441E-04** at limit **
  22  norm          2.6017        1.0145       -.49099E-06    .26947E-03
  23  Prefactor     .10000E-03    .26948        .10628E-04** at limit **
  24  Prefactor     .10000E-03    .21776       -.13212E-04** at limit **
  25  norm          182.27        1.0233        .14044E-05    .26124E-01
  26  Normalizat    .10000E-01    .28637        .23731E-04** at limit **
  27  Prefactor     .64649        1.0373       -.38149E-04   -.79744E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  norm       = 0.0412023
  Prefactor  = 6.27317
  Prefactor  = 0.0727021
  Prefactor  = 1.16065
  Prefactor  = 4.1118
  Prefactor  = 0.0320921
  Prefactor  = 1.00983
  norm       = 0.000381652
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 0.00323958
  Prefactor  = 0.0001
  Prefactor  = 19.588
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 0.000100425
  Prefactor  = 349.521
  Prefactor  = 0.000100001
  norm       = 2.60174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 182.267
  Normalizat = 0.01
  Prefactor  = 0.646486
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   193.5449     FROM HESSE     STATUS=FAILED         9 CALLS      596 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          549.54        546.08         .0000       -1.5340    
   2  norm          .41202E-01    .18795        .31280E-04   -1.5749    
   3  Prefactor     6.2732        1.0032         .0000       -1.5207    
   4  Prefactor     .72702E-01    .17331       -.64189E-05   -1.5654    
   5  Prefactor     1.1607        .41598       -.12931E-04   -1.5493    
   6  Prefactor     4.1118        1.0076         .0000       -1.5302    
   7  Prefactor     .32092E-01    .25603        .78268E-05   -1.5744    
   8  Prefactor     1.0098        1.3253         .0000       -1.5507    
   9  norm          .38165E-03    .47855E-01   -.34284E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20717        .85603E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .36774        .43114E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .27603        .40555E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .23675        .22967E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32396E-02    .86450E-01    .59690E-04   -1.5697    
  15  Prefactor     .10000E-03    .42189       -.13416E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.588        .96029        .64925E-05   -1.4823    
  17  Prefactor     .10000E-03    .20978        .78460E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10015E-03    .21797       -.11751E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10043E-03    .28060        .32895E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     349.52        4.9624        .14231E-04   -1.1947    
  21  Prefactor     .10000E-03    .20571        .15441E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6017        1.0145       -.49099E-06   -1.5385    
  23  Prefactor     .10000E-03    .26948        .10628E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .21776       -.13212E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          182.27        1.0233        .14044E-05   -1.3000    
  26  Normalizat    .10000E-01    .28637        .23731E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .64649        1.0373       -.38149E-04   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.08238e-09
Minuit parameter uncertainties:
  1  1.01141
  2  0.175786
  3  1.00321
  4  0.173313
  5  0.415976
  6  1.00759
  7  0.18101
  8  1.32538
  9  0.00734258
  10  1.13729e-05
  11  6.32054e-05
  12  4.73336e-05
  13  4.13903e-05
  14  0.0329496
  15  1.87786e-05
  16  0.960289
  17  1.8537e-05
  18  0.000366117
  19  0.000690962
  20  4.96243
  21  2.24007e-05
  22  1.01448
  23  2.05422e-05
  24  1.9214e-05
  25  1.02327
  26  2.21242e-06
  27  1.07085
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 193.544850595

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  4.733e-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:  6.465e-01  1.071e+00  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.000e-02  2.212e-06  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.38e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815463/likelihoodResults_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.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) = 193.544900854
delta logL = -5.02587214157e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 193.544851589
delta logL = -9.94465068516e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11866E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4286       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64657       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=   193.5449     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11040E-03    176.64        .91566E-02** at limit **
   2  Index         3.2013        5.1609        .50000        .44888E-05
   3  Normalizat    .10000E-01    .12222E-01    .96498E-02** at limit **
   4  Prefactor     .64648        .45608E-01    .31516E-03   -.55876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110402
  Index      = 3.20133
  Normalizat = 0.01
  Prefactor  = 0.646478
 **********
 **   18 **HESSE 
 **********

 FCN=   193.5449     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11040E-03    1319.1        .10139E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2013        6.6368        .50000       -.36798    
   3  Normalizat    .10000E-01    .99193E-01    .19300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64648        .12998        .63032E-04   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.56395e-08
Minuit parameter uncertainties:
  1  0.239753
  2  2371.22
  3  1.66256e-05
  4  0.130042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815463': 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) = 193.544851042
delta logL = -4.47557425787e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.104e-04  2.398e-01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.201e+00  2.371e+03  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:  6.465e-01  1.300e-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.000e-02  1.663e-05  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/815463/cmap_HighResolution_571881601_572140801_4FGL_J1018.4+3540_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-01', job_status='DONE', photon_flux_upper_limit='4.38e-06', time_completed='2021-09-01 18:13:36.339027', job_id='815463', GAL2='0.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630545216.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.65', dlogl='-4.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1283' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 815463: <4FGL_J1018.4+3540_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1283 154.607 35.6802 571881601 572140801 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 :                                   331.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            489 sec.

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

