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 127 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1756
RA = 154.607, Dec = 35.6802
tmin = 694483201, tmax = 694742401
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='10439', job_status='RUN', time_executed='2023-01-07 00:44:54.077581', time_epoch_executed='1673081094.08' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10439

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10439/ft1_4FGL_J1018.4+3540_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10439/ft1_4FGL_J1018.4+3540_daily_bin1756.fits outfile=/scratch/kocevski/10439/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1756.fits ra=154.607 dec=35.6802 rad=12.0 tmin=694483201.0 tmax=694742401.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.97
user 2.73
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10439/ft1_filtered_4FGL_J1018.4+3540_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/10439/ltcube_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.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/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits
.....................!
real 16.79
user 16.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10439/ft1_filtered_4FGL_J1018.4+3540_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10439/ltcube_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits outfile=/scratch/kocevski/10439/expmap_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.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/10439/ltcube_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits
.....................!
real 193.19
user 187.75
sys 4.98

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/10439/ft1_filtered_4FGL_J1018.4+3540_daily_bin1756.fits scfile=/scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits outfile=/scratch/kocevski/10439/cmap_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10439/ft1_filtered_4FGL_J1018.4+3540_daily_bin1756.fits scfile=/scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits outfile=/scratch/kocevski/10439/cmap_HighResolution_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10439/ft1_filtered_4FGL_J1018.4+3540_daily_bin1756.fits', '/scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits', expMap='/scratch/kocevski/10439/expmap_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits', expCube='/scratch/kocevski/10439/ltcube_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10439/Model_4FGL_J1018.4+3540_daily_bin1756.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  0.000e+00  1.000e+06 ( 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/10439/ft1_filtered_4FGL_J1018.4+3540_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/10439/ft2_4FGL_J1018.4+3540_daily_bin1756.fits
Exposure map: /scratch/kocevski/10439/expmap_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits
Exposure cube: /scratch/kocevski/10439/ltcube_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10439/Model_4FGL_J1018.4+3540_daily_bin1756.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) = 3435.94296414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.814       1.0000          .0000       .10000E+07
     2 'norm      '    13.451       1.0000          .0000       .10000E+07
     3 'Prefactor '    .86664       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13329E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .35827E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1910       1.0000          .0000       .10000E+07
     7 'Prefactor '    .26872E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13486E-04   1.0000          .0000       .10000E+07
     9 'norm      '    22.107       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54356E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96580E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .27194E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    109.53       1.0000          .0000       .10000E+07
    14 'Prefactor '    .52646E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.5801       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.5330       1.0000          .0000       .10000E+07
    17 'Prefactor '    .26289E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.841       1.0000          .0000       .10000E+07
    19 'norm      '    2.8758       1.0000          .0000       .10000E+07
    20 'Prefactor '    32.010       1.0000          .0000       .10000E+07
    21 'Prefactor '    .32194E-05   1.0000          .0000       .10000E+07
    22 'norm      '    3.8998       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0320       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0679       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=   3435.899     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     2111 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.455        30.354       -.25080E-05   -.49905E-02
   2  norm          13.864        10.437       -.50740E-06   -.14390E-01
   3  Prefactor     .65400E-05    41.703       -.22179E-05** at limit **
   4  Prefactor     .11102E-08    32.613        .15414E-07** at limit **
   5  Prefactor     .55511E-10    159.45        .18958E-04** at limit **
   6  Prefactor     1.7070        33.436       -.56247E-05   -.12520E-03
   7  Prefactor     .44409E-09    13.941       -.94781E-07** at limit **
   8  Prefactor     .11102E-09    2.1635        .38072E-07** at limit **
   9  norm          21.963        17.978       -.33733E-06   -.13130E-02
  10  Prefactor     .16098E-08    6.5881        .13445E-06** at limit **
  11  Prefactor     .94924E-08    85.234        .18998E-04** at limit **
  12  norm          .99920E-09    56.868        .12289E-05** at limit **
  13  Prefactor     97.852        79.724       -.25975E-05    .50115E-02
  14  Prefactor     .11935E-07    110.10       -.24299E-04** at limit **
  15  Prefactor     3.5750        4.5682        .72477E-07   -.29835E-02
  16  Prefactor     3.6546        40.247        .17495E-05   -.42896E-03
  17  Prefactor     .33307E-09    35.708       -.43708E-06** at limit **
  18  Prefactor     10.893        10.860        .32241E-06   -.12109E-04
  19  norm          2.8738        .51578       -.59543E-08   -.75164E-02
  20  Prefactor     31.962        18.223        .15795E-05   -.30736E-03
  21  Prefactor     .61062E-09    8.2162        .15530E-06** at limit **
  22  norm          3.9788        7.9498       -.60596E-06    .59260E-03
  23  Normalizat    1.0359        .29802       -.52578E-04   -.11532E-03
  24  Prefactor     1.0678        .35424        .33112E-04   -.17790E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.4553
  norm       = 13.864
  Prefactor  = 6.53999e-06
  Prefactor  = 1.11022e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.70696
  Prefactor  = 4.44089e-10
  Prefactor  = 1.11022e-10
  norm       = 21.9625
  Prefactor  = 1.60982e-09
  Prefactor  = 9.49241e-09
  norm       = 9.99201e-10
  Prefactor  = 97.8518
  Prefactor  = 1.19349e-08
  Prefactor  = 3.575
  Prefactor  = 3.65462
  Prefactor  = 3.33067e-10
  Prefactor  = 10.8926
  norm       = 2.87379
  Prefactor  = 31.9622
  Prefactor  = 6.10623e-10
  norm       = 3.97877
  Normalizat = 1.03594
  Prefactor  = 1.06779
 **********
 **   18 **HESSE 
 **********

 FCN=   3435.899     FROM HESSE     STATUS=OK           455 CALLS     2566 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.455        31.564        .23703E-03   -1.5627    
   2  norm          13.864        32.080        .27285E-03   -1.5633    
   3  Prefactor     .65400E-05    439.57        .48094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-08    32.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    160.31        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7070        33.588        .10431E-02   -1.5682    
   7  Prefactor     .44409E-09    13.961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    2.1660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.963        18.065        .21274E-03   -1.5614    
  10  Prefactor     .16098E-08    6.6328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94924E-08    82.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .99920E-09    11.030        .10751E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     97.852        83.902        .95559E-04   -1.5510    
  14  Prefactor     .11935E-07    110.15        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5750        4.5834        .53385E-03   -1.5670    
  16  Prefactor     3.6546        40.420        .53755E-03   -1.5670    
  17  Prefactor     .33307E-09    35.677        .16653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.893        10.880        .30403E-03   -1.5642    
  19  norm          2.8738        .51441        .38086E-03   -1.5674    
  20  Prefactor     31.962        18.199        .17677E-03   -1.5595    
  21  Prefactor     .61062E-09    8.2551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9788        7.9542        .51067E-03   -1.5668    
  23  Normalizat    1.0359        .25411        .41970E-01   -.91836    
  24  Prefactor     1.0678        .29966        .70398E-01   -.90503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84309e-07
Minuit parameter uncertainties:
  1  31.5648
  2  32.0806
  3  0.107242
  4  0.000382674
  5  0.000145211
  6  15.1438
  7  0.000157352
  8  3.34942e-05
  9  18.0646
  10  0.000205891
  11  0.00177583
  12  0.00020736
  13  83.903
  14  0.00229203
  15  4.58339
  16  24.3082
  17  0.000221967
  18  10.8797
  19  0.514407
  20  18.199
  21  0.000140455
  22  7.95421
  23  0.254408
  24  0.300127
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  9.492e-09  1.776e-03  0.000e+00  1.000e+06 ( 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.068e+00  3.001e-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.036e+00  2.544e-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: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10439/likelihoodResults_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.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) = 3435.88823806
delta logL = 0.0103596367571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3435.78242459
delta logL = 0.11617310091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2612       1.0000          .0000       .10000E+07
     2 'Index     '    3.7240       1.0000          .0000       10.000    
     3 'Normalizat'    .97716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1064       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=   3435.782     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      270 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2687        69.709        .99264E-03    .35048E-02
   2  Index         3.7207        6.8487        .20868        .11808E-04
   3  Normalizat    .97687        .51740E-01    .45880E-01   -.24684E-04
   4  Prefactor     1.1068        .62299E-01    .69315E-01    .19181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26867
  Index      = 3.72068
  Normalizat = 0.976866
  Prefactor  = 1.10678
 **********
 **   18 **HESSE 
 **********

 FCN=   3435.782     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2687        6.7907        .12458E-04   -1.5685    
   2  Index         3.7207        2.5342        .90718E-02   -.25874    
   3  Normalizat    .97687        .31410        .27116E-03   -.93810    
   4  Prefactor     1.1068        .35817        .30666E-03   -.89250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84925e-11
Minuit parameter uncertainties:
  1  5.87032
  2  2.66762
  3  0.31469
  4  0.358955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10439': 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) = 3435.78242239
delta logL = 0.116175304312

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.269e+00  5.870e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  3.721e+00  2.668e+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:  1.107e+00  3.590e-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.769e-01  3.147e-01  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/10439/cmap_HighResolution_694483201_694742401_4FGL_J1018.4+3540_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2023-01-07 00:53:22.453749', job_id='10439', GAL2='1.11', fit_tolerance='1e-08', EG2='0.98', EG='1.04', time_epoch_completed='1673081602.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.16e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1756' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:53:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 10439: <4FGL_J1018.4+3540_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:19 2023
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:42:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:42:38 2023
Terminated at Sat Jan  7 00:53:23 2023
Results reported at Sat Jan  7 00:53:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1756 154.607 35.6802 694483201 694742401 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 :                                   510.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            784 sec.

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

