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 107 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1672
RA = 29.1325, Dec = 39.2493
tmin = 672710401, tmax = 672969601
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='154032', job_status='RUN', time_executed='2022-04-30 00:13:43.568589', time_epoch_executed='1651302823.57' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154032

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154032/ft1_4FGL_J0156.5+3914_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154032/ft1_4FGL_J0156.5+3914_daily_bin1672.fits outfile=/scratch/kocevski/154032/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1672.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=672710401.0 tmax=672969601.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.15
user 2.90
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.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/154032/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.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.33
sys 0.17

Number of photons that the gtmktime cut: 218

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/154032/ltcube_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.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/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits
.....................!
real 13.85
user 13.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/154032/ltcube_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.fits outfile=/scratch/kocevski/154032/expmap_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.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/154032/ltcube_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.fits
.....................!
real 192.03
user 186.20
sys 5.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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J0156.5+3914 @ 29.1325 39.2493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits scfile=/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits outfile=/scratch/kocevski/154032/cmap_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.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.1325 yref=39.2493 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/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits scfile=/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits outfile=/scratch/kocevski/154032/cmap_HighResolution_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.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.1325 yref=39.2493 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154032/Model_4FGL_J0156.5+3914_daily_bin1672.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/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits......................!
real 35.72
user 33.36
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits', '/scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits', expMap='/scratch/kocevski/154032/expmap_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.fits', expCube='/scratch/kocevski/154032/ltcube_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/154032/Model_4FGL_J0156.5+3914_daily_bin1672.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.5+3914'

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/154032/ft1_filtered_4FGL_J0156.5+3914_daily_bin1672.fits
Spacecraft file(s): /scratch/kocevski/154032/ft2_4FGL_J0156.5+3914_daily_bin1672.fits
Exposure map: /scratch/kocevski/154032/expmap_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.fits
Exposure cube: /scratch/kocevski/154032/ltcube_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/154032/Model_4FGL_J0156.5+3914_daily_bin1672.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) = 2390.5403284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.087       1.0000         .10000E-03   10000.    
     4 'norm      '    .10465E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .86596       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1012       1.0000         .10000E-03   10000.    
     9 'norm      '    .17524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    53.716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .61132       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.374       1.0000         .10000E-03   10000.    
    21 'norm      '    .10718E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69857       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2390.397     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2782 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.221        18.892       -.19060E-04   -.40951E-03
   2  Prefactor     .10000E-03    15.843        .86066E-05** at limit **
   3  Prefactor     11.206        211.04        .31094E-03    .32448E-04
   4  norm          .10000E-03    1.8530        .33015E-06** at limit **
   5  Prefactor     .92600        11.955        .17005E-05   -.27953E-03
   6  Prefactor     .10000E-03    19.146       -.57230E-05** at limit **
   7  Prefactor     .10000E-03    23.696        .16937E-04** at limit **
   8  norm          2.1014        1.9775        .10350E-06   -.37856E-04
   9  norm          .17514        .87909        .16134E-06   -.91872E-03
  10  Prefactor     .10000E-03    11.298       -.21760E-06** at limit **
  11  Prefactor     .10000E-03    3.5704        .16744E-06** at limit **
  12  Prefactor     .10000E-03    37.517       -.31021E-04** at limit **
  13  Prefactor     .10000E-03    124.45       -.62938E-04** at limit **
  14  norm          53.721        26.244        .13035E-05    .86657E-04
  15  Prefactor     .10000E-03    17.059       -.10743E-04** at limit **
  16  norm          .10000E-03    7.0132        .57897E-07** at limit **
  17  Prefactor     .10000E-03    28.098        .17609E-05** at limit **
  18  norm          .10000E-03    1.3597        .11902E-06** at limit **
  19  norm          .61143        .66181        .94528E-07    .12104E-03
  20  Prefactor     29.369        27.559        .36201E-06   -.24552E-03
  21  norm          .10000E-03    54.943        .26275E-04** at limit **
  22  Prefactor     .10000E-03    97.236        .42351E-04** at limit **
  23  Normalizat    .69809        .41074        .80770E-06   -.26504E-03
  24  Prefactor     1.1118        .19286       -.68330E-05    .17082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2211
  Prefactor  = 0.0001
  Prefactor  = 11.2061
  norm       = 0.0001
  Prefactor  = 0.925999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10135
  norm       = 0.175136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 53.7214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.611428
  Prefactor  = 29.3692
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.698089
  Prefactor  = 1.11181
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.397     FROM HESSE     STATUS=OK           387 CALLS     3169 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.221        18.944        .83123E-04   -1.4744    
   2  Prefactor     .10000E-03    15.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.206        209.47        .12032E-03   -1.5038    
   4  norm          .10000E-03    2.8394        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .92600        38.285        .29642E-02   -1.5516    
   6  Prefactor     .10000E-03    19.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1014        1.9828        .64851E-04   -1.5418    
   9  norm          .17514        .85360        .86084E-04   -1.5624    
  10  Prefactor     .10000E-03    11.312        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5977        .90194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    124.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          53.721        26.231        .54726E-04   -1.4241    
  15  Prefactor     .10000E-03    17.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.0296        .12645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3983        .11129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .61143        .66397        .40172E-04   -1.5552    
  20  Prefactor     29.369        27.469        .73924E-04   -1.4624    
  21  norm          .10000E-03    55.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    97.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69809        .45737        .41098E-03   -1.0397    
  24  Prefactor     1.1118        .21635        .16718E-03   -.89090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82429e-09
Minuit parameter uncertainties:
  1  18.949
  2  7.2276e-05
  3  97.2956
  4  3.91488e-05
  5  11.9158
  6  3.05308e-05
  7  8.11121e-05
  8  1.98285
  9  0.773094
  10  2.05193e-05
  11  1.26043e-05
  12  4.86919e-05
  13  0.00028494
  14  26.2367
  15  4.8219e-06
  16  9.92765e-06
  17  2.02675e-05
  18  5.73592e-06
  19  0.663978
  20  27.4804
  21  1.00423e-05
  22  7.0969e-06
  23  0.459901
  24  0.216523
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.260e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.112e+00  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  6.981e-01  4.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.133 39.249
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154032/likelihoodResults_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.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) = 2390.39788307
delta logL = -0.00130373574711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2390.39657965
delta logL = -3.17691046803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4502       1.0000          .0000       10.000    
     3 'Normalizat'    .69780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2390.397     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    403.68        .90712E-02** at limit **
   2  Index         2.4464        8.6945        .50000        .93609E-05
   3  Normalizat    .69811        .12274        .92752E-01    .90358E-05
   4  Prefactor     1.1118        .61844E-01    .37149E-01    .88268E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44635
  Normalizat = 0.698106
  Prefactor  = 1.1118
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.397     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.277        .90197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4464        5.4395        .50000       -.53603    
   3  Normalizat    .69811        .39556        .41097E-03   -1.0397    
   4  Prefactor     1.1118        .20185        .16718E-03   -.89090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21284e-10
Minuit parameter uncertainties:
  1  2.19631e-05
  2  7.94758
  3  0.397193
  4  0.201993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154032': 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) = 2390.39657933
delta logL = 1.61617208505e-09

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.196e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.446e+00  7.948e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.112e+00  2.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  6.981e-01  3.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.133 39.249

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/154032/cmap_HighResolution_672710401_672969601_4FGL_J0156.5+3914_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2022-04-30 00:21:30.719021', job_id='154032', GAL2='1.11', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1651303290.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.62e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1672' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:21:30 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 153949: <4FGL_J0156.5+3914_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:48 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:09:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:09:34 2022
Terminated at Sat Apr 30 00:19:10 2022
Results reported at Sat Apr 30 00:19:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1672 29.1325 39.2493 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.5+3914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   469.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             252.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            802 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 154032: <4FGL_J0156.5+3914_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:52 2022
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:11:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:11:42 2022
Terminated at Sat Apr 30 00:21:31 2022
Results reported at Sat Apr 30 00:21:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1672 29.1325 39.2493 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.5+3914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   464.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            939 sec.

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

