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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1762
RA = 154.607, Dec = 35.6802
tmin = 696038401, tmax = 696297601
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='106543', job_status='RUN', time_executed='2023-01-25 00:49:30.687707', time_epoch_executed='1674636570.69' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106543/ft1_4FGL_J1018.4+3540_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106543/ft1_4FGL_J1018.4+3540_daily_bin1762.fits outfile=/scratch/kocevski/106543/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1762.fits ra=154.607 dec=35.6802 rad=12.0 tmin=696038401.0 tmax=696297601.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.02
user 2.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.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/106543/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/106543/ft1_filtered_4FGL_J1018.4+3540_daily_bin1762.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.46
user 0.26
sys 0.17

Number of photons that the gtmktime cut: 478

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106543/ft1_filtered_4FGL_J1018.4+3540_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/106543/ltcube_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.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/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.fits
.....................!
real 10.83
user 10.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106543/ft1_filtered_4FGL_J1018.4+3540_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/106543/ltcube_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.fits outfile=/scratch/kocevski/106543/expmap_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.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/106543/ltcube_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.fits
.....................!
real 156.19
user 151.29
sys 4.46

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/106543/ft1_filtered_4FGL_J1018.4+3540_daily_bin1762.fits scfile=/scratch/kocevski/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.fits outfile=/scratch/kocevski/106543/cmap_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106543/ft1_filtered_4FGL_J1018.4+3540_daily_bin1762.fits scfile=/scratch/kocevski/106543/ft2_4FGL_J1018.4+3540_daily_bin1762.fits outfile=/scratch/kocevski/106543/cmap_HighResolution_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1377       1.0000          .0000       .10000E+07
     2 'norm      '    .25768E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .44633E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    24.321       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.9542       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.4300       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.9310       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.8819       1.0000          .0000       .10000E+07
     9 'norm      '    4.0606       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.5971       1.0000          .0000       .10000E+07
    11 'Prefactor '    .54035E-05   1.0000          .0000       .10000E+07
    12 'norm      '    17.421       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17869       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20630E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .94594       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11761E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34795E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72017       1.0000          .0000       .10000E+07
    19 'norm      '    1.5213       1.0000          .0000       .10000E+07
    20 'Prefactor '    .31272E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    8.9383       1.0000          .0000       .10000E+07
    22 'norm      '    9.5913       1.0000          .0000       .10000E+07
    23 'Normalizat'    .96512       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88740       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=   5432.451     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1919 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1367        5.7412        .50893E-06   -.49452E-03
   2  norm           .0000        4.6794       -.54027E-06** at limit **
   3  Prefactor     .44964E-08    44.271       -.45608E-06** at limit **
   4  Prefactor     24.408        5.7041       -.57160E-06    .58492E-01
   5  Prefactor     9.9435        1.1556       -.84686E-07   -.91693E-02
   6  Prefactor     5.4554        4.9016        .15011E-06    .57222E-01
   7  Prefactor     1.9561        2.5823       -.33504E-06   -.51748E-02
   8  Prefactor     3.8803        3.2436       -.23263E-06    .59418E-03
   9  norm          4.1332        4.7862        .89975E-07   -.18861E-02
  10  Prefactor     6.5986        5.0210        .24792E-06    .39345E-02
  11  Prefactor      .0000        1.8249        .29944E-06** at limit **
  12  norm          17.428        2.6946        .29694E-07   -.34295E-02
  13  Prefactor     .32918E-07    29.436        .13087E-05** at limit **
  14  Prefactor     .83267E-09    11.865        .33163E-05** at limit **
  15  Prefactor     .99117        3.1441        .77790E-06    .32859E-01
  16  Prefactor     .15266E-07    9.4725        .19568E-05** at limit **
  17  Prefactor     .11657E-08    18.949       -.22645E-05** at limit **
  18  Prefactor     .71666        .52137       -.79997E-07   -.20380E-02
  19  norm          1.5213        .35975        .47240E-07   -.14407E-01
  20  Prefactor     .16209E-07    8.9556       -.59820E-06** at limit **
  21  Prefactor     8.9446        2.7894        .35019E-06    .63289E-02
  22  norm          9.6105        5.6875        .76561E-06    .17130E-01
  23  Normalizat    .96455        .19537       -.59339E-05    .85827E-04
  24  Prefactor     .88755        .22466        .10933E-05    .55261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13669
  norm       = 0
  Prefactor  = 4.4964e-09
  Prefactor  = 24.4075
  Prefactor  = 9.94349
  Prefactor  = 5.45542
  Prefactor  = 1.95614
  Prefactor  = 3.88027
  norm       = 4.13321
  Prefactor  = 6.59864
  Prefactor  = 0
  norm       = 17.4283
  Prefactor  = 3.29181e-08
  Prefactor  = 8.32667e-10
  Prefactor  = 0.991166
  Prefactor  = 1.52656e-08
  Prefactor  = 1.16573e-09
  Prefactor  = 0.716662
  norm       = 1.5213
  Prefactor  = 1.62093e-08
  Prefactor  = 8.94458
  norm       = 9.61049
  Normalizat = 0.964549
  Prefactor  = 0.887553
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.451     FROM HESSE     STATUS=OK           449 CALLS     2368 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1367        5.7758        .57204E-03   -1.5673    
   2  norm           .0000        4.6830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44964E-08    44.287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.408        21.966        .20282E-03   -1.5609    
   5  Prefactor     9.9435        19.893        .31736E-03   -1.5645    
   6  Prefactor     5.4554        9.5172        .43099E-03   -1.5661    
   7  Prefactor     1.9561        11.493        .74714E-03   -1.5680    
   8  Prefactor     3.8803        3.3026        .51189E-03   -1.5669    
   9  norm          4.1332        4.7961        .50012E-03   -1.5667    
  10  Prefactor     6.5986        5.1451        .39047E-03   -1.5657    
  11  Prefactor      .0000        1.8239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.428        11.806        .23969E-03   -1.5624    
  13  Prefactor     .32918E-07    30.973        .12168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .83267E-09    12.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .99117        3.8657        .42634E-03   -1.5688    
  16  Prefactor     .15266E-07    9.9997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    18.965        .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71666        14.480        .59086E-03   -1.5691    
  19  norm          1.5213        .37483        .46937E-03   -1.5683    
  20  Prefactor     .16209E-07    11.630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9446        15.341        .33501E-03   -1.5648    
  22  norm          9.6105        14.692        .32334E-03   -1.5646    
  23  Normalizat    .96455        .17423        .45728E-01   -.94228    
  24  Prefactor     .88755        .19597        .44844E-01   -.96577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18736e-07
Minuit parameter uncertainties:
  1  5.7758
  2  1.13151e-05
  3  0.000891655
  4  21.9661
  5  19.8927
  6  9.51725
  7  9.48321
  8  3.3026
  9  4.79607
  10  5.14508
  11  1.18518e-05
  12  11.8057
  13  0.00202006
  14  0.000206692
  15  3.86574
  16  0.000781862
  17  0.00029814
  18  6.44271
  19  0.374831
  20  0.000868664
  21  15.3411
  22  14.6921
  23  0.174337
  24  0.196129
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.185e-05  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:  8.876e-01  1.961e-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.645e-01  1.743e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106543/likelihoodResults_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.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) = 5432.45254819
delta logL = -0.00172188486067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5432.45082784
delta logL = -1.53627115651e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31941E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .99101       1.0000          .0000       10.000    
     3 'Normalizat'    .96480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88738       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5432.451     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .44521        .42118E-03** at limit **
   2  Index         4.3164        2.2058       -.68985E-04     .0000    
   3  Normalizat    .96455        1.2965       -.81929E-05    .81338E-05
   4  Prefactor     .88755        1.2330       -.31042E-06   -.88150E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.31637
  Normalizat = 0.964549
  Prefactor  = 0.887553
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .44521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9854        2.4025       -.68985E-04   -.13715    
   3  Normalizat    .96455        1.2965       -.81929E-05   -.94228    
   4  Prefactor     .88755        1.2330       -.31042E-06   -.96577    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.98753e-13
Minuit parameter uncertainties:
  1  1.67712e-07
  2  2.28606
  3  1.34283
  4  1.27532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106543': 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): 101
logL (Free Index) = 5432.4508263
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.677e-07  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  4.316e+00  2.286e+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:  8.876e-01  1.275e+00  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.645e-01  1.343e+00  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/106543/cmap_HighResolution_696038401_696297601_4FGL_J1018.4+3540_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2023-01-25 00:57:34.227086', job_id='106543', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1674637054.23', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1762' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 00:57:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 106543: <4FGL_J1018.4+3540_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jan 25 00:45:23 2023
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:48:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:48:31 2023
Terminated at Wed Jan 25 00:57:34 2023
Results reported at Wed Jan 25 00:57:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1762 154.607 35.6802 696038401 696297601 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 :                                   484.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            731 sec.

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

