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


Performing analysis on: 4FGL_J0152.2+3714_weekly_bin641
RA = 28.0631, Dec = 37.2341
tmin = 626659201, tmax = 627264001
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='265813', job_status='RUN', time_executed='2021-07-04 02:51:10.909766', time_epoch_executed='1625392270.91' WHERE source_name='4FGL J0152.2+3714' and cadence='weekly' and bin_id='641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265813

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265813/ft1_4FGL_J0152.2+3714_weekly_bin641.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265813/ft2_4FGL_J0152.2+3714_weekly_bin641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265813/ft1_4FGL_J0152.2+3714_weekly_bin641.fits outfile=/scratch/kocevski/265813/ft1_filteredMKT_4FGL_J0152.2+3714_weekly_bin641.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=626659201.0 tmax=627264001.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.68
user 5.90
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265813/ft1_filtered_4FGL_J0152.2+3714_weekly_bin641.fits" evtable="EVENTS" scfile=/scratch/kocevski/265813/ft2_4FGL_J0152.2+3714_weekly_bin641.fits sctable="SC_DATA" outfile=/scratch/kocevski/265813/ltcube_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.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/265813/ft2_4FGL_J0152.2+3714_weekly_bin641.fits
.....................!
real 27.10
user 26.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265813/ft1_filtered_4FGL_J0152.2+3714_weekly_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/265813/ft2_4FGL_J0152.2+3714_weekly_bin641.fits sctable="SC_DATA" expcube=/scratch/kocevski/265813/ltcube_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.fits outfile=/scratch/kocevski/265813/expmap_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.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/265813/ltcube_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.fits
.....................!
real 194.70
user 185.75
sys 5.30

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/265813/ft1_filtered_4FGL_J0152.2+3714_weekly_bin641.fits scfile=/scratch/kocevski/265813/ft2_4FGL_J0152.2+3714_weekly_bin641.fits outfile=/scratch/kocevski/265813/cmap_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.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 0.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265813/ft1_filtered_4FGL_J0152.2+3714_weekly_bin641.fits scfile=/scratch/kocevski/265813/ft2_4FGL_J0152.2+3714_weekly_bin641.fits outfile=/scratch/kocevski/265813/cmap_HighResolution_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.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 0.66
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43176E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6481       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.768       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0326       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13176E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10818E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    28.133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17073E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    57.874       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98190       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83059       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=   2965.600     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3113 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10330E-03    25.047        .41250E-05** at limit **
   2  Prefactor     6.6468        9.5799        .28315E-05   -.19722E-03
   3  Prefactor     19.766        22.439        .41051E-07   -.69254E-04
   4  Prefactor     .10000E-03    41.564        .18004E-05** at limit **
   5  norm          3.0333        2.6064        .14382E-06   -.10161E-02
   6  Prefactor     .10000E-03    15.466        .22401E-06** at limit **
   7  Prefactor     .10000E-03    41.113        .20219E-05** at limit **
   8  norm          .10000E-03    .92215        .16569E-07** at limit **
   9  norm          2.5760        1.1960        .51025E-07   -.13601E-03
  10  Prefactor     .10000E-03    256.10        .49908E-05** at limit **
  11  norm          .10000E-03    1.2048        .99081E-07** at limit **
  12  Prefactor     .10000E-03    55.498       -.36244E-05** at limit **
  13  Prefactor     .10000E-03    19.124        .12845E-05** at limit **
  14  Prefactor     .10000E-03    41.136        .23043E-05** at limit **
  15  Prefactor     .10000E-03    64.189       -.39354E-05** at limit **
  16  norm          .10000E-03    6.9699        .63737E-07** at limit **
  17  Prefactor     .10000E-03    16.431       -.20764E-06** at limit **
  18  norm          28.070        28.717       -.28753E-05   -.51120E-03
  19  Prefactor     .10000E-03    33.796       -.24293E-05** at limit **
  20  norm          .10004E-03    3.6099        .26940E-05** at limit **
  21  norm          .10000E-03    .41152       -.19484E-06** at limit **
  22  Prefactor     .10001E-03    76.585        .36659E-05** at limit **
  23  norm          57.782        50.819       -.45538E-05   -.33168E-03
  24  Prefactor     .10001E-03    288.96       -.10558E-04** at limit **
  25  Normalizat    .98185        .34773       -.55319E-06   -.34989E-03
  26  Prefactor     .83070        .17355       -.10155E-05   -.56062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103304
  Prefactor  = 6.64682
  Prefactor  = 19.7662
  Prefactor  = 0.0001
  norm       = 3.03334
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.57598
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.0696
  Prefactor  = 0.000100001
  norm       = 0.000100036
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 57.7818
  Prefactor  = 0.00010001
  Normalizat = 0.981851
  Prefactor  = 0.830698
 **********
 **   18 **HESSE 
 **********

 FCN=   2965.600     FROM HESSE     STATUS=OK           446 CALLS     3559 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10330E-03    217.46        .48196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6468        9.5013        .77816E-03   -1.5192    
   3  Prefactor     19.766        22.456        .90085E-04   -1.4818    
   4  Prefactor     .10000E-03    41.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0333        2.5456        .73594E-04   -1.5360    
   6  Prefactor     .10000E-03    15.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .93963        .51049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5760        1.1978        .38519E-04   -1.5387    
  10  Prefactor     .10000E-03    256.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9297        .11580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    56.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    64.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.9724        .14043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          28.070        28.357        .75533E-04   -1.4648    
  19  Prefactor     .10000E-03    33.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10004E-03    11.727        .17419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .41759        .67848E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    78.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          57.782        51.663        .26367E-03   -1.4186    
  24  Prefactor     .10001E-03    289.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98185        .41236        .34387E-03   -.93641    
  26  Prefactor     .83070        .20875        .18692E-03   -.98607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8752e-08
Minuit parameter uncertainties:
  1  0.0538054
  2  9.50341
  3  22.4659
  4  0.000225816
  5  2.54566
  6  1.70208e-05
  7  0.000289221
  8  1.77888e-06
  9  1.19778
  10  0.00166795
  11  9.43981e-06
  12  0.000548705
  13  0.000148651
  14  0.000280087
  15  0.000606075
  16  1.7971e-06
  17  2.81361e-05
  18  28.3707
  19  0.000318592
  20  0.00130729
  21  5.99241e-06
  22  0.0017193
  23  51.7032
  24  0.003432
  25  0.413702
  26  0.208946
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  5.487e-04  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.307e-01  2.089e-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:  9.819e-01  4.137e-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: 2.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265813/likelihoodResults_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.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) = 2965.60001181
delta logL = -8.49463026498e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2965.59992674
delta logL = 1.18305706565e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3984       1.0000          .0000       10.000    
     3 'Normalizat'    .98185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83070       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2965.569     FROM MIGRAD    STATUS=FAILED       171 CALLS      362 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95741        566.14        .18142E-01   -.53114E-03
   2  Index         3.5819        5.3869        .20000        .34759E-04
   3  Normalizat    .95180        .21306        .34387E-03   -.16167E-04
   4  Prefactor     .83944        .73199E-01    .18692E-03   -.24146E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2965.569     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      454 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95741        566.14        .25761E-03   -.53114E-03
   2  Index         3.5819        5.3869        .23629E-02    .34759E-04
   3  Normalizat    .95180        .21306        .29201E-03   -.16167E-04
   4  Prefactor     .83944        .73199E-01    .39736E-04   -.24146E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2965.569     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      489 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95742        49.614        .20761E-03   -.74749E-05
   2  Index         3.5819        6.7905        .10285E-01    .69619E-05
   3  Normalizat    .95180        .42009        .13755E-04   -.54551E-05
   4  Prefactor     .83944        .20801        .74767E-05   -.92753E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.95742
  Index      = 3.58187
  Normalizat = 0.951801
  Prefactor  = 0.839438
 **********
 **   18 **HESSE 
 **********

 FCN=   2965.569     FROM HESSE     STATUS=OK            25 CALLS      514 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95742        14.181        .83042E-05   -1.5904    
   2  Index         3.5819        2.9933        .41138E-03   -.28757    
   3  Normalizat    .95180        .42070        .27509E-05   -.94663    
   4  Prefactor     .83944        .20830        .14953E-05   -.98291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13409e-13
Minuit parameter uncertainties:
  1  7.37125
  2  3.23269
  3  0.422167
  4  0.208492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265813': 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) = 2965.56911534
delta logL = 0.0308115203502

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  9.574e-01  7.371e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  3.582e+00  3.233e+00  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.394e-01  2.085e-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:  9.518e-01  4.222e-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/265813/cmap_HighResolution_626659201_627264001_4FGL_J0152.2+3714_weekly_bin641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', job_status='DONE', photon_flux_upper_limit='2.18e-07', time_completed='2021-07-04 03:00:41.569764', job_id='265813', GAL2='0.84', fit_tolerance='1e-08', EG2='0.95', EG='0.98', time_epoch_completed='1625392841.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.08e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='641' AND source_name='4FGL J0152.2+3714' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 03:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 265813: <4FGL_J0152.2+3714_weekly_bin641> in cluster <slac> Done

Job <4FGL_J0152.2+3714_weekly_bin641> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 02:46:04 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 02:46:05 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:46:05 2021
Terminated at Sun Jul  4 03:00:44 2021
Results reported at Sun Jul  4 03:00:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_weekly_bin641 28.0631 37.2341 626659201 627264001 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 :                                   538.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

