/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_J0413.1-5332_weekly_bin907
RA = 63.2773, Dec = -53.5483
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='17769500', job_status='RUN', time_executed='2025-12-23 00:16:17.347774', time_epoch_executed='1766477777.35' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17769500

Creating custom pfile directory:
/lscratch/kocevski/17769500/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/17769500/ft1_4FGL_J0413.1-5332_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/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17769500/ft1_4FGL_J0413.1-5332_weekly_bin907.fits outfile=/lscratch/kocevski/17769500/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin907.fits ra=63.2773 dec=-53.5483 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 5.07
user 4.40
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_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/17769500/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_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 0.64
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1438

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17769500/ltcube_787536001_788140801_4FGL_J0413.1-5332_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/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits
.....................!
real 19.27
user 18.61
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17769500/ltcube_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.fits outfile=/lscratch/kocevski/17769500/expmap_787536001_788140801_4FGL_J0413.1-5332_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/17769500/ltcube_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.fits
.....................!
real 70.03
user 65.13
sys 3.95

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 LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
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.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 198 point sources and 5 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 J0413.1-5332 @ 63.2773 -53.5483

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits scfile=/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits outfile=/lscratch/kocevski/17769500/cmap_787536001_788140801_4FGL_J0413.1-5332_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=63.2773 yref=-53.5483 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.68
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits scfile=/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits outfile=/lscratch/kocevski/17769500/cmap_HighResolution_787536001_788140801_4FGL_J0413.1-5332_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=63.2773 yref=-53.5483 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.70
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17769500/Model_4FGL_J0413.1-5332_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 Fornax A
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits.....................!
real 3330.50
user 3306.65
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits', '/lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits', expMap='/lscratch/kocevski/17769500/expmap_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.fits', expCube='/lscratch/kocevski/17769500/ltcube_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17769500/Model_4FGL_J0413.1-5332_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0413.1-5332'

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  4.872e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17769500/ft1_filtered_4FGL_J0413.1-5332_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17769500/ft2_4FGL_J0413.1-5332_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17769500/expmap_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17769500/ltcube_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17769500/Model_4FGL_J0413.1-5332_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) = 15685.1581094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21212E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.4545       1.0000          .0000       .10000E+07
     3 'norm      '    2.2216       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17342E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.8578       1.0000          .0000       .10000E+07
     6 'Prefactor '    13.190       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.740       1.0000          .0000       .10000E+07
     8 'Prefactor '    .44599E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1540       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.6153       1.0000          .0000       .10000E+07
    11 'Prefactor '    .59617E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    16.041       1.0000          .0000       .10000E+07
    13 'norm      '    5.1385       1.0000          .0000       .10000E+07
    14 'norm      '    .83005       1.0000          .0000       .10000E+07
    15 'Prefactor '    .23166E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7092       1.0000          .0000       .10000E+07
    17 'norm      '    8.1135       1.0000          .0000       .10000E+07
    18 'Prefactor '    28.596       1.0000          .0000       .10000E+07
    19 'norm      '    1.9066       1.0000          .0000       .10000E+07
    20 'Prefactor '    .70652       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11784E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.8940       1.0000          .0000       .10000E+07
    23 'Prefactor '    29.702       1.0000          .0000       .10000E+07
    24 'norm      '    3.7329       1.0000          .0000       .10000E+07
    25 'Normalizat'    .59838       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15685.03     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1830 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71188E-06    49.486        .23041E-06** at limit **
   2  Prefactor     3.4661        6.8064       -.18864E-06   -.13730E-02
   3  norm          2.2211        .67598        .67039E-07    .19146E-03
   4  Prefactor     .44409E-08    5.4784       -.30096E-06** at limit **
   5  Prefactor     4.8370        2.9968       -.51781E-07   -.82951E-03
   6  Prefactor     13.147        3.8895        .12331E-06    .38789E-01
   7  Prefactor     13.753        8.8292        .10646E-06    .13012E-01
   8  Prefactor     .14988E-08    8.4934       -.47109E-06** at limit **
   9  Prefactor     .25509        137.68        .43003E-05   -.11542E-01
  10  Prefactor     5.6370        8.0339        .23359E-06    .29258E-02
  11  Prefactor     .55511E-10    8.7341        .27174E-06** at limit **
  12  Prefactor     16.132        2.0146        .26872E-07    .19187E-01
  13  norm          5.1368        2.1201        .33081E-07   -.14862E-02
  14  norm          .82081        3.2344       -.24424E-06   -.20314E-02
  15  Prefactor     .16653E-09    31.755       -.14345E-07** at limit **
  16  Prefactor     2.7081        1.4290       -.10227E-06    .10415E-02
  17  norm          8.1126        4.8385       -.11935E-06    .19704E-03
  18  Prefactor     28.353        17.413        .52965E-06    .68503E-01
  19  norm          1.9066        .77462        .92469E-07    .28931E-03
  20  Prefactor     .70558        1.1987       -.12708E-06    .57428E-03
  21  Prefactor     .49960E-08    5.8714        .41110E-07** at limit **
  22  norm          1.8917        1.8895       -.91379E-07    .50292E-04
  23  Prefactor     29.754        1.6890       -.27610E-07   -.14252E-01
  24  norm          3.7210        2.5426       -.29080E-07    .69409E-04
  25  Normalizat    .59870        .11142       -.24804E-05   -.96111E-04
  26  Prefactor     1.1038        .11760        .50391E-06   -.10581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11875e-07
  Prefactor  = 3.46612
  norm       = 2.22115
  Prefactor  = 4.44089e-09
  Prefactor  = 4.83697
  Prefactor  = 13.147
  Prefactor  = 13.7525
  Prefactor  = 1.4988e-09
  Prefactor  = 0.255089
  Prefactor  = 5.63698
  Prefactor  = 5.55112e-11
  Prefactor  = 16.1319
  norm       = 5.13676
  norm       = 0.820806
  Prefactor  = 1.66533e-10
  Prefactor  = 2.70807
  norm       = 8.11262
  Prefactor  = 28.3526
  norm       = 1.90662
  Prefactor  = 0.705577
  Prefactor  = 4.996e-09
  norm       = 1.89171
  Prefactor  = 29.7545
  norm       = 3.72101
  Normalizat = 0.598696
  Prefactor  = 1.10377
 **********
 **   18 **HESSE 
 **********

 FCN=   15685.03     FROM HESSE     STATUS=OK           542 CALLS     2372 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71188E-06    2.0570        .55155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4661        7.2394        .54389E-03   -1.5671    
   3  norm          2.2211        .68284        .68963E-03   -1.5678    
   4  Prefactor     .44409E-08    5.5297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8370        3.0113        .45616E-03   -1.5664    
   6  Prefactor     13.147        16.667        .27554E-03   -1.5635    
   7  Prefactor     13.753        8.9114        .26995E-03   -1.5634    
   8  Prefactor     .14988E-08    .99389        .67430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .25509        11.597        .15320E-01   -1.5698    
  10  Prefactor     5.6370        8.0631        .42370E-03   -1.5660    
  11  Prefactor     .55511E-10    8.7346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.132        13.251        .24980E-03   -1.5628    
  13  norm          5.1368        2.1250        .44327E-03   -1.5663    
  14  norm          .82081        3.5935        .50721E-03   -1.5690    
  15  Prefactor     .16653E-09    30.855        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7081        1.4517        .61856E-03   -1.5675    
  17  norm          8.1126        4.8710        .35174E-03   -1.5651    
  18  Prefactor     28.353        23.253        .18704E-03   -1.5601    
  19  norm          1.9066        .77469        .75272E-03   -1.5680    
  20  Prefactor     .70558        1.2312        .60180E-03   -1.5691    
  21  Prefactor     .49960E-08    5.9367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8917        1.9206        .75565E-03   -1.5680    
  23  Prefactor     29.754        10.746        .18352E-03   -1.5599    
  24  norm          3.7210        2.6416        .52237E-03   -1.5669    
  25  Normalizat    .59870        .97601E-01    .59372E-01   -1.0804    
  26  Prefactor     1.1038        .10138        .37449E-01   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96481e-07
Minuit parameter uncertainties:
  1  0.0024202
  2  7.2394
  3  0.682844
  4  0.000313492
  5  3.0113
  6  16.6671
  7  8.91136
  8  7.73836e-05
  9  3.43994
  10  8.06314
  11  4.91403e-05
  12  13.2509
  13  2.12505
  14  3.43488
  15  0.000138614
  16  1.4517
  17  4.87099
  18  23.2535
  19  0.774695
  20  1.23122
  21  0.000343834
  22  1.92056
  23  10.7463
  24  2.64164
  25  0.0976294
  26  0.1014
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  5.551e-11  4.914e-05  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.104e+00  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  5.987e-01  9.763e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 63.277 -53.548
Photon Flux Upper Limit: 3.01795504594e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00233387210127 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17769500/likelihoodResults_787536001_788140801_4FGL_J0413.1-5332_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) = 15685.0346478
delta logL = -0.00066227237221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15685.0339865
delta logL = -9.74874637905e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15684.72     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      348 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28339E-03    .10390E-01   -.11147E-07** at limit **
   2  Index         7.5303        7.9607        .84540E-04   -.13371E-04
   3  Normalizat    .57224        .11074       -.11257E-05   -.80736E-04
   4  Prefactor     1.1227        .11784        .27867E-05    .85374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000283387
  Index      = 7.53033
  Normalizat = 0.572237
  Prefactor  = 1.12271
 **********
 **   18 **HESSE 
 **********

 FCN=   15684.72     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      385 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28339E-03    .39312E-02    .42118E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5303        2.2185        .18727        .53062    
   3  Normalizat    .57224        .13605E-01    .60672E-01   -1.0918    
   4  Prefactor     1.1227        .14724E-01    .37448E-01   -.88744    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95213e-09
Minuit parameter uncertainties:
  1  0.00211097
  2  2.33025
  3  0.0136052
  4  0.0147236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15684.7204437
delta logL = 0.313541788539

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  2.834e-04  2.111e-03  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  7.530e+00  2.330e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.123e+00  1.472e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  5.722e-01  1.361e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 63.277 -53.548

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/17769500/cmap_HighResolution_787536001_788140801_4FGL_J0413.1-5332_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-03', job_status='DONE', photon_flux_upper_limit='3.02e-08', time_completed='2025-12-23 01:27:36.999592', job_id='17769500', GAL2='1.12', fit_tolerance='1e-08', EG2='0.57', EG='0.60', time_epoch_completed='1766482057.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.14e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='907' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 01:27:37 PST 2025

