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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1717
RA = 158.275, Dec = 41.262
tmin = 684374401, tmax = 684633601
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='94621', job_status='RUN', time_executed='2022-09-16 15:26:34.023509', time_epoch_executed='1663367194.02' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94621/ft1_4FGL_J1033.1+4115_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94621/ft2_4FGL_J1033.1+4115_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94621/ft1_4FGL_J1033.1+4115_daily_bin1717.fits outfile=/scratch/kocevski/94621/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1717.fits ra=158.275 dec=41.262 rad=12.0 tmin=684374401.0 tmax=684633601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.03
user 4.77
sys 0.24

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

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

Number of photons that the gtmktime cut: 541

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94621/ft1_filtered_4FGL_J1033.1+4115_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/94621/ft2_4FGL_J1033.1+4115_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/94621/ltcube_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.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/94621/ft2_4FGL_J1033.1+4115_daily_bin1717.fits
.....................!
real 16.78
user 16.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94621/ft1_filtered_4FGL_J1033.1+4115_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/94621/ft2_4FGL_J1033.1+4115_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/94621/ltcube_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.fits outfile=/scratch/kocevski/94621/expmap_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.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/94621/ltcube_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.fits
.....................!
real 191.36
user 185.79
sys 5.16

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/94621/ft1_filtered_4FGL_J1033.1+4115_daily_bin1717.fits scfile=/scratch/kocevski/94621/ft2_4FGL_J1033.1+4115_daily_bin1717.fits outfile=/scratch/kocevski/94621/cmap_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94621/ft1_filtered_4FGL_J1033.1+4115_daily_bin1717.fits scfile=/scratch/kocevski/94621/ft2_4FGL_J1033.1+4115_daily_bin1717.fits outfile=/scratch/kocevski/94621/cmap_HighResolution_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56966E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69356E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .56992E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8096       1.0000          .0000       .10000E+07
     5 'norm      '    .31205E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2471       1.0000          .0000       .10000E+07
     7 'Prefactor '    .22897E-03   1.0000          .0000       .10000E+07
     8 'norm      '    4.7304       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12746E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.4924       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.643       1.0000          .0000       .10000E+07
    12 'Prefactor '    46.442       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7618       1.0000          .0000       .10000E+07
    14 'Prefactor '    .49688E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .80051E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .96025       1.0000          .0000       .10000E+07
    17 'Prefactor '    17.834       1.0000          .0000       .10000E+07
    18 'Prefactor '    .54652E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43911E-02   1.0000          .0000       .10000E+07
    20 'norm      '    23.282       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.2034       1.0000          .0000       .10000E+07
    22 'Prefactor '    .69879E-02   1.0000          .0000       .10000E+07
    23 'norm      '    1.4361       1.0000          .0000       .10000E+07
    24 'Normalizat'    .94658       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98018       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=   5847.688     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     2136 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    8.7903       -.62274E-06** at limit **
   2  Prefactor     .11102E-09    7.0448        .27003E-08** at limit **
   3  Prefactor     .11102E-09    54.133       -.57117E-06** at limit **
   4  Prefactor     2.8054        4.9429       -.69773E-07   -.30348E-04
   5  norm           .0000        4.2549       -.16903E-06** at limit **
   6  Prefactor     5.2258        5.5895        .24223E-06    .49948E-03
   7  Prefactor     .55511E-10    5.7327       -.79986E-06** at limit **
   8  norm          4.7343        2.5262       -.56884E-07   -.15754E-02
   9  Prefactor      .0000        3.9534       -.22086E-06** at limit **
  10  norm          2.4768        9.3434        .31459E-06   -.13384E-02
  11  Prefactor     10.919        4.0264        .61779E-07   -.16106E-01
  12  Prefactor     46.674        2.9903        .32844E-08    .40628E-01
  13  Prefactor     3.7613        3.1267       -.12728E-06   -.79999E-03
  14  Prefactor     .42194E-06    11.077        .64037E-06** at limit **
  15  Prefactor     .27756E-09    128.34       -.79957E-06** at limit **
  16  norm          .96028        .30280       -.47775E-08   -.23757E-02
  17  Prefactor     17.847        4.0532       -.15676E-06   -.75143E-01
  18  Prefactor     .22204E-09    13.490        .96870E-07** at limit **
  19  Prefactor     .21733E-06    13.318        .53168E-06** at limit **
  20  norm          23.258        13.865       -.50204E-06    .17182E-01
  21  Prefactor     4.2111        3.4940        .24478E-06    .16275E-02
  22  Prefactor     .21039E-07    29.800        .25456E-06** at limit **
  23  norm          1.4330        2.5774       -.54074E-07    .67319E-03
  24  Normalizat    .94669        .18599       -.21430E-04    .16616E-04
  25  Prefactor     .97990        .23699        .13750E-04    .19471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 2.8054
  norm       = 0
  Prefactor  = 5.22584
  Prefactor  = 5.55112e-11
  norm       = 4.73433
  Prefactor  = 0
  norm       = 2.47676
  Prefactor  = 10.9194
  Prefactor  = 46.6744
  Prefactor  = 3.76126
  Prefactor  = 4.2194e-07
  Prefactor  = 2.77556e-10
  norm       = 0.960275
  Prefactor  = 17.8474
  Prefactor  = 2.22045e-10
  Prefactor  = 2.17326e-07
  norm       = 23.2584
  Prefactor  = 4.21107
  Prefactor  = 2.10387e-08
  norm       = 1.43302
  Normalizat = 0.946688
  Prefactor  = 0.979899
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.688     FROM HESSE     STATUS=OK           477 CALLS     2613 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    8.7884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    7.0508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    53.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8054        4.9633        .60660E-03   -1.5674    
   5  norm           .0000        4.2614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2258        5.5930        .43857E-03   -1.5662    
   7  Prefactor     .55511E-10    5.4731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.7343        2.5262        .46240E-03   -1.5664    
   9  Prefactor      .0000        3.9181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4768        9.5495        .64716E-03   -1.5676    
  11  Prefactor     10.919        90.266        .30686E-03   -1.5642    
  12  Prefactor     46.674        42.517        .14675E-03   -1.5571    
  13  Prefactor     3.7613        3.1417        .52029E-03   -1.5669    
  14  Prefactor     .42194E-06    24.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27756E-09    129.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .96028        .31023        .42353E-03   -1.5688    
  17  Prefactor     17.847        16.922        .23689E-03   -1.5623    
  18  Prefactor     .22204E-09    13.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21733E-06    23.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.258        15.409        .20730E-03   -1.5612    
  21  Prefactor     4.2111        3.5237        .49129E-03   -1.5667    
  22  Prefactor     .21039E-07    30.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4330        2.6254        .90044E-03   -1.5684    
  24  Normalizat    .94669        .16122        .45494E-01   -.94838    
  25  Prefactor     .97990        .20314        .46019E-01   -.93403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08917e-07
Minuit parameter uncertainties:
  1  4.71411e-05
  2  6.14213e-05
  3  0.000164512
  4  4.96333
  5  1.13641e-06
  6  5.59298
  7  2.88219e-05
  8  2.52621
  9  8.41102e-07
  10  9.54959
  11  62.7916
  12  42.5176
  13  3.14171
  14  0.0064221
  15  0.000395548
  16  0.310234
  17  16.922
  18  0.000109373
  19  0.00455759
  20  15.4094
  21  3.52366
  22  0.00159309
  23  2.62536
  24  0.161304
  25  0.203295
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.761e+00  3.142e+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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.799e-01  2.033e-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.467e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 8.91e-06 +/- 7.44e-06

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

Saving results to:
/scratch/kocevski/94621/likelihoodResults_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.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) = 5847.65446971
delta logL = 0.033555514301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5847.64887658
delta logL = 0.0391486357357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1144       1.0000          .0000       .10000E+07
     2 'Index     '    2.2238       1.0000          .0000       10.000    
     3 'Normalizat'    .95148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97573       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=   5847.649     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1167        116.70        .49674E-03    .11714E-02
   2  Index         2.2236        5.7133        .24643        .19625E-04
   3  Normalizat    .95134        .84332E-01    .45556E-01    .96420E-05
   4  Prefactor     .97586        .92375E-01    .45963E-01    .12338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11673
  Index      = 2.22359
  Normalizat = 0.951345
  Prefactor  = 0.97586
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.649     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1167        3.5301        .12411E-04   -1.5667    
   2  Index         2.2236        .65841        .89042E-02   -.58870    
   3  Normalizat    .95134        .18283        .22200E-03   -.94679    
   4  Prefactor     .97586        .23580        .28299E-03   -.93539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57348e-10
Minuit parameter uncertainties:
  1  3.5301
  2  0.661192
  3  0.182947
  4  0.236051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94621': 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) = 5847.64887608
delta logL = 0.0391491418577

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  4.117e+00  3.530e+00  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.224e+00  6.612e-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.759e-01  2.361e-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.513e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.22 +/- 0.66
Photon Flux (Free Index): 2.43e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.12e-05

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/94621/cmap_HighResolution_684374401_684633601_4FGL_J1033.1+4115_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.04e-05', photon_flux_error='2.31e-08', dlogl='3.91e-02', energy_flux='8.91e-06', photon_flux2='2.43e-08', job_status='DONE', time_completed='2022-09-16 15:38:06.862814', photon_index_error2='0.66', photon_index2='2.22', ts='2.83', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.32e-08', energy_flux_error2='1.12e-05', EG='0.95', time_epoch_completed='1663367886.86', return_code='0', job_id='94621', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='7.44e-06', photon_flux_error2='2.34e-08', ts2='2.90', photon_index='2.41' WHERE bin_id='1717' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:38:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 94621: <4FGL_J1033.1+4115_daily_bin1717> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1717 158.275 41.262 684374401 684633601 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 :                                   694.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            771 sec.

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

