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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin77
RA = 154.607, Dec = 35.6802
tmin = 259286401, tmax = 259545601
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='809548', job_status='RUN', time_executed='2021-09-01 17:46:42.458526', time_epoch_executed='1630543602.46' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809548/ft1_4FGL_J1018.4+3540_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809548/ft2_4FGL_J1018.4+3540_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809548/ft1_4FGL_J1018.4+3540_daily_bin77.fits outfile=/scratch/kocevski/809548/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin77.fits ra=154.607 dec=35.6802 rad=12.0 tmin=259286401.0 tmax=259545601.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.28
user 2.08
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809548/ft2_4FGL_J1018.4+3540_daily_bin77.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/809548/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin77.fits evtable="EVENTS" outfile="/scratch/kocevski/809548/ft1_filtered_4FGL_J1018.4+3540_daily_bin77.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/809548/ft1_filtered_4FGL_J1018.4+3540_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/809548/ft2_4FGL_J1018.4+3540_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/809548/ltcube_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.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/809548/ft2_4FGL_J1018.4+3540_daily_bin77.fits
.....................!
real 17.65
user 17.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809548/ft1_filtered_4FGL_J1018.4+3540_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/809548/ft2_4FGL_J1018.4+3540_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/809548/ltcube_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.fits outfile=/scratch/kocevski/809548/expmap_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.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/809548/ltcube_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.fits
.....................!
real 192.40
user 186.37
sys 5.36

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/809548/ft1_filtered_4FGL_J1018.4+3540_daily_bin77.fits scfile=/scratch/kocevski/809548/ft2_4FGL_J1018.4+3540_daily_bin77.fits outfile=/scratch/kocevski/809548/cmap_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809548/ft1_filtered_4FGL_J1018.4+3540_daily_bin77.fits scfile=/scratch/kocevski/809548/ft2_4FGL_J1018.4+3540_daily_bin77.fits outfile=/scratch/kocevski/809548/cmap_HighResolution_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3121       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70123       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.752       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5850       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5218       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.041       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .93746       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73766       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3928       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=   5570.903     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3312 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5696        .69572E-07** at limit **
   2  norm          .10000E-03    5.3680       -.24356E-06** at limit **
   3  Prefactor     .10000E-03    7.0325        .29417E-06** at limit **
   4  Prefactor     .10000E-03    13.984        .17311E-05** at limit **
   5  Prefactor     39.016        33.851        .55776E-05    .36083E-03
   6  Prefactor     4.6980        7.6488        .49284E-05   -.71704E-03
   7  Prefactor     3.3126        6.6156        .68187E-05   -.84061E-03
   8  Prefactor     .69949        2.3895        .19387E-06   -.37814E-03
   9  norm          1.8737        7.8300       -.73347E-07   -.11222E-03
  10  Prefactor     .10000E-03    1.5800       -.15928E-06** at limit **
  11  Prefactor     19.680        43.569       -.16211E-04   -.40428E-03
  12  Prefactor     .10000E-03    1.7376        .22719E-07** at limit **
  13  norm          4.5857        15.594        .41884E-05    .10847E-03
  14  Prefactor     .10000E-03    53.535        .33522E-05** at limit **
  15  Prefactor     .10000E-03    16.073        .94044E-06** at limit **
  16  Prefactor     15.680        7.1057        .42547E-06   -.72181E-04
  17  Prefactor     2.5214        3.5747        .25262E-06   -.11463E-03
  18  Prefactor     .10000E-03    19.251       -.87614E-06** at limit **
  19  Prefactor     .10000E-03    25.774       -.93183E-06** at limit **
  20  Prefactor     33.028        90.187       -.20194E-05   -.29984E-04
  21  Prefactor     .10000E-03    11.415       -.88848E-06** at limit **
  22  norm          .93746        .27365        .96387E-08   -.73253E-04
  23  Prefactor     .10000E-03    3.5773        .65692E-07** at limit **
  24  Prefactor     .10000E-03    4.1044       -.11875E-06** at limit **
  25  norm          .10000E-03    4.7496        .42169E-06** at limit **
  26  Normalizat    .73698        .18651       -.23607E-06   -.11070E-03
  27  Prefactor     1.3938        .22065       -.14745E-05    .88178E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.016
  Prefactor  = 4.69797
  Prefactor  = 3.31258
  Prefactor  = 0.699493
  norm       = 1.87368
  Prefactor  = 0.0001
  Prefactor  = 19.68
  Prefactor  = 0.0001
  norm       = 4.58569
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.6796
  Prefactor  = 2.52136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0281
  Prefactor  = 0.0001
  norm       = 0.937461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.736977
  Prefactor  = 1.39378
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.903     FROM HESSE     STATUS=OK           482 CALLS     3794 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5720        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.3713        .16893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.016        34.363        .64200E-04   -1.4458    
   6  Prefactor     4.6980        7.7549        .92818E-03   -1.5274    
   7  Prefactor     3.3126        6.8121        .11122E-02   -1.5344    
   8  Prefactor     .69949        2.3749        .19751E-03   -1.5541    
   9  norm          1.8737        7.7363        .30410E-03   -1.5434    
  10  Prefactor     .10000E-03    2.7221        .18157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.680        46.214        .90122E-04   -1.4820    
  12  Prefactor     .10000E-03    1.7519        .96003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5857        15.538        .18799E-03   -1.5280    
  14  Prefactor     .10000E-03    53.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.680        7.0698        .10115E-03   -1.4916    
  17  Prefactor     2.5214        3.5525        .16192E-03   -1.5390    
  18  Prefactor     .10000E-03    19.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.028        90.598        .69711E-04   -1.4558    
  21  Prefactor     .10000E-03    11.726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .93746        .27410        .20462E-04   -1.5514    
  23  Prefactor     .10000E-03    3.5833        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1073        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.7614        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .73698        .22345        .26315E-03   -1.0245    
  27  Prefactor     1.3938        .26636        .25030E-03   -.80560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44213e-09
Minuit parameter uncertainties:
  1  2.41438e-06
  2  3.08889e-05
  3  1.29618e-05
  4  4.04482e-05
  5  34.3802
  6  7.75656
  7  6.81373
  8  2.37519
  9  7.61604
  10  2.28337e-05
  11  46.2979
  12  2.8721e-07
  13  15.5513
  14  0.000497155
  15  8.42127e-05
  16  7.07021
  17  3.55279
  18  0.000103739
  19  6.87433e-05
  20  90.9784
  21  5.25123e-05
  22  0.274096
  23  1.6638e-06
  24  5.65498e-06
  25  1.87276e-05
  26  0.223725
  27  0.26662
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.872e-07  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.394e+00  2.666e-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:  7.370e-01  2.237e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809548/likelihoodResults_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.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) = 5570.90520905
delta logL = -0.00269784852389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5570.90251118
delta logL = 1.92012521438e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5742       1.0000          .0000       10.000    
     3 'Normalizat'    .73701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3938       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=   5570.903     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7270        .97004E-02** at limit **
   2  Index         2.1942        6.3380        .50000        .11159E-06
   3  Normalizat    .73698        .87845E-02    .26315E-03   -.79904E-03
   4  Prefactor     1.3938        .11153E-01    .25030E-03   -.83611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19423
  Normalizat = 0.736978
  Prefactor  = 1.39378
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.903     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.658        .10300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1942        5.8709        .50000       -.59578    
   3  Normalizat    .73698        .28510E-01    .52630E-04   -1.0245    
   4  Prefactor     1.3938        .36197E-01    .50060E-04   -.80560    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57407e-10
Minuit parameter uncertainties:
  1  8.38419e-06
  2  477.709
  3  0.0285101
  4  0.0361972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809548': 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) = 5570.90250754
delta logL = 3.65337746189e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  8.384e-06  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.194e+00  4.777e+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.394e+00  3.620e-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:  7.370e-01  2.851e-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/809548/cmap_HighResolution_259286401_259545601_4FGL_J1018.4+3540_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-01 17:59:26.882528', job_id='809548', GAL2='1.39', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630544366.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='3.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='77' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:59:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 809548: <4FGL_J1018.4+3540_daily_bin77> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin77 154.607 35.6802 259286401 259545601 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 :                                   762.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            836 sec.

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

