/sdf/group/fermi/u/kocevski/software/conda/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)

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).

/sdf/group/fermi/u/kocevski/software/conda/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 = 17524
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_weekly_bin907
RA = 28.1614, Dec = 1.7894
tmin = 787536001, tmax = 788140801
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='17769298', job_status='RUN', time_executed='2025-12-23 00:10:59.848591', time_epoch_executed='1766477459.85' WHERE source_name='4FGL J0152.6+0147' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17769298

Creating custom pfile directory:
/lscratch/kocevski/17769298/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=787536001.0 && nMetStart<788140801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=787536001.0 && nMetStart<788140801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17769298/ft1_4FGL_J0152.6+0147_weekly_bin907.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=787536001.0 && nMetStart<788140801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17769298/ft1_4FGL_J0152.6+0147_weekly_bin907.fits outfile=/lscratch/kocevski/17769298/ft1_filteredMKT_4FGL_J0152.6+0147_weekly_bin907.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=787536001.0 tmax=788140801.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.00
user 4.75
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17769298/ft1_filteredMKT_4FGL_J0152.6+0147_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.04
user 0.25
sys 0.14

Number of photons that the gtmktime cut: 1201

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17769298/ltcube_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.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 /lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits
.....................!
real 21.34
user 20.38
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17769298/ltcube_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.fits outfile=/lscratch/kocevski/17769298/expmap_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.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 /lscratch/kocevski/17769298/ltcube_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.fits
.....................!
real 79.53
user 74.09
sys 4.41

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

Setting source of interest to:
4FGL J0152.6+0147 @ 28.1614 1.7894

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits scfile=/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits outfile=/lscratch/kocevski/17769298/cmap_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.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.1614 yref=1.7894 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.98
user 0.28
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits scfile=/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits outfile=/lscratch/kocevski/17769298/cmap_HighResolution_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.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.1614 yref=1.7894 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.98
user 0.26
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17769298/Model_4FGL_J0152.6+0147_weekly_bin907.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...
/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits.....................!
real 63.33
user 61.19
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits', '/lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits', expMap='/lscratch/kocevski/17769298/expmap_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.fits', expCube='/lscratch/kocevski/17769298/ltcube_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17769298/Model_4FGL_J0152.6+0147_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.6+0147'

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.406e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17769298/ft1_filtered_4FGL_J0152.6+0147_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17769298/ft2_4FGL_J0152.6+0147_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17769298/expmap_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17769298/ltcube_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17769298/Model_4FGL_J0152.6+0147_weekly_bin907.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) = 13669.5526206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10277E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .64574       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6676       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4449       1.0000          .0000       .10000E+07
     5 'Prefactor '    .25659E-02   1.0000          .0000       .10000E+07
     6 'norm      '    15.294       1.0000          .0000       .10000E+07
     7 'Prefactor '    .57990E-05   1.0000          .0000       .10000E+07
     8 'norm      '    13.269       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8700       1.0000          .0000       .10000E+07
    10 'norm      '    2.6264       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.9582       1.0000          .0000       .10000E+07
    12 'norm      '    1.0018       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20677E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.0089       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34978E-04   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13669.49     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      990 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    23.772        .18723E-05** at limit **
   2  norm          .64581        .80433       -.60659E-07   -.99038E-04
   3  Prefactor     1.6822        4.3949        .31872E-06    .65242E-03
   4  Prefactor     2.4488        6.0999        .45080E-06    .67743E-03
   5  Prefactor      .0000        19.029       -.21585E-05** at limit **
   6  norm          15.304        5.1143        .57394E-07    .17300E-02
   7  Prefactor      .0000        1.1266        .20615E-06** at limit **
   8  norm          13.475        9.6227       -.26121E-07    .83607E-04
   9  Prefactor     3.8031        4.7262       -.33536E-06   -.43574E-03
  10  norm          2.6300        2.9849        .38721E-06   -.17946E-03
  11  Prefactor     5.9661        2.1130       -.75263E-07   -.11263E-02
  12  norm          1.0024        .52156       -.90146E-08    .21928E-02
  13  Prefactor      .0000        11.602        .12239E-05** at limit **
  14  Prefactor     .42127        634.91        .91452E-05   -.11149E-03
  15  Prefactor      .0000        25.083       -.28709E-05** at limit **
  16  Normalizat    1.0295        .13664       -.66489E-05    .16903E-04
  17  Prefactor     .92264        .11448        .62625E-05    .33249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 0.645813
  Prefactor  = 1.68222
  Prefactor  = 2.4488
  Prefactor  = 0
  norm       = 15.3042
  Prefactor  = 0
  norm       = 13.4755
  Prefactor  = 3.80311
  norm       = 2.62998
  Prefactor  = 5.96613
  norm       = 1.00237
  Prefactor  = 0
  Prefactor  = 0.421271
  Prefactor  = 0
  Normalizat = 1.02947
  Prefactor  = 0.922637
 **********
 **   18 **HESSE 
 **********

 FCN=   13669.49     FROM HESSE     STATUS=OK           265 CALLS     1255 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    23.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .64581        .81803        .65226E-03   -1.5692    
   3  Prefactor     1.6822        4.4328        .81623E-03   -1.5682    
   4  Prefactor     2.4488        6.0971        .65401E-03   -1.5677    
   5  Prefactor      .0000        19.129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.304        5.1110        .25585E-03   -1.5630    
   7  Prefactor      .0000        1.1254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.475        9.6232        .27472E-03   -1.5635    
   9  Prefactor     3.8031        4.7484        .51270E-03   -1.5669    
  10  norm          2.6300        3.0056        .62901E-03   -1.5676    
  11  Prefactor     5.9661        2.1301        .41114E-03   -1.5659    
  12  norm          1.0024        .52302        .43827E-03   -1.5688    
  13  Prefactor      .0000        11.633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .42127        27.930        .16403E-01   -1.5695    
  15  Prefactor      .0000        24.945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0295        .11949        .42161E-01   -.92050    
  17  Prefactor     .92264        .99249E-01    .45285E-01   -.95355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48252e-07
Minuit parameter uncertainties:
  1  7.72281e-05
  2  0.818034
  3  4.43283
  4  6.09708
  5  3.02863e-05
  6  5.11097
  7  6.57578e-09
  8  9.62322
  9  4.74837
  10  3.00563
  11  2.13008
  12  0.523015
  13  1.92642e-05
  14  6.86038
  15  1.27561e-05
  16  0.119523
  17  0.0992686
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  0.000e+00  6.576e-09  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.226e-01  9.927e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.029e+00  1.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 2.57715370803e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00193026478972 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17769298/likelihoodResults_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.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) = 13669.4904809
delta logL = -0.00171013314866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13669.4887708
delta logL = -6.17328623775e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17930E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0863       1.0000          .0000       10.000    
     3 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13669.49     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      241 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .17704        .28813E-02** at limit **
   2  Index         2.9060        1.6897       -.37447E-05     .0000    
   3  Normalizat    1.0295        1.2390       -.27210E-05   -.18296E-04
   4  Prefactor     .92264        1.2664        .12390E-05   -.46221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.90603
  Normalizat = 1.02947
  Prefactor  = 0.922636
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13669.49     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .17704        .28813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95597        2.1005       -.37447E-05   -.43212    
   3  Normalizat    1.0295        1.2390       -.27210E-05   -.92050    
   4  Prefactor     .92264        1.2664        .12390E-05   -.95355    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.06051e-12
Minuit parameter uncertainties:
  1  5.50443e-07
  2  1.73134
  3  1.2766
  4  1.31076
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) = 13669.4887708
delta logL = 0.0

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  0.000e+00  5.504e-07  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  2.906e+00  1.731e+00  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.226e-01  1.311e+00  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.029e+00  1.277e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 28.161 1.789

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 /lscratch/kocevski/17769298/cmap_HighResolution_787536001_788140801_4FGL_J0152.6+0147_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-03', job_status='DONE', photon_flux_upper_limit='2.58e-08', time_completed='2025-12-23 00:26:53.735818', job_id='17769298', GAL2='0.92', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1766478413.74', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='907' AND source_name='4FGL J0152.6+0147' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 00:26:53 PST 2025

