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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1745
RA = 158.275, Dec = 41.262
tmin = 691632001, tmax = 691891201
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='642994', job_status='RUN', time_executed='2022-12-05 00:26:37.717958', time_epoch_executed='1670228797.72' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642994/ft1_4FGL_J1033.1+4115_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642994/ft1_4FGL_J1033.1+4115_daily_bin1745.fits outfile=/scratch/kocevski/642994/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1745.fits ra=158.275 dec=41.262 rad=12.0 tmin=691632001.0 tmax=691891201.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.35
user 2.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.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/642994/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/642994/ft1_filtered_4FGL_J1033.1+4115_daily_bin1745.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642994/ft1_filtered_4FGL_J1033.1+4115_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/642994/ltcube_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.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/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.fits
.....................!
real 12.91
user 12.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642994/ft1_filtered_4FGL_J1033.1+4115_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/642994/ltcube_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.fits outfile=/scratch/kocevski/642994/expmap_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.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/642994/ltcube_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.fits
.....................!
real 190.89
user 186.09
sys 4.48

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/642994/ft1_filtered_4FGL_J1033.1+4115_daily_bin1745.fits scfile=/scratch/kocevski/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.fits outfile=/scratch/kocevski/642994/cmap_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642994/ft1_filtered_4FGL_J1033.1+4115_daily_bin1745.fits scfile=/scratch/kocevski/642994/ft2_4FGL_J1033.1+4115_daily_bin1745.fits outfile=/scratch/kocevski/642994/cmap_HighResolution_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51119E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .70900       1.0000          .0000       .10000E+07
     3 'Prefactor '    50.299       1.0000          .0000       .10000E+07
     4 'Prefactor '    .62269E-03   1.0000          .0000       .10000E+07
     5 'norm      '    30.897       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4849       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.5522       1.0000          .0000       .10000E+07
     8 'norm      '    3.3747       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.3700       1.0000          .0000       .10000E+07
    10 'norm      '    4.9960       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14847       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.633       1.0000          .0000       .10000E+07
    13 'Prefactor '    .47173E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    13.613       1.0000          .0000       .10000E+07
    15 'Prefactor '    95.017       1.0000          .0000       .10000E+07
    16 'norm      '    1.8247       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19592E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13418E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    46.867       1.0000          .0000       .10000E+07
    20 'norm      '    29.966       1.0000          .0000       .10000E+07
    21 'Prefactor '    .35510E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .70763E-02   1.0000          .0000       .10000E+07
    23 'norm      '    3.2416       1.0000          .0000       .10000E+07
    24 'Normalizat'    .95972       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76936       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=   6033.423     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2284 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47962E-07    17.422       -.14407E-06** at limit **
   2  Prefactor     .17288E-03    388.16       -.93653E-05** at limit **
   3  Prefactor     50.879        24.947        .82944E-06   -.16139    
   4  Prefactor      .0000        6.5642       -.29704E-07** at limit **
   5  norm          30.843        17.121        .23408E-06    .83569E-01
   6  Prefactor     1.5150        5.3800       -.15447E-06   -.10143E-02
   7  Prefactor     1.5519        1.9640        .23375E-08    .48178E-04
   8  norm          3.3745        2.4709       -.18172E-07   -.25928E-03
   9  Prefactor     7.3707        3.9337        .65464E-09    .14832E-03
  10  norm          4.8782        7.4464        .11716E-06    .35260E-03
  11  Prefactor     .38858E-09    49.280        .30285E-07** at limit **
  12  Prefactor     10.759        28.760        .10008E-06    .60269E-02
  13  Prefactor      .0000        1.8604        .55752E-07** at limit **
  14  Prefactor     13.606        14.320        .25741E-07   -.76503E-02
  15  Prefactor     96.297        85.392        .28058E-06   -.18757E-01
  16  norm          1.8243        .35567        .70704E-08    .28205E-02
  17  Prefactor      .0000        31.706        .51739E-07** at limit **
  18  Prefactor      .0000        4.1732        .34262E-07** at limit **
  19  Prefactor     46.196        42.978       -.24655E-06    .89940E-02
  20  norm          29.991        13.989        .27543E-07    .46548E-02
  21  Prefactor      .0000        .98018        .27150E-07** at limit **
  22  Prefactor     .17708E-07    15.945        .28927E-07** at limit **
  23  norm          3.2400        2.4168        .43814E-07    .45532E-04
  24  Normalizat    .95946        .19804        .22647E-05   -.39486E-05
  25  Prefactor     .76995        .23354       -.66462E-05   -.41991E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.79616e-08
  Prefactor  = 0.000172884
  Prefactor  = 50.8788
  Prefactor  = 0
  norm       = 30.8428
  Prefactor  = 1.51497
  Prefactor  = 1.55187
  norm       = 3.37448
  Prefactor  = 7.37067
  norm       = 4.87816
  Prefactor  = 3.88578e-10
  Prefactor  = 10.7594
  Prefactor  = 0
  Prefactor  = 13.6062
  Prefactor  = 96.2974
  norm       = 1.8243
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 46.1957
  norm       = 29.9908
  Prefactor  = 0
  Prefactor  = 1.77081e-08
  norm       = 3.23998
  Normalizat = 0.959458
  Prefactor  = 0.769953
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.423     FROM HESSE     STATUS=OK           489 CALLS     2773 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47962E-07    17.451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17288E-03    487.07        .59980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.879        45.313        .14101E-03   -1.5565    
   4  Prefactor      .0000        6.5187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          30.843        17.539        .17993E-03   -1.5597    
   6  Prefactor     1.5150        5.4594        .88001E-03   -1.5683    
   7  Prefactor     1.5519        1.9837        .85446E-03   -1.5683    
   8  norm          3.3745        2.4782        .55057E-03   -1.5671    
   9  Prefactor     7.3707        3.9390        .36921E-03   -1.5654    
  10  norm          4.8782        7.4662        .44967E-03   -1.5664    
  11  Prefactor     .38858E-09    48.948        .12776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.759        28.796        .30702E-03   -1.5642    
  13  Prefactor      .0000        1.8549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.606        14.340        .27122E-03   -1.5634    
  15  Prefactor     96.297        98.670        .10259E-03   -1.5512    
  16  norm          1.8243        .36091        .44352E-03   -1.5681    
  17  Prefactor      .0000        7.5298        .11613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        4.1781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.196        98.910        .14608E-03   -1.5572    
  20  norm          29.991        14.527        .18271E-03   -1.5598    
  21  Prefactor      .0000        .97957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17708E-07    15.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2400        2.4215        .56232E-03   -1.5672    
  24  Normalizat    .95946        .16908        .45660E-01   -.94401    
  25  Prefactor     .76995        .19688        .69154E-01   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37494e-06
Minuit parameter uncertainties:
  1  0.00182928
  2  0.580418
  3  45.3134
  4  3.41905e-06
  5  17.5394
  6  5.45946
  7  1.98366
  8  2.47824
  9  3.93902
  10  7.46621
  11  0.00027617
  12  28.7962
  13  1.61477e-06
  14  14.3401
  15  98.672
  16  0.360909
  17  1.75676e-05
  18  5.7009e-06
  19  98.9139
  20  14.527
  21  2.59509e-07
  22  0.00106408
  23  2.42154
  24  0.169179
  25  0.197061
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  1.615e-06  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.700e-01  1.971e-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.595e-01  1.692e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642994/likelihoodResults_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.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) = 6033.42462462
delta logL = -0.00189989822593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6033.42272481
delta logL = -8.86229827302e-08

Fit tolerance = 1e-08

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

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

 FCN=   6033.423     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      245 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6879        .42118E-03** at limit **
   2  Index         3.4482        1.3876        .26272E-04     .0000    
   3  Normalizat    .95946        1.2916       -.19034E-05    .36824E-04
   4  Prefactor     .76995        1.1192        .15424E-05   -.27465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.44818
  Normalizat = 0.959459
  Prefactor  = 0.769952
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6033.423     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3253        2.1905        .26272E-04   -.31558    
   3  Normalizat    .95946        1.2916       -.19034E-05   -.94401    
   4  Prefactor     .76995        1.1192        .15424E-05   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.42441e-11
Minuit parameter uncertainties:
  1  4.48866e-06
  2  1.40814
  3  1.33762
  4  1.155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642994': 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) = 6033.42272472
delta logL = -1.09139364213e-11

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  4.489e-06  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  3.448e+00  1.408e+00  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:  7.700e-01  1.155e+00  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.595e-01  1.338e+00  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/642994/cmap_HighResolution_691632001_691891201_4FGL_J1033.1+4115_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2022-12-05 00:38:03.532561', job_id='642994', GAL2='0.77', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1670229483.53', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1745' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:38:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 642994: <4FGL_J1033.1+4115_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:24 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:25 2022
Terminated at Mon Dec  5 00:38:04 2022
Results reported at Mon Dec  5 00:38:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1745 158.275 41.262 691632001 691891201 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 :                                   688.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

