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


Performing analysis on: 4FGL_J0156.5+3914_daily_bin1764
RA = 29.1325, Dec = 39.2493
tmin = 696556801, tmax = 696816001
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='434314', job_status='RUN', time_executed='2023-01-31 00:07:37.233286', time_epoch_executed='1675152457.23' WHERE source_name='4FGL J0156.5+3914' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434314/ft1_4FGL_J0156.5+3914_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434314/ft1_4FGL_J0156.5+3914_daily_bin1764.fits outfile=/scratch/kocevski/434314/ft1_filteredMKT_4FGL_J0156.5+3914_daily_bin1764.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=696556801.0 tmax=696816001.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.84
user 3.50
sys 0.25

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

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

Number of photons that the gtmktime cut: 944

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434314/ft1_filtered_4FGL_J0156.5+3914_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/434314/ltcube_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.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/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits
.....................!
real 16.35
user 15.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434314/ft1_filtered_4FGL_J0156.5+3914_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/434314/ltcube_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.fits outfile=/scratch/kocevski/434314/expmap_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.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/434314/ltcube_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.fits
.....................!
real 193.04
user 187.12
sys 4.39

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/434314/ft1_filtered_4FGL_J0156.5+3914_daily_bin1764.fits scfile=/scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits outfile=/scratch/kocevski/434314/cmap_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434314/ft1_filtered_4FGL_J0156.5+3914_daily_bin1764.fits scfile=/scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits outfile=/scratch/kocevski/434314/cmap_HighResolution_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.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.59
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/434314/ft1_filtered_4FGL_J0156.5+3914_daily_bin1764.fits', '/scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits', expMap='/scratch/kocevski/434314/expmap_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.fits', expCube='/scratch/kocevski/434314/ltcube_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/434314/Model_4FGL_J0156.5+3914_daily_bin1764.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  0.000e+00  1.000e+06 ( 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/434314/ft1_filtered_4FGL_J0156.5+3914_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/434314/ft2_4FGL_J0156.5+3914_daily_bin1764.fits
Exposure map: /scratch/kocevski/434314/expmap_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.fits
Exposure cube: /scratch/kocevski/434314/ltcube_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/434314/Model_4FGL_J0156.5+3914_daily_bin1764.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) = 9863.19524083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62058E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    25.828       1.0000          .0000       .10000E+07
     3 'norm      '    .89947       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.238       1.0000          .0000       .10000E+07
     5 'norm      '    2.9449       1.0000          .0000       .10000E+07
     6 'norm      '    1.5157       1.0000          .0000       .10000E+07
     7 'Prefactor '    .73675E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36747E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .25321E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    105.14       1.0000          .0000       .10000E+07
    11 'norm      '    .19718E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.5657       1.0000          .0000       .10000E+07
    13 'norm      '    .15565E-06   1.0000          .0000       .10000E+07
    14 'norm      '    1.3305       1.0000          .0000       .10000E+07
    15 'norm      '    .65426       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19463E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .54675E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0950       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91710       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9863.175     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1449 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    12.869       -.91491E-06** at limit **
   2  Prefactor     25.935        17.920        .22194E-05    .68711E-03
   3  norm          .90013        1.2853       -.22512E-06    .27939E-02
   4  Prefactor     16.296        33.865       -.47315E-05    .38021E-03
   5  norm          2.9444        1.2413       -.10051E-06   -.23360E-02
   6  norm          1.5143        .75417       -.43702E-06   -.27607E-02
   7  Prefactor     .55511E-10    8.7967       -.33885E-05** at limit **
   8  Prefactor      .0000        1.1119        .12657E-05** at limit **
   9  Prefactor      .0000        5.5832       -.16254E-05** at limit **
  10  Prefactor     106.59        59.803        .19948E-05   -.81396E-03
  11  norm          .11102E-09    8.6439       -.18128E-05** at limit **
  12  Prefactor     7.4500        6.8322        .87350E-06   -.21052E-02
  13  norm          .55511E-10    .56004        .79537E-07** at limit **
  14  norm          1.3317        .48798       -.14318E-06    .32302E-02
  15  norm          .65405        .23690        .10677E-06    .52756E-02
  16  Prefactor     .55511E-10    .98259        .21613E-06** at limit **
  17  norm           .0000        2.7383       -.58485E-06** at limit **
  18  Normalizat    1.0944        .21033        .27872E-04    .45330E-04
  19  Prefactor     .91694        .10348       -.11882E-04    .56520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 25.9354
  norm       = 0.900128
  Prefactor  = 16.296
  norm       = 2.94439
  norm       = 1.51432
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 106.589
  norm       = 1.11022e-10
  Prefactor  = 7.45
  norm       = 5.55112e-11
  norm       = 1.33172
  norm       = 0.654049
  Prefactor  = 5.55112e-11
  norm       = 0
  Normalizat = 1.0944
  Prefactor  = 0.916941
 **********
 **   18 **HESSE 
 **********

 FCN=   9863.175     FROM HESSE     STATUS=OK           308 CALLS     1757 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    12.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.935        17.888        .19681E-03   -1.5606    
   3  norm          .90013        1.2860        .45797E-03   -1.5689    
   4  Prefactor     16.296        33.795        .25631E-03   -1.5627    
   5  norm          2.9444        1.2401        .59159E-03   -1.5674    
   6  norm          1.5143        .76085        .86796E-03   -1.5683    
   7  Prefactor     .55511E-10    8.7709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.1070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.5807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     106.59        59.628        .97531E-04   -1.5501    
  11  norm          .11102E-09    8.4412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4500        6.8190        .36436E-03   -1.5653    
  13  norm          .55511E-10    .56258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3317        .48696        .91285E-03   -1.5685    
  15  norm          .65405        .23653        .63803E-03   -1.5692    
  16  Prefactor     .55511E-10    .98238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.7264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0944        .18180        .73814E-01   -.89932    
  19  Prefactor     .91694        .89227E-01    .45223E-01   -.95552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64509e-08
Minuit parameter uncertainties:
  1  7.5675e-05
  2  17.8876
  3  1.28603
  4  33.7957
  5  1.24009
  6  0.760854
  7  5.25514e-05
  8  6.24109e-06
  9  1.16709e-05
  10  59.628
  11  6.69149e-05
  12  6.81898
  13  8.04459e-06
  14  0.486964
  15  0.236528
  16  1.21326e-05
  17  6.72884e-06
  18  0.181905
  19  0.0892408
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  0.000e+00  6.241e-06  0.000e+00  1.000e+06 ( 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:  9.169e-01  8.924e-02  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:  1.094e+00  1.819e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434314/likelihoodResults_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.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) = 9863.17785095
delta logL = -0.00284742903386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9863.17500519
delta logL = -1.67007783602e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46546E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.3597       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91684       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=   9863.175     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      259 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    .19696E-01    .42118E-03** at limit **
   2  Index         2.4403        8.2512        .50000        .50022E-09
   3  Normalizat    1.0944        .62342E-03    .73814E-01    .93200E-03
   4  Prefactor     .91694        .32159E-03    .45219E-01    .21737E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Index      = 2.44032
  Normalizat = 1.0944
  Prefactor  = 0.916944
 **********
 **   18 **HESSE 
 **********

 FCN=   9863.175     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    .12134        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4403        5.9951        .50000       -.53744    
   3  Normalizat    1.0944        .15418E-02    .32666E-03   -.89932    
   4  Prefactor     .91694        .79638E-03    .18145E-03   -.95552    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.43643e-11
Minuit parameter uncertainties:
  1  1.98627e-05
  2  6537.13
  3  0.00154185
  4  0.000796377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434314': 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): 102
logL (Free Index) = 9863.17500352
delta logL = -1.22236087918e-09

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  8.327e-10  1.986e-05  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.440e+00  6.537e+03  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:  9.169e-01  7.964e-04  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:  1.094e+00  1.542e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/434314/cmap_HighResolution_696556801_696816001_4FGL_J0156.5+3914_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2023-01-31 00:20:16.410799', job_id='434314', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1675153216.41', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-1.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1764' AND source_name='4FGL J0156.5+3914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:20:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 434314: <4FGL_J0156.5+3914_daily_bin1764> in cluster <slac> Done

Job <4FGL_J0156.5+3914_daily_bin1764> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan 31 00:04:46 2023
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:07:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:07:22 2023
Terminated at Tue Jan 31 00:20:17 2023
Results reported at Tue Jan 31 00:20:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_daily_bin1764 29.1325 39.2493 696556801 696816001 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            931 sec.

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

