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


Performing analysis on: 4FGL_J0152.2+3714_weekly_bin611
RA = 28.0631, Dec = 37.2341
tmin = 608515201, tmax = 609120001
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='264658', job_status='RUN', time_executed='2021-07-04 02:44:31.919516', time_epoch_executed='1625391871.92' WHERE source_name='4FGL J0152.2+3714' and cadence='weekly' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264658

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264658/ft1_4FGL_J0152.2+3714_weekly_bin611.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264658/ft1_4FGL_J0152.2+3714_weekly_bin611.fits outfile=/scratch/kocevski/264658/ft1_filteredMKT_4FGL_J0152.2+3714_weekly_bin611.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=608515201.0 tmax=609120001.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 8.48
user 7.41
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264658/ft1_filtered_4FGL_J0152.2+3714_weekly_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/264658/ltcube_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.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/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits
.....................!
real 27.17
user 26.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264658/ft1_filtered_4FGL_J0152.2+3714_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/264658/ltcube_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.fits outfile=/scratch/kocevski/264658/expmap_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.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/264658/ltcube_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.fits
.....................!
real 193.87
user 186.17
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 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/264658/ft1_filtered_4FGL_J0152.2+3714_weekly_bin611.fits scfile=/scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits outfile=/scratch/kocevski/264658/cmap_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.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 1.11
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264658/ft1_filtered_4FGL_J0152.2+3714_weekly_bin611.fits scfile=/scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits outfile=/scratch/kocevski/264658/cmap_HighResolution_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.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.35
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264658/ft1_filtered_4FGL_J0152.2+3714_weekly_bin611.fits', '/scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits', expMap='/scratch/kocevski/264658/expmap_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.fits', expCube='/scratch/kocevski/264658/ltcube_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264658/Model_4FGL_J0152.2+3714_weekly_bin611.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/264658/ft1_filtered_4FGL_J0152.2+3714_weekly_bin611.fits
Spacecraft file(s): /scratch/kocevski/264658/ft2_4FGL_J0152.2+3714_weekly_bin611.fits
Exposure map: /scratch/kocevski/264658/expmap_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.fits
Exposure cube: /scratch/kocevski/264658/ltcube_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264658/Model_4FGL_J0152.2+3714_weekly_bin611.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) = 4921.6608903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48774       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.153       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8563       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    221.62       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22709       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.673       1.0000         .10000E-03   10000.    
    16 'norm      '    .30728       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2124       1.0000         .10000E-03   10000.    
    18 'norm      '    .15583E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3684       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3903       1.0000         .10000E-03   10000.    
    21 'norm      '    .46550       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.244       1.0000         .10000E-03   10000.    
    23 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0053       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86803       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=   4921.653     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3215 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49099        9.6823       -.25012E-05    .23873E-03
   2  Prefactor     .10000E-03    7.8028       -.54458E-06** at limit **
   3  Prefactor     14.566        19.488       -.83146E-06    .62092E-04
   4  Prefactor     .10000E-03    35.185        .15365E-06** at limit **
   5  norm          .10000E-03    1.0466       -.21453E-06** at limit **
   6  Prefactor     .10000E-03    13.197       -.27517E-06** at limit **
   7  Prefactor     74.133        51.418       -.13238E-04    .18323E-04
   8  norm          2.8562        1.6251       -.15939E-07    .11519E-03
   9  norm          .10000E-03    .23391        .22564E-07** at limit **
  10  Prefactor     221.65        163.65        .18275E-04    .10404E-03
  11  norm          .10000E-03    .64670       -.69016E-06** at limit **
  12  Prefactor     .10000E-03    8.0258        .41969E-08** at limit **
  13  Prefactor     .23029        2.7800        .21625E-06    .12946E-03
  14  Prefactor     43.574        39.022       -.35167E-05    .85400E-04
  15  Prefactor     63.648        61.672       -.21338E-04   -.80794E-05
  16  norm          .30193        8.2637       -.17420E-05    .19768E-03
  17  Prefactor     2.2111        19.591       -.32564E-05   -.55321E-04
  18  norm          .10000E-03    3.9964        .25181E-06** at limit **
  19  Prefactor     9.3673        14.477        .34779E-06    .33808E-04
  20  norm          1.3908        .99903        .15881E-07   -.19298E-03
  21  norm          .46516        .56695        .47272E-07   -.58633E-03
  22  Prefactor     12.251        9.0980       -.15553E-05   -.13778E-03
  23  norm          .10000E-03    9.4647        .18003E-06** at limit **
  24  Prefactor     .10000E-03    164.90        .26874E-05** at limit **
  25  Normalizat    1.0054        .26195        .43095E-05    .29259E-03
  26  Prefactor     .86807        .13143        .71411E-06    .56766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.49099
  Prefactor  = 0.000100001
  Prefactor  = 14.5661
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.1328
  norm       = 2.85619
  norm       = 0.0001
  Prefactor  = 221.648
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.230293
  Prefactor  = 43.5743
  Prefactor  = 63.6484
  norm       = 0.301932
  Prefactor  = 2.21106
  norm       = 0.0001
  Prefactor  = 9.36728
  norm       = 1.39083
  norm       = 0.465163
  Prefactor  = 12.251
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00537
  Prefactor  = 0.868073
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.653     FROM HESSE     STATUS=OK           470 CALLS     3685 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49099        81.544        .41511E-02   -1.5568    
   2  Prefactor     .10000E-03    32.228        .37194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.566        19.400        .10495E-03   -1.4944    
   4  Prefactor     .10000E-03    35.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4281        .13788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     74.133        51.371        .46625E-04   -1.3984    
   8  norm          2.8562        1.6262        .65612E-04   -1.5370    
   9  norm          .10000E-03    .24504        .66190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     221.65        162.12        .13586E-03   -1.2719    
  11  norm          .10000E-03    1.0395        .10809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .23029        20.350        .21792E-02   -1.5612    
  14  Prefactor     43.574        38.738        .30364E-03   -1.4387    
  15  Prefactor     63.648        61.378        .25145E-03   -1.4111    
  16  norm          .30193        30.785        .32545E-02   -1.5598    
  17  Prefactor     2.2111        19.211        .27653E-03   -1.5411    
  18  norm          .10000E-03    6.9573        .25388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3673        14.407        .13093E-03   -1.5096    
  20  norm          1.3908        .94659        .52581E-04   -1.5472    
  21  norm          .46516        .54335        .55055E-03   -1.5572    
  22  Prefactor     12.251        8.9965        .11448E-03   -1.5008    
  23  norm          .10000E-03    9.6398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    166.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0054        .30899        .32034E-03   -.92851    
  26  Prefactor     .86807        .15691        .18412E-03   -.97266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25781e-09
Minuit parameter uncertainties:
  1  12.6713
  2  0.000321514
  3  19.4084
  4  4.37798e-05
  5  3.4597e-05
  6  0.00012893
  7  51.4015
  8  1.62626
  9  1.37495e-06
  10  162.45
  11  7.24045e-05
  12  4.84218e-06
  13  4.33024
  14  38.7603
  15  61.4388
  16  6.09978
  17  13.0403
  18  8.41527e-05
  19  14.412
  20  0.946603
  21  0.543357
  22  8.99746
  23  2.73707e-05
  24  0.000460098
  25  0.30954
  26  0.156994
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  4.842e-06  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:  8.681e-01  1.570e-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.005e+00  3.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264658/likelihoodResults_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.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) = 4921.65365195
delta logL = -0.000592704295741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4921.65305942
delta logL = -1.79911694431e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3395       1.0000          .0000       10.000    
     3 'Normalizat'    1.0053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86812       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.

 FCN=   4921.653     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1269.7        .90712E-02** at limit **
   2  Index         2.3364        5.5840        .50000        .31895E-05
   3  Normalizat    1.0054        .10788        .72402E-01    .17617E-04
   4  Prefactor     .86807        .58132E-01    .44597E-01    .58164E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33641
  Normalizat = 1.00537
  Prefactor  = 0.868072
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.653     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1193.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3364        5.2355        .50000       -.56181    
   3  Normalizat    1.0054        .10154        .32034E-03   -.92851    
   4  Prefactor     .86807        .55021E-01    .18412E-03   -.97266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39874e-09
Minuit parameter uncertainties:
  1  3.75928e-05
  2  52.7178
  3  0.101555
  4  0.0550243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264658': 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) = 4921.65305924
delta logL = 4.84124029754e-09

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  3.759e-05  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.336e+00  5.272e+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:  8.681e-01  5.502e-02  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.005e+00  1.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.063 37.234

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/264658/cmap_HighResolution_608515201_609120001_4FGL_J0152.2+3714_weekly_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-07-04 02:57:07.601014', job_id='264658', GAL2='0.87', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1625392627.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='611' AND source_name='4FGL J0152.2+3714' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 02:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 264658: <4FGL_J0152.2+3714_weekly_bin611> in cluster <slac> Done

Job <4FGL_J0152.2+3714_weekly_bin611> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Jul  4 02:41:41 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 02:41:42 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:42 2021
Terminated at Sun Jul  4 02:57:12 2021
Results reported at Sun Jul  4 02:57:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_weekly_bin611 28.0631 37.2341 608515201 609120001 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

