/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 184 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin92
RA = 154.607, Dec = 35.6802
tmin = 263174401, tmax = 263433601
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='809571', job_status='RUN', time_executed='2021-09-01 17:49:57.422861', time_epoch_executed='1630543797.42' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809571

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809571/ft1_4FGL_J1018.4+3540_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809571/ft2_4FGL_J1018.4+3540_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809571/ft1_4FGL_J1018.4+3540_daily_bin92.fits outfile=/scratch/kocevski/809571/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin92.fits ra=154.607 dec=35.6802 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.40
user 1.21
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809571/ft1_filtered_4FGL_J1018.4+3540_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/809571/ft2_4FGL_J1018.4+3540_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/809571/ltcube_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.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/809571/ft2_4FGL_J1018.4+3540_daily_bin92.fits
.....................!
real 15.06
user 14.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809571/ft1_filtered_4FGL_J1018.4+3540_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/809571/ft2_4FGL_J1018.4+3540_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/809571/ltcube_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.fits outfile=/scratch/kocevski/809571/expmap_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.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/809571/ltcube_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.fits
.....................!
real 192.29
user 186.51
sys 5.26

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/809571/ft1_filtered_4FGL_J1018.4+3540_daily_bin92.fits scfile=/scratch/kocevski/809571/ft2_4FGL_J1018.4+3540_daily_bin92.fits outfile=/scratch/kocevski/809571/cmap_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1349       1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8968       1.0000         .10000E-03   10000.    
     9 'norm      '    17.214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70855       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1982       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9421       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5064       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .37632       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=   4613.293     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3304 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1350        14.532        .19910E-05   -.20942E-04
   2  norm          .10000E-03    14.818        .47121E-06** at limit **
   3  Prefactor     .10000E-03    59.242       -.32247E-05** at limit **
   4  Prefactor     15.832        31.694        .25941E-05    .58696E-05
   5  Prefactor     34.419        49.808       -.32851E-05   -.20264E-03
   6  Prefactor     3.6849        6.8920        .72649E-05   -.70842E-03
   7  Prefactor     .10000E-03    2.5662       -.17631E-07** at limit **
   8  Prefactor     3.8968        2.7890       -.18678E-06   -.20695E-03
   9  norm          17.214        9.4116       -.16396E-06   -.46685E-04
  10  Prefactor     .10000E-03    3.2898        .60078E-06** at limit **
  11  Prefactor     .10000E-03    11.619        .14843E-06** at limit **
  12  Prefactor     .10000E-03    2.6895        .14760E-06** at limit **
  13  norm          17.791        12.729       -.52340E-06   -.23915E-03
  14  Prefactor     31.770        56.031        .14534E-05   -.15734E-04
  15  Prefactor     .10000E-03    10.129       -.41972E-06** at limit **
  16  Prefactor     .71678        9.7127        .47019E-05   -.14621E-03
  17  Prefactor     .10000E-03    1.6227        .10466E-07** at limit **
  18  Prefactor     43.666        50.239       -.18261E-05   -.94606E-04
  19  Prefactor     .10000E-03    29.571       -.12838E-05** at limit **
  20  Prefactor     16.477        103.95        .25547E-04    .16326E-03
  21  Prefactor     .10000E-03    7.3351        .37352E-06** at limit **
  22  norm          1.1982        .38422        .34562E-07   -.10219E-02
  23  Prefactor     8.9416        13.409        .58038E-06   -.70280E-04
  24  Prefactor     .10000E-03    44.812        .34599E-05** at limit **
  25  norm          .10000E-03    6.5485       -.45860E-06** at limit **
  26  Normalizat    1.5064        .20939       -.21817E-05   -.23154E-03
  27  Prefactor     .37633        .23093        .25420E-06   -.19026E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13497
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.8323
  Prefactor  = 34.4187
  Prefactor  = 3.68488
  Prefactor  = 0.0001
  Prefactor  = 3.89685
  norm       = 17.2138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7908
  Prefactor  = 31.7703
  Prefactor  = 0.0001
  Prefactor  = 0.716783
  Prefactor  = 0.0001
  Prefactor  = 43.6657
  Prefactor  = 0.0001
  Prefactor  = 16.4772
  Prefactor  = 0.0001
  norm       = 1.19823
  Prefactor  = 8.9416
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 1.50637
  Prefactor  = 0.376326
 **********
 **   18 **HESSE 
 **********

 FCN=   4613.293     FROM HESSE     STATUS=OK           484 CALLS     3788 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1350        14.578        .28214E-03   -1.5416    
   2  norm          .10000E-03    14.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.832        31.651        .10069E-03   -1.4912    
   5  Prefactor     34.419        50.299        .68276E-04   -1.4534    
   6  Prefactor     3.6849        7.0248        .10520E-02   -1.5324    
   7  Prefactor     .10000E-03    2.5677        .10626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8968        2.7894        .91193E-04   -1.5313    
   9  norm          17.214        9.4049        .96533E-04   -1.4878    
  10  Prefactor     .10000E-03    6.2155        .22689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.202        .20498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.791        12.627        .94958E-04   -1.4864    
  14  Prefactor     31.770        56.028        .71091E-04   -1.4580    
  15  Prefactor     .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71678        9.6992        .36443E-02   -1.5539    
  17  Prefactor     .10000E-03    1.6249        .84483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.666        49.613        .60670E-04   -1.4385    
  19  Prefactor     .10000E-03    29.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.477        113.35        .98988E-04   -1.4896    
  21  Prefactor     .10000E-03    7.3635        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1982        .38532        .22523E-04   -1.5489    
  23  Prefactor     8.9416        13.419        .13403E-03   -1.5110    
  24  Prefactor     .10000E-03    45.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.5656        .16978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5064        .22587        .19656E-03   -.77600    
  27  Prefactor     .37633        .24439        .42245E-03   -1.1803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33975e-08
Minuit parameter uncertainties:
  1  11.1613
  2  5.15037e-06
  3  0.000654798
  4  31.6846
  5  50.3612
  6  7.0264
  7  2.4295e-06
  8  2.78951
  9  9.4057
  10  2.66302e-05
  11  3.07969e-05
  12  1.65442e-05
  13  12.6287
  14  56.1207
  15  3.91053e-05
  16  5.27407
  17  8.66723e-07
  18  49.6603
  19  0.00014947
  20  86.6681
  21  3.94792e-05
  22  0.385321
  23  13.4237
  24  0.000557123
  25  3.19436e-05
  26  0.226016
  27  0.245067
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.654e-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:  3.763e-01  2.451e-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.506e+00  2.260e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809571/likelihoodResults_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.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) = 4613.29367904
delta logL = -0.000425104854912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4613.29325415
delta logL = -2.23240931518e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5864       1.0000          .0000       10.000    
     3 'Normalizat'    1.5063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37646       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=   4613.293     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      241 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17422        .58093E-01** at limit **
   2  Index         2.5831        8.1621        .50000        .22343E-05
   3  Normalizat    1.5064        .12713E-02    .44470E-01   -.67647E-05
   4  Prefactor     .37633        .14585E-02    .95301E-01    .50112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.58312
  Normalizat = 1.50636
  Prefactor  = 0.376329
 **********
 **   18 **HESSE 
 **********

 FCN=   4613.293     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    575.46        .20565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5831        8.4458        .50000       -.50451    
   3  Normalizat    1.5064        .36271E-01    .19656E-03   -.77600    
   4  Prefactor     .37633        .41477E-01    .42244E-03   -1.1803    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.51325e-07
Minuit parameter uncertainties:
  1  0.00175323
  2  1313.03
  3  0.0362717
  4  0.0414802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809571': 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) = 4613.29325393
delta logL = 4.01905708713e-09

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.753e-03  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.583e+00  1.313e+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:  3.763e-01  4.148e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.506e+00  3.627e-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/809571/cmap_HighResolution_263174401_263433601_4FGL_J1018.4+3540_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-09-01 18:01:22.701184', job_id='809571', GAL2='0.38', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630544482.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='4.02e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='92' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 809571: <4FGL_J1018.4+3540_daily_bin92> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin92> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:32 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:46:45 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:46:45 2021
Terminated at Wed Sep  1 18:01:23 2021
Results reported at Wed Sep  1 18:01:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin92 154.607 35.6802 263174401 263433601 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 :                                   685.55 sec.
    Max Memory :                                 1219 MB
    Average Memory :                             269.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            951 sec.

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

