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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1708
RA = 158.275, Dec = 41.262
tmin = 682041601, tmax = 682300801
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='94602', job_status='RUN', time_executed='2022-09-16 15:26:06.985920', time_epoch_executed='1663367166.99' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94602/ft1_4FGL_J1033.1+4115_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94602/ft1_4FGL_J1033.1+4115_daily_bin1708.fits outfile=/scratch/kocevski/94602/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1708.fits ra=158.275 dec=41.262 rad=12.0 tmin=682041601.0 tmax=682300801.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.98
user 3.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.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/94602/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 583

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/94602/ltcube_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.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/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits
.....................!
real 15.07
user 14.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/94602/ltcube_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.fits outfile=/scratch/kocevski/94602/expmap_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.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/94602/ltcube_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.fits
.....................!
real 191.72
user 186.01
sys 4.66

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/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.fits scfile=/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits outfile=/scratch/kocevski/94602/cmap_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.fits scfile=/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits outfile=/scratch/kocevski/94602/cmap_HighResolution_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.fits', '/scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits', expMap='/scratch/kocevski/94602/expmap_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.fits', expCube='/scratch/kocevski/94602/ltcube_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94602/Model_4FGL_J1033.1+4115_daily_bin1708.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/94602/ft1_filtered_4FGL_J1033.1+4115_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/94602/ft2_4FGL_J1033.1+4115_daily_bin1708.fits
Exposure map: /scratch/kocevski/94602/expmap_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.fits
Exposure cube: /scratch/kocevski/94602/ltcube_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94602/Model_4FGL_J1033.1+4115_daily_bin1708.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) = 6383.74677438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83378E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11568E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .38029E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .45481E-03   1.0000          .0000       .10000E+07
     5 'norm      '    7.8751       1.0000          .0000       .10000E+07
     6 'Prefactor '    .99343E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3843       1.0000          .0000       .10000E+07
     8 'norm      '    2.8693       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.7280       1.0000          .0000       .10000E+07
    10 'norm      '    17.919       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11799       1.0000          .0000       .10000E+07
    12 'Prefactor '    36.612       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18142E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .41921E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .29210E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.4293       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60198E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.7180       1.0000          .0000       .10000E+07
    19 'Prefactor '    .61682E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .18101E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.1274       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20356E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .23604E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0257       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=   6383.737     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2087 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24869E-07    3.6698       -.10276E-05** at limit **
   2  Prefactor     .14266E-07    4.5791       -.18910E-05** at limit **
   3  Prefactor     .16931E-06    6.7868       -.24315E-05** at limit **
   4  Prefactor     .55511E-10    3.2758       -.10501E-06** at limit **
   5  norm          7.8850        8.0396       -.25818E-05   -.50720E-01
   6  Prefactor     .11102E-09    1.5623        .80286E-06** at limit **
   7  Prefactor     2.2842        4.4298       -.64012E-06    .42153E-04
   8  norm          2.8687        1.8436        .39954E-07    .13279E-02
   9  Prefactor     3.9092        6.2322        .36296E-06   -.34407E-02
  10  norm          17.949        2.5044        .16856E-07    .23305E-01
  11  Prefactor     .43632E-07    1.4796       -.87374E-06** at limit **
  12  Prefactor     36.514        2.7312       -.32718E-06    .84304E-01
  13  Prefactor     .16653E-09    2.6616       -.33919E-06** at limit **
  14  Prefactor     .10880E-07    5.9616        .26391E-05** at limit **
  15  Prefactor     .22221E-06    23.584        .10549E-05** at limit **
  16  norm          1.4291        .35706       -.48149E-07    .10908E-01
  17  Prefactor     .47184E-08    2.7935        .53319E-06** at limit **
  18  Prefactor     8.7093        1.5105        .46389E-07   -.98190E-03
  19  Prefactor     .29036E-05    21.365       -.22773E-05** at limit **
  20  norm          .32341E-06    4.3893        .73006E-06** at limit **
  21  Prefactor     1.1274        3.6151       -.61618E-06    .27084E-02
  22  Prefactor     .47717E-05    13.058       -.43686E-07** at limit **
  23  norm          .96811E-07    2.3092       -.10318E-05** at limit **
  24  Normalizat    1.1329        .19678        .20719E-04    .31926E-03
  25  Prefactor     1.0262        .24392       -.18876E-04    .96482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4869e-08
  Prefactor  = 1.42664e-08
  Prefactor  = 1.69309e-07
  Prefactor  = 5.55112e-11
  norm       = 7.88501
  Prefactor  = 1.11022e-10
  Prefactor  = 2.28425
  norm       = 2.86866
  Prefactor  = 3.90915
  norm       = 17.9489
  Prefactor  = 4.36318e-08
  Prefactor  = 36.5138
  Prefactor  = 1.66533e-10
  Prefactor  = 1.08802e-08
  Prefactor  = 2.22211e-07
  norm       = 1.42913
  Prefactor  = 4.71845e-09
  Prefactor  = 8.70927
  Prefactor  = 2.90357e-06
  norm       = 3.23408e-07
  Prefactor  = 1.12741
  Prefactor  = 4.77168e-06
  norm       = 9.68114e-08
  Normalizat = 1.13293
  Prefactor  = 1.02624
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.737     FROM HESSE     STATUS=OK           471 CALLS     2558 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24869E-07    4.9818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14266E-07    6.5870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16931E-06    10.096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    3.2804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8850        9.8868        .35707E-03   -1.5652    
   6  Prefactor     .11102E-09    1.5645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2842        4.6179        .66308E-03   -1.5678    
   8  norm          2.8687        1.8404        .59983E-03   -1.5674    
   9  Prefactor     3.9092        6.5581        .52273E-03   -1.5668    
  10  norm          17.949        10.813        .23633E-03   -1.5623    
  11  Prefactor     .43632E-07    59.554        .13469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.514        40.044        .16529E-03   -1.5587    
  13  Prefactor     .16653E-09    2.6571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10880E-07    7.4076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22221E-06    24.643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4291        .36012        .52024E-03   -1.5684    
  17  Prefactor     .47184E-08    5.1207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7093        11.258        .33924E-03   -1.5649    
  19  Prefactor     .29036E-05    33.958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .32341E-06    9.5311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1274        3.6228        .11017E-02   -1.5687    
  22  Prefactor     .47717E-05    31.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96811E-07    5.8794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1329        .16936        .36769E-01   -.88701    
  25  Prefactor     1.0262        .20897        .68387E-01   -.91860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76005e-07
Minuit parameter uncertainties:
  1  0.000703801
  2  0.00061332
  3  0.00261482
  4  2.45493e-05
  5  9.88678
  6  2.38186e-05
  7  4.61793
  8  1.84045
  9  6.55807
  10  10.8126
  11  0.00322358
  12  40.0446
  13  4.05819e-05
  14  0.000567702
  15  0.00468048
  16  0.360123
  17  0.000310507
  18  11.2584
  19  0.0198595
  20  0.00351136
  21  3.62276
  22  0.0244105
  23  0.00150887
  24  0.169438
  25  0.209132
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.665e-10  4.058e-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:  1.026e+00  2.091e-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.133e+00  1.694e-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: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94602/likelihoodResults_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.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) = 6383.73901771
delta logL = -0.00157572971057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6383.73744199
delta logL = -1.75887180376e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16098E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.9801       1.0000          .0000       10.000    
     3 'Normalizat'    1.1330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0262       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=   6383.737     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      288 TOTAL
                     EDM=   .68E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .23870E-03    .23327E-02** at limit **
   2  Index         3.5147        6.1591        .50000        .40927E-09
   3  Normalizat    1.1329        .72287E-04    .36794E-01    .14297E-03
   4  Prefactor     1.0262        .91864E-04    .68387E-01    .23896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 3.51475
  Normalizat = 1.13293
  Prefactor  = 1.02625
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.737     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .34910E-01    .13800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5147        5.3392        .50000       -.30160    
   3  Normalizat    1.1329        .50478E-03    .22895E-03   -.88702    
   4  Prefactor     1.0262        .64072E-03    .30254E-03   -.91860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38742e-12
Minuit parameter uncertainties:
  1  6.76156e-06
  2  2952.58
  3  0.000504776
  4  0.000640724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94602': 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): 102
logL (Free Index) = 6383.73744198
delta logL = -1.90993887372e-11

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.331e-10  6.762e-06  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  3.515e+00  2.953e+03  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:  1.026e+00  6.407e-04  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.133e+00  5.048e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

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/94602/cmap_HighResolution_682041601_682300801_4FGL_J1033.1+4115_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2022-09-16 15:38:02.052618', job_id='94602', GAL2='1.03', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1663367882.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-1.91e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1708' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:38:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 94602: <4FGL_J1033.1+4115_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1708> 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) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:25:33 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:33 2022
Terminated at Fri Sep 16 15:38:02 2022
Results reported at Fri Sep 16 15:38:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1708 158.275 41.262 682041601 682300801 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 :                                   715.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            766 sec.

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

