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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1161
RA = 154.607, Dec = 35.6802
tmin = 540259201, tmax = 540518401
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='814209', job_status='RUN', time_executed='2021-09-01 18:00:46.375246', time_epoch_executed='1630544446.38' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814209

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814209/ft1_4FGL_J1018.4+3540_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814209/ft2_4FGL_J1018.4+3540_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814209/ft1_4FGL_J1018.4+3540_daily_bin1161.fits outfile=/scratch/kocevski/814209/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1161.fits ra=154.607 dec=35.6802 rad=12.0 tmin=540259201.0 tmax=540518401.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.55
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814209/ft1_filtered_4FGL_J1018.4+3540_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/814209/ft2_4FGL_J1018.4+3540_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/814209/ltcube_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.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/814209/ft2_4FGL_J1018.4+3540_daily_bin1161.fits
.....................!
real 13.90
user 13.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814209/ft1_filtered_4FGL_J1018.4+3540_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/814209/ft2_4FGL_J1018.4+3540_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/814209/ltcube_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.fits outfile=/scratch/kocevski/814209/expmap_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.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/814209/ltcube_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.fits
.....................!
real 192.14
user 186.14
sys 5.41

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/814209/ft1_filtered_4FGL_J1018.4+3540_daily_bin1161.fits scfile=/scratch/kocevski/814209/ft2_4FGL_J1018.4+3540_daily_bin1161.fits outfile=/scratch/kocevski/814209/cmap_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.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/814209/ft1_filtered_4FGL_J1018.4+3540_daily_bin1161.fits scfile=/scratch/kocevski/814209/ft2_4FGL_J1018.4+3540_daily_bin1161.fits outfile=/scratch/kocevski/814209/cmap_HighResolution_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13179E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.090       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0772       1.0000         .10000E-03   10000.    
     9 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9525       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10502E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.620       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11917E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.170       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.587       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7060       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0493       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    23.954       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0680       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88056       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=   6403.766     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3275 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0170       -.24760E-05** at limit **
   2  norm          .10000E-03    4.8630        .53149E-06** at limit **
   3  Prefactor     37.495        31.578       -.66406E-05    .87148E-04
   4  Prefactor     .10000E-03    8.8697       -.85854E-06** at limit **
   5  Prefactor     14.087        20.986       -.53360E-05    .32226E-04
   6  Prefactor     .10000E-03    4.6118       -.17497E-05** at limit **
   7  Prefactor     .10000E-03    4.8734        .78027E-06** at limit **
   8  Prefactor     1.0786        2.7418       -.29715E-05   -.14047E-02
   9  norm          .10000E-03    7.1366       -.20884E-05** at limit **
  10  Prefactor     7.9538        4.6468        .90622E-06    .10936E-02
  11  Prefactor     20.815        29.610       -.26569E-04    .45114E-04
  12  Prefactor     .10000E-03    2.5562       -.12469E-05** at limit **
  13  norm          .10000E-03    9.9168        .32402E-05** at limit **
  14  Prefactor     60.613        51.333       -.83515E-05    .64654E-04
  15  Prefactor     .10000E-03    11.661        .17871E-06** at limit **
  16  Prefactor     6.3249        4.9451        .29529E-05    .50262E-03
  17  Prefactor     .10000E-03    2.9039        .56388E-06** at limit **
  18  Prefactor     4.0492        68.559       -.84423E-04   -.16694E-04
  19  Prefactor     37.163        31.546       -.10639E-04    .62051E-04
  20  Prefactor     39.549        76.995       -.58691E-04    .20110E-04
  21  Prefactor     .10000E-03    10.998        .17247E-05** at limit **
  22  norm          5.7060        .62884        .17496E-06    .18497E-02
  23  Prefactor     2.0386        21.523       -.19486E-04   -.13092E-03
  24  Prefactor     .10000E-03    6.4137        .24822E-05** at limit **
  25  norm          23.949        18.179       -.52186E-05    .14516E-03
  26  Normalizat    1.0683        .18539        .81138E-05    .53901E-03
  27  Prefactor     .88024        .21673        .54080E-05    .55167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.4947
  Prefactor  = 0.0001
  Prefactor  = 14.0874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07856
  norm       = 0.0001
  Prefactor  = 7.95385
  Prefactor  = 20.8155
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 60.6133
  Prefactor  = 0.0001
  Prefactor  = 6.32489
  Prefactor  = 0.0001
  Prefactor  = 4.04916
  Prefactor  = 37.1626
  Prefactor  = 39.5487
  Prefactor  = 0.0001
  norm       = 5.70602
  Prefactor  = 2.03856
  Prefactor  = 0.0001
  norm       = 23.9489
  Normalizat = 1.0683
  Prefactor  = 0.880235
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.766     FROM HESSE     STATUS=OK           482 CALLS     3757 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.3852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.8652        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.495        31.523        .65449E-04   -1.4483    
   4  Prefactor     .10000E-03    8.8908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.087        20.985        .10670E-03   -1.4957    
   6  Prefactor     .10000E-03    4.6413        .16779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9017        .17247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0786        2.7311        .19668E-03   -1.5500    
   9  norm          .10000E-03    7.2167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9538        4.4144        .11799E-03   -1.5144    
  11  Prefactor     20.815        29.643        .87759E-04   -1.4795    
  12  Prefactor     .10000E-03    8.7142        .23099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.613        51.338        .51533E-04   -1.4149    
  15  Prefactor     .10000E-03    11.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3249        4.9308        .14339E-03   -1.5205    
  17  Prefactor     .10000E-03    11.483        .26334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0492        68.397        .19987E-03   -1.5305    
  19  Prefactor     37.163        31.545        .65737E-04   -1.4488    
  20  Prefactor     39.549        76.860        .63706E-04   -1.4449    
  21  Prefactor     .10000E-03    11.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7060        .62856        .19941E-04   -1.5230    
  23  Prefactor     2.0386        21.576        .28878E-03   -1.5422    
  24  Prefactor     .10000E-03    6.4187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.949        18.098        .81844E-04   -1.4729    
  26  Normalizat    1.0683        .21959        .24413E-03   -.90776    
  27  Prefactor     .88024        .25695        .32365E-03   -.96835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33592e-09
Minuit parameter uncertainties:
  1  0.000111974
  2  2.62103e-06
  3  31.5369
  4  2.65479e-05
  5  20.996
  6  2.4363e-05
  7  4.85047e-05
  8  2.73144
  9  8.46426e-05
  10  4.41456
  11  29.6641
  12  2.34791e-05
  13  0.000330686
  14  51.3752
  15  2.77677e-05
  16  4.93108
  17  0.000141102
  18  33.3281
  19  31.5593
  20  77.0533
  21  9.17056e-05
  22  0.62856
  23  13.27
  24  3.01375e-05
  25  18.1023
  26  0.219782
  27  0.257305
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.348e-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:  8.802e-01  2.573e-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.068e+00  2.198e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814209/likelihoodResults_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.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) = 6403.76607488
delta logL = -0.00054653974621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6403.76552915
delta logL = -8.06094249128e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11653E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6204       1.0000          .0000       10.000    
     3 'Normalizat'    1.0684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88018       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6403.766     FROM MIGRAD    STATUS=FAILED        99 CALLS      272 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10474E-03    60.381        .22469E-02** at limit **
   2  Index         2.7804        6.9693        .50000       -.15238E-04
   3  Normalizat    1.0683        .10302E-01    .24413E-03   -.16999E-03
   4  Prefactor     .88023        .12567E-01    .32365E-03   -.61506E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6403.766     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      389 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10474E-03    60.381        .57290E-03** at limit **
   2  Index         2.7804        6.9693        .30817E-03   -.15238E-04
   3  Normalizat    1.0683        .10302E-01    .10767E-05   -.16999E-03
   4  Prefactor     .88023        .12567E-01    .14817E-05   -.61506E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6403.766     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      441 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26143        .44938E-01** at limit **
   2  Index         2.8993        7.0836        .50000        .92210E-05
   3  Normalizat    1.0683        .14813E-02    .48826E-04    .17188E-02
   4  Prefactor     .88023        .18070E-02    .12946E-04    .13004E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.89929
  Normalizat = 1.06831
  Prefactor  = 0.880235
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.766     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      470 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.231        .23147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8993        6.4443        .50000       -.43360    
   3  Normalizat    1.0683        .89104E-02    .97653E-05   -.90776    
   4  Prefactor     .88023        .10869E-01    .25892E-05   -.96835    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01634e-07
Minuit parameter uncertainties:
  1  0.000429199
  2  147.408
  3  0.00891043
  4  0.0108687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814209': 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) = 6403.76552709
delta logL = 1.25199312606e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  4.292e-04  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.899e+00  1.474e+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:  8.802e-01  1.087e-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.068e+00  8.910e-03  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/814209/cmap_HighResolution_540259201_540518401_4FGL_J1018.4+3540_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-01 18:14:55.520818', job_id='814209', GAL2='0.88', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630545295.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1161' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:14:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 814209: <4FGL_J1018.4+3540_daily_bin1161> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1161> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:36 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:38 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:38 2021
Terminated at Wed Sep  1 18:14:58 2021
Results reported at Wed Sep  1 18:14:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1161 154.607 35.6802 540259201 540518401 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 :                                   841.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            862 sec.

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

