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


Performing analysis on: 4FGL_J1033.9+6050_daily_bin1754
RA = 158.485, Dec = 60.8493
tmin = 693964801, tmax = 694224001
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='640631', job_status='RUN', time_executed='2023-01-01 01:05:29.146666', time_epoch_executed='1672563929.15' WHERE source_name='4FGL J1033.9+6050' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640631

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640631/ft1_4FGL_J1033.9+6050_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640631/ft1_4FGL_J1033.9+6050_daily_bin1754.fits outfile=/scratch/kocevski/640631/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1754.fits ra=158.485 dec=60.8493 rad=12.0 tmin=693964801.0 tmax=694224001.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.27
user 3.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.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/640631/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.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.46
user 0.29
sys 0.16

Number of photons that the gtmktime cut: 332

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/640631/ltcube_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.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/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits
.....................!
real 13.38
user 12.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/640631/ltcube_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.fits outfile=/scratch/kocevski/640631/expmap_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.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/640631/ltcube_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.fits
.....................!
real 157.53
user 152.09
sys 4.44

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/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.fits scfile=/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits outfile=/scratch/kocevski/640631/cmap_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.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.49
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.fits scfile=/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits outfile=/scratch/kocevski/640631/cmap_HighResolution_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.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.49
user 0.33
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.fits', '/scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits', expMap='/scratch/kocevski/640631/expmap_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.fits', expCube='/scratch/kocevski/640631/ltcube_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640631/Model_4FGL_J1033.9+6050_daily_bin1754.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/640631/ft1_filtered_4FGL_J1033.9+6050_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/640631/ft2_4FGL_J1033.9+6050_daily_bin1754.fits
Exposure map: /scratch/kocevski/640631/expmap_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.fits
Exposure cube: /scratch/kocevski/640631/ltcube_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640631/Model_4FGL_J1033.9+6050_daily_bin1754.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) = 3601.0617975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83267E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26889E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .16531E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11807E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.995       1.0000          .0000       .10000E+07
     6 'norm      '    .16639E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10338E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.7523       1.0000          .0000       .10000E+07
     9 'Prefactor '    .68247E-05   1.0000          .0000       .10000E+07
    10 'norm      '    2.7009       1.0000          .0000       .10000E+07
    11 'norm      '    4.9473       1.0000          .0000       .10000E+07
    12 'Prefactor '    .30042E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .93793E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .60376       1.0000          .0000       .10000E+07
    15 'norm      '    8.4547       1.0000          .0000       .10000E+07
    16 'norm      '    .27750E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.7775       1.0000          .0000       .10000E+07
    18 'Prefactor '    22.033       1.0000          .0000       .10000E+07
    19 'norm      '    .70574E-01   1.0000          .0000       .10000E+07
    20 'norm      '    1.1254       1.0000          .0000       .10000E+07
    21 'Prefactor '    .84244E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .59134       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11548E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .67956E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    25.176       1.0000          .0000       .10000E+07
    26 'Prefactor '    .18740E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .15251E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .28026E-04   1.0000          .0000       .10000E+07
    29 'norm      '    8.6798       1.0000          .0000       .10000E+07
    30 'norm      '    1.3275       1.0000          .0000       .10000E+07
    31 'Prefactor '    .18130E-02   1.0000          .0000       .10000E+07
    32 'Prefactor '    .49794E-02   1.0000          .0000       .10000E+07
    33 'Prefactor '    15.901       1.0000          .0000       .10000E+07
    34 'Normalizat'    .70486       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3601.043     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     3839 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0277       -.13593E-09** at limit **
   2  Prefactor      .0000        7.0677        .23231E-08** at limit **
   3  Prefactor      .0000        1.7017       -.52616E-08** at limit **
   4  Prefactor      .0000        39.996        .83304E-07** at limit **
   5  Prefactor     12.992        9.1342        .14292E-09   -.37605E-04
   6  norm           .0000        7.1358        .47644E-08** at limit **
   7  Prefactor      .0000        11.435        .11765E-07** at limit **
   8  norm          1.7534        .85207        .46737E-09   -.61139E-04
   9  Prefactor      .0000        2.7588        .39514E-08** at limit **
  10  norm          2.7004        1.3542       -.11086E-08    .46508E-03
  11  norm          4.9463        3.6584       -.51071E-09    .88431E-05
  12  Prefactor     .11102E-09    43.705       -.17382E-06** at limit **
  13  norm           .0000        22.027       -.29678E-08** at limit **
  14  Prefactor     .20928E-07    3603.9        .14542E-05** at limit **
  15  norm          8.5192        4.2163        .97248E-07    .16792E-03
  16  norm           .0000        1.0691       -.16113E-08** at limit **
  17  Prefactor     24.599        1645.9        .75847E-06    .56992E-04
  18  Prefactor     22.003        11.869        .10740E-08    .70774E-04
  19  norm          .73108E-01    3.8502        .70461E-08** at limit **
  20  norm          1.1022        2.4422        .20967E-08    .26985E-04
  21  Prefactor      .0000        73.036        .11949E-07** at limit **
  22  norm          .59329        2.3386        .14285E-08    .14904E-04
  23  Prefactor     .33307E-09    213.67       -.30148E-06** at limit **
  24  Prefactor     .55511E-10    47.575        .11621E-06** at limit **
  25  Prefactor     25.205        13.993       -.47962E-08    .16174E-04
  26  Prefactor      .0000        15.429       -.11770E-07** at limit **
  27  Prefactor      .0000        10.976       -.15542E-07** at limit **
  28  Prefactor      .0000        3.4730        .13042E-08** at limit **
  29  norm          8.6850        9.5724        .21518E-08   -.21166E-04
  30  norm          1.3347        4.5543       -.85361E-08    .10555E-04
  31  Prefactor      .0000        10.785        .77244E-08** at limit **
  32  Prefactor      .0000        17.592        .14600E-07** at limit **
  33  Prefactor     15.875        29.142       -.49355E-07    .39106E-04
  34  Normalizat    .70450        .24869        .14247E-05    .16311E-04
  35  Prefactor     1.0980        .26069       -.76794E-06    .16114E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 12.992
  norm       = 0
  Prefactor  = 0
  norm       = 1.75336
  Prefactor  = 0
  norm       = 2.70038
  norm       = 4.94626
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 2.09277e-08
  norm       = 8.51921
  norm       = 0
  Prefactor  = 24.5991
  Prefactor  = 22.0035
  norm       = 0.0731081
  norm       = 1.10219
  Prefactor  = 0
  norm       = 0.593289
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 25.2054
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 8.685
  norm       = 1.33475
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.875
  Normalizat = 0.704499
  Prefactor  = 1.09802
 **********
 **   18 **HESSE 
 **********

 FCN=   3601.043     FROM HESSE     STATUS=OK           850 CALLS     4689 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        7.0832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.7024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        39.458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.992        9.1392        .27762E-03   -1.5636    
   6  norm           .0000        7.1440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        11.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7534        .84932        .79166E-03   -1.5681    
   9  Prefactor      .0000        2.7670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7004        1.3571        .61959E-03   -1.5675    
  11  norm          4.9463        3.6535        .45193E-03   -1.5663    
  12  Prefactor     .11102E-09    43.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        22.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .20928E-07    55.978        .89888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5192        4.9479        .34452E-03   -1.5650    
  16  norm           .0000        1.0726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.599        1698.3        .32023E-03   -1.5609    
  18  Prefactor     22.003        9.1398        .21310E-03   -1.5614    
  19  norm          .73108E-01    .54119        .23600E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1022        2.5371        .11038E-02   -1.5687    
  21  Prefactor      .0000        73.054        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .59329        2.3631        .70007E-03   -1.5693    
  23  Prefactor     .33307E-09    215.07        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-10    47.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.205        13.892        .19934E-03   -1.5608    
  26  Prefactor      .0000        15.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        10.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        3.4483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.6850        9.5744        .33999E-03   -1.5649    
  30  norm          1.3347        4.5949        .95333E-03   -1.5685    
  31  Prefactor      .0000        10.784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor      .0000        17.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     15.875        28.938        .25091E-03   -1.5628    
  34  Normalizat    .70450        .21682        .60779E-01   -1.0372    
  35  Prefactor     1.0980        .22390        .55390E-01   -.89530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49859e-09
Minuit parameter uncertainties:
  1  3.16914e-08
  2  4.41499e-07
  3  6.34259e-07
  4  5.83445e-05
  5  9.13921
  6  1.2847e-06
  7  4.62428e-06
  8  0.849317
  9  6.09325e-07
  10  1.35715
  11  3.65351
  12  0.000121652
  13  1.50729e-06
  14  0.00216393
  15  4.94795
  16  1.5265e-07
  17  408.903
  18  9.13979
  19  0.39782
  20  2.53707
  21  1.30028e-05
  22  2.36313
  23  0.000515831
  24  8.74198e-05
  25  13.8917
  26  5.05636e-06
  27  6.67139e-06
  28  2.36072e-07
  29  9.57441
  30  4.59488
  31  2.99065e-06
  32  7.12561e-06
  33  28.9382
  34  0.217081
  35  0.224089
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  8.519e+00  4.948e+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:  1.098e+00  2.241e-01  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:  7.045e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.10
Ra Dec: 158.485 60.849
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.66e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 4.78e-05 +/- 2.77e-05

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) = 3601.0227757
delta logL = 0.0201411815156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3601.01542165
delta logL = 0.0274952329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0990       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0262       1.0000          .0000       5.0000    
     3 'Normalizat'    .71218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0930       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.

 FCN=   3601.015     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1021        114.65        .33202E-03   -.17451E-03
   2  alpha         2.0267        3.0946        .22291        .33354E-04
   3  Normalizat    .71202        .22011        .42453E-01   -.14125E-03
   4  Prefactor     1.0932        .16289        .55499E-01   -.17424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.10209
  alpha      = 2.02667
  Normalizat = 0.712023
  Prefactor  = 1.09319
 **********
 **   18 **HESSE 
 **********

 FCN=   3601.015     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1021        5.1338        .87857E-05   -1.5648    
   2  alpha         2.0267        .47238        .90086E-02   -.19048    
   3  Normalizat    .71202        .22912        .26735E-03   -1.0342    
   4  Prefactor     1.0932        .25426        .24539E-03   -.89685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71357e-11
Minuit parameter uncertainties:
  1  5.1338
  2  0.475346
  3  0.229429
  4  0.254543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640631': 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) = 3601.01542039
delta logL = 0.0274964874684

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  9.102e+00  5.134e+00  0.000e+00  1.000e+06 ( 1.000e-12)
422        alpha:  2.027e+00  4.753e-01  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:  1.093e+00  2.545e-01  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:  7.120e-01  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.10
Ra Dec: 158.485 60.849
Photon Index (Free Index): 2.03 +/- 0.48
Photon Flux (Free Index): 8.87e-08 +/- 5.55e-08
Energy Flux (Free Index): 5.25e-05 +/- 3.52e-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/640631/cmap_HighResolution_693964801_694224001_4FGL_J1033.9+6050_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.66e-08', energy_flux2='5.25e-05', photon_flux_error='5.61e-08', dlogl='2.75e-02', energy_flux='4.78e-05', photon_flux2='8.87e-08', job_status='DONE', time_completed='2023-01-01 01:15:22.970585', photon_index_error2='0.48', photon_index2='2.03', ts='15.10', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='3.52e-05', EG='0.70', time_epoch_completed='1672564522.97', return_code='0', job_id='640631', GAL2='1.09', EG2='0.71', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='5.55e-08', ts2='15.10', photon_index='2.14' WHERE bin_id='1754' AND source_name='4FGL J1033.9+6050' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:15:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 640631: <4FGL_J1033.9+6050_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1033.9+6050_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 01:00:23 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:02:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:02:47 2023
Terminated at Sun Jan  1 01:15:23 2023
Results reported at Sun Jan  1 01:15:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.9+6050_daily_bin1754 158.485 60.8493 693964801 694224001 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 :                                   593.50 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             275.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            900 sec.

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

