/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_J0225.6-4502_weekly_bin906
RA = 36.4048, Dec = -45.0366
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='17372625', job_status='RUN', time_executed='2025-12-16 01:02:23.744421', time_epoch_executed='1765875743.74' WHERE source_name='4FGL J0225.6-4502' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372625

Creating custom pfile directory:
/lscratch/kocevski/17372625/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/17372625/ft1_4FGL_J0225.6-4502_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/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372625/ft1_4FGL_J0225.6-4502_weekly_bin906.fits outfile=/lscratch/kocevski/17372625/ft1_filteredMKT_4FGL_J0225.6-4502_weekly_bin906.fits ra=36.4048 dec=-45.0366 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 7.29
user 4.78
sys 0.42

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_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/17372625/ft1_filteredMKT_4FGL_J0225.6-4502_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_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 2.37
user 0.43
sys 0.21

Number of photons that the gtmktime cut: 1039

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372625/ltcube_786931201_787536001_4FGL_J0225.6-4502_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/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits
.....................!
real 21.34
user 18.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372625/ltcube_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.fits outfile=/lscratch/kocevski/17372625/expmap_786931201_787536001_4FGL_J0225.6-4502_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/17372625/ltcube_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.fits
.....................!
real 66.96
user 60.00
sys 4.23

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
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 180 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0225.6-4502 @ 36.4048 -45.0366

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits scfile=/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits outfile=/lscratch/kocevski/17372625/cmap_786931201_787536001_4FGL_J0225.6-4502_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=36.4048 yref=-45.0366 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.93
user 0.26
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits scfile=/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits outfile=/lscratch/kocevski/17372625/cmap_HighResolution_786931201_787536001_4FGL_J0225.6-4502_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=36.4048 yref=-45.0366 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.96
user 0.34
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372625/Model_4FGL_J0225.6-4502_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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits.....................!
real 82.80
user 77.02
sys 2.48

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits', '/lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits', expMap='/lscratch/kocevski/17372625/expmap_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.fits', expCube='/lscratch/kocevski/17372625/ltcube_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372625/Model_4FGL_J0225.6-4502_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.6-4502'

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.072e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372625/ft1_filtered_4FGL_J0225.6-4502_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17372625/ft2_4FGL_J0225.6-4502_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17372625/expmap_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17372625/ltcube_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372625/Model_4FGL_J0225.6-4502_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) = 11434.5988504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.917       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25219E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.4186       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.6041       1.0000          .0000       .10000E+07
     5 'norm      '    .21709E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .14821E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28562       1.0000          .0000       .10000E+07
     8 'Prefactor '    .56600E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.7825       1.0000          .0000       .10000E+07
    10 'norm      '    2.8396       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44070E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36438E-03   1.0000          .0000       .10000E+07
    13 'norm      '    3.0375       1.0000          .0000       .10000E+07
    14 'norm      '    2.1420       1.0000          .0000       .10000E+07
    15 'Prefactor '    .15283E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .37220E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    10.225       1.0000          .0000       .10000E+07
    18 'norm      '    .13267E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.6212       1.0000          .0000       .10000E+07
    20 'Prefactor '    .46075E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    9.2664       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24092E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17143E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    .97899       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11433.49     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1618 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.928        3.5409        .71774E-07    .90528E-01
   2  Prefactor     .30087E-07    39.083       -.27918E-06** at limit **
   3  Prefactor     9.3368        5.2514        .72929E-07    .10962E-01
   4  Prefactor     7.6209        4.6495       -.20291E-08   -.56566E-03
   5  norm          .81601E-08    21.405       -.74277E-06** at limit **
   6  norm           .0000        1.1659       -.66691E-07** at limit **
   7  Prefactor     .65036        23.813        .15242E-05    .25278E-02
   8  Prefactor     .59064E-07    15.471        .10164E-05** at limit **
   9  Prefactor     2.7838        3.0075        .21153E-06    .29568E-03
  10  norm          2.8399        1.0079        .29577E-07   -.19717E-02
  11  Prefactor     .55511E-10    3.4928        .16604E-06** at limit **
  12  Prefactor     .92149E-08    2.8713       -.10814E-06** at limit **
  13  norm          3.0382        1.2997       -.67171E-07   -.58511E-03
  14  norm          2.1468        2.2370       -.95918E-09   -.57167E-03
  15  Prefactor     .92704E-08    5.4982        .12318E-06** at limit **
  16  Prefactor     .36271E-06    3.1208        .44605E-06** at limit **
  17  Prefactor     10.102        5.9568       -.17939E-06    .83709E-01
  18  norm           .0000        .15915        .15233E-07** at limit **
  19  Prefactor     1.6205        3.0082        .25547E-06    .45553E-03
  20  Prefactor     .33307E-08    2.4403        .13270E-06** at limit **
  21  Prefactor     9.2631        2.7908       -.11009E-06   -.41899E-01
  22  Prefactor      .0000        1.2002        .39770E-07** at limit **
  23  Prefactor     .62728E-08    6.2659        .16689E-06** at limit **
  24  Normalizat    .97856        .14433       -.10222E-04   -.84303E-04
  25  Prefactor     1.0093        .15727        .57499E-05   -.45248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.9277
  Prefactor  = 3.0087e-08
  Prefactor  = 9.33682
  Prefactor  = 7.62088
  norm       = 8.16014e-09
  norm       = 0
  Prefactor  = 0.650357
  Prefactor  = 5.90639e-08
  Prefactor  = 2.78379
  norm       = 2.83986
  Prefactor  = 5.55112e-11
  Prefactor  = 9.21485e-09
  norm       = 3.03819
  norm       = 2.14683
  Prefactor  = 9.27036e-09
  Prefactor  = 3.6271e-07
  Prefactor  = 10.1016
  norm       = 0
  Prefactor  = 1.62049
  Prefactor  = 3.33067e-09
  Prefactor  = 9.26312
  Prefactor  = 0
  Prefactor  = 6.27276e-09
  Normalizat = 0.978556
  Prefactor  = 1.00932
 **********
 **   18 **HESSE 
 **********

 FCN=   11433.49     FROM HESSE     STATUS=OK           481 CALLS     2099 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.928        9.0386        .16460E-03   -1.5586    
   2  Prefactor     .30087E-07    37.634        .16715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3368        5.3246        .32630E-03   -1.5647    
   4  Prefactor     7.6209        4.6564        .36343E-03   -1.5653    
   5  norm          .81601E-08    21.187        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        1.1658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65036        5.1226        .10415E-01   -1.5692    
   8  Prefactor     .59064E-07    15.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7838        3.0204        .60976E-03   -1.5675    
  10  norm          2.8399        1.0119        .60318E-03   -1.5674    
  11  Prefactor     .55511E-10    3.5389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .92149E-08    4.9187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0382        1.3002        .58194E-03   -1.5673    
  14  norm          2.1468        2.4261        .70392E-03   -1.5679    
  15  Prefactor     .92704E-08    11.797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36271E-06    9.4283        .16092E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.102        23.489        .31311E-03   -1.5644    
  18  norm           .0000        .15887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6205        3.0250        .83087E-03   -1.5683    
  20  Prefactor     .33307E-08    5.0653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2631        9.1503        .32899E-03   -1.5647    
  22  Prefactor      .0000        1.1998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .62728E-08    11.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97856        .12226        .45903E-01   -.93752    
  25  Prefactor     1.0093        .13313        .43443E-01   -.92420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37051e-07
Minuit parameter uncertainties:
  1  9.03863
  2  0.00212798
  3  5.3246
  4  4.65639
  5  0.000830441
  6  6.76987e-06
  7  3.65049
  8  0.00191809
  9  3.0204
  10  1.01191
  11  3.10186e-05
  12  0.000426109
  13  1.30023
  14  2.42611
  15  0.000660678
  16  0.00369856
  17  23.489
  18  1.39359e-07
  19  3.02502
  20  0.000259862
  21  9.15034
  22  2.48824e-07
  23  0.000539382
  24  0.122298
  25  0.13317
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  5.551e-11  3.102e-05  0.000e+00  1.000e+06 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.009e+00  1.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.786e-01  1.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 3.47708141194e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00270069068208 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372625/likelihoodResults_786931201_787536001_4FGL_J0225.6-4502_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): 102
logL (Free Index) = 11433.4936122
delta logL = -0.0075114129686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11433.4861033
delta logL = -2.45011869993e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   11433.49     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      226 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6454        .42118E-03** at limit **
   2  Index         1.0378        .69646        .37132E-04     .0000    
   3  Normalizat    .97856        1.3096        .79502E-05    .84522E-04
   4  Prefactor     1.0093        1.2680       -.97374E-05    .67070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.03782
  Normalizat = 0.978557
  Prefactor  = 1.00932
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53198E-01    1.0893        .37132E-04   -.91479    
   3  Normalizat    .97856        1.3096        .79502E-05   -.93752    
   4  Prefactor     1.0093        1.2680       -.97374E-05   -.92420    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.71237e-12
Minuit parameter uncertainties:
  1  4.97781e-06
  2  0.70266
  3  1.35672
  4  1.30876
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) = 11433.4861008
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  0.000e+00  4.978e-06  0.000e+00  1.000e+06 ( 1.000e-13)
285        Index:  1.038e+00  7.027e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.009e+00  1.309e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.786e-01  1.357e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.405 -45.037

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/17372625/cmap_HighResolution_786931201_787536001_4FGL_J0225.6-4502_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2025-12-16 01:18:21.201838', job_id='17372625', GAL2='1.01', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1765876701.2', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='906' AND source_name='4FGL J0225.6-4502' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:18:22 PST 2025

