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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1757
RA = 158.275, Dec = 41.262
tmin = 694742401, tmax = 695001601
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='193027', job_status='RUN', time_executed='2023-01-10 00:46:02.653649', time_epoch_executed='1673340362.65' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193027/ft1_4FGL_J1033.1+4115_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193027/ft2_4FGL_J1033.1+4115_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193027/ft1_4FGL_J1033.1+4115_daily_bin1757.fits outfile=/scratch/kocevski/193027/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1757.fits ra=158.275 dec=41.262 rad=12.0 tmin=694742401.0 tmax=695001601.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.92
user 2.64
sys 0.22

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

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

Number of photons that the gtmktime cut: 462

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193027/ft1_filtered_4FGL_J1033.1+4115_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/193027/ft2_4FGL_J1033.1+4115_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/193027/ltcube_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.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/193027/ft2_4FGL_J1033.1+4115_daily_bin1757.fits
.....................!
real 16.20
user 15.65
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193027/ft1_filtered_4FGL_J1033.1+4115_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/193027/ft2_4FGL_J1033.1+4115_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/193027/ltcube_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.fits outfile=/scratch/kocevski/193027/expmap_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.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/193027/ltcube_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.fits
.....................!
real 195.84
user 187.69
sys 6.51

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/193027/ft1_filtered_4FGL_J1033.1+4115_daily_bin1757.fits scfile=/scratch/kocevski/193027/ft2_4FGL_J1033.1+4115_daily_bin1757.fits outfile=/scratch/kocevski/193027/cmap_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193027/ft1_filtered_4FGL_J1033.1+4115_daily_bin1757.fits scfile=/scratch/kocevski/193027/ft2_4FGL_J1033.1+4115_daily_bin1757.fits outfile=/scratch/kocevski/193027/cmap_HighResolution_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38221E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    18.975       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15954E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20795E-02   1.0000          .0000       .10000E+07
     5 'norm      '    36.234       1.0000          .0000       .10000E+07
     6 'Prefactor '    .43172E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3815       1.0000          .0000       .10000E+07
     8 'norm      '    1.4927       1.0000          .0000       .10000E+07
     9 'Prefactor '    .61126E-04   1.0000          .0000       .10000E+07
    10 'norm      '    1.0987       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19684E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    36.086       1.0000          .0000       .10000E+07
    13 'Prefactor '    .63985E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25803E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .24130E-03   1.0000          .0000       .10000E+07
    16 'norm      '    2.1072       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.1875       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20453E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .10754       1.0000          .0000       .10000E+07
    20 'norm      '    3.4669       1.0000          .0000       .10000E+07
    21 'Prefactor '    .24480E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .27892E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .14277       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1906       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93896       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=   5053.425     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2167 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-08    9.4388       -.15103E-05** at limit **
   2  Prefactor     22.093        50.983        .24444E-05   -.33745E-01
   3  Prefactor     .28787E-04    31.925        .30185E-05** at limit **
   4  Prefactor     .25813E-07    12.268       -.30851E-06** at limit **
   5  norm          36.154        1.7818        .61083E-07    .19701E-02
   6  Prefactor     .16653E-09    4.1547       -.11264E-05** at limit **
   7  Prefactor     2.4126        5.9769        .29397E-06    .15245E-02
   8  norm          1.4976        2.4534       -.16785E-06   -.62442E-02
   9  Prefactor     .55511E-10    8.9384        .24819E-07** at limit **
  10  norm          1.1369        3.4328       -.12459E-05   -.19978E-01
  11  Prefactor     .10307E-03    30.973        .46087E-05** at limit **
  12  Prefactor     36.365        10.808        .94054E-06   -.11529    
  13  Prefactor      .0000        4.2328        .33268E-06** at limit **
  14  Prefactor     .77049E-07    14.266       -.12501E-05** at limit **
  15  Prefactor     .14951E-05    26.408        .40450E-05** at limit **
  16  norm          2.1052        .41684        .14925E-06    .87005E-02
  17  Prefactor     1.5936        9.3178       -.14721E-05    .33789E-03
  18  Prefactor     .26267E-05    21.884       -.23081E-05** at limit **
  19  Prefactor     .45519E-08    44.841        .13059E-06** at limit **
  20  norm          3.3771        8.2918       -.14166E-05   -.82062E-02
  21  Prefactor      .0000        .92600       -.49887E-06** at limit **
  22  Prefactor     .22671E-05    19.913        .52628E-05** at limit **
  23  norm          .11368        11.189        .40824E-05** at limit **
  24  Normalizat    1.1871        .22707       -.14485E-04    .47249E-04
  25  Prefactor     .94120        .27368        .16922E-05    .53751E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-09
  Prefactor  = 22.0927
  Prefactor  = 2.87866e-05
  Prefactor  = 2.58127e-08
  norm       = 36.1544
  Prefactor  = 1.66533e-10
  Prefactor  = 2.4126
  norm       = 1.49759
  Prefactor  = 5.55112e-11
  norm       = 1.13692
  Prefactor  = 0.000103071
  Prefactor  = 36.3654
  Prefactor  = 0
  Prefactor  = 7.70495e-08
  Prefactor  = 1.49514e-06
  norm       = 2.10522
  Prefactor  = 1.59361
  Prefactor  = 2.62673e-06
  Prefactor  = 4.55191e-09
  norm       = 3.37708
  Prefactor  = 0
  Prefactor  = 2.26708e-06
  norm       = 0.113685
  Normalizat = 1.18712
  Prefactor  = 0.941195
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.425     FROM HESSE     STATUS=OK           481 CALLS     2648 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-08    9.4229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.093        54.960        .22965E-03   -1.5614    
   3  Prefactor     .28787E-04    64.853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25813E-07    12.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          36.154        24.818        .16615E-03   -1.5588    
   6  Prefactor     .16653E-09    4.1421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4126        6.0145        .66351E-03   -1.5677    
   8  norm          1.4976        2.4817        .87689E-03   -1.5683    
   9  Prefactor     .55511E-10    8.9146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1369        47.504        .11345E-02   -1.5687    
  11  Prefactor     .10307E-03    82.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.365        60.477        .16649E-03   -1.5587    
  13  Prefactor      .0000        4.2165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .77049E-07    14.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14951E-05    71.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1052        .44087        .43688E-03   -1.5679    
  17  Prefactor     1.5936        59.679        .10460E-02   -1.5683    
  18  Prefactor     .26267E-05    23.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .45519E-08    44.803        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3771        12.616        .54287E-03   -1.5671    
  21  Prefactor      .0000        .91957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .22671E-05    21.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11368        1.3265        .50991E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1871        .19595        .51951E-01   -.87002    
  25  Prefactor     .94120        .23055        .70946E-01   -.94716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40798e-06
Minuit parameter uncertainties:
  1  0.000324857
  2  54.9612
  3  0.0864163
  4  0.00112922
  5  24.8185
  6  5.45316e-05
  7  6.01449
  8  2.48175
  9  4.04006e-05
  10  14.6982
  11  0.184528
  12  60.4778
  13  1.26729e-05
  14  0.00210415
  15  0.0206707
  16  0.440867
  17  19.5045
  18  0.015554
  19  0.000904006
  20  12.6159
  21  4.90617e-06
  22  0.0138174
  23  0.77667
  24  0.196075
  25  0.230794
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  1.267e-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:  9.412e-01  2.308e-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.187e+00  1.961e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193027/likelihoodResults_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.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) = 5053.42602936
delta logL = -0.00100351826768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.42502652
delta logL = -6.80583070789e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19607E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5868       1.0000          .0000       10.000    
     3 'Normalizat'    1.1873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94089       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=   5053.425     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      237 TOTAL
                     EDM=   .12E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7833       -.38610E-06** at limit **
   2  Index         2.8046        1.8223        .17782E-04     .0000    
   3  Normalizat    1.1871        .21758        .26257E-05   -.11029E-04
   4  Prefactor     .94120        .27063       -.43946E-05   -.46359E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.80456
  Normalizat = 1.18712
  Prefactor  = 0.941196
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5053.425     FROM HESSE     STATUS=FAILED        11 CALLS      248 TOTAL
                     EDM=   .12E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .89095        2.0046        .17782E-04   -.45458    
   3  Normalizat    1.1871        1.1108        .26257E-05   -.87002    
   4  Prefactor     .94120        1.2838       -.43946E-05   -.94716    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.16421e-13
Minuit parameter uncertainties:
  1  1.0973e-06
  2  1.29777
  3  1.13406
  4  1.32928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193027': 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) = 5053.42502584
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  0.000e+00  1.097e-06  0.000e+00  1.000e+06 ( 1.000e-12)
340        Index:  2.805e+00  1.298e+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:  9.412e-01  1.329e+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:  1.187e+00  1.134e+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/193027/cmap_HighResolution_694742401_695001601_4FGL_J1033.1+4115_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2023-01-10 00:56:47.340450', job_id='193027', GAL2='0.94', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1673341007.34', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1757' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 00:56:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 193027: <4FGL_J1033.1+4115_daily_bin1757> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 00:40:14 2023
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:44:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:44:48 2023
Terminated at Tue Jan 10 00:56:48 2023
Results reported at Tue Jan 10 00:56:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1757 158.275 41.262 694742401 695001601 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 :                                   643.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            994 sec.

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

