aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 76 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1674
RA = 154.607, Dec = 35.6802
tmin = 673228801, tmax = 673488001
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='669803', job_status='RUN', time_executed='2022-05-06 02:49:15.213185', time_epoch_executed='1651830555.21' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669803/ft1_4FGL_J1018.4+3540_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669803/ft2_4FGL_J1018.4+3540_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669803/ft1_4FGL_J1018.4+3540_daily_bin1674.fits outfile=/scratch/kocevski/669803/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1674.fits ra=154.607 dec=35.6802 rad=12.0 tmin=673228801.0 tmax=673488001.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.77
user 2.55
sys 0.20

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

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

Number of photons that the gtmktime cut: 836

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669803/ft1_filtered_4FGL_J1018.4+3540_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669803/ft2_4FGL_J1018.4+3540_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669803/ltcube_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.fits outfile=/scratch/kocevski/669803/expmap_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.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/669803/ltcube_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.fits
.....................!
real 191.81
user 185.77
sys 5.70

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/669803/ft1_filtered_4FGL_J1018.4+3540_daily_bin1674.fits scfile=/scratch/kocevski/669803/ft2_4FGL_J1018.4+3540_daily_bin1674.fits outfile=/scratch/kocevski/669803/cmap_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.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.57
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669803/ft1_filtered_4FGL_J1018.4+3540_daily_bin1674.fits scfile=/scratch/kocevski/669803/ft2_4FGL_J1018.4+3540_daily_bin1674.fits outfile=/scratch/kocevski/669803/cmap_HighResolution_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12520E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0970       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4252       1.0000         .10000E-03   10000.    
    13 'norm      '    .16545E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6691       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12328E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.198       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15903E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4576       1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.522       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7047       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1002       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2696       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67052       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=   9084.750     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3439 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2526       -.43278E-06** at limit **
   2  norm          .10000E-03    7.2528       -.10812E-06** at limit **
   3  Prefactor     .10000E-03    8.0801       -.68046E-07** at limit **
   4  Prefactor     .10000E-03    6.6850       -.13509E-06** at limit **
   5  Prefactor     .10000E-03    6.8302       -.10352E-06** at limit **
   6  Prefactor     8.9583        6.1229        .59276E-07    .83116E-04
   7  Prefactor     6.8437        6.1459        .16233E-07    .18389E-04
   8  Prefactor     1.0973        2.0978       -.10660E-06   -.14471E-03
   9  norm          .10000E-03    2.5015       -.77884E-07** at limit **
  10  Prefactor     .10000E-03    1.8690       -.68327E-06** at limit **
  11  Prefactor     12.077        19.731        .63210E-06    .58801E-04
  12  Prefactor     2.4262        3.6065        .42092E-07   -.49045E-03
  13  norm          .10000E-03    4.6294        .35974E-06** at limit **
  14  Prefactor     18.778        18.790       -.23571E-07   -.84454E-05
  15  Prefactor     40.777        31.959       -.43667E-05   -.67667E-03
  16  Prefactor     8.6706        4.8109        .22409E-06   -.45114E-03
  17  Prefactor     .10012E-03    4.5413        .15000E-05** at limit **
  18  Prefactor     15.199        36.183       -.11092E-06   -.16651E-03
  19  Prefactor     .10000E-03    13.630       -.19520E-06** at limit **
  20  Prefactor     .10000E-03    61.646       -.32430E-06** at limit **
  21  Prefactor     .10047E-03    10.903       -.41865E-05** at limit **
  22  norm          1.4576        .31708       -.13280E-07   -.66577E-03
  23  Prefactor     34.524        16.035       -.13493E-06   -.48866E-06
  24  Prefactor     4.7061        11.814        .68648E-06    .55211E-04
  25  norm          3.0996        10.624        .15760E-05    .11831E-03
  26  Normalizat    1.2696        .14216       -.40177E-06   -.12851E-03
  27  Prefactor     .67047        .16047        .91510E-06    .28505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.95827
  Prefactor  = 6.84372
  Prefactor  = 1.09734
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0774
  Prefactor  = 2.42618
  norm       = 0.000100005
  Prefactor  = 18.7783
  Prefactor  = 40.7767
  Prefactor  = 8.67064
  Prefactor  = 0.000100121
  Prefactor  = 15.1991
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100468
  norm       = 1.45762
  Prefactor  = 34.5241
  Prefactor  = 4.70613
  norm       = 3.09962
  Normalizat = 1.26961
  Prefactor  = 0.670472
 **********
 **   18 **HESSE 
 **********

 FCN=   9084.750     FROM HESSE     STATUS=OK           500 CALLS     3939 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6027        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.4103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9583        6.1101        .13391E-03   -1.5109    
   7  Prefactor     6.8437        6.1432        .15337E-03   -1.5185    
   8  Prefactor     1.0973        2.0791        .17827E-03   -1.5498    
   9  norm          .10000E-03    2.5208        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8992        .25279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.077        19.487        .11529E-03   -1.5013    
  12  Prefactor     2.4262        3.5723        .20243E-03   -1.5396    
  13  norm          .10000E-03    65.152        .37366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.778        18.793        .92426E-04   -1.4841    
  15  Prefactor     40.777        41.896        .62801E-04   -1.4430    
  16  Prefactor     8.6706        4.7293        .13361E-03   -1.5119    
  17  Prefactor     .10012E-03    7.5346        .48626E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.199        36.017        .10274E-03   -1.4928    
  19  Prefactor     .10000E-03    13.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10047E-03    36.339        .38889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4576        .31945        .22659E-04   -1.5467    
  23  Prefactor     34.524        16.064        .68204E-04   -1.4532    
  24  Prefactor     4.7061        11.817        .92761E-03   -1.5274    
  25  norm          3.0996        10.580        .11516E-02   -1.5356    
  26  Normalizat    1.2696        .16816        .21310E-03   -.84478    
  27  Prefactor     .67047        .18794        .33374E-03   -1.0470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56925e-08
Minuit parameter uncertainties:
  1  6.13449e-05
  2  4.30475e-06
  3  2.68117e-05
  4  3.06641e-05
  5  1.05593e-06
  6  6.11055
  7  6.14374
  8  2.07927
  9  5.97759e-06
  10  4.22286e-05
  11  19.4971
  12  3.57262
  13  0.00111525
  14  18.7985
  15  41.9266
  16  4.72953
  17  0.00190941
  18  36.0688
  19  1.45359e-05
  20  0.000819324
  21  0.00825237
  22  0.319448
  23  16.066
  24  11.8225
  25  10.5867
  26  0.168228
  27  0.188122
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.426e+00  3.573e+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:  6.705e-01  1.881e-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.270e+00  1.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/669803/likelihoodResults_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.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): 0
logL (Free Index) = 9083.90186881
delta logL = 0.847907583899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9083.89717722
delta logL = 0.852599171849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2173       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7896       1.0000          .0000       10.000    
     3 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70436       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=   9083.897     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      280 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2176        3.0724        .74262E-04    .21102E-02
   2  Index         3.7898        1.5811        .72728E-02    .18922E-03
   3  Normalizat    1.2246        .16410        .21621E-03    .39091E-03
   4  Prefactor     .70439        .18882        .32626E-03    .18810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21756
  Index      = 3.7898
  Normalizat = 1.2246
  Prefactor  = 0.704388
 **********
 **   18 **HESSE 
 **********

 FCN=   9083.897     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2176        1.9451        .29705E-05   -1.5487    
   2  Index         3.7898        1.0106        .29091E-03   -.24447    
   3  Normalizat    1.2246        .16435        .43242E-04   -.85846    
   4  Prefactor     .70439        .18891        .13050E-04   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97151e-10
Minuit parameter uncertainties:
  1  1.94519
  2  1.01807
  3  0.164423
  4  0.189082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669803': 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) = 9083.89717633
delta logL = 0.852600066113

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.218e+00  1.945e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  3.790e+00  1.018e+00  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:  7.044e-01  1.891e-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.225e+00  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 154.607 35.680
Photon Index (Free Index): 3.79 +/- 1.02
Photon Flux (Free Index): 5.44e-08 +/- 4.15e-08
Energy Flux (Free Index): 8.46e-06 +/- 6.38e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/669803/cmap_HighResolution_673228801_673488001_4FGL_J1018.4+3540_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', comment='SUCCESS', energy_flux2='8.46e-06', dlogl='8.53e-01', photon_flux2='5.44e-08', job_status='DONE', time_completed='2022-05-06 03:07:02.280588', photon_index_error2='1.02', photon_index2='3.79', ts='0.58', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='8.17e-08', energy_flux_error2='6.38e-06', EG='1.27', time_epoch_completed='1651831622.28', return_code='0', job_id='669803', GAL2='0.70', EG2='1.22', return_code2='0', photon_flux_error2='4.15e-08', ts2='2.38', photon_index='2.59' WHERE bin_id='1674' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:07:02 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 669752: <4FGL_J1018.4+3540_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:06:58 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:47:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:47:28 2022
Terminated at Fri May  6 03:06:10 2022
Results reported at Fri May  6 03:06:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1674 154.607 35.6802 673228801 673488001 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 :                                   1063.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1121 sec.
    Turnaround time :                            10752 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 669803: <4FGL_J1018.4+3540_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:01 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:47:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:47:49 2022
Terminated at Fri May  6 03:07:03 2022
Results reported at Fri May  6 03:07:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1674 154.607 35.6802 673228801 673488001 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 :                                   1069.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1153 sec.
    Turnaround time :                            10802 sec.

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

