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


Performing analysis on: 4FGL_J1018.4+3540_weekly_bin754
RA = 154.607, Dec = 35.6802
tmin = 695001601, tmax = 695606401
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='951001', job_status='RUN', time_executed='2023-01-17 00:57:25.896858', time_epoch_executed='1673945845.9' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951001

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951001/ft1_4FGL_J1018.4+3540_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951001/ft2_4FGL_J1018.4+3540_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951001/ft1_4FGL_J1018.4+3540_weekly_bin754.fits outfile=/scratch/kocevski/951001/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin754.fits ra=154.607 dec=35.6802 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.64
user 5.38
sys 0.22

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

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

Number of photons that the gtmktime cut: 577

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951001/ft1_filtered_4FGL_J1018.4+3540_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/951001/ft2_4FGL_J1018.4+3540_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/951001/ltcube_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.fits outfile=/scratch/kocevski/951001/expmap_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.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/951001/ltcube_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.fits
.....................!
real 193.03
user 187.95
sys 4.61

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/951001/ft1_filtered_4FGL_J1018.4+3540_weekly_bin754.fits scfile=/scratch/kocevski/951001/ft2_4FGL_J1018.4+3540_weekly_bin754.fits outfile=/scratch/kocevski/951001/cmap_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951001/ft1_filtered_4FGL_J1018.4+3540_weekly_bin754.fits scfile=/scratch/kocevski/951001/ft2_4FGL_J1018.4+3540_weekly_bin754.fits outfile=/scratch/kocevski/951001/cmap_HighResolution_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.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.61
user 0.45
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27966E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .12986E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    47.569       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13563E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18475E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.1311       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.9941       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.3419       1.0000          .0000       .10000E+07
     9 'norm      '    3.8806       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.9803       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7376       1.0000          .0000       .10000E+07
    12 'norm      '    .90981E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    53.922       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.468       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28054E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.6112       1.0000          .0000       .10000E+07
    17 'Prefactor '    51.657       1.0000          .0000       .10000E+07
    18 'Prefactor '    .19690E-03   1.0000          .0000       .10000E+07
    19 'norm      '    3.2954       1.0000          .0000       .10000E+07
    20 'Prefactor '    .17679E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .39754E-04   1.0000          .0000       .10000E+07
    22 'norm      '    10.215       1.0000          .0000       .10000E+07
    23 'Normalizat'    .76924       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2647       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=   6581.409     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2008 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26645E-07    8.8150        .85368E-07** at limit **
   2  norm          .16875E-07    8.3209        .81357E-07** at limit **
   3  Prefactor     46.789        49.019       -.32970E-07   -.87392E-01
   4  Prefactor     .28144E-07    24.226       -.13110E-06** at limit **
   5  Prefactor     .22204E-09    30.155       -.82562E-07** at limit **
   6  Prefactor     6.1529        5.1859       -.57781E-07    .80525E-04
   7  Prefactor     4.0096        15.208        .50689E-07   -.49304E-01
   8  Prefactor     1.3403        2.1137        .25879E-07    .17591E-02
   9  norm          3.9027        7.5335       -.10988E-06   -.25747E-02
  10  Prefactor     5.1457        6.3420        .56422E-07    .42034E-02
  11  Prefactor     2.6125        5.5931       -.17057E-06   -.64674E-02
  12  norm          .17431E-07    16.215       -.10792E-06** at limit **
  13  Prefactor     54.276        21.717       -.12174E-07    .13890    
  14  Prefactor     14.629        31.103       -.73593E-07   -.58763E-01
  15  Prefactor      .0000        4.3906        .77343E-07** at limit **
  16  Prefactor     2.6168        7.9615        .26195E-07    .23491E-01
  17  Prefactor     52.461        54.881        .58550E-07   -.12280    
  18  Prefactor     .33307E-09    4.2799        .66087E-09** at limit **
  19  norm          3.2956        .39022       -.71808E-08   -.64189E-01
  20  Prefactor     .55511E-10    6.2798       -.29043E-07** at limit **
  21  Prefactor     .55511E-10    4.0739        .54519E-07** at limit **
  22  norm          10.227        10.055        .21215E-07    .25219E-01
  23  Normalizat    .76826        .20758        .65526E-06   -.39989E-03
  24  Prefactor     1.2650        .24187       -.18676E-05   -.49831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66454e-08
  norm       = 1.68754e-08
  Prefactor  = 46.7892
  Prefactor  = 2.81442e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 6.15294
  Prefactor  = 4.0096
  Prefactor  = 1.34031
  norm       = 3.90267
  Prefactor  = 5.1457
  Prefactor  = 2.61247
  norm       = 1.74305e-08
  Prefactor  = 54.2764
  Prefactor  = 14.6286
  Prefactor  = 0
  Prefactor  = 2.61679
  Prefactor  = 52.4611
  Prefactor  = 3.33067e-10
  norm       = 3.29562
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 10.2268
  Normalizat = 0.768255
  Prefactor  = 1.26503
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.409     FROM HESSE     STATUS=OK           445 CALLS     2453 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26645E-07    8.8230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .16875E-07    8.3279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.789        67.791        .14500E-03   -1.5571    
   4  Prefactor     .28144E-07    24.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-09    30.032        .17139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1529        9.4213        .40522E-03   -1.5658    
   7  Prefactor     4.0096        15.930        .50440E-03   -1.5668    
   8  Prefactor     1.3403        2.1561        .94561E-03   -1.5685    
   9  norm          3.9027        9.2544        .51197E-03   -1.5668    
  10  Prefactor     5.1457        6.5095        .45040E-03   -1.5663    
  11  Prefactor     2.6125        5.7405        .61510E-03   -1.5676    
  12  norm          .17431E-07    16.101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     54.276        48.474        .13619E-03   -1.5561    
  14  Prefactor     14.629        34.437        .26307E-03   -1.5631    
  15  Prefactor      .0000        4.3479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6168        60.459        .63099E-03   -1.5676    
  17  Prefactor     52.461        84.937        .13915E-03   -1.5563    
  18  Prefactor     .33307E-09    4.2781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2956        .38972        .37801E-03   -1.5672    
  20  Prefactor     .55511E-10    6.2789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    4.0736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.227        10.069        .31326E-03   -1.5644    
  23  Normalizat    .76826        .17628        .65449E-01   -1.0126    
  24  Prefactor     1.2650        .20392        .62757E-01   -.84353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.418e-06
Minuit parameter uncertainties:
  1  0.000969506
  2  0.00075016
  3  67.7923
  4  0.0016531
  5  0.000160321
  6  9.42131
  7  15.9302
  8  2.15608
  9  9.25442
  10  6.50953
  11  5.74048
  12  0.00105885
  13  48.4746
  14  34.4373
  15  1.70135e-05
  16  25.1564
  17  84.9386
  18  7.28057e-05
  19  0.389716
  20  3.17542e-05
  21  2.27205e-05
  22  10.0692
  23  0.176407
  24  0.204047
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.265e+00  2.040e-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:  7.683e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951001/likelihoodResults_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.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) = 6580.14789548
delta logL = 1.26073960655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6580.05818434
delta logL = 1.35045074484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58834E-02   1.0000          .0000       .10000E+07
     2 'Index     '    7.5336       1.0000          .0000       10.000    
     3 'Normalizat'    .65059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3671       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=   6580.058     FROM MIGRAD    STATUS=CONVERGED    194 CALLS      479 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57740E-02    .38480E-02    .84091E-04** at limit **
   2  Index         7.5441        .32511        .14477       -.51838E-04
   3  Normalizat    .65085        .17973        .70555E-01    .89485E-04
   4  Prefactor     1.3670        .20804        .60775E-01    .11175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.005774
  Index      = 7.54415
  Normalizat = 0.650851
  Prefactor  = 1.36695
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.058     FROM HESSE     STATUS=OK            33 CALLS      512 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57740E-02    .85667E-02    .37926E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5441        .83316        .57928E-02   -9.9586    
   3  Normalizat    .65085        .21165        .31229E-03   -1.0587    
   4  Prefactor     1.3670        .24791        .26875E-03   -.81337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03536e-11
Minuit parameter uncertainties:
  1  0.00856672
  2  0.838451
  3  0.211919
  4  0.248129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951001': 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) = 6580.05818193
delta logL = 1.3504531592

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.774e-03  8.567e-03  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  7.544e+00  8.385e-01  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.367e+00  2.481e-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:  6.509e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 154.607 35.680
Photon Index (Free Index): 7.54 +/- 0.84
Photon Flux (Free Index): 1.30e-07 +/- 8.51e-08
Energy Flux (Free Index): 1.52e-05 +/- 9.99e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/951001/cmap_HighResolution_695001601_695606401_4FGL_J1018.4+3540_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='1.35e+00', photon_flux2='1.30e-07', job_status='DONE', time_completed='2023-01-17 01:09:38.878586', photon_index_error2='0.84', photon_index2='7.54', ts='0.38', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.99e-06', EG='0.77', time_epoch_completed='1673946578.88', return_code='0', job_id='951001', GAL2='1.37', EG2='0.65', return_code2='0', photon_flux_error2='8.51e-08', ts2='3.47', photon_index='2.59' WHERE bin_id='754' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:09:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 951001: <4FGL_J1018.4+3540_weekly_bin754> in cluster <slac> Done

Job <4FGL_J1018.4+3540_weekly_bin754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 17 00:55:23 2023
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:55:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:55:45 2023
Terminated at Tue Jan 17 01:09:39 2023
Results reported at Tue Jan 17 01:09:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_weekly_bin754 154.607 35.6802 695001601 695606401 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            856 sec.

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

