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 179 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 = 17171
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.2+3714_weekly_bin508
RA = 28.0631, Dec = 37.2341
tmin = 546220801, tmax = 546825601
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='264496', job_status='RUN', time_executed='2021-07-04 02:46:02.609971', time_epoch_executed='1625391962.61' WHERE source_name='4FGL J0152.2+3714' and cadence='weekly' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264496

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264496/ft1_4FGL_J0152.2+3714_weekly_bin508.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264496/ft1_4FGL_J0152.2+3714_weekly_bin508.fits outfile=/scratch/kocevski/264496/ft1_filteredMKT_4FGL_J0152.2+3714_weekly_bin508.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=546220801.0 tmax=546825601.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.45
user 8.04
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.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/264496/ft1_filteredMKT_4FGL_J0152.2+3714_weekly_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.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.30
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/264496/ltcube_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.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/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits
.....................!
real 27.49
user 25.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/264496/ltcube_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.fits outfile=/scratch/kocevski/264496/expmap_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.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/264496/ltcube_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.fits
.....................!
real 196.51
user 185.00
sys 4.93

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0152.2+3714 @ 28.0631 37.2341

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits scfile=/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits outfile=/scratch/kocevski/264496/cmap_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.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=28.0631 yref=37.2341 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 2.60
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits scfile=/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits outfile=/scratch/kocevski/264496/cmap_HighResolution_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.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=28.0631 yref=37.2341 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.08
user 0.41
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264496/Model_4FGL_J0152.2+3714_weekly_bin508.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/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits.....................!
real 54.72
user 43.13
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits', '/scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits', expMap='/scratch/kocevski/264496/expmap_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.fits', expCube='/scratch/kocevski/264496/ltcube_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264496/Model_4FGL_J0152.2+3714_weekly_bin508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.2+3714'

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/264496/ft1_filtered_4FGL_J0152.2+3714_weekly_bin508.fits
Spacecraft file(s): /scratch/kocevski/264496/ft2_4FGL_J0152.2+3714_weekly_bin508.fits
Exposure map: /scratch/kocevski/264496/expmap_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.fits
Exposure cube: /scratch/kocevski/264496/ltcube_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264496/Model_4FGL_J0152.2+3714_weekly_bin508.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) = 2986.71146388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70300E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0831       1.0000         .10000E-03   10000.    
     9 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .75371E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3257       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.528       1.0000         .10000E-03   10000.    
    18 'norm      '    13.674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.3401       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .75012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2986.688     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3111 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.050        .11508E-07** at limit **
   2  Prefactor     1.0883        17.854       -.90686E-06    .27595E-04
   3  Prefactor     .10000E-03    16.964        .14659E-06** at limit **
   4  Prefactor     .10000E-03    95.889       -.15252E-05** at limit **
   5  norm          .10000E-03    .95548       -.52924E-07** at limit **
   6  Prefactor     .10000E-03    37.112       -.63077E-05** at limit **
   7  Prefactor     .10000E-03    80.418       -.12342E-05** at limit **
   8  norm          5.0821        4.1471       -.70541E-07    .21186E-04
   9  norm          .10000E-03    1.5149       -.34215E-06** at limit **
  10  Prefactor     .10000E-03    127.95        .22243E-05** at limit **
  11  norm          .10000E-03    .57947       -.58633E-07** at limit **
  12  Prefactor     16.067        21.357       -.56913E-07    .10179E-04
  13  Prefactor     .10000E-03    3.6762       -.83472E-07** at limit **
  14  Prefactor     .10000E-03    21.225       -.57057E-06** at limit **
  15  Prefactor     .10000E-03    427.96        .94699E-05** at limit **
  16  norm          5.3219        10.384       -.53722E-06    .27641E-04
  17  Prefactor     31.517        24.754       -.64433E-07    .38680E-04
  18  norm          13.683        8.4139        .29564E-06    .86948E-04
  19  Prefactor     .10000E-03    16.998       -.39479E-07** at limit **
  20  norm          .10000E-03    .76499       -.24626E-06** at limit **
  21  norm          .10000E-03    .34859       -.24933E-06** at limit **
  22  Prefactor     .10000E-03    12.062       -.22557E-05** at limit **
  23  norm          3.3829        15.232       -.17909E-06    .55541E-04
  24  Prefactor     .10000E-03    442.65        .65301E-05** at limit **
  25  Normalizat    1.0259        .43658        .37095E-06    .11821E-03
  26  Prefactor     1.2633        .23087        .13599E-05    .14861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.08828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08211
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.32194
  Prefactor  = 31.5166
  norm       = 13.6827
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38291
  Prefactor  = 0.000100001
  Normalizat = 1.02592
  Prefactor  = 1.26327
 **********
 **   18 **HESSE 
 **********

 FCN=   2986.688     FROM HESSE     STATUS=OK           454 CALLS     3565 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.054        .17746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0883        97.095        .43603E-02   -1.5499    
   3  Prefactor     .10000E-03    16.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    96.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .95927        .52148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.946        .36749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0821        4.1488        .97319E-04   -1.5257    
   9  norm          .10000E-03    4.9608        .12875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    128.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .59890        .81252E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.067        21.357        .99917E-04   -1.4906    
  13  Prefactor     .10000E-03    3.6944        .10234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    428.23        .20937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3219        10.350        .17415E-03   -1.5247    
  17  Prefactor     31.517        24.728        .71360E-04   -1.4585    
  18  norm          13.683        8.3533        .10832E-03   -1.4968    
  19  Prefactor     .10000E-03    17.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .79080        .93156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .41509        .62150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3829        15.067        .22146E-03   -1.5340    
  24  Prefactor     .10000E-03    447.53        .20940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0259        .49664        .40424E-03   -.92167    
  26  Prefactor     1.2633        .26195        .19934E-03   -.84406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26494e-10
Minuit parameter uncertainties:
  1  3.1762e-06
  2  20.5924
  3  8.68796e-06
  4  3.09923e-05
  5  1.17641e-06
  6  1.41548e-05
  7  3.9727e-05
  8  4.14907
  9  1.51565e-05
  10  6.66797e-05
  11  2.98763e-06
  12  21.3675
  13  6.2053e-06
  14  5.16521e-06
  15  0.0014452
  16  10.3538
  17  24.7361
  18  8.35403
  19  2.74879e-05
  20  5.17204e-06
  21  4.92459e-06
  22  7.60263e-05
  23  14.2844
  24  0.001156
  25  0.498903
  26  0.262225
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.607e+01  2.137e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.263e+00  2.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.026e+00  4.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 28.063 37.234
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.46e-08 +/- 5.92e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 2.10e-05

TS (Fixed Index): 1.22
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 2.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264496/likelihoodResults_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.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) = 2986.32587314
delta logL = 0.361741950521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2986.24786126
delta logL = 0.439753827915

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2986.248     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      249 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.047        31.804        .77042E-04   -.33792E-04
   2  Index         1.5881        .70794        .88739E-02   -.14089E-04
   3  Normalizat    1.0486        .47444        .40022E-03   -.20796E-03
   4  Prefactor     1.2546        .25865        .19981E-03   -.33612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0466
  Index      = 1.58809
  Normalizat = 1.04864
  Prefactor  = 1.25457
 **********
 **   18 **HESSE 
 **********

 FCN=   2986.248     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.047        31.907        .15408E-04   -1.4667    
   2  Index         1.5881        .71033        .35495E-03   -.75102    
   3  Normalizat    1.0486        .47478        .80045E-04   -.91418    
   4  Prefactor     1.2546        .25884        .39963E-04   -.84668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54338e-10
Minuit parameter uncertainties:
  1  31.9274
  2  0.714877
  3  0.476723
  4  0.259109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264496': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2986.24786117
delta logL = 0.43975391996

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  2.705e+01  3.193e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  1.588e+00  7.149e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.255e+00  2.591e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.049e+00  4.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 28.063 37.234
Photon Index (Free Index): 1.59 +/- 0.71
Photon Flux (Free Index): 2.50e-08 +/- 3.60e-08
Energy Flux (Free Index): 5.89e-05 +/- 1.14e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/264496/cmap_HighResolution_546220801_546825601_4FGL_J0152.2+3714_weekly_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', comment='SUCCESS', photon_flux='4.46e-08', energy_flux2='5.89e-05', photon_flux_error='5.92e-08', dlogl='4.40e-01', energy_flux='1.58e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-07-04 02:56:10.215621', photon_index_error2='0.71', photon_index2='1.59', ts='1.22', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='2.41e-07', energy_flux_error2='1.14e-04', EG='1.03', time_epoch_completed='1625392570.22', return_code='0', job_id='264496', GAL2='1.25', EG2='1.05', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='3.60e-08', ts2='2.09', photon_index='2.34' WHERE bin_id='508' AND source_name='4FGL J0152.2+3714' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 02:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 264496: <4FGL_J0152.2+3714_weekly_bin508> in cluster <slac> Done

Job <4FGL_J0152.2+3714_weekly_bin508> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Jul  4 02:41:29 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 02:41:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 02:41:31 2021
Terminated at Sun Jul  4 02:56:17 2021
Results reported at Sun Jul  4 02:56:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_weekly_bin508 28.0631 37.2341 546220801 546825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+3714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   559.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             188.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            888 sec.

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

