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


Performing analysis on: 4FGL_J1033.9+6050_daily_bin1774
RA = 158.485, Dec = 60.8493
tmin = 699148801, tmax = 699408001
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='678907', job_status='RUN', time_executed='2023-03-02 00:32:36.346160', time_epoch_executed='1677745956.35' WHERE source_name='4FGL J1033.9+6050' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678907/ft1_4FGL_J1033.9+6050_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678907/ft1_4FGL_J1033.9+6050_daily_bin1774.fits outfile=/scratch/kocevski/678907/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1774.fits ra=158.485 dec=60.8493 rad=12.0 tmin=699148801.0 tmax=699408001.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.84
user 2.63
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.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/678907/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.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.50
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 272

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/678907/ltcube_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.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/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits
.....................!
real 12.63
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/678907/ltcube_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.fits outfile=/scratch/kocevski/678907/expmap_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.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/678907/ltcube_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.fits
.....................!
real 191.68
user 185.18
sys 5.98

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 246 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.9+6050 @ 158.485 60.8493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits scfile=/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits outfile=/scratch/kocevski/678907/cmap_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.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.485 yref=60.8493 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits scfile=/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits outfile=/scratch/kocevski/678907/cmap_HighResolution_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.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.485 yref=60.8493 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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/678907/Model_4FGL_J1033.9+6050_daily_bin1774.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/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits.....................!
real 41.61
user 40.38
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits', '/scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits', expMap='/scratch/kocevski/678907/expmap_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.fits', expCube='/scratch/kocevski/678907/ltcube_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678907/Model_4FGL_J1033.9+6050_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.9+6050'

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  4.658e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/678907/ft1_filtered_4FGL_J1033.9+6050_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/678907/ft2_4FGL_J1033.9+6050_daily_bin1774.fits
Exposure map: /scratch/kocevski/678907/expmap_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.fits
Exposure cube: /scratch/kocevski/678907/ltcube_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678907/Model_4FGL_J1033.9+6050_daily_bin1774.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) = 2466.41389976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19721E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .75347E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11371E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     6 'norm      '    .14723E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11054       1.0000          .0000       .10000E+07
     8 'norm      '    .39935E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .66507       1.0000          .0000       .10000E+07
    10 'norm      '    .42676       1.0000          .0000       .10000E+07
    11 'norm      '    .25850E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33293E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .24083E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .26784E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .57832       1.0000          .0000       .10000E+07
    16 'norm      '    .16801E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    41.718       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70382E-05   1.0000          .0000       .10000E+07
    19 'norm      '    3.7274       1.0000          .0000       .10000E+07
    20 'norm      '    .25463E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .64754E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .28722E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .63182E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    .67851E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .65115E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    49.594       1.0000          .0000       .10000E+07
    27 'Prefactor '    .19139E-03   1.0000          .0000       .10000E+07
    28 'Prefactor '    2.3407       1.0000          .0000       .10000E+07
    29 'norm      '    19.922       1.0000          .0000       .10000E+07
    30 'norm      '    .57899E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    .19967E-02   1.0000          .0000       .10000E+07
    32 'Prefactor '    19.933       1.0000          .0000       .10000E+07
    33 'Prefactor '    31.282       1.0000          .0000       .10000E+07
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .27488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2466.412     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     5863 TOTAL
                     EDM=   .25E-06  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.7828         .0000    ** at limit **
   2  Prefactor      .0000        2.0214         .0000    ** at limit **
   3  Prefactor     .10000E+07    1948.5         .0000    ** at limit **
   4  Prefactor     .55511E-10    7.7951         .0000    ** at limit **
   5  Prefactor     .10000E+07    2610.8         .0000    ** at limit **
   6  norm          .24464E-06    109.59         .0000    ** at limit **
   7  Prefactor     .55306E-05    160.82         .0000    ** at limit **
   8  norm           .0000        2.9147         .0000    ** at limit **
   9  Prefactor     .62756E-04    738.14         .0000    ** at limit **
  10  norm          .42656        .42083         .0000       -.57476E-03
  11  norm          .42188E-06    82.515         .0000    ** at limit **
  12  Prefactor     .18541E-07    123.27         .0000    ** at limit **
  13  norm           .0000        12.974         .0000    ** at limit **
  14  Prefactor      .0000        18.442         .0000    ** at limit **
  15  norm          .58355        2.3006         .0000       -.15016E-03
  16  norm           .0000        2.0731         .0000    ** at limit **
  17  Prefactor     41.823        4.2014         .0000       -.53540E-02
  18  Prefactor      .0000        1.7043         .0000    ** at limit **
  19  norm          3.7275        .79498         .0000        .52465E-02
  20  norm           .0000        .50149         .0000    ** at limit **
  21  Prefactor     .69099E-05    71.361         .0000    ** at limit **
  22  norm           .0000        2.2919         .0000    ** at limit **
  23  Prefactor     .10723E-04    72.814         .0000    ** at limit **
  24  Prefactor     .55511E-10    9.9880         .0000    ** at limit **
  25  Prefactor      .0000        4.3327         .0000    ** at limit **
  26  Prefactor     49.600        31.282         .0000       -.12748E-01
  27  Prefactor     .34911E-03    197.11         .0000    ** at limit **
  28  Prefactor     2.3420        3.8472         .0000        .68520E-02
  29  norm          19.919        19.499         .0000        .69450E-01
  30  norm           .0000        3.5435         .0000    ** at limit **
  31  Prefactor     .55511E-10    7.3087         .0000    ** at limit **
  32  Prefactor     19.839        21.547         .0000        .30321E-01
  33  Prefactor     31.241        10.748         .0000       -.19753    
  34  Normalizat    .10000E-01    .28892E-01     .0000    ** at limit **
  35  Prefactor     .27510        .87581E-01     .0000        .24236E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1e+06
  Prefactor  = 5.55112e-11
  Prefactor  = 1e+06
  norm       = 2.44638e-07
  Prefactor  = 5.53058e-06
  norm       = 0
  Prefactor  = 6.27562e-05
  norm       = 0.426561
  norm       = 4.21885e-07
  Prefactor  = 1.85407e-08
  norm       = 0
  Prefactor  = 0
  norm       = 0.583551
  norm       = 0
  Prefactor  = 41.823
  Prefactor  = 0
  norm       = 3.72747
  norm       = 0
  Prefactor  = 6.90992e-06
  norm       = 0
  Prefactor  = 1.07226e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 49.6004
  Prefactor  = 0.000349106
  Prefactor  = 2.34199
  norm       = 19.9193
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 19.839
  Prefactor  = 31.2408
  Normalizat = 0.01
  Prefactor  = 0.275103
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.412     FROM HESSE     STATUS=OK           840 CALLS     6703 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.7868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.0221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E+07    4315.3        .11218E-01    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    7.8051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E+07    9247.2        .95949E-03    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .24464E-06    110.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55306E-05    162.02        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.9206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .62756E-04    760.55        .63590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .42656        .40846        .70578E-03   -1.5695    
  11  norm          .42188E-06    83.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18541E-07    123.23        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        12.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        18.375        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58355        2.3658        .71193E-03   -1.5693    
  16  norm           .0000        2.0731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.823        83.994        .15484E-03   -1.5579    
  18  Prefactor      .0000        1.7068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7275        .79551        .44790E-03   -1.5669    
  20  norm           .0000        .50151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .69099E-05    139.66        .14995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.2928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10723E-04    139.19        .15049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-10    9.9960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        4.3397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.600        31.997        .14201E-03   -1.5567    
  27  Prefactor     .34911E-03    18.716        .66404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.3420        3.9075        .66987E-03   -1.5677    
  29  norm          19.919        19.704        .22412E-03   -1.5619    
  30  norm           .0000        3.5408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .55511E-10    7.2993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     19.839        22.028        .22406E-03   -1.5619    
  33  Prefactor     31.241        27.564        .17882E-03   -1.5596    
  34  Normalizat    .10000E-01    .27462E-01    .11761       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .27510        .91241E-01    .55826E-01   -1.2375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89656e-06
Minuit parameter uncertainties:
  1  1.25476e-07
  2  1.25636e-06
  3  10.9974
  4  5.08728e-05
  5  29.8797
  6  0.0104077
  7  0.0598702
  8  3.87471e-06
  9  0.436997
  10  0.408465
  11  0.0118569
  12  0.00302449
  13  2.15236e-05
  14  2.14512e-05
  15  2.34995
  16  1.40166e-06
  17  83.9968
  18  1.37674e-06
  19  0.79551
  20  5.02347e-07
  21  0.0621318
  22  3.29108e-06
  23  0.077268
  24  5.6246e-05
  25  1.18845e-05
  26  31.9972
  27  0.161665
  28  3.90755
  29  19.7042
  30  5.11348e-06
  31  3.96818e-05
  32  22.028
  33  27.5638
  34  4.48808e-08
  35  0.0912887
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  5.836e-01  2.350e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  2.751e-01  9.129e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.000e-02  4.488e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 158.485 60.849
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678907/likelihoodResults_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.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) = 2466.411393
delta logL = 0.000631605124909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2466.40582541
delta logL = 0.00619919857718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50501       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3482       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+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=   2466.406     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      267 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50506        2.7488        .12705E-04   -.71677E-03
   2  alpha         2.3480        1.8632        .24854E-01    .62516E-04
   3  Normalizat    .10000E-01    .28870E-01    .49345E-02** at limit **
   4  Prefactor     .27476        .83982E-01    .24703E-03    .47494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.505059
  alpha      = 2.34804
  Normalizat = 0.01
  Prefactor  = 0.274755
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.406     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50506        2.3471        .50818E-06   -1.5694    
   2  alpha         2.3480        1.7545        .49707E-02   -.60821E-01
   3  Normalizat    .10000E-01    .28870E-01    .98691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27476        .83970E-01    .98813E-05   -1.2377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07294e-09
Minuit parameter uncertainties:
  1  2.17754
  2  1.94571
  3  3.19804e-06
  4  0.0840071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678907': 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) = 2466.40582539
delta logL = 0.00619921490397

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  5.051e-01  2.178e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  2.348e+00  1.946e+00  0.000e+00  5.000e+00 ( 1.000e+00)
423         beta:  9.680e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  2.748e-01  8.401e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.000e-02  3.198e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 158.485 60.849

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/678907/cmap_HighResolution_699148801_699408001_4FGL_J1033.9+6050_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2023-03-02 00:45:54.996260', job_id='678907', GAL2='0.27', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746755.0', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='6.20e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1774' AND source_name='4FGL J1033.9+6050' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:45:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 678907: <4FGL_J1033.9+6050_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1033.9+6050_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:30:27 2023
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:30:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:30:30 2023
Terminated at Thu Mar  2 00:45:55 2023
Results reported at Thu Mar  2 00:45:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.9+6050_daily_bin1774 158.485 60.8493 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.9+6050 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.39 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             296.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

