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


Performing analysis on: 4FGL_J0319.8+1845_weekly_bin741
RA = 49.9722, Dec = 18.7532
tmin = 687139201, 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='380192', job_status='RUN', time_executed='2022-10-18 00:41:44.619605', time_epoch_executed='1666078904.62' WHERE source_name='4FGL J0319.8+1845' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380192

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=687139201.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>=687139201.0 && nMetStart<687744001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380192/ft1_4FGL_J0319.8+1845_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380192/ft1_4FGL_J0319.8+1845_weekly_bin741.fits outfile=/scratch/kocevski/380192/ft1_filteredMKT_4FGL_J0319.8+1845_weekly_bin741.fits ra=49.9722 dec=18.7532 rad=12.0 tmin=687139201.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 6.59
user 6.31
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.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/380192/ft1_filteredMKT_4FGL_J0319.8+1845_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.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.55
user 0.39
sys 0.14

Number of photons that the gtmktime cut: 956

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/380192/ltcube_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.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/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits
.....................!
real 26.84
user 26.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/380192/ltcube_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.fits outfile=/scratch/kocevski/380192/expmap_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.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/380192/ltcube_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.fits
.....................!
real 190.94
user 185.25
sys 5.34

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/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.fits scfile=/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits outfile=/scratch/kocevski/380192/cmap_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.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.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.fits scfile=/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits outfile=/scratch/kocevski/380192/cmap_HighResolution_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.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.59
user 0.40
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.fits', '/scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits', expMap='/scratch/kocevski/380192/expmap_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.fits', expCube='/scratch/kocevski/380192/ltcube_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380192/Model_4FGL_J0319.8+1845_weekly_bin741.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/380192/ft1_filtered_4FGL_J0319.8+1845_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/380192/ft2_4FGL_J0319.8+1845_weekly_bin741.fits
Exposure map: /scratch/kocevski/380192/expmap_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.fits
Exposure cube: /scratch/kocevski/380192/ltcube_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380192/Model_4FGL_J0319.8+1845_weekly_bin741.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) = 10579.192444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3487       1.0000          .0000       .10000E+07
     2 'norm      '    .25843       1.0000          .0000       .10000E+07
     3 'Prefactor '    .28055E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .91136E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16207       1.0000          .0000       .10000E+07
     6 'Prefactor '    .25678E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    13.962       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.345       1.0000          .0000       .10000E+07
     9 'norm      '    5.0163       1.0000          .0000       .10000E+07
    10 'norm      '    .90094E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .84442       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20328E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11808E-01   1.0000          .0000       .10000E+07
    14 'norm      '    11.113       1.0000          .0000       .10000E+07
    15 'norm      '    .76201       1.0000          .0000       .10000E+07
    16 'norm      '    .81691E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.001       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0326       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96691       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=   10579.16     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     1373 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3834        1.8115       -.11228E-07    .28486E-01
   2  norm          .25873        .58661       -.19702E-07   -.90579E-03
   3  Prefactor     .20539E-08    31.165        .72701E-06** at limit **
   4  norm          .22204E-08    6.8332       -.29524E-06** at limit **
   5  Prefactor     .80458E-06    48.251       -.41380E-06** at limit **
   6  Prefactor     .55511E-10    17.462        .30329E-06** at limit **
   7  Prefactor     13.921        1.4220        .53292E-08   -.10658E-01
   8  Prefactor     16.446        2.4203        .19863E-07   -.91785E-01
   9  norm          4.9281        1.6685       -.11877E-07    .35380E-02
  10  norm          .44060E-01    2.9978       -.11512E-06** at limit **
  11  Prefactor     .86929        2.6454        .34358E-07    .16708E-03
  12  Prefactor      .0000        2.8450       -.28584E-07** at limit **
  13  Prefactor     .24369E-07    19.512       -.32405E-06** at limit **
  14  norm          11.114        3.6644       -.11392E-06   -.62692E-02
  15  norm          .77981        .72690        .15131E-07    .44545E-02
  16  norm          .58176E-07    37.745       -.23533E-06** at limit **
  17  Prefactor     11.973        1.7731       -.13072E-07    .49718E-01
  18  Normalizat    1.0335        .28435        .24555E-05   -.52436E-04
  19  Prefactor     .96673        .77788E-01   -.96783E-06   -.22993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.38338
  norm       = 0.258733
  Prefactor  = 2.05391e-09
  norm       = 2.22045e-09
  Prefactor  = 8.04579e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 13.9209
  Prefactor  = 16.4463
  norm       = 4.92807
  norm       = 0.04406
  Prefactor  = 0.869285
  Prefactor  = 0
  Prefactor  = 2.43694e-08
  norm       = 11.1141
  norm       = 0.779805
  norm       = 5.81757e-08
  Prefactor  = 11.9734
  Normalizat = 1.03348
  Prefactor  = 0.966729
 **********
 **   18 **HESSE 
 **********

 FCN=   10579.16     FROM HESSE     STATUS=OK           316 CALLS     1689 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3834        17.335        .36975E-03   -1.5654    
   2  norm          .25873        .67398        .27862E-02   -1.5698    
   3  Prefactor     .20539E-08    31.167        .16555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22204E-08    6.8356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .80458E-06    49.529        .12494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    17.440        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.921        13.464        .26780E-03   -1.5633    
   8  Prefactor     16.446        25.864        .24747E-03   -1.5627    
   9  norm          4.9281        8.5533        .44874E-03   -1.5664    
  10  norm          .44060E-01    6.5189        .80708E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .86929        2.6640        .49681E-03   -1.5689    
  12  Prefactor      .0000        2.8530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24369E-07    19.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.114        3.6667        .30028E-03   -1.5641    
  15  norm          .77981        9.2468        .55811E-03   -1.5690    
  16  norm          .58176E-07    38.602        .14450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.973        23.359        .28892E-03   -1.5639    
  18  Normalizat    1.0335        .26560        .11326       -.91917    
  19  Prefactor     .96673        .71316E-01    .32518E-01   -.93847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21232e-07
Minuit parameter uncertainties:
  1  17.3353
  2  0.673984
  3  0.000508644
  4  0.000247202
  5  0.0126254
  6  7.45561e-05
  7  13.464
  8  25.8643
  9  8.55328
  10  1.07187
  11  2.66402
  12  1.4546e-05
  13  0.0013798
  14  3.66669
  15  5.37056
  16  0.00299659
  17  23.3593
  18  0.26594
  19  0.0713224
Done.

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

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  2.437e-08  1.380e-03  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:  9.667e-01  7.132e-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:  1.033e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/380192/likelihoodResults_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.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) = 10579.1876357
delta logL = -0.0249598598712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10579.1626765
delta logL = -5.89072442381e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10579.16     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      234 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    4.0272        .42118E-03** at limit **
   2  Index         .72559        9.5558        .44774       -.20313E-10
   3  Normalizat    1.0335        .46577E-02    .11326        .14343E-05
   4  Prefactor     .96673        .13000E-02    .32518E-01    .61921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.725593
  Normalizat = 1.03348
  Prefactor  = 0.96673
 **********
 **   18 **HESSE 
 **********

 FCN=   10579.16     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    11.683        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .72559        5.5533        .51000       -1.0253    
   3  Normalizat    1.0335        .79091E-02    .50221E-03   -.91917    
   4  Prefactor     .96673        .22159E-02    .14369E-03   -.93847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40796e-13
Minuit parameter uncertainties:
  1  4.54217e-05
  2  469142
  3  0.00790916
  4  0.00221587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380192': 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) = 10579.1626759
delta logL = 6.11180439591e-10

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  5.551e-11  4.542e-05  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  7.256e-01  4.691e+05  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:  9.667e-01  2.216e-03  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:  1.033e+00  7.909e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/380192/cmap_HighResolution_687139201_687744001_4FGL_J0319.8+1845_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2022-10-18 00:54:28.608795', job_id='380192', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1666079668.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.11e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.66' WHERE bin_id='741' AND source_name='4FGL J0319.8+1845' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:54:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 380192: <4FGL_J0319.8+1845_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0319.8+1845_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 00:40:27 2022
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:40:28 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:40:28 2022
Terminated at Tue Oct 18 00:54:29 2022
Results reported at Tue Oct 18 00:54:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+1845_weekly_bin741 49.9722 18.7532 687139201 687744001 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 :                                   765.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

