aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1673
RA = 28.0631, Dec = 37.2341
tmin = 672969601, tmax = 673228801
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='351003', job_status='RUN', time_executed='2022-05-03 00:11:17.220134', time_epoch_executed='1651561877.22' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351003/ft1_4FGL_J0152.2+3714_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351003/ft2_4FGL_J0152.2+3714_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351003/ft1_4FGL_J0152.2+3714_daily_bin1673.fits outfile=/scratch/kocevski/351003/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1673.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=672969601.0 tmax=673228801.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 3.00
user 2.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351003/ft2_4FGL_J0152.2+3714_daily_bin1673.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/351003/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351003/ft1_filtered_4FGL_J0152.2+3714_daily_bin1673.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 144

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351003/ft1_filtered_4FGL_J0152.2+3714_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351003/ft2_4FGL_J0152.2+3714_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351003/ltcube_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.fits outfile=/scratch/kocevski/351003/expmap_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.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/351003/ltcube_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.fits
.....................!
real 191.46
user 186.45
sys 4.62

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/351003/ft1_filtered_4FGL_J0152.2+3714_daily_bin1673.fits scfile=/scratch/kocevski/351003/ft2_4FGL_J0152.2+3714_daily_bin1673.fits outfile=/scratch/kocevski/351003/cmap_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351003/ft1_filtered_4FGL_J0152.2+3714_daily_bin1673.fits scfile=/scratch/kocevski/351003/ft2_4FGL_J0152.2+3714_daily_bin1673.fits outfile=/scratch/kocevski/351003/cmap_HighResolution_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1484.69587238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29303E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18547E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.247       1.0000         .10000E-03   10000.    
     4 'Prefactor '    162.32       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.155       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32600E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0299       1.0000         .10000E-03   10000.    
    11 'norm      '    .58273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14812E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48267E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14417E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12419E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .25894E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28366E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .50131E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13544E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17390E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .14225E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .14561       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1484.692     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2910 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.672       -.19306E-06** at limit **
   2  Prefactor     .10000E-03    5.8191       -.72432E-06** at limit **
   3  Prefactor     60.501        34.064        .24963E-04   -.18709E-02
   4  Prefactor     165.02        105.96        .93839E-05    .11248E-02
   5  norm          4.8792        3.4630        .24864E-05   -.92865E-04
   6  Prefactor     20.663        22.787       -.41124E-05   -.88052E-04
   7  Prefactor     .10000E-03    53.885       -.67514E-06** at limit **
   8  norm          .10000E-03    .82031       -.18393E-05** at limit **
   9  norm          .10000E-03    .92671       -.35502E-06** at limit **
  10  Prefactor     .10000E-03    260.92       -.11465E-03** at limit **
  11  norm          .60149        2.0082        .16918E-04   -.54241E-03
  12  Prefactor     .10000E-03    10.568        .40448E-05** at limit **
  13  Prefactor     .10000E-03    6.6463       -.22277E-05** at limit **
  14  Prefactor     .10000E-03    44.770       -.26439E-04** at limit **
  15  Prefactor     .10000E-03    55.125       -.18482E-04** at limit **
  16  norm          .10000E-03    12.044       -.29304E-06** at limit **
  17  Prefactor     .10000E-03    17.916        .17678E-06** at limit **
  18  norm          .10037E-03    194.50        .71466E-04** at limit **
  19  Prefactor     .12832E-03    160.36       -.12216E-03** at limit **
  20  norm          .10000E-03    24.228        .45169E-05** at limit **
  21  norm          .10000E-03    2.8380        .37689E-05** at limit **
  22  Prefactor    10000.0        13.031       -.22068E-04** at limit **
  23  norm         10000.0        131.78       -.86206E-04** at limit **
  24  Prefactor    10000.0        129.54        .45692E-04** at limit **
  25  Normalizat    .13698        .55868       -.44843E-04    .27078E-07
  26  Prefactor     .76848        .25614       -.11163E-04    .26970E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.5007
  Prefactor  = 165.019
  norm       = 4.87916
  Prefactor  = 20.6626
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.601485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100372
  Prefactor  = 0.000128318
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.136979
  Prefactor  = 0.768476
 **********
 **   18 **HESSE 
 **********

 FCN=   1484.692     FROM HESSE     STATUS=NOT POSDEF   496 CALLS     3406 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.093        .99269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.501        143.70        .13142E-02   -1.4151    
   4  Prefactor     165.02        192.28        .79135E-03   -1.3132    
   5  norm          4.8792        6.0630        .45807E-02   -1.5266    
   6  Prefactor     20.663        64.082        .21771E-02   -1.4799    
   7  Prefactor     .10000E-03    50.830        .98682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .77351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .74790        .15806E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    647.43        .12521E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .60149        3.2065        .11604E-01   -1.5553    
  12  Prefactor     .10000E-03    9.9738        .10240E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2268        .10587E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.231        .10251E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.950        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.361        .10725E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.926        .99442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10037E-03    184.69        .92707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12832E-03    227.35        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    22.858        .10175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        422.45        .95763E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        418.27        .91361E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        6335.8        .95063E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .13698        9.8092        .18380       -1.3448    
  26  Prefactor     .76848        1.3242        .43295E-01   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.97898e-07
Minuit parameter uncertainties:
  1  1.96275e-06
  2  3.53055e-06
  3  144.539
  4  193.014
  5  6.06381
  6  64.2966
  7  1.2596e-05
  8  3.40132e-06
  9  6.42126e-07
  10  0.00219753
  11  2.77752
  12  2.68934e-05
  13  1.16778e-05
  14  0.000365763
  15  0.000312205
  16  2.0917e-06
  17  1.37345e-06
  18  0.0166366
  19  0.161088
  20  4.50795e-05
  21  1.29738e-05
  22  0.0813843
  23  0.376918
  24  3.4685
  25  3.4243
  26  1.38584
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1484.69241396

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  2.689e-05  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:  7.685e-01  1.386e+00  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.370e-01  3.424e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/351003/likelihoodResults_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.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) = 1484.69274764
delta logL = -0.000333677319077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1484.69241427
delta logL = -3.11179974233e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3146       1.0000          .0000       10.000    
     3 'Normalizat'    .13697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76847       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=   1484.692     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10538E-03    15.755        .12866E-01** at limit **
   2  Index         2.2053        8.8871        .50000        .24324E-04
   3  Normalizat    .13698        .11919E-01    .78492E-02   -.19428E-04
   4  Prefactor     .76847        .62528E-02    .17931E-03   -.12448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010538
  Index      = 2.20533
  Normalizat = 0.13698
  Prefactor  = 0.768474
 **********
 **   18 **HESSE 
 **********

 FCN=   1484.692     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      279 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10538E-03    138.14        .13564E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2053        7.1685        .50000       -.59310    
   3  Normalizat    .13698        .35707E-01    .31397E-03   -1.3448    
   4  Prefactor     .76847        .18733E-01    .35862E-04   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.29935e-09
Minuit parameter uncertainties:
  1  0.0546477
  2  360.947
  3  0.0357129
  4  0.0187333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351003': 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) = 1484.69241329
delta logL = 6.71314865031e-07

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.054e-04  5.465e-02  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.205e+00  3.609e+02  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:  7.685e-01  1.873e-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.370e-01  3.571e-02  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/351003/cmap_HighResolution_672969601_673228801_4FGL_J0152.2+3714_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2022-05-03 00:18:27.373154', job_id='351003', GAL2='0.77', fit_tolerance='1e-08', EG2='0.14', EG='0.14', time_epoch_completed='1651562307.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.77', dlogl='6.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1673' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:18:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 351002: <4FGL_J0152.2+3714_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:30 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:20 2022
Terminated at Tue May  3 00:17:53 2022
Results reported at Tue May  3 00:17:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1673 28.0631 37.2341 672969601 673228801 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 :                                   435.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            743 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 351003: <4FGL_J0152.2+3714_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:30 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:20 2022
Terminated at Tue May  3 00:18:28 2022
Results reported at Tue May  3 00:18:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1673 28.0631 37.2341 672969601 673228801 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 :                                   432.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            778 sec.

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

