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


Performing analysis on: 4FGL_J0159.0+3313_daily_bin1729
RA = 29.7665, Dec = 33.2175
tmin = 687484801, tmax = 687744001
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='369135', job_status='RUN', time_executed='2022-10-18 00:06:11.769132', time_epoch_executed='1666076771.77' WHERE source_name='4FGL J0159.0+3313' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369135/ft1_4FGL_J0159.0+3313_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369135/ft1_4FGL_J0159.0+3313_daily_bin1729.fits outfile=/scratch/kocevski/369135/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1729.fits ra=29.7665 dec=33.2175 rad=12.0 tmin=687484801.0 tmax=687744001.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.95
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.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/369135/ft1_filteredMKT_4FGL_J0159.0+3313_daily_bin1729.fits evtable="EVENTS" outfile="/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.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.81
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 394

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/369135/ltcube_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.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/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits
.....................!
real 16.33
user 15.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/369135/ltcube_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.fits outfile=/scratch/kocevski/369135/expmap_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.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/369135/ltcube_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.fits
.....................!
real 193.05
user 185.87
sys 5.52

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

Setting source of interest to:
4FGL J0159.0+3313 @ 29.7665 33.2175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits scfile=/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits outfile=/scratch/kocevski/369135/cmap_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.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=29.7665 yref=33.2175 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 2.41
user 0.36
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits scfile=/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits outfile=/scratch/kocevski/369135/cmap_HighResolution_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.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=29.7665 yref=33.2175 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 1.01
user 0.34
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369135/Model_4FGL_J0159.0+3313_daily_bin1729.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/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits.....................!
real 71.71
user 50.22
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits', '/scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits', expMap='/scratch/kocevski/369135/expmap_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.fits', expCube='/scratch/kocevski/369135/ltcube_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369135/Model_4FGL_J0159.0+3313_daily_bin1729.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.0+3313'

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  1.345e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/369135/ft1_filtered_4FGL_J0159.0+3313_daily_bin1729.fits
Spacecraft file(s): /scratch/kocevski/369135/ft2_4FGL_J0159.0+3313_daily_bin1729.fits
Exposure map: /scratch/kocevski/369135/expmap_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.fits
Exposure cube: /scratch/kocevski/369135/ltcube_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369135/Model_4FGL_J0159.0+3313_daily_bin1729.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) = 4159.40672746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9277       1.0000          .0000       .10000E+07
     2 'Prefactor '    .45909E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    48.961       1.0000          .0000       .10000E+07
     4 'norm      '    2.5603       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42587       1.0000          .0000       .10000E+07
     6 'norm      '    .24425E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7472       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7823       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42518E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .41137E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    91.783       1.0000          .0000       .10000E+07
    12 'norm      '    .12795E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19698E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15270E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .66030E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .20672E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .54914       1.0000          .0000       .10000E+07
    18 'norm      '    .23759E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .59966E-04   1.0000          .0000       .10000E+07
    20 'norm      '    24.519       1.0000          .0000       .10000E+07
    21 'norm      '    .38821       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17694       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.5995       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4159.399     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2141 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9277        2.8996       -.96653E-08   -.68082E-03
   2  Prefactor      .0000        30.883       -.27006E-06** at limit **
   3  Prefactor     48.997        3.5756       -.42343E-07   -.21854E-01
   4  norm          2.5603        2.1428        .82956E-07   -.32489E-03
   5  Prefactor     .28963E-04    61.455        .14641E-06** at limit **
   6  norm           .0000        .29994       -.21288E-07** at limit **
   7  Prefactor     2.7703        21.114        .13402E-06   -.53299E-01
   8  Prefactor     1.7958        45.030       -.16808E-05   -.17553E-01
   9  Prefactor     .68523E-05    36.590       -.14358E-05** at limit **
  10  Prefactor      .0000        15.427        .14344E-06** at limit **
  11  Prefactor     92.162        98.992       -.62889E-06   -.25277E-01
  12  norm           .0000        1.3668        .18490E-06** at limit **
  13  Prefactor      .0000        2.3616       -.95307E-07** at limit **
  14  Prefactor     .61062E-09    3.1771       -.12311E-06** at limit **
  15  norm           .0000        2.4617       -.45737E-07** at limit **
  16  norm           .0000        .47025        .43771E-07** at limit **
  17  norm          .11215E-04    111.19       -.29275E-06** at limit **
  18  norm           .0000        .26038       -.36667E-07** at limit **
  19  Prefactor     .35139E-07    19.774        .76616E-06** at limit **
  20  norm          24.426        11.254        .74270E-07   -.78977E-02
  21  norm          .39407        2.3178       -.77410E-07   -.45063E-03
  22  Prefactor     .19540E-07    46.131        .39160E-06** at limit **
  23  Normalizat    1.5997        .34075       -.13222E-05    .15907E-04
  24  Prefactor     .73559        .17996        .10769E-05    .13013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92772
  Prefactor  = 0
  Prefactor  = 48.9974
  norm       = 2.56029
  Prefactor  = 2.89633e-05
  norm       = 0
  Prefactor  = 2.77028
  Prefactor  = 1.79583
  Prefactor  = 6.8523e-06
  Prefactor  = 0
  Prefactor  = 92.1622
  norm       = 0
  Prefactor  = 0
  Prefactor  = 6.10623e-10
  norm       = 0
  norm       = 0
  norm       = 1.12154e-05
  norm       = 0
  Prefactor  = 3.51386e-08
  norm       = 24.4259
  norm       = 0.394071
  Prefactor  = 1.95399e-08
  Normalizat = 1.59971
  Prefactor  = 0.73559
 **********
 **   18 **HESSE 
 **********

 FCN=   4159.399     FROM HESSE     STATUS=OK           451 CALLS     2592 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9277        2.8887        .41221E-03   -1.5659    
   2  Prefactor      .0000        30.823        .15707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.997        25.260        .14293E-03   -1.5568    
   4  norm          2.5603        2.1518        .63775E-03   -1.5676    
   5  Prefactor     .28963E-04    86.542        .86549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .29841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7703        34.244        .61395E-03   -1.5675    
   8  Prefactor     1.7958        56.650        .78353E-03   -1.5681    
   9  Prefactor     .68523E-05    7.2976        .49724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        15.338        .15913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     92.162        107.01        .10439E-03   -1.5516    
  12  norm           .0000        1.3711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.3636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .61062E-09    3.1800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.4549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .46272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11215E-04    120.90        .73913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .16545        .14029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .35139E-07    19.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          24.426        11.299        .20200E-03   -1.5609    
  21  norm          .39407        2.3037        .90866E-03   -1.5695    
  22  Prefactor     .19540E-07    46.073        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5997        .29645        .64856E-01   -.75014    
  24  Prefactor     .73559        .15431        .42873E-01   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06902e-06
Minuit parameter uncertainties:
  1  2.88875
  2  4.07777e-05
  3  25.2603
  4  2.15181
  5  0.100132
  6  1.05238e-07
  7  19.4799
  8  20.1728
  9  0.0141429
  10  1.18551e-05
  11  107.008
  12  3.5083e-06
  13  2.37728e-06
  14  8.99553e-05
  15  5.98036e-06
  16  2.42212e-07
  17  0.0736468
  18  2.67368e-07
  19  0.00166343
  20  11.2989
  21  1.90559
  22  0.00189839
  23  0.296779
  24  0.154405
Done.

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

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  0.000e+00  1.186e-05  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  1.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  7.356e-01  1.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.600e+00  2.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 29.767 33.218
Photon Flux Upper Limit: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369135/likelihoodResults_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.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) = 4159.43038956
delta logL = -0.0311538182941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4159.39923599
delta logL = -2.45675437327e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21630E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .62620       1.0000          .0000       10.000    
     3 'Normalizat'    1.5995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4159.399     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      206 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.224       -.79277E-05** at limit **
   2  Index         1.8474        5.5818        .53907E-03     .0000    
   3  Normalizat    1.5997        .32570       -.82410E-05   -.74280E-04
   4  Prefactor     .73559        .17781        .78912E-06   -.23275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.84736
  Normalizat = 1.59971
  Prefactor  = 0.735588
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4159.399     FROM HESSE     STATUS=FAILED        11 CALLS      217 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .35402        1.7598        .53907E-03   -.68223    
   3  Normalizat    1.5997        1.0407       -.82410E-05   -.75014    
   4  Prefactor     .73559        1.0853        .78912E-06   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.41204e-11
Minuit parameter uncertainties:
  1  1.67008e-06
  2  1.60706
  3  1.05534
  4  1.11924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369135': 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) = 4159.39923574
delta logL = -5.72981662117e-11

Extracting fit parameters...

4FGL J0159.0+3313
   Spectrum: PowerLaw
265    Prefactor:  0.000e+00  1.670e-06  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  1.847e+00  1.607e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  7.356e-01  1.119e+00  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.600e+00  1.055e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 29.767 33.218

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/369135/cmap_HighResolution_687484801_687744001_4FGL_J0159.0+3313_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2022-10-18 00:15:47.315433', job_id='369135', GAL2='0.74', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1666077347.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-5.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1729' AND source_name='4FGL J0159.0+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:15:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 369135: <4FGL_J0159.0+3313_daily_bin1729> in cluster <slac> Done

Job <4FGL_J0159.0+3313_daily_bin1729> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Oct 18 00:05:14 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:05:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:05:15 2022
Terminated at Tue Oct 18 00:15:48 2022
Results reported at Tue Oct 18 00:15:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.0+3313_daily_bin1729 29.7665 33.2175 687484801 687744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.0+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   543.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            634 sec.

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

