/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_J0047.9+2233_weekly_bin906
RA = 11.9981, Dec = 22.5632
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='17371702', job_status='RUN', time_executed='2025-12-16 00:46:02.353569', time_epoch_executed='1765874762.35' WHERE source_name='4FGL J0047.9+2233' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17371702

Creating custom pfile directory:
/lscratch/kocevski/17371702/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/17371702/ft1_4FGL_J0047.9+2233_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/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17371702/ft1_4FGL_J0047.9+2233_weekly_bin906.fits outfile=/lscratch/kocevski/17371702/ft1_filteredMKT_4FGL_J0047.9+2233_weekly_bin906.fits ra=11.9981 dec=22.5632 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 6.81
user 5.53
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_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/17371702/ft1_filteredMKT_4FGL_J0047.9+2233_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_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 1.06
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1558

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17371702/ltcube_786931201_787536001_4FGL_J0047.9+2233_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/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits
.....................!
real 20.06
user 18.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17371702/ltcube_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.fits outfile=/lscratch/kocevski/17371702/expmap_786931201_787536001_4FGL_J0047.9+2233_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/17371702/ltcube_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.fits
.....................!
real 74.99
user 69.27
sys 4.31

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

Setting source of interest to:
4FGL J0047.9+2233 @ 11.9981 22.5632

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits scfile=/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits outfile=/lscratch/kocevski/17371702/cmap_786931201_787536001_4FGL_J0047.9+2233_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=11.9981 yref=22.5632 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.97
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits scfile=/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits outfile=/lscratch/kocevski/17371702/cmap_HighResolution_786931201_787536001_4FGL_J0047.9+2233_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=11.9981 yref=22.5632 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 1.03
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17371702/Model_4FGL_J0047.9+2233_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/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits.....................!
real 65.13
user 62.51
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits', '/lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits', expMap='/lscratch/kocevski/17371702/expmap_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.fits', expCube='/lscratch/kocevski/17371702/ltcube_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17371702/Model_4FGL_J0047.9+2233_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+2233'

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  3.900e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17371702/ft1_filtered_4FGL_J0047.9+2233_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17371702/ft2_4FGL_J0047.9+2233_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17371702/expmap_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17371702/ltcube_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17371702/Model_4FGL_J0047.9+2233_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) = 16679.7971182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6230       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.3063       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30664E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.8669       1.0000          .0000       .10000E+07
     5 'norm      '    .18852E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17984E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .68778E-07   1.0000          .0000       .10000E+07
     8 'norm      '    7.7775       1.0000          .0000       .10000E+07
     9 'norm      '    7.0597       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2569       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20468E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .34051E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .57408E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.5550       1.0000          .0000       .10000E+07
    15 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.293       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.4045       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.1538       1.0000          .0000       .10000E+07
    19 'Prefactor '    .27576E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    11.371       1.0000          .0000       .10000E+07
    21 'Normalizat'    .92200       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16679.79     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1776 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6216        1.9242        .23185E-06   -.43620E-03
   2  Prefactor     5.3159        6.1930        .57315E-07   -.29139E-03
   3  Prefactor      .0000        2.0276        .26168E-06** at limit **
   4  Prefactor     9.8664        2.9173        .15010E-06    .16752E-02
   5  norm           .0000        1.1177        .28448E-06** at limit **
   6  Prefactor     .19984E-08    10.038       -.31321E-06** at limit **
   7  Prefactor      .0000        3.3547       -.17316E-06** at limit **
   8  norm          7.7765        2.4731       -.13365E-06   -.80719E-03
   9  norm          7.0536        4.3850        .16660E-06    .62687E-03
  10  Prefactor     2.2552        2.8753        .79165E-07    .21562E-03
  11  Prefactor      .0000        6.1135       -.20155E-06** at limit **
  12  Prefactor     .17986E-07    13.159        .20012E-06** at limit **
  13  Prefactor     .73275E-08    13.354       -.14073E-05** at limit **
  14  norm          1.5551        .43553       -.29088E-07    .23878E-02
  15  norm           .0000        .78284        .18572E-06** at limit **
  16  Prefactor     12.306        6.5664        .12130E-06    .17226E-02
  17  Prefactor     8.2392        3.2591       -.15042E-06    .47580E-01
  18  Prefactor     1.1637        2.6975        .37072E-06   -.35603E-03
  19  Prefactor     .53846E-08    5.1724       -.86654E-06** at limit **
  20  Prefactor     11.372        1.7871       -.21462E-07   -.16220E-01
  21  Normalizat    .92206        .13878        .25442E-06    .36085E-04
  22  Prefactor     1.0454        .95912E-01    .11280E-05    .73216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62164
  Prefactor  = 5.3159
  Prefactor  = 0
  Prefactor  = 9.86639
  norm       = 0
  Prefactor  = 1.9984e-09
  Prefactor  = 0
  norm       = 7.77652
  norm       = 7.0536
  Prefactor  = 2.25524
  Prefactor  = 0
  Prefactor  = 1.79856e-08
  Prefactor  = 7.32747e-09
  norm       = 1.55512
  norm       = 0
  Prefactor  = 12.3055
  Prefactor  = 8.23916
  Prefactor  = 1.16367
  Prefactor  = 5.38458e-09
  Prefactor  = 11.372
  Normalizat = 0.922057
  Prefactor  = 1.04537
 **********
 **   18 **HESSE 
 **********

 FCN=   16679.79     FROM HESSE     STATUS=OK           394 CALLS     2170 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6216        1.9340        .53055E-03   -1.5670    
   2  Prefactor     5.3159        6.2358        .43607E-03   -1.5662    
   3  Prefactor      .0000        2.0258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8664        2.9146        .31876E-03   -1.5645    
   5  norm           .0000        1.1248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19984E-08    10.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7765        2.4754        .35932E-03   -1.5652    
   9  norm          7.0536        4.3943        .37732E-03   -1.5655    
  10  Prefactor     2.2552        2.8902        .68357E-03   -1.5678    
  11  Prefactor      .0000        6.0917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17986E-07    13.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .73275E-08    17.614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5551        .43927        .85345E-03   -1.5683    
  15  norm           .0000        .26682        .22551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.306        6.5680        .28545E-03   -1.5638    
  17  Prefactor     8.2392        29.142        .34556E-03   -1.5651    
  18  Prefactor     1.1637        3.3000        .10754E-02   -1.5686    
  19  Prefactor     .53846E-08    19.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.372        14.460        .29685E-03   -1.5641    
  21  Normalizat    .92206        .12005        .66552E-01   -.95689    
  22  Prefactor     1.0454        .82282E-01    .40191E-01   -.91232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44374e-07
Minuit parameter uncertainties:
  1  1.934
  2  6.23577
  3  7.06156e-06
  4  2.91463
  5  5.35682e-06
  6  0.000282598
  7  1.14926e-05
  8  2.47542
  9  4.39428
  10  2.89022
  11  1.85332e-05
  12  0.000983743
  13  0.000718586
  14  0.439269
  15  5.51099e-07
  16  6.56802
  17  29.1422
  18  3.30002
  19  0.000643823
  20  14.4596
  21  0.120087
  22  0.0822914
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  0.000e+00  1.853e-05  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.045e+00  8.229e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.221e-01  1.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 11.998 22.563
Photon Flux Upper Limit: 3.75194170663e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00291983001159 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17371702/likelihoodResults_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.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) = 16679.8848369
delta logL = -0.0919511218672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16679.7928864
delta logL = -6.04311935604e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16679.79     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      194 TOTAL
                     EDM=   .71E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1345        .30652E-06** at limit **
   2  Index         2.5102        2.1057       -.12470E-04     .0000    
   3  Normalizat    .92206        .13511        .26992E-06   -.46907E-05
   4  Prefactor     1.0454        .94686E-01    .82797E-07   -.14982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.51022
  Normalizat = 0.922057
  Prefactor  = 1.04537
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16679.79     FROM HESSE     STATUS=FAILED        11 CALLS      205 TOTAL
                     EDM=   .71E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.0789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .71032        1.8988       -.12470E-04   -.52124    
   3  Normalizat    .92206        1.2564        .26992E-06   -.95689    
   4  Prefactor     1.0454        1.1969        .82797E-07   -.91232    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.09853e-14
Minuit parameter uncertainties:
  1  2.43316e-06
  2  1.22645
  3  1.30015
  4  1.22976
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) = 16679.7928858
delta logL = 0.0

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  0.000e+00  2.433e-06  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.510e+00  1.226e+00  0.000e+00  1.000e+01 (-1.000e+00)
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.045e+00  1.230e+00  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.221e-01  1.300e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 11.998 22.563

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/17371702/cmap_HighResolution_786931201_787536001_4FGL_J0047.9+2233_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-03', job_status='DONE', photon_flux_upper_limit='3.75e-08', time_completed='2025-12-16 01:00:26.208505', job_id='17371702', GAL2='1.05', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1765875626.21', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='906' AND source_name='4FGL J0047.9+2233' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:00:26 PST 2025

