aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 17384
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0319.8+1845_weekly_bin235
RA = 49.9722, Dec = 18.7532
tmin = 381110401, tmax = 381715201
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='91771', job_status='RUN', time_executed='2021-07-06 08:12:16.321297', time_epoch_executed='1625584336.32' WHERE source_name='4FGL J0319.8+1845' and cadence='weekly' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91771

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91771/ft1_4FGL_J0319.8+1845_weekly_bin235.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91771/ft1_4FGL_J0319.8+1845_weekly_bin235.fits outfile=/scratch/kocevski/91771/ft1_filteredMKT_4FGL_J0319.8+1845_weekly_bin235.fits ra=49.9722 dec=18.7532 rad=12.0 tmin=381110401.0 tmax=381715201.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 9.03
user 8.35
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.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/91771/ft1_filteredMKT_4FGL_J0319.8+1845_weekly_bin235.fits evtable="EVENTS" outfile="/scratch/kocevski/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.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 1.15
user 0.37
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/91771/ltcube_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.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/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits
.....................!
real 26.30
user 25.46
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/91771/ltcube_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.fits outfile=/scratch/kocevski/91771/expmap_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.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/91771/ltcube_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.fits
.....................!
real 194.33
user 186.86
sys 4.31

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/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.fits scfile=/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits outfile=/scratch/kocevski/91771/cmap_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.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 1.77
user 0.41
sys 0.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.fits scfile=/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits outfile=/scratch/kocevski/91771/cmap_HighResolution_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.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 1.23
user 0.42
sys 0.23

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.fits', '/scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits', expMap='/scratch/kocevski/91771/expmap_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.fits', expCube='/scratch/kocevski/91771/ltcube_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91771/Model_4FGL_J0319.8+1845_weekly_bin235.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  1.000e-04  1.000e+04 ( 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/91771/ft1_filtered_4FGL_J0319.8+1845_weekly_bin235.fits
Spacecraft file(s): /scratch/kocevski/91771/ft2_4FGL_J0319.8+1845_weekly_bin235.fits
Exposure map: /scratch/kocevski/91771/expmap_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.fits
Exposure cube: /scratch/kocevski/91771/ltcube_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91771/Model_4FGL_J0319.8+1845_weekly_bin235.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) = 24166.2858201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8390       1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.600       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5493       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8182       1.0000         .10000E-03   10000.    
    10 'norm      '    .56828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5623       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.897       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98577       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98107       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24166.21     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     1971 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8350        7.5038         .0000        .87284E-02
   2  norm          .10000E-03    .12095         .0000    ** at limit **
   3  Prefactor     .10000E-03    32.486         .0000    ** at limit **
   4  norm          .10000E-03    6.8965         .0000    ** at limit **
   5  Prefactor     11.595        13.231         .0000        .66344E-04
   6  Prefactor     .10000E-03    14.636         .0000    ** at limit **
   7  Prefactor     .10000E-03    1.8328         .0000    ** at limit **
   8  Prefactor     9.5492        9.0214         .0000       -.49847E-03
   9  norm          3.8179        6.2214         .0000        .92556E-02
  10  norm          .56795        3.8090         .0000        .95332E-01
  11  Prefactor     .10000E-03    22.063         .0000    ** at limit **
  12  Prefactor     2.0430        2.0319         .0000       -.35055E-03
  13  Prefactor     .10000E-03    2.4262         .0000    ** at limit **
  14  Prefactor     .10000E-03    3.4050         .0000    ** at limit **
  15  norm          1.5623        1.6149         .0000        .36553E-02
  16  norm          .10000E-03    4.3098         .0000    ** at limit **
  17  norm          .10000E-03    .88309         .0000    ** at limit **
  18  norm          18.801        29.768         .0000        .12754E-04
  19  Prefactor     .10000E-03    4.8728         .0000    ** at limit **
  20  Normalizat    .98584        .15815         .0000        .93545E-04
  21  Prefactor     .98106        .46068E-01     .0000       -.12803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83497
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.54924
  norm       = 3.81795
  norm       = 0.567953
  Prefactor  = 0.0001
  Prefactor  = 2.04296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56233
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.8005
  Prefactor  = 0.0001
  Normalizat = 0.985843
  Prefactor  = 0.981062
 **********
 **   18 **HESSE 
 **********

 FCN=   24166.21     FROM HESSE     STATUS=OK           317 CALLS     2288 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8350        7.0491        .10299E-02   -1.5316    
   2  norm          .10000E-03    .82568        .92997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.595        12.771        .11762E-03   -1.5027    
   6  Prefactor     .10000E-03    14.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5492        9.0187        .64841E-03   -1.5090    
   9  norm          3.8179        6.2234        .10328E-02   -1.5317    
  10  norm          .56795        3.8378        .23093E-02   -1.5557    
  11  Prefactor     .10000E-03    22.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0430        2.0368        .21462E-03   -1.5422    
  13  Prefactor     .10000E-03    2.4951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5623        1.6009        .18759E-03   -1.5458    
  16  norm          .10000E-03    4.3836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .88391        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.801        29.766        .92136E-04   -1.4841    
  19  Prefactor     .10000E-03    4.8789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98584        .17435        .46623E-03   -.93506    
  21  Prefactor     .98106        .51289E-01    .14009E-03   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17574e-08
Minuit parameter uncertainties:
  1  7.05066
  2  1.26371e-06
  3  2.31666e-05
  4  2.05794e-06
  5  12.7741
  6  1.22696e-06
  7  3.70418e-07
  8  9.01994
  9  6.22449
  10  2.95277
  11  2.75176e-05
  12  2.03685
  13  2.61025e-07
  14  5.47644e-07
  15  1.60096
  16  3.08507e-07
  17  9.71116e-08
  18  29.789
  19  1.61734e-06
  20  0.174452
  21  0.0512915
Done.

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

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.476e-07  1.000e-04  1.000e+04 ( 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.811e-01  5.129e-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:  9.858e-01  1.745e-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: 2.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91771/likelihoodResults_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.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) = 24166.2126596
delta logL = -0.00139497990676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24166.2112646
delta logL = 1.4144461602e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6563       1.0000          .0000       10.000    
     3 'Normalizat'    .98584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98107       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=   24166.21     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .85793        .90712E-02** at limit **
   2  Index         1.6499        6.8740        .50000        .12890E-04
   3  Normalizat    .98584        .20402E-02    .10520        .92757E-04
   4  Prefactor     .98106        .61482E-03    .31703E-01   -.18685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.64995
  Normalizat = 0.985843
  Prefactor  = 0.981062
 **********
 **   18 **HESSE 
 **********

 FCN=   24166.21     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6499        5.2826        .50000       -.73422    
   3  Normalizat    .98584        .66372E-02    .46623E-03   -.93506    
   4  Prefactor     .98106        .20070E-02    .14009E-03   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09341e-08
Minuit parameter uncertainties:
  1  1.0892e-06
  2  30.0646
  3  0.00663725
  4  0.00200701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91771': 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) = 24166.2112646
delta logL = 4.69626684207e-08

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.089e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.650e+00  3.006e+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:  9.811e-01  2.007e-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:  9.858e-01  6.637e-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/91771/cmap_HighResolution_381110401_381715201_4FGL_J0319.8+1845_weekly_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-03', job_status='DONE', photon_flux_upper_limit='2.21e-08', time_completed='2021-07-06 08:39:06.372165', job_id='91771', GAL2='0.98', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1625585946.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.66' WHERE bin_id='235' AND source_name='4FGL J0319.8+1845' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 08:39:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 91771: <4FGL_J0319.8+1845_weekly_bin235> in cluster <slac> Done

Job <4FGL_J0319.8+1845_weekly_bin235> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jul  6 03:13:07 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  6 03:27:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  6 03:27:33 2021
Terminated at Tue Jul  6 08:39:12 2021
Results reported at Tue Jul  6 08:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0319.8+1845_weekly_bin235 49.9722 18.7532 381110401 381715201 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 :                                   1569.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             75.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18699 sec.
    Turnaround time :                            19565 sec.

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

