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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1715
RA = 158.275, Dec = 41.262
tmin = 683856001, tmax = 684115201
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='94619', job_status='RUN', time_executed='2022-09-16 15:28:47.390466', time_epoch_executed='1663367327.39' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94619/ft1_4FGL_J1033.1+4115_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94619/ft1_4FGL_J1033.1+4115_daily_bin1715.fits outfile=/scratch/kocevski/94619/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1715.fits ra=158.275 dec=41.262 rad=12.0 tmin=683856001.0 tmax=684115201.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.88
user 2.64
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.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/94619/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.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.29
sys 0.16

Number of photons that the gtmktime cut: 534

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/94619/ltcube_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.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/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits
.....................!
real 13.91
user 13.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/94619/ltcube_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.fits outfile=/scratch/kocevski/94619/expmap_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.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/94619/ltcube_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.fits
.....................!
real 158.25
user 153.45
sys 4.41

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.1+4115 @ 158.275 41.262

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits scfile=/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits outfile=/scratch/kocevski/94619/cmap_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.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=158.275 yref=41.262 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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits scfile=/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits outfile=/scratch/kocevski/94619/cmap_HighResolution_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.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=158.275 yref=41.262 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.49
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94619/Model_4FGL_J1033.1+4115_daily_bin1715.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/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits.....................!
real 41.94
user 40.76
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits', '/scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits', expMap='/scratch/kocevski/94619/expmap_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.fits', expCube='/scratch/kocevski/94619/ltcube_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94619/Model_4FGL_J1033.1+4115_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.1+4115'

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.495e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94619/ft1_filtered_4FGL_J1033.1+4115_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/94619/ft2_4FGL_J1033.1+4115_daily_bin1715.fits
Exposure map: /scratch/kocevski/94619/expmap_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.fits
Exposure cube: /scratch/kocevski/94619/ltcube_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94619/Model_4FGL_J1033.1+4115_daily_bin1715.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) = 5819.06415493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11555E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19990E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.273       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33265E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .34996E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5953       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10511E-01   1.0000          .0000       .10000E+07
     8 'norm      '    5.5899       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.7591       1.0000          .0000       .10000E+07
    10 'norm      '    10.565       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27877E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33771E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23221E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.373       1.0000          .0000       .10000E+07
    15 'Prefactor '    .53598       1.0000          .0000       .10000E+07
    16 'norm      '    1.2413       1.0000          .0000       .10000E+07
    17 'Prefactor '    .80549E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .46309E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12100       1.0000          .0000       .10000E+07
    20 'norm      '    41.840       1.0000          .0000       .10000E+07
    21 'Prefactor '    6.1377       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.4614       1.0000          .0000       .10000E+07
    23 'norm      '    .88041E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77714       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5819.060     FROM MIGRAD    STATUS=CONVERGED    224 CALLS     2308 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    4.5088        .57998E-07** at limit **
   2  Prefactor     .16653E-09    11.678       -.27311E-09** at limit **
   3  Prefactor     10.243        1.4829        .24727E-07   -.45099E-02
   4  Prefactor      .0000        5.5203        .22862E-07** at limit **
   5  norm          .12879E-07    25.527        .11578E-06** at limit **
   6  Prefactor     2.5927        4.7585        .28718E-07    .75958E-03
   7  Prefactor     .94369E-09    17.059        .22626E-06** at limit **
   8  norm          5.5884        2.6119        .11674E-07    .27498E-02
   9  Prefactor     3.7728        5.0185       -.79167E-07   -.30918E-02
  10  norm          10.560        11.904        .11462E-07   -.17179E-03
  11  Prefactor     .20123E-06    37.987        .35784E-06** at limit **
  12  Prefactor     .14467E-05    42.216       -.32081E-06** at limit **
  13  Prefactor     .11102E-09    3.4124       -.80929E-07** at limit **
  14  Prefactor     22.370        1.9475       -.21560E-07    .12505E-01
  15  Prefactor     .14672E-03    86.596        .26288E-06** at limit **
  16  norm          1.2412        .30788        .13732E-08   -.57160E-02
  17  Prefactor     .19202E-04    54.407       -.15728E-06** at limit **
  18  Prefactor     .11102E-09    8.0580       -.73395E-07** at limit **
  19  Prefactor     .22204E-09    77.746       -.37819E-07** at limit **
  20  norm          41.793        18.406       -.28100E-06   -.20901E-01
  21  Prefactor     6.2139        3.7734        .13149E-06   -.94905E-02
  22  Prefactor     .41035E-03    8345.0       -.31327E-06** at limit **
  23  norm          .55511E-10    2.1934        .59602E-07** at limit **
  24  Normalizat    1.0848        .19369        .22097E-06   -.23761E-03
  25  Prefactor     .77703        .23422       -.15953E-06   -.16524E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 10.2431
  Prefactor  = 0
  norm       = 1.28786e-08
  Prefactor  = 2.59268
  Prefactor  = 9.4369e-10
  norm       = 5.58842
  Prefactor  = 3.77277
  norm       = 10.5596
  Prefactor  = 2.01228e-07
  Prefactor  = 1.44668e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 22.37
  Prefactor  = 0.000146717
  norm       = 1.24123
  Prefactor  = 1.92019e-05
  Prefactor  = 1.11022e-10
  Prefactor  = 2.22045e-10
  norm       = 41.7927
  Prefactor  = 6.21385
  Prefactor  = 0.000410354
  norm       = 5.55112e-11
  Normalizat = 1.0848
  Prefactor  = 0.777031
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.060     FROM HESSE     STATUS=OK           481 CALLS     2789 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    4.5288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    11.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.243        25.715        .31237E-03   -1.5644    
   4  Prefactor      .0000        5.5337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .12879E-07    25.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5927        4.7738        .63308E-03   -1.5676    
   7  Prefactor     .94369E-09    16.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5884        2.6118        .42468E-03   -1.5661    
   9  Prefactor     3.7728        5.0889        .52049E-03   -1.5669    
  10  norm          10.560        11.870        .30801E-03   -1.5643    
  11  Prefactor     .20123E-06    38.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .14467E-05    43.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    3.4097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.370        24.437        .21147E-03   -1.5613    
  15  Prefactor     .14672E-03    246.65        .75170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2412        .30750        .46120E-03   -1.5686    
  17  Prefactor     .19202E-04    74.684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    8.0925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    78.259        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          41.793        18.675        .15461E-03   -1.5579    
  21  Prefactor     6.2139        4.6042        .40500E-03   -1.5658    
  22  Prefactor     .41035E-03    83.618        .14211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    2.2090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0848        .16518        .38675E-01   -.90241    
  25  Prefactor     .77703        .20018        .69758E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76575e-07
Minuit parameter uncertainties:
  1  2.26827e-05
  2  9.17141e-05
  3  25.7152
  4  1.42571e-06
  5  0.00114519
  6  4.77376
  7  0.00025086
  8  2.61182
  9  5.08893
  10  11.8698
  11  0.00556578
  12  0.0159537
  13  3.71868e-05
  14  24.4376
  15  0.380479
  16  0.307502
  17  0.0757393
  18  6.29027e-05
  19  0.00024709
  20  18.6748
  21  4.60421
  22  0.37048
  23  1.70404e-05
  24  0.165258
  25  0.200366
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.110e-10  3.719e-05  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  7.770e-01  2.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.085e+00  1.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94619/likelihoodResults_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.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) = 5816.60999852
delta logL = 2.45030072447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5816.46276608
delta logL = 2.59753316419

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5816.463     FROM MIGRAD    STATUS=CONVERGED    300 CALLS      724 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10724E-02    .63489E-03    .29038E-04** at limit **
   2  Index         8.2020        .29464        .12305       -.89339E-04
   3  Normalizat    .93142        .33562        .45304E-01   -.12150E-03
   4  Prefactor     .91110        .40765        .64997E-01   -.10889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00107243
  Index      = 8.20196
  Normalizat = 0.931418
  Prefactor  = 0.911104
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.463     FROM HESSE     STATUS=OK            33 CALLS      757 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10724E-02    .19157E-02    .12578E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2020        .97627        .52251E-02   -104.37    
   3  Normalizat    .93142        .19712        .22521E-03   -2.1879    
   4  Prefactor     .91110        .24382        .28748E-03   -2.1841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00371e-09
Minuit parameter uncertainties:
  1  0.00191567
  2  0.987106
  3  0.197271
  4  0.244116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94619': 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) = 5816.46276424
delta logL = 2.59753500456

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.072e-03  1.916e-03  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  8.202e+00  9.871e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.111e-01  2.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  9.314e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 158.275 41.262
Photon Index (Free Index): 8.20 +/- 0.99
Photon Flux (Free Index): 1.08e-07 +/- 5.74e-08
Energy Flux (Free Index): 1.25e-05 +/- 6.64e-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/94619/cmap_HighResolution_683856001_684115201_4FGL_J1033.1+4115_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='2.60e+00', photon_flux2='1.08e-07', job_status='DONE', time_completed='2022-09-16 15:39:06.643835', photon_index_error2='0.99', photon_index2='8.20', ts='-0.00', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='6.76e-08', energy_flux_error2='6.64e-06', EG='1.08', time_epoch_completed='1663367946.64', return_code='0', job_id='94619', GAL2='0.91', EG2='0.93', return_code2='0', photon_flux_error2='5.74e-08', ts2='5.69', photon_index='2.41' WHERE bin_id='1715' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:39:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 94619: <4FGL_J1033.1+4115_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1715> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:25:16 2022
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:25:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:25:38 2022
Terminated at Fri Sep 16 15:39:07 2022
Results reported at Fri Sep 16 15:39:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1715 158.275 41.262 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.1+4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            831 sec.

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

