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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1527
RA = 154.607, Dec = 35.6802
tmin = 635126401, tmax = 635385601
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='816827', job_status='RUN', time_executed='2021-09-01 18:13:09.560401', time_epoch_executed='1630545189.56' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816827/ft1_4FGL_J1018.4+3540_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816827/ft2_4FGL_J1018.4+3540_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816827/ft1_4FGL_J1018.4+3540_daily_bin1527.fits outfile=/scratch/kocevski/816827/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1527.fits ra=154.607 dec=35.6802 rad=12.0 tmin=635126401.0 tmax=635385601.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.10
user 2.74
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816827/ft1_filtered_4FGL_J1018.4+3540_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/816827/ft2_4FGL_J1018.4+3540_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/816827/ltcube_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.fits outfile=/scratch/kocevski/816827/expmap_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.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/816827/ltcube_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.fits
.....................!
real 191.39
user 186.84
sys 4.11

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/816827/ft1_filtered_4FGL_J1018.4+3540_daily_bin1527.fits scfile=/scratch/kocevski/816827/ft2_4FGL_J1018.4+3540_daily_bin1527.fits outfile=/scratch/kocevski/816827/cmap_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.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.39
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816827/ft1_filtered_4FGL_J1018.4+3540_daily_bin1527.fits', '/scratch/kocevski/816827/ft2_4FGL_J1018.4+3540_daily_bin1527.fits', expMap='/scratch/kocevski/816827/expmap_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.fits', expCube='/scratch/kocevski/816827/ltcube_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816827/Model_4FGL_J1018.4+3540_daily_bin1527.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/816827/ft1_filtered_4FGL_J1018.4+3540_daily_bin1527.fits
Spacecraft file(s): /scratch/kocevski/816827/ft2_4FGL_J1018.4+3540_daily_bin1527.fits
Exposure map: /scratch/kocevski/816827/expmap_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.fits
Exposure cube: /scratch/kocevski/816827/ltcube_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816827/Model_4FGL_J1018.4+3540_daily_bin1527.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3766       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5514       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4756       1.0000         .10000E-03   10000.    
    13 'norm      '    .45112E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6892       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68759       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34524E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12595       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65252E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    318.35       1.0000         .10000E-03   10000.    
    21 'Prefactor '    198.26       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1429       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8593       1.0000         .10000E-03   10000.    
    24 'Prefactor '    55.763       1.0000         .10000E-03   10000.    
    25 'norm      '    62.964       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .50733E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   156.3651     FROM MIGRAD    STATUS=CONVERGED    330 CALLS      589 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3766        1.0114         .0000         .0000    
   2  norm          5.2470        9.3487        .55718E-07   -.24784E-03
   3  Prefactor     6.2732        1.0032         .0000         .0000    
   4  Prefactor     7.3281        12.306        .67936E-07   -.39847E-03
   5  Prefactor     11.343        8.7860        .50064E-07   -.55598E-03
   6  Prefactor     4.1118        1.0076         .0000         .0000    
   7  Prefactor     1.4647        1.0750         .0000         .0000    
   8  Prefactor     1.0098        1.3253         .0000         .0000    
   9  norm          8.6848        1.0017         .0000         .0000    
  10  Prefactor     4723.7        7273.0        .37454E-05    .13310E-04
  11  Prefactor     .10213E-03    6651.1       -.39968E-05** at limit **
  12  Prefactor     .10000E-03    2219.1        .47815E-05** at limit **
  13  norm          .10000E-03    195.73       -.59601E-06** at limit **
  14  Prefactor     .10001E-03    2060.5        .13182E-05** at limit **
  15  Prefactor     .10000E-03    349.53       -.38431E-05** at limit **
  16  Prefactor     .10000E-03    27.851        .25128E-07** at limit **
  17  Prefactor     .10000E-03    60.978       -.97309E-06** at limit **
  18  Prefactor     .10000E-03    149.88        .90199E-07** at limit **
  19  Prefactor     .10000E-03    242.17        .17347E-05** at limit **
  20  Prefactor     334.21        343.51        .55153E-06   -.82226E-04
  21  Prefactor     190.01        149.60       -.14903E-05   -.16652E-03
  22  norm          2.0368        2.1081       -.22237E-06    .53520E-04
  23  Prefactor     .10000E-03    208.91       -.26427E-05** at limit **
  24  Prefactor     59.797        133.15        .70624E-05   -.33486E-04
  25  norm          45.017        71.287        .20041E-05    .15105E-04
  26  Normalizat    .10000E-01    .24134        .10599E-05** at limit **
  27  Prefactor     .82490E-12    .37834       -.87740E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37659
  norm       = 5.24705
  Prefactor  = 6.27317
  Prefactor  = 7.32812
  Prefactor  = 11.3429
  Prefactor  = 4.1118
  Prefactor  = 1.46472
  Prefactor  = 1.00983
  norm       = 8.68484
  Prefactor  = 4723.73
  Prefactor  = 0.000102131
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 334.212
  Prefactor  = 190.005
  norm       = 2.03681
  Prefactor  = 0.0001
  Prefactor  = 59.7966
  norm       = 45.0169
  Normalizat = 0.01
  Prefactor  = 8.24896e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   156.3651     FROM HESSE     STATUS=FAILED         9 CALLS      598 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          549.54        546.08         .0000       -1.5340    
   2  norm          5.2470        1.6787        .55718E-07   -1.5250    
   3  Prefactor     6.2732        1.0032         .0000       -1.5207    
   4  Prefactor     7.3281        1.6424        .67936E-07   -1.5166    
   5  Prefactor     11.343        1.2562        .50064E-07   -1.5034    
   6  Prefactor     4.1118        1.0076         .0000       -1.5302    
   7  Prefactor     1.4647        1.0750         .0000       -1.5466    
   8  Prefactor     1.0098        1.3253         .0000       -1.5507    
   9  norm          8.6848        1.0017         .0000       -1.5118    
  10  Prefactor     4723.7        26.769        .37454E-05   -.55283E-01
  11  Prefactor     .10213E-03    .53465E-01   -.39968E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .19530        .47815E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .21373       -.59601E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .96449E-01    .13182E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .36085       -.38431E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571        .25128E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .24184       -.97309E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .23205        .90199E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .22116        .17347E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     334.21        1.0238        .55153E-06   -1.2031    
  21  Prefactor     190.01        .97937       -.14903E-05   -1.2942    
  22  norm          2.0368        1.0044       -.22237E-06   -1.5423    
  23  Prefactor     .10000E-03    .90313E-01   -.26427E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     59.797        1.0354        .70624E-05   -1.4160    
  25  norm          45.017        .84634        .20041E-05   -1.4365    
  26  Normalizat    .10000E-01    .25505        .10599E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .82490E-12    .25504       -.87740E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00089e-11
Minuit parameter uncertainties:
  1  1.01141
  2  1.67873
  3  1.00321
  4  1.64243
  5  1.25616
  6  1.00759
  7  1.075
  8  1.32538
  9  1.00167
  10  26.7688
  11  0.000675123
  12  1.33874e-05
  13  3.81462e-06
  14  7.27807e-05
  15  1.27871e-06
  16  1.81799e-07
  17  2.87492e-06
  18  5.71669e-08
  19  4.39032e-06
  20  1.02377
  21  0.97937
  22  1.00437
  23  6.02142e-06
  24  1.03537
  25  0.846342
  26  1.79531e-07
  27  9.21357e-07
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.339e-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.249e-13  9.214e-07  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.000e-02  1.795e-07  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.08e-05 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816827/likelihoodResults_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.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) = 156.365128349
delta logL = -3.08394044168e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 156.365127336
delta logL = -2.0703934922e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96335E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5901       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60369E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   156.3651     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      220 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    1788.9        .18143E-01** at limit **
   2  Index         3.2171        6.5029        .50000        .11919E-06
   3  Normalizat    .10000E-01    .51426E-03    .18929E-02** at limit **
   4  Prefactor     .17042E-12    .76551E-03    .23024E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100046
  Index      = 3.21707
  Normalizat = 0.01
  Prefactor  = 1.70419e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   156.3651     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      249 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    8411.5        .36286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2171        5.4271        .50000       -.36461    
   3  Normalizat    .10000E-01    .25685E-02    .37859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17042E-12    .38233E-02    .46048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.74036e-09
Minuit parameter uncertainties:
  1  0.0419183
  2  4326.65
  3  2.0447e-07
  4  5.10685e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816827': 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) = 156.365125272
delta logL = -7.15149894859e-09

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  4.192e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.217e+00  4.327e+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:  1.704e-13  5.107e-08  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.000e-02  2.045e-07  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/816827/cmap_HighResolution_635126401_635385601_4FGL_J1018.4+3540_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e+00', job_status='DONE', photon_flux_upper_limit='6.08e-05', time_completed='2021-09-01 18:18:45.864884', job_id='816827', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630545525.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-7.15e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1527' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:18:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 816827: <4FGL_J1018.4+3540_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1527> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:19 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:21 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:10:21 2021
Terminated at Wed Sep  1 18:18:47 2021
Results reported at Wed Sep  1 18:18:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1527 154.607 35.6802 635126401 635385601 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 :                                   329.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             430.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   505 sec.
    Turnaround time :                            508 sec.

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

