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 79 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0152.2+2206_daily_bin1771
RA = 28.0727, Dec = 22.1133
tmin = 698371201, tmax = 698630401
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='534604', job_status='RUN', time_executed='2023-02-21 00:07:22.372964', time_epoch_executed='1676966842.37' WHERE source_name='4FGL J0152.2+2206' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534604/ft1_4FGL_J0152.2+2206_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534604/ft1_4FGL_J0152.2+2206_daily_bin1771.fits outfile=/scratch/kocevski/534604/ft1_filteredMKT_4FGL_J0152.2+2206_daily_bin1771.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=698371201.0 tmax=698630401.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.62
user 2.87
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits

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

Number of photons that the gtmktime cut: 1102

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/534604/ltcube_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.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/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits
.....................!
real 13.15
user 12.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/534604/ltcube_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.fits outfile=/scratch/kocevski/534604/expmap_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.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/534604/ltcube_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.fits
.....................!
real 191.87
user 185.88
sys 5.02

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

Setting source of interest to:
4FGL J0152.2+2206 @ 28.0727 22.1133

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits scfile=/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits outfile=/scratch/kocevski/534604/cmap_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.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.0727 yref=22.1133 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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits scfile=/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits outfile=/scratch/kocevski/534604/cmap_HighResolution_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.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.0727 yref=22.1133 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534604/Model_4FGL_J0152.2+2206_daily_bin1771.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/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits.....................!
real 127.98
user 125.84
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits', '/scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits', expMap='/scratch/kocevski/534604/expmap_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.fits', expCube='/scratch/kocevski/534604/ltcube_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/534604/Model_4FGL_J0152.2+2206_daily_bin1771.xml', optimizer='MINUIT')

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

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  3.965e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/534604/ft1_filtered_4FGL_J0152.2+2206_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/534604/ft2_4FGL_J0152.2+2206_daily_bin1771.fits
Exposure map: /scratch/kocevski/534604/expmap_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.fits
Exposure cube: /scratch/kocevski/534604/ltcube_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/534604/Model_4FGL_J0152.2+2206_daily_bin1771.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) = 11905.2947089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76246       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.7102       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4501       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2092       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19599E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6757       1.0000          .0000       .10000E+07
     7 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15289       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2953       1.0000          .0000       .10000E+07
    10 'norm      '    .67040E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.9987       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.6772       1.0000          .0000       .10000E+07
    13 'Prefactor '    .48084E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .35188E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .39468E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.924       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1988       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11905.29     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1306 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76234        .49152        .76597E-08    .14642E-02
   2  Prefactor     4.7076        1.1059       -.56758E-08   -.33877E-02
   3  Prefactor     1.4496        2.6508        .27851E-08    .43859E-04
   4  Prefactor     4.2163        8.6658        .53714E-08    .41212E-02
   5  Prefactor     .43299E-08    7.5821        .41960E-06** at limit **
   6  norm          1.6756        .56133       -.17969E-07   -.63919E-03
   7  Prefactor     .11102E-09    3.7651       -.44511E-07** at limit **
   8  Prefactor     .10566        3.7978       -.67443E-07** at limit **
   9  Prefactor     2.2951        3.4990       -.11813E-06   -.13204E-03
  10  norm          .17375E-07    9.4244        .28903E-06** at limit **
  11  Prefactor     2.9985        2.1163       -.41285E-07   -.10621E-03
  12  Prefactor     7.6698        6.3168        .17451E-06   -.29991E-02
  13  Prefactor      .0000        1.4506       -.48615E-07** at limit **
  14  norm          .22038E-07    20.192       -.47239E-07** at limit **
  15  Prefactor     .72664E-07    27.928       -.26358E-06** at limit **
  16  Prefactor     35.879        1.2505       -.38459E-08    .44490E-01
  17  Normalizat    1.1988        .19019       -.27097E-06    .14225E-04
  18  Prefactor     .98648        .10417        .12080E-05    .14401E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.762338
  Prefactor  = 4.70761
  Prefactor  = 1.44961
  Prefactor  = 4.2163
  Prefactor  = 4.32987e-09
  norm       = 1.67562
  Prefactor  = 1.11022e-10
  Prefactor  = 0.105658
  Prefactor  = 2.29513
  norm       = 1.7375e-08
  Prefactor  = 2.9985
  Prefactor  = 7.66976
  Prefactor  = 0
  norm       = 2.20379e-08
  Prefactor  = 7.26641e-08
  Prefactor  = 35.8794
  Normalizat = 1.19878
  Prefactor  = 0.986485
 **********
 **   18 **HESSE 
 **********

 FCN=   11905.29     FROM HESSE     STATUS=OK           286 CALLS     1592 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76234        .49228        .55776E-04   -1.5691    
   2  Prefactor     4.7076        23.748        .46341E-03   -1.5665    
   3  Prefactor     1.4496        2.7812        .89439E-03   -1.5684    
   4  Prefactor     4.2163        8.6995        .49094E-03   -1.5667    
   5  Prefactor     .43299E-08    7.6196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6756        .56280        .81375E-03   -1.5682    
   7  Prefactor     .11102E-09    3.7559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10566        12.630        .12683E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2951        3.5307        .67718E-03   -1.5678    
  10  norm          .17375E-07    9.0746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9985        2.1227        .58592E-03   -1.5673    
  12  Prefactor     7.6698        6.7093        .36168E-03   -1.5653    
  13  Prefactor      .0000        1.4524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22038E-07    20.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .72664E-07    28.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.879        46.934        .16686E-03   -1.5588    
  17  Normalizat    1.1988        .16391        .71369E-01   -.86640    
  18  Prefactor     .98648        .90254E-01    .46098E-01   -.93181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63261e-07
Minuit parameter uncertainties:
  1  0.492278
  2  21.1467
  3  2.78115
  4  8.6995
  5  0.000362587
  6  0.562799
  7  4.52168e-05
  8  2.31034
  9  3.53074
  10  0.000794343
  11  2.12267
  12  6.70932
  13  1.02013e-05
  14  0.00133551
  15  0.00285279
  16  46.9345
  17  0.163979
  18  0.0902675
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.110e-10  4.522e-05  0.000e+00  1.000e+06 ( 1.000e-12)
219        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.865e-01  9.027e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.199e+00  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.073 22.113
Photon Flux Upper Limit: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534604/likelihoodResults_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.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) = 11905.2940545
delta logL = -0.000400148965127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11905.2936553
delta logL = -1.00510806078e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.1260       1.0000          .0000       10.000    
     3 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11905.29     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      248 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7729        .42118E-03** at limit **
   2  Index         3.7504        1.7359        .26142E-03     .0000    
   3  Normalizat    1.1988        1.1069        .43669E-05   -.24735E-03
   4  Prefactor     .98649        1.3264       -.75610E-05   -.22432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.75042
  Normalizat = 1.19878
  Prefactor  = 0.986485
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11905.29     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5460        2.2875        .26142E-03   -.25259    
   3  Normalizat    1.1988        1.1069        .43669E-05   -.86640    
   4  Prefactor     .98649        1.3264       -.75610E-05   -.93181    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.89583e-11
Minuit parameter uncertainties:
  1  2.00223e-06
  2  1.77545
  3  1.12972
  4  1.37461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534604': 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): 101
logL (Free Index) = 11905.2936543
delta logL = -2.0008883439e-11

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  0.000e+00  2.002e-06  0.000e+00  1.000e+06 ( 1.000e-12)
219        Index:  3.750e+00  1.775e+00  0.000e+00  1.000e+01 (-1.000e+00)
220        Scale:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.865e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.199e+00  1.130e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.073 22.113

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/534604/cmap_HighResolution_698371201_698630401_4FGL_J0152.2+2206_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2023-02-21 00:20:11.852781', job_id='534604', GAL2='0.99', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1676967611.85', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-2.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1771' AND source_name='4FGL J0152.2+2206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:20:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 534537: <4FGL_J0152.2+2206_daily_bin1771> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1771> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 00:05:14 2023
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:05:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:05:16 2023
Terminated at Tue Feb 21 00:18:07 2023
Results reported at Tue Feb 21 00:18:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1771 28.0727 22.1133 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+2206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             330.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 534604: <4FGL_J0152.2+2206_daily_bin1771> in cluster <slac> Done

Job <4FGL_J0152.2+2206_daily_bin1771> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Feb 21 00:05:16 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:05:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:05:17 2023
Terminated at Tue Feb 21 00:20:12 2023
Results reported at Tue Feb 21 00:20:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+2206_daily_bin1771 28.0727 22.1133 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+2206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

