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


Performing analysis on: 4FGL_J0152.2+2206_weekly_bin906
RA = 28.0727, Dec = 22.1133
tmin = 786931201, tmax = 787536001
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='17372126', job_status='RUN', time_executed='2025-12-16 00:56:29.470962', time_epoch_executed='1765875389.47' WHERE source_name='4FGL J0152.2+2206' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372126

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17372126/ft1_4FGL_J0152.2+2206_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372126/ft1_4FGL_J0152.2+2206_weekly_bin906.fits outfile=/lscratch/kocevski/17372126/ft1_filteredMKT_4FGL_J0152.2+2206_weekly_bin906.fits ra=28.0727 dec=22.1133 rad=12.0 tmin=786931201.0 tmax=787536001.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 5.35
user 4.37
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.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/17372126/ft1_filteredMKT_4FGL_J0152.2+2206_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.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 0.89
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1722

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372126/ltcube_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.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/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits
.....................!
real 16.12
user 15.13
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372126/ltcube_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.fits outfile=/lscratch/kocevski/17372126/expmap_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.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/17372126/ltcube_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.fits
.....................!
real 60.18
user 55.65
sys 3.58

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=/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits scfile=/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits outfile=/lscratch/kocevski/17372126/cmap_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.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.96
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits scfile=/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits outfile=/lscratch/kocevski/17372126/cmap_HighResolution_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.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.98
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372126/Model_4FGL_J0152.2+2206_weekly_bin906.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/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits.....................!
real 64.24
user 62.24
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits', '/lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits', expMap='/lscratch/kocevski/17372126/expmap_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.fits', expCube='/lscratch/kocevski/17372126/ltcube_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372126/Model_4FGL_J0152.2+2206_weekly_bin906.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): /lscratch/kocevski/17372126/ft1_filtered_4FGL_J0152.2+2206_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17372126/ft2_4FGL_J0152.2+2206_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17372126/expmap_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17372126/ltcube_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372126/Model_4FGL_J0152.2+2206_weekly_bin906.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) = 18409.922406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4356       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2256       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3188       1.0000          .0000       .10000E+07
     4 'Prefactor '    .94630E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    17.043       1.0000          .0000       .10000E+07
     6 'norm      '    .87235       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.295       1.0000          .0000       .10000E+07
     8 'Prefactor '    .68396E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.1222       1.0000          .0000       .10000E+07
    10 'norm      '    .42344E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.8353       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60361E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19273E-06   1.0000          .0000       .10000E+07
    14 'norm      '    37.331       1.0000          .0000       .10000E+07
    15 'Prefactor '    18.814       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10586E-06   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1466       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92348       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=   18409.83     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1069 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4353        .41600        .12468E-06    .31554E-02
   2  Prefactor     4.0346        5.7182        .15200E-05   -.32055E-01
   3  Prefactor     1.3214        2.6604       -.57218E-06    .14980E-02
   4  Prefactor     .33307E-09    9.0027        .87547E-07** at limit **
   5  Prefactor     17.304        16.368        .33562E-05    .12602E-01
   6  norm          .87177        .36294        .27003E-07    .14302E-03
   7  Prefactor     11.367        6.4392       -.51657E-06   -.18859E-02
   8  Prefactor      .0000        3.4629        .12873E-05** at limit **
   9  Prefactor     3.0981        3.4331        .60756E-06    .24899E-03
  10  norm           .0000        1.1908        .67048E-06** at limit **
  11  Prefactor     1.8362        1.4471        .12246E-07   -.13222E-02
  12  Prefactor     .55511E-10    6.1772        .51920E-07** at limit **
  13  Prefactor      .0000        .78104        .82903E-06** at limit **
  14  norm          38.367        35.168        .13608E-05   -.10442E-01
  15  Prefactor     18.108        22.343        .21234E-05    .90623E-02
  16  Prefactor     .55511E-10    7.1234       -.24083E-05** at limit **
  17  Normalizat    1.1471        .14390        .25434E-06   -.11213E-03
  18  Prefactor     .92345        .80601E-01   -.57853E-05   -.87615E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43534
  Prefactor  = 4.03458
  Prefactor  = 1.3214
  Prefactor  = 3.33067e-10
  Prefactor  = 17.3043
  norm       = 0.871773
  Prefactor  = 11.3672
  Prefactor  = 0
  Prefactor  = 3.0981
  norm       = 0
  Prefactor  = 1.83622
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 38.3671
  Prefactor  = 18.1075
  Prefactor  = 5.55112e-11
  Normalizat = 1.14709
  Prefactor  = 0.923451
 **********
 **   18 **HESSE 
 **********

 FCN=   18409.83     FROM HESSE     STATUS=OK           284 CALLS     1353 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4353        .41882        .90064E-03   -1.5684    
   2  Prefactor     4.0346        49.898        .48996E-03   -1.5668    
   3  Prefactor     1.3214        3.2273        .95815E-03   -1.5685    
   4  Prefactor     .33307E-09    8.9295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.304        16.469        .24233E-03   -1.5625    
   6  norm          .87177        .36375        .47691E-03   -1.5689    
   7  Prefactor     11.367        6.4417        .29784E-03   -1.5641    
   8  Prefactor      .0000        3.4621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0981        3.4404        .57354E-03   -1.5673    
  10  norm           .0000        1.1816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8362        1.4580        .76989E-03   -1.5681    
  12  Prefactor     .55511E-10    6.0472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .78095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          38.367        35.518        .16369E-03   -1.5584    
  15  Prefactor     18.108        22.380        .23063E-03   -1.5623    
  16  Prefactor     .55511E-10    7.1255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1471        .12489        .68455E-01   -.88254    
  18  Prefactor     .92345        .69343E-01    .45304E-01   -.95326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56357e-07
Minuit parameter uncertainties:
  1  0.418819
  2  28.3776
  3  3.22733
  4  0.000109629
  5  16.4689
  6  0.363749
  7  6.44168
  8  1.21263e-05
  9  3.44041
  10  7.84063e-08
  11  1.45796
  12  3.5699e-05
  13  1.60153e-06
  14  35.5179
  15  22.3802
  16  4.10733e-05
  17  0.124924
  18  0.0693493
Done.

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

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.137e+01  6.442e+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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.235e-01  6.935e-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.147e+00  1.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.25
Ra Dec: 28.073 22.113
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 7.01e-06

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) = 18409.0155924
delta logL = 0.811563877807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18408.9725634
delta logL = 0.854592911674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.004       1.0000          .0000       .10000E+07
     2 'Index     '    2.0676       1.0000          .0000       10.000    
     3 'Normalizat'    1.1721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91618       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.

 FCN=   18408.97     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.004        8.4652        .30177E-03    .61331E-02
   2  Index         2.0676        .36240        .25414       -.11120E-03
   3  Normalizat    1.1721        .12086        .67822E-01    .34542E-04
   4  Prefactor     .91618        .69206E-01    .45211E-01    .15709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0041
  Index      = 2.06763
  Normalizat = 1.17209
  Prefactor  = 0.916182
 **********
 **   18 **HESSE 
 **********

 FCN=   18408.97     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.004        8.6293        .12071E-04   -1.5642    
   2  Index         2.0676        .47697        .10160E-01   -.62670    
   3  Normalizat    1.1721        .14112        .30006E-03   -.87470    
   4  Prefactor     .91618        .80325E-01    .19117E-03   -.95578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80528e-10
Minuit parameter uncertainties:
  1  8.62935
  2  0.478085
  3  0.141167
  4  0.0803357
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) = 18408.9725634
delta logL = 0.854592912889

Extracting fit parameters...

4FGL J0152.2+2206
   Spectrum: PowerLaw
218    Prefactor:  1.100e+01  8.629e+00  0.000e+00  1.000e+06 ( 1.000e-12)
219        Index:  2.068e+00  4.781e-01  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.162e-01  8.034e-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.172e+00  1.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.93
Ra Dec: 28.073 22.113
Photon Index (Free Index): 2.07 +/- 0.48
Photon Flux (Free Index): 2.87e-08 +/- 2.86e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.26e-05

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/17372126/cmap_HighResolution_786931201_787536001_4FGL_J0152.2+2206_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='1.69e-05', photon_flux_error='2.86e-08', dlogl='8.55e-01', energy_flux='1.24e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2025-12-16 01:07:00.055423', photon_index_error2='0.48', photon_index2='2.07', ts='6.25', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.15', time_epoch_completed='1765876020.06', return_code='0', job_id='17372126', GAL2='0.92', EG2='1.17', return_code2='0', energy_flux_error='7.01e-06', photon_flux_error2='2.86e-08', ts2='7.93', photon_index='2.68' WHERE bin_id='906' AND source_name='4FGL J0152.2+2206' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:07:00 PST 2025

