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


Performing analysis on: 4FGL_J0319.8+1845_daily_bin1748
RA = 49.9722, Dec = 18.7532
tmin = 692409601, tmax = 692668801
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='875792', job_status='RUN', time_executed='2022-12-14 00:05:59.165677', time_epoch_executed='1671005159.17' WHERE source_name='4FGL J0319.8+1845' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875792/ft1_4FGL_J0319.8+1845_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875792/ft1_4FGL_J0319.8+1845_daily_bin1748.fits outfile=/scratch/kocevski/875792/ft1_filteredMKT_4FGL_J0319.8+1845_daily_bin1748.fits ra=49.9722 dec=18.7532 rad=12.0 tmin=692409601.0 tmax=692668801.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.61
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.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/875792/ft1_filteredMKT_4FGL_J0319.8+1845_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.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.53
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 979

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875792/ltcube_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.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/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits
.....................!
real 13.28
user 12.84
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875792/ltcube_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.fits outfile=/scratch/kocevski/875792/expmap_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.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/875792/ltcube_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.fits
.....................!
real 192.13
user 186.11
sys 5.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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0319.8+1845 @ 49.9722 18.7532

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits scfile=/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits outfile=/scratch/kocevski/875792/cmap_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.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=49.9722 yref=18.7532 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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits scfile=/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits outfile=/scratch/kocevski/875792/cmap_HighResolution_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.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=49.9722 yref=18.7532 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875792/Model_4FGL_J0319.8+1845_daily_bin1748.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/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits.....................!
real 166.23
user 163.84
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits', '/scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits', expMap='/scratch/kocevski/875792/expmap_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.fits', expCube='/scratch/kocevski/875792/ltcube_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875792/Model_4FGL_J0319.8+1845_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0319.8+1845'

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  1.356e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875792/ft1_filtered_4FGL_J0319.8+1845_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875792/ft2_4FGL_J0319.8+1845_daily_bin1748.fits
Exposure map: /scratch/kocevski/875792/expmap_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875792/ltcube_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875792/Model_4FGL_J0319.8+1845_daily_bin1748.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) = 10759.6712196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37673E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.1229       1.0000          .0000       .10000E+07
     3 'Prefactor '    69.511       1.0000          .0000       .10000E+07
     4 'norm      '    .22534E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14168E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    87.563       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40151E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .20725E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .45860E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .41322E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10492E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .86871E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.9717       1.0000          .0000       .10000E+07
    14 'norm      '    2.3398       1.0000          .0000       .10000E+07
    15 'norm      '    .33122E-03   1.0000          .0000       .10000E+07
    16 'norm      '    26.806       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.649       1.0000          .0000       .10000E+07
    18 'Normalizat'    .66122       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0162       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10759.52     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1464 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    7.1486       -.32076E-06** at limit **
   2  norm          1.1182        .53035       -.22060E-06   -.13077E-01
   3  Prefactor     70.099        65.414        .65552E-06   -.16024E-02
   4  norm          .55511E-10    8.4046       -.15920E-05** at limit **
   5  Prefactor      .0000        8.3198        .18415E-05** at limit **
   6  Prefactor     92.403        59.123        .88595E-05   -.27475E-02
   7  Prefactor     .55511E-10    6.0965       -.15961E-06** at limit **
   8  Prefactor     .44409E-09    14.861        .11827E-05** at limit **
   9  norm          .13878E-08    10.544        .98467E-06** at limit **
  10  norm           .0000        2.3187        .10390E-06** at limit **
  11  Prefactor     .55511E-10    6.9699       -.87633E-06** at limit **
  12  Prefactor     .33307E-09    1.9605        .84045E-06** at limit **
  13  Prefactor     4.0059        1.5083       -.58215E-06   -.15561E-01
  14  norm          2.3458        2.2150       -.31621E-06   -.41406E-02
  15  norm          .22204E-09    3.2381       -.62715E-07** at limit **
  16  norm          32.306        51.244       -.16669E-04   -.24745E-03
  17  Prefactor     18.537        26.914        .43022E-05    .13794E-02
  18  Normalizat    .65425        .25032        .17938E-04   -.22971E-03
  19  Prefactor     1.0168        .73911E-01   -.84874E-05   -.88746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  norm       = 1.11823
  Prefactor  = 70.0989
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 92.4028
  Prefactor  = 5.55112e-11
  Prefactor  = 4.44089e-10
  norm       = 1.38778e-09
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 4.00591
  norm       = 2.3458
  norm       = 2.22045e-10
  norm       = 32.3061
  Prefactor  = 18.5368
  Normalizat = 0.654254
  Prefactor  = 1.01685
 **********
 **   18 **HESSE 
 **********

 FCN=   10759.52     FROM HESSE     STATUS=OK           304 CALLS     1768 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    7.1393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1182        .53538        .11064E-02   -1.5687    
   3  Prefactor     70.099        65.499        .11995E-03   -1.5541    
   4  norm          .55511E-10    8.4057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        8.3170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     92.403        59.227        .10687E-03   -1.5516    
   7  Prefactor     .55511E-10    6.0775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44409E-09    14.807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13878E-08    10.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.3181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    6.9307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33307E-09    1.9577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0059        15.388        .50587E-03   -1.5668    
  14  norm          2.3458        2.2337        .67001E-03   -1.5677    
  15  norm          .22204E-09    3.2360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.306        51.312        .19318E-03   -1.5594    
  17  Prefactor     18.537        26.927        .23165E-03   -1.5622    
  18  Normalizat    .65425        .24303        .12469       -1.0573    
  19  Prefactor     1.0168        .70530E-01    .30819E-01   -.92170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3842e-08
Minuit parameter uncertainties:
  1  0.000105033
  2  0.535382
  3  65.4993
  4  3.9968e-05
  5  1.61685e-05
  6  59.2273
  7  3.95934e-05
  8  0.000163135
  9  0.000242502
  10  6.63475e-06
  11  4.04448e-05
  12  4.978e-05
  13  15.388
  14  2.23366
  15  5.04007e-05
  16  51.3124
  17  26.9271
  18  0.243432
  19  0.0705361
Done.

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

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  4.006e+00  1.539e+01  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.017e+00  7.054e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  6.543e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 49.972 18.753
Photon Flux Upper Limit: 6.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875792/likelihoodResults_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.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) = 10758.1544337
delta logL = 1.3698463857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10757.69889
delta logL = 1.82539002047

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10759.56     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      572 TOTAL
                     EDM=   .57E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.719        .21079E-06** at limit **
   2  Index         1.0845        .38013E-02   -.13822E-07     .0000    
   3  Normalizat    .65704        .23984       -.48515E-05    .64967E-05
   4  Prefactor     1.0177        .73083E-01   -.43649E-07   -.79010E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.08454
  Normalizat = 0.657037
  Prefactor  = 1.01766
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10759.56     FROM HESSE     STATUS=FAILED        11 CALLS      583 TOTAL
                     EDM=   .57E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.837        .42118E-03   -58.119    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64802E-01    1.1068       -.13822E-07   -.26403E+06
   3  Normalizat    .65704        .94451       -.48515E-05    67.030    
   4  Prefactor     1.0177        1.1769       -.43649E-07   -13.488    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.70353e-13
Minuit parameter uncertainties:
  1  2.63087e-05
  2  0.656969
  3  0.969437
  4  1.20883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875792': 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) = 10759.5624057
delta logL = -0.0381256402488

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  0.000e+00  2.631e-05  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.085e+00  6.570e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.018e+00  1.209e+00  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  6.570e-01  9.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 49.972 18.753

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/875792/cmap_HighResolution_692409601_692668801_4FGL_J0319.8+1845_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2022-12-14 00:19:31.347393', job_id='875792', GAL2='1.02', fit_tolerance='1e-08', EG2='0.66', EG='0.65', time_epoch_completed='1671005971.35', return_code2='101', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-3.81e-02', ts2='0.00', photon_index_error='0.00', photon_index='1.66' WHERE bin_id='1748' AND source_name='4FGL J0319.8+1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:19:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 875792: <4FGL_J0319.8+1845_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0319.8+1845_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:08 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:10 2022
Terminated at Wed Dec 14 00:19:32 2022
Results reported at Wed Dec 14 00:19:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+1845_daily_bin1748 49.9722 18.7532 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0319.8+1845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   789.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             373.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

