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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1122
RA = 154.607, Dec = 35.6802
tmin = 530150401, tmax = 530409601
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='814152', job_status='RUN', time_executed='2021-09-01 18:03:53.107826', time_epoch_executed='1630544633.11' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814152/ft1_4FGL_J1018.4+3540_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814152/ft2_4FGL_J1018.4+3540_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814152/ft1_4FGL_J1018.4+3540_daily_bin1122.fits outfile=/scratch/kocevski/814152/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1122.fits ra=154.607 dec=35.6802 rad=12.0 tmin=530150401.0 tmax=530409601.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814152/ft1_filtered_4FGL_J1018.4+3540_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/814152/ft2_4FGL_J1018.4+3540_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/814152/ltcube_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.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/814152/ft2_4FGL_J1018.4+3540_daily_bin1122.fits
.....................!
real 15.07
user 14.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814152/ft1_filtered_4FGL_J1018.4+3540_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/814152/ft2_4FGL_J1018.4+3540_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/814152/ltcube_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.fits outfile=/scratch/kocevski/814152/expmap_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.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/814152/ltcube_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.fits
.....................!
real 190.55
user 186.28
sys 3.72

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814152/ft1_filtered_4FGL_J1018.4+3540_daily_bin1122.fits scfile=/scratch/kocevski/814152/ft2_4FGL_J1018.4+3540_daily_bin1122.fits outfile=/scratch/kocevski/814152/cmap_HighResolution_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5554       1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56840E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6033       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0836       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0880       1.0000         .10000E-03   10000.    
    13 'norm      '    11.393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77602E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .88645       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.707       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0761       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0515       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=   5651.479     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3257 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5550        8.2821       -.47828E-06   -.34165E-03
   2  norm          .10000E-03    6.0528        .36531E-06** at limit **
   3  Prefactor     .10000E-03    11.014        .57860E-05** at limit **
   4  Prefactor     27.035        24.445       -.76949E-05   -.49567E-03
   5  Prefactor     .10000E-03    107.34        .65263E-04** at limit **
   6  Prefactor     .10000E-03    3.6098        .11556E-05** at limit **
   7  Prefactor     .10000E-03    3.6439       -.10874E-05** at limit **
   8  Prefactor     2.6041        2.4941       -.17800E-06   -.45812E-03
   9  norm          .10000E-03    2.8648       -.93415E-08** at limit **
  10  Prefactor     6.0847        4.3890        .32370E-06    .65917E-04
  11  Prefactor     .10000E-03    23.671        .45963E-06** at limit **
  12  Prefactor     1.0887        4.2848       -.20767E-05   -.11053E-02
  13  norm          11.396        8.7392        .45232E-06   -.29519E-04
  14  Prefactor     48.925        50.778        .13621E-04    .98946E-05
  15  Prefactor     .10000E-03    13.126       -.70203E-05** at limit **
  16  Prefactor     .10000E-03    2.2073        .15572E-07** at limit **
  17  Prefactor     1.0637        3.2025       -.74204E-06   -.80126E-03
  18  Prefactor     .10000E-03    11.639        .68569E-05** at limit **
  19  Prefactor     .10000E-03    6.0427        .43742E-06** at limit **
  20  Prefactor     .10000E-03    180.04       -.46618E-04** at limit **
  21  Prefactor     .10000E-03    3.2491       -.89663E-07** at limit **
  22  norm          .88647        .27059        .73257E-08    .11892E-02
  23  Prefactor     .10000E-03    9.9399       -.63737E-05** at limit **
  24  Prefactor     10.708        10.249        .17453E-06    .10294E-03
  25  norm          .10000E-03    5.3214       -.35711E-06** at limit **
  26  Normalizat    1.0759        .17386        .42193E-06   -.19774E-03
  27  Prefactor     1.0515        .20695       -.56430E-06   -.57804E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0347
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60405
  norm       = 0.0001
  Prefactor  = 6.08472
  Prefactor  = 0.0001
  Prefactor  = 1.08871
  norm       = 11.3957
  Prefactor  = 48.9253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.886468
  Prefactor  = 0.0001
  Prefactor  = 10.7077
  norm       = 0.0001
  Normalizat = 1.0759
  Prefactor  = 1.05149
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.479     FROM HESSE     STATUS=OK           478 CALLS     3735 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5550        8.2752        .25540E-03   -1.5388    
   2  norm          .10000E-03    6.0563        .18062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.035        24.794        .76947E-04   -1.4668    
   5  Prefactor     .10000E-03    109.18        .42185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6369        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6518        .14012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6041        2.4859        .11087E-03   -1.5385    
   9  norm          .10000E-03    2.8698        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0847        4.2406        .11309E-03   -1.5215    
  11  Prefactor     .10000E-03    23.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0887        4.1409        .26070E-03   -1.5499    
  13  norm          11.396        8.7317        .11869E-03   -1.5033    
  14  Prefactor     48.925        50.665        .57339E-04   -1.4308    
  15  Prefactor     .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2694        .21800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0637        3.1215        .22456E-03   -1.5502    
  18  Prefactor     .10000E-03    11.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0452        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    180.61        .20920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2520        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .88647        .27161        .20820E-04   -1.5520    
  23  Prefactor     .10000E-03    10.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.708        10.260        .12245E-03   -1.5053    
  25  norm          .10000E-03    5.3374        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0759        .20409        .22663E-03   -.90529    
  27  Prefactor     1.0515        .24299        .28130E-03   -.91032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32706e-09
Minuit parameter uncertainties:
  1  8.27893
  2  3.78619e-05
  3  1.36566e-06
  4  24.8035
  5  0.000618973
  6  2.4577e-06
  7  7.7238e-07
  8  2.486
  9  1.24866e-06
  10  4.2408
  11  9.02313e-06
  12  4.14204
  13  8.73264
  14  50.7095
  15  1.51197e-05
  16  4.80353e-07
  17  3.12199
  18  3.44755e-06
  19  2.29079e-06
  20  0.000708106
  21  1.14548e-06
  22  0.271614
  23  1.92641e-05
  24  10.2612
  25  2.05874e-06
  26  0.204242
  27  0.243244
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.089e+00  4.142e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.051e+00  2.432e-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.076e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814152/likelihoodResults_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.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) = 5651.38594028
delta logL = 0.0932791469413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5649.99174715
delta logL = 1.4874722778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4929       1.0000          .0000       10.000    
     3 'Normalizat'    .99486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1244       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=   5649.992     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      358 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .43218E-02    .27788E-03** at limit **
   2  Index         9.4924        9.5466        .28773        .22558E-04
   3  Normalizat    .99508        .58110E-01    .46102E-01   -.51059E-05
   4  Prefactor     1.1240        .71598E-01    .61805E-01   -.98385E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.49245
  Normalizat = 0.995079
  Prefactor  = 1.12403
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.992     FROM HESSE     STATUS=OK            35 CALLS      393 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .52659E-03    .85867E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4924        .39290        .14917E-01    1.1163    
   3  Normalizat    .99508        .20244        .23397E-03   -.93195    
   4  Prefactor     1.1240        .24734        .27335E-03   -.88702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06497e-10
Minuit parameter uncertainties:
  1  3.89904e-10
  2  0.395034
  3  0.202596
  4  0.247593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814152': 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) = 5649.99174435
delta logL = 1.48747507699

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  3.899e-10  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  9.492e+00  3.950e-01  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.124e+00  2.476e-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:  9.951e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 154.607 35.680
Photon Index (Free Index): 9.49 +/- 0.40
Photon Flux (Free Index): 6.82e-08 +/- 4.61e-08
Energy Flux (Free Index): 7.68e-06 +/- 5.18e-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/814152/cmap_HighResolution_530150401_530409601_4FGL_J1018.4+3540_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', comment='SUCCESS', energy_flux2='7.68e-06', dlogl='1.49e+00', photon_flux2='6.82e-08', job_status='DONE', time_completed='2021-09-01 18:16:52.451015', photon_index_error2='0.40', photon_index2='9.49', ts='0.09', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='5.18e-06', EG='1.08', time_epoch_completed='1630545412.45', return_code='0', job_id='814152', GAL2='1.12', EG2='1.00', return_code2='0', photon_flux_error2='4.61e-08', ts2='3.23', photon_index='2.59' WHERE bin_id='1122' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 814152: <4FGL_J1018.4+3540_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1122> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:32 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00: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 18:00:34 2021
Terminated at Wed Sep  1 18:16:53 2021
Results reported at Wed Sep  1 18:16:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1122 154.607 35.6802 530150401 530409601 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 :                                   778.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             252.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

