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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1709
RA = 158.275, Dec = 41.262
tmin = 682300801, tmax = 682560001
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='94603', job_status='RUN', time_executed='2022-09-16 15:27:22.123776', time_epoch_executed='1663367242.12' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94603

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94603/ft1_4FGL_J1033.1+4115_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94603/ft2_4FGL_J1033.1+4115_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94603/ft1_4FGL_J1033.1+4115_daily_bin1709.fits outfile=/scratch/kocevski/94603/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1709.fits ra=158.275 dec=41.262 rad=12.0 tmin=682300801.0 tmax=682560001.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.78
user 3.53
sys 0.23

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

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

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94603/ft1_filtered_4FGL_J1033.1+4115_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/94603/ft2_4FGL_J1033.1+4115_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/94603/ltcube_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.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/94603/ft2_4FGL_J1033.1+4115_daily_bin1709.fits
.....................!
real 14.54
user 14.12
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94603/ft1_filtered_4FGL_J1033.1+4115_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/94603/ft2_4FGL_J1033.1+4115_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/94603/ltcube_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.fits outfile=/scratch/kocevski/94603/expmap_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.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/94603/ltcube_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.fits
.....................!
real 192.84
user 186.71
sys 5.75

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/94603/ft1_filtered_4FGL_J1033.1+4115_daily_bin1709.fits scfile=/scratch/kocevski/94603/ft2_4FGL_J1033.1+4115_daily_bin1709.fits outfile=/scratch/kocevski/94603/cmap_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94603/ft1_filtered_4FGL_J1033.1+4115_daily_bin1709.fits scfile=/scratch/kocevski/94603/ft2_4FGL_J1033.1+4115_daily_bin1709.fits outfile=/scratch/kocevski/94603/cmap_HighResolution_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11820E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    29.366       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.350       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.1135       1.0000          .0000       .10000E+07
     5 'norm      '    .46507E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .43127E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1631       1.0000          .0000       .10000E+07
     8 'norm      '    7.5572       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5515       1.0000          .0000       .10000E+07
    10 'norm      '    1.7679       1.0000          .0000       .10000E+07
    11 'Prefactor '    59.197       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10377E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69095       1.0000          .0000       .10000E+07
    14 'Prefactor '    .18806       1.0000          .0000       .10000E+07
    15 'Prefactor '    11.762       1.0000          .0000       .10000E+07
    16 'norm      '    1.5643       1.0000          .0000       .10000E+07
    17 'Prefactor '    .65132E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    38.180       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.0363       1.0000          .0000       .10000E+07
    20 'norm      '    6.3273       1.0000          .0000       .10000E+07
    21 'Prefactor '    .53016E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .57884E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .18169E-06   1.0000          .0000       .10000E+07
    24 'Normalizat'    .93268       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1949       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=   6209.854     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     2303 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27701E-05    85.195       -.29944E-05** at limit **
   2  Prefactor     29.373        22.169        .19566E-05    .54418E-02
   3  Prefactor     10.505        26.555       -.13673E-04   -.16597E-01
   4  Prefactor     6.0595        8.1668       -.14424E-06    .28128E-03
   5  norm          .16653E-09    11.573       -.64858E-07** at limit **
   6  Prefactor      .0000        1.3540       -.25565E-08** at limit **
   7  Prefactor     6.1387        3.6934       -.80300E-07    .47160E-03
   8  norm          7.5489        3.0552       -.67726E-07   -.10513E-02
   9  Prefactor     1.5550        2.8411       -.80068E-07    .98323E-03
  10  norm          1.8863        10.202       -.34775E-06   -.59632E-04
  11  Prefactor     53.385        71.387        .40907E-06   -.95055E-02
  12  Prefactor     .55511E-10    11.655        .32133E-07** at limit **
  13  Prefactor     .67232        7.1930        .14089E-06    .83863E-03
  14  Prefactor     .15737E-04    420.02       -.35002E-04** at limit **
  15  Prefactor     10.031        294.23       -.57612E-04    .14502E-01
  16  norm          1.5626        .42077       -.45193E-07    .21814E-01
  17  Prefactor     .10926E-05    65.052        .35829E-05** at limit **
  18  Prefactor     38.402        24.218        .19158E-05    .55869E-02
  19  Prefactor     4.3643        39.180       -.77680E-05   -.43747E-01
  20  norm          6.2424        15.696       -.10764E-05    .41655E-03
  21  Prefactor      .0000        1.2900        .61933E-09** at limit **
  22  Prefactor     .11102E-09    13.306        .11217E-06** at limit **
  23  norm           .0000        .74184       -.81625E-08** at limit **
  24  Normalizat    .93366        .20746        .29087E-04    .68925E-03
  25  Prefactor     1.1965        .25065       -.10669E-04    .57771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77006e-06
  Prefactor  = 29.3727
  Prefactor  = 10.5049
  Prefactor  = 6.05946
  norm       = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 6.13867
  norm       = 7.54889
  Prefactor  = 1.55503
  norm       = 1.88633
  Prefactor  = 53.3848
  Prefactor  = 5.55112e-11
  Prefactor  = 0.672322
  Prefactor  = 1.57372e-05
  Prefactor  = 10.031
  norm       = 1.56265
  Prefactor  = 1.09257e-06
  Prefactor  = 38.4021
  Prefactor  = 4.36425
  norm       = 6.24236
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  norm       = 0
  Normalizat = 0.933664
  Prefactor  = 1.19647
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.854     FROM HESSE     STATUS=OK           489 CALLS     2792 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27701E-05    86.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.373        22.235        .18456E-03   -1.5600    
   3  Prefactor     10.505        26.769        .31120E-03   -1.5643    
   4  Prefactor     6.0595        8.1832        .40581E-03   -1.5659    
   5  norm          .16653E-09    11.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.3515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1387        3.7053        .40415E-03   -1.5658    
   8  norm          7.5489        3.0559        .36457E-03   -1.5653    
   9  Prefactor     1.5550        2.8870        .85472E-03   -1.5683    
  10  norm          1.8863        10.616        .78739E-03   -1.5680    
  11  Prefactor     53.385        71.715        .12998E-03   -1.5562    
  12  Prefactor     .55511E-10    11.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .67232        7.4043        .61446E-03   -1.5692    
  14  Prefactor     .15737E-04    32.761        .14138E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.031        330.16        .29184E-03   -1.5645    
  16  norm          1.5626        .41809        .53987E-03   -1.5683    
  17  Prefactor     .10926E-05    65.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.402        24.072        .16186E-03   -1.5584    
  19  Prefactor     4.3643        238.10        .50167E-03   -1.5666    
  20  norm          6.2424        15.757        .39881E-03   -1.5658    
  21  Prefactor      .0000        1.2855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11102E-09    13.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .73945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93366        .17682        .45318E-01   -.95287    
  25  Prefactor     1.1965        .21274        .64407E-01   -.86440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5551e-06
Minuit parameter uncertainties:
  1  0.0309247
  2  22.2355
  3  26.7693
  4  8.18323
  5  8.07529e-05
  6  3.30246e-06
  7  3.70527
  8  3.0559
  9  2.88699
  10  8.95004
  11  71.7161
  12  6.05392e-05
  13  4.46231
  14  0.0454122
  15  115.104
  16  0.418092
  17  0.0169175
  18  24.072
  19  64.4738
  20  15.7568
  21  4.67013e-06
  22  7.19622e-05
  23  2.36777e-06
  24  0.176927
  25  0.212895
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  6.723e-01  4.462e+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:  1.196e+00  2.129e-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.337e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/94603/likelihoodResults_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.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) = 6209.64742692
delta logL = 0.206442131898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.63760965
delta logL = 0.216259401313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73361       1.0000          .0000       .10000E+07
     2 'Index     '    3.6306       1.0000          .0000       10.000    
     3 'Normalizat'    .90107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2202       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6209.638     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      238 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73347        9.3056        .99948E-05   -.21673E-01
   2  Index         3.6308        3.8117        .99709E-02   -.16691E-03
   3  Normalizat    .90112        .20205        .25393E-03   -.53555E-03
   4  Prefactor     1.2202        .25261        .28249E-03   -.35241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.733468
  Index      = 3.63082
  Normalizat = 0.901122
  Prefactor  = 1.22018
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.638     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73347        2.3279        .39979E-06   -1.5691    
   2  Index         3.6308        1.9033        .39884E-03   -.27738    
   3  Normalizat    .90112        .20219        .50787E-04   -.96421    
   4  Prefactor     1.2202        .25166        .56498E-04   -.85712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35222e-09
Minuit parameter uncertainties:
  1  2.32787
  2  1.95684
  3  0.202356
  4  0.251913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94603': 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) = 6209.63760937
delta logL = 0.21625967728

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  7.335e-01  2.328e+00  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  3.631e+00  1.957e+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:  1.220e+00  2.519e-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.011e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/94603/cmap_HighResolution_682300801_682560001_4FGL_J1033.1+4115_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2022-09-16 15:39:16.840386', job_id='94603', GAL2='1.22', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1663367956.84', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.16e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1709' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:39:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 94603: <4FGL_J1033.1+4115_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1709> 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) <bullet0094>, 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:39:17 2022
Results reported at Fri Sep 16 15:39:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1709 158.275 41.262 682300801 682560001 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 :                                   717.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            841 sec.

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

