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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1279
RA = 154.607, Dec = 35.6802
tmin = 570844801, tmax = 571104001
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='815457', job_status='RUN', time_executed='2021-09-01 18:08:27.529425', time_epoch_executed='1630544907.53' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815457

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815457/ft1_4FGL_J1018.4+3540_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815457/ft2_4FGL_J1018.4+3540_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815457/ft1_4FGL_J1018.4+3540_daily_bin1279.fits outfile=/scratch/kocevski/815457/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1279.fits ra=154.607 dec=35.6802 rad=12.0 tmin=570844801.0 tmax=571104001.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.13
user 2.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815457/ft1_filtered_4FGL_J1018.4+3540_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/815457/ft2_4FGL_J1018.4+3540_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/815457/ltcube_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.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/815457/ft2_4FGL_J1018.4+3540_daily_bin1279.fits
.....................!
real 17.77
user 17.33
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815457/ft1_filtered_4FGL_J1018.4+3540_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/815457/ft2_4FGL_J1018.4+3540_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/815457/ltcube_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.fits outfile=/scratch/kocevski/815457/expmap_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.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/815457/ltcube_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.fits
.....................!
real 192.48
user 186.70
sys 5.29

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/815457/ft1_filtered_4FGL_J1018.4+3540_daily_bin1279.fits scfile=/scratch/kocevski/815457/ft2_4FGL_J1018.4+3540_daily_bin1279.fits outfile=/scratch/kocevski/815457/cmap_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.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.60
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815457/ft1_filtered_4FGL_J1018.4+3540_daily_bin1279.fits scfile=/scratch/kocevski/815457/ft2_4FGL_J1018.4+3540_daily_bin1279.fits outfile=/scratch/kocevski/815457/cmap_HighResolution_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.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.69
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.9778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9423       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1996       1.0000         .10000E-03   10000.    
    13 'norm      '    9.9156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82525E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27001       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35352E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12769E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    94.169       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .69217E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .49792E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21.56140     FROM MIGRAD    STATUS=CONVERGED    252 CALLS      392 TOTAL
                     EDM=   .83E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        8326.6         .0000         .0000    
   2  norm          1.9778        8347.6         .0000         .0000    
   3  Prefactor     6.2732        8293.6         .0000         .0000    
   4  Prefactor     2.7820        8334.9         .0000         .0000    
   5  Prefactor     7.1921        8284.7         .0000         .0000    
   6  Prefactor     4.1118        8317.2         .0000         .0000    
   7  Prefactor     1.4647        8357.1         .0000         .0000    
   8  Prefactor     1.0098        8367.1         .0000         .0000    
   9  norm          8.6848        8271.4         .0000         .0000    
  10  Prefactor    10000.0        9905.0        .10856E-03** at limit **
  11  Prefactor    10000.0        6266.8        .54142E-07** at limit **
  12  Prefactor    10000.0        8478.0       -.27717E-04** at limit **
  13  norm          .10000E-03    9095.5       -.66377E-04** at limit **
  14  Prefactor     .10001E-03    7548.6       -.31747E-05** at limit **
  15  Prefactor     .10000E-03    1925.1        .51990E-05** at limit **
  16  Prefactor     .10000E-03    484.99       -.72190E-05** at limit **
  17  Prefactor     .10000E-03    333.72       -.24049E-05** at limit **
  18  Prefactor     .10000E-03    681.96        .92644E-05** at limit **
  19  Prefactor     .10000E-03    155.85       -.79411E-06** at limit **
  20  Prefactor     .10000E-03    437.48       -.27821E-07** at limit **
  21  Prefactor     .10000E-03    47.188       -.12804E-05** at limit **
  22  norm          .10000E-03    .90523       -.53675E-07** at limit **
  23  Prefactor     52.557        65.048       -.73750E-06    .34572E-04
  24  Prefactor     .10000E-03    82.910       -.56676E-05** at limit **
  25  norm          .10000E-03    37.752        .18597E-05** at limit **
  26  Normalizat    .10000E-01    .20334        .20578E-05** at limit **
  27  Prefactor     .18319E-13    .22289       -.48601E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  norm       = 1.97778
  Prefactor  = 6.27317
  Prefactor  = 2.78201
  Prefactor  = 7.19212
  Prefactor  = 4.1118
  Prefactor  = 1.46472
  Prefactor  = 1.00983
  norm       = 8.68484
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100004
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.5573
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.83187e-14
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   21.56140     FROM HESSE     STATUS=FAILED         9 CALLS      401 TOTAL
                     EDM=   .83E-11  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          1.9778        1.0362         .0000       -1.5427    
   3  Prefactor     6.2732        1.0032         .0000       -1.5207    
   4  Prefactor     2.7820        1.0171         .0000       -1.5374    
   5  Prefactor     7.1921        1.0024         .0000       -1.5172    
   6  Prefactor     4.1118        1.0076         .0000       -1.5302    
   7  Prefactor     1.4647        1.0750         .0000       -1.5466    
   8  Prefactor     1.0098        1.3253         .0000       -1.5507    
   9  norm          8.6848        1.0017         .0000       -1.5118    
  10  Prefactor    10000.0        .21037        .10856E-03   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        .42399E-01    .54142E-07    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        .12026       -.27717E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .25303E-01   -.66377E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .58499E-01   -.31747E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .34777E-01    .51990E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .17938       -.72190E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .27257       -.24049E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .26485        .92644E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .24116       -.79411E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .59746E-01   -.27821E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .26504       -.12804E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571       -.53675E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     52.557        .74865       -.73750E-06   -1.4257    
  24  Prefactor     .10000E-03    .20571       -.56676E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .21897        .18597E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25505        .20578E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .18319E-13    .25504       -.48601E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.31797e-12
Minuit parameter uncertainties:
  1  1.01141
  2  1.03618
  3  1.00321
  4  1.01714
  5  1.00244
  6  1.00759
  7  1.075
  8  1.32538
  9  1.00167
  10  0.00022189
  11  2.54134e-05
  12  5.0072e-05
  13  2.04765e-05
  14  3.92523e-05
  15  3.72709e-06
  16  1.0426e-05
  17  8.94887e-07
  18  9.91256e-06
  19  9.19165e-07
  20  7.64802e-06
  21  1.4195e-06
  22  6.32303e-08
  23  0.748648
  24  1.58142e-06
  25  5.58949e-06
  26  2.1836e-07
  27  1.36287e-07
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e+04  5.007e-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.832e-14  1.363e-07  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.184e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 8.20e-05 +/- 4.10e-13
Energy Flux (Fixed Index): 2.17e-02 +/- 1.09e-10
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 5.05889630631e-07

TS (Fixed Index): 1.32
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.82e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815457/likelihoodResults_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8.19718971461
delta logL = 13.3642103337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8.19713845965
delta logL = 13.3642615886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   8.197138     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       47 TOTAL
                     EDM=   .25E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .22464        .19609E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   8.197138     FROM HESSE     STATUS=OK             5 CALLS       52 TOTAL
                     EDM=   .25E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .22464        .43329E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46016e-18
Minuit parameter uncertainties:
  1  7.10076e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815457': 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) = 8.19713845965
delta logL = 13.3642615886

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
304        Index:  1.000e+01  7.101e-10  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:  9.287e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 28.05
Ra Dec: 154.607 35.680
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.68e+01 +/- 2.04e-08
Energy Flux (Free Index): 1.87e+03 +/- 2.28e-06

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/815457/cmap_HighResolution_570844801_571104001_4FGL_J1018.4+3540_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.82e+04', comment='SUCCESS', photon_flux='8.20e-05', energy_flux2='1.87e+03', photon_flux_error='4.10e-13', dlogl='1.34e+01', energy_flux='2.17e-02', photon_flux2='1.68e+01', job_status='DONE', time_completed='2021-09-01 18:14:01.923012', photon_index_error2='0.00', photon_index2='10.00', ts='1.24', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.28e-06', EG='0.01', time_epoch_completed='1630545241.92', return_code='101', job_id='815457', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='1.09e-10', photon_flux_error2='2.04e-08', ts2='28.05', photon_index='2.59' WHERE bin_id='1279' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:14:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 815457: <4FGL_J1018.4+3540_daily_bin1279> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1279> 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) <bullet0298>, 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:14:02 2021
Results reported at Wed Sep  1 18:14:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1279 154.607 35.6802 570844801 571104001 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 :                                   332.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            514 sec.

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

