/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_J0204.8+1513_weekly_bin906
RA = 31.2182, Dec = 15.2326
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='17372474', job_status='RUN', time_executed='2025-12-16 01:00:45.889836', time_epoch_executed='1765875645.89' WHERE source_name='4FGL J0204.8+1513' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372474

Creating custom pfile directory:
/lscratch/kocevski/17372474/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/17372474/ft1_4FGL_J0204.8+1513_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/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372474/ft1_4FGL_J0204.8+1513_weekly_bin906.fits outfile=/lscratch/kocevski/17372474/ft1_filteredMKT_4FGL_J0204.8+1513_weekly_bin906.fits ra=31.2182 dec=15.2326 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.38
user 4.48
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_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/17372474/ft1_filteredMKT_4FGL_J0204.8+1513_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_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.18
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 1556

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372474/ltcube_786931201_787536001_4FGL_J0204.8+1513_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/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits
.....................!
real 16.31
user 15.23
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372474/ltcube_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.fits outfile=/lscratch/kocevski/17372474/expmap_786931201_787536001_4FGL_J0204.8+1513_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/17372474/ltcube_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.fits
.....................!
real 61.78
user 57.08
sys 3.52

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

Setting source of interest to:
4FGL J0204.8+1513 @ 31.2182 15.2326

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits scfile=/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits outfile=/lscratch/kocevski/17372474/cmap_786931201_787536001_4FGL_J0204.8+1513_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=31.2182 yref=15.2326 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.06
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits scfile=/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits outfile=/lscratch/kocevski/17372474/cmap_HighResolution_786931201_787536001_4FGL_J0204.8+1513_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=31.2182 yref=15.2326 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.12
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372474/Model_4FGL_J0204.8+1513_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/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits.....................!
real 67.94
user 65.51
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits', '/lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits', expMap='/lscratch/kocevski/17372474/expmap_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.fits', expCube='/lscratch/kocevski/17372474/ltcube_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372474/Model_4FGL_J0204.8+1513_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0204.8+1513'

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.139e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372474/ft1_filtered_4FGL_J0204.8+1513_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17372474/ft2_4FGL_J0204.8+1513_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17372474/expmap_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17372474/ltcube_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372474/Model_4FGL_J0204.8+1513_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) = 16836.5320834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.358       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.190       1.0000          .0000       .10000E+07
     3 'norm      '    .72326E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3223       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2872       1.0000          .0000       .10000E+07
     6 'norm      '    4.4474       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.5943       1.0000          .0000       .10000E+07
     9 'norm      '    36.044       1.0000          .0000       .10000E+07
    10 'Prefactor '    .45939E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    32.333       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10060E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .98255E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .55900E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5050       1.0000          .0000       .10000E+07
    16 'Prefactor '    .16877E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .16704       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11445E-02   1.0000          .0000       .10000E+07
    19 'norm      '    16.202       1.0000          .0000       .10000E+07
    20 'Prefactor '    .76047       1.0000          .0000       .10000E+07
    21 'Prefactor '    40.634       1.0000          .0000       .10000E+07
    22 'Prefactor '    .15968E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .92726       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0146       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=   16836.50     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     2056 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.352        2.0965       -.71448E-09   -.70542E-02
   2  Prefactor     12.185        6.6006        .67701E-07    .49586E-03
   3  norm          .55511E-10    11.493       -.46730E-06** at limit **
   4  Prefactor     2.3202        2.9318       -.25590E-06   -.29232E-04
   5  Prefactor     2.2868        1.5893        .46803E-07   -.63087E-03
   6  norm          4.4463        2.8312        .61614E-07   -.43801E-03
   7  Prefactor      .0000        .80984       -.14129E-06** at limit **
   8  Prefactor     3.5945        1.6799        .20705E-07   -.33484E-04
   9  norm          36.927        32.065       -.10846E-05    .11043E-01
  10  Prefactor      .0000        5.5106        .35092E-06** at limit **
  11  Prefactor     32.415        5.7618       -.60258E-08    .42903E-01
  12  Prefactor      .0000        11.897        .28598E-06** at limit **
  13  Prefactor      .0000        7.4000        .56495E-06** at limit **
  14  Prefactor     .49405E-08    660.99       -.41465E-05** at limit **
  15  Prefactor     1.4730        13.274        .60538E-06    .20639E-03
  16  Prefactor     .33307E-09    16.196       -.62680E-06** at limit **
  17  norm          .16897        .30758        .80942E-08** at limit **
  18  Prefactor     .44409E-09    19.778       -.50482E-06** at limit **
  19  norm          16.114        9.6853        .46427E-06    .13713E-02
  20  Prefactor     .56152        11.571        .10238E-05    .56424E-02
  21  Prefactor     41.087        28.718       -.51949E-06   -.11232E-01
  22  Prefactor      .0000        6.8579       -.24693E-06** at limit **
  23  Normalizat    .92733        .14721        .17375E-05    .32653E-04
  24  Prefactor     1.0146        .81720E-01    .13232E-05    .56949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3522
  Prefactor  = 12.1851
  norm       = 5.55112e-11
  Prefactor  = 2.32023
  Prefactor  = 2.28678
  norm       = 4.44625
  Prefactor  = 0
  Prefactor  = 3.59447
  norm       = 36.927
  Prefactor  = 0
  Prefactor  = 32.4154
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.94049e-09
  Prefactor  = 1.47304
  Prefactor  = 3.33067e-10
  norm       = 0.168966
  Prefactor  = 4.44089e-10
  norm       = 16.1136
  Prefactor  = 0.561516
  Prefactor  = 41.0867
  Prefactor  = 0
  Normalizat = 0.927332
  Prefactor  = 1.01458
 **********
 **   18 **HESSE 
 **********

 FCN=   16836.50     FROM HESSE     STATUS=OK           457 CALLS     2513 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.352        16.693        .24012E-03   -1.5625    
   2  Prefactor     12.185        6.6121        .28666E-03   -1.5638    
   3  norm          .55511E-10    11.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3202        2.9456        .67281E-03   -1.5677    
   5  Prefactor     2.2868        1.5966        .67851E-03   -1.5678    
   6  norm          4.4463        2.8404        .47725E-03   -1.5666    
   7  Prefactor      .0000        .81002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5945        1.6843        .53275E-03   -1.5670    
   9  norm          36.927        34.805        .16658E-03   -1.5586    
  10  Prefactor      .0000        5.5156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.415        24.256        .17589E-03   -1.5594    
  12  Prefactor      .0000        12.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        7.4094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49405E-08    3.9685        .60761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4730        13.184        .87210E-03   -1.5684    
  16  Prefactor     .33307E-09    16.093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16897        .29028        .12394E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    19.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.114        9.8002        .24855E-03   -1.5628    
  20  Prefactor     .56152        62.941        .55929E-03   -1.5693    
  21  Prefactor     41.087        30.204        .15689E-03   -1.5580    
  22  Prefactor      .0000        6.8774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92733        .13045        .74598E-01   -.95506    
  24  Prefactor     1.0146        .71212E-01    .42723E-01   -.92245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09727e-08
Minuit parameter uncertainties:
  1  16.6927
  2  6.61211
  3  3.62642e-05
  4  2.9456
  5  1.59657
  6  2.84044
  7  8.1529e-07
  8  1.68427
  9  34.8053
  10  6.43135e-06
  11  24.2559
  12  3.05212e-05
  13  2.56159e-05
  14  0.00028009
  15  8.81369
  16  0.00015078
  17  0.290282
  18  0.000193378
  19  9.80021
  20  11.89
  21  30.204
  22  1.55829e-05
  23  0.13049
  24  0.0712186
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.287e+00  1.597e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.015e+00  7.122e-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:  9.273e-01  1.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.48
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 8.85e-06

TS (Fixed Index): 3.48
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 8.38905634774e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00644474176801 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372474/likelihoodResults_786931201_787536001_4FGL_J0204.8+1513_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) = 16835.9963428
delta logL = 0.507986078061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16835.9854205
delta logL = 0.518908351623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2663       1.0000          .0000       .10000E+07
     2 'Index     '    3.0334       1.0000          .0000       10.000    
     3 'Normalizat'    .88729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0282       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=   16835.99     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2659        8.6321        .98938E-03    .18787E-01
   2  Index         3.0336        2.4674        .12499        .38236E-03
   3  Normalizat    .88728        .39258E-01    .76073E-01    .62634E-04
   4  Prefactor     1.0282        .20842E-01    .41405E-01   -.39391E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26589
  Index      = 3.03365
  Normalizat = 0.887283
  Prefactor  = 1.0282
 **********
 **   18 **HESSE 
 **********

 FCN=   16835.99     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2659        3.3027        .77064E-05   -1.5685    
   2  Index         3.0336        1.6418        .74196E-02   -.40419    
   3  Normalizat    .88728        .15914        .33668E-03   -.96908    
   4  Prefactor     1.0282        .85520E-01    .17640E-03   -.91795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13158e-07
Minuit parameter uncertainties:
  1  3.30273
  2  1.67884
  3  0.159219
  4  0.085531
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) = 16835.9854203
delta logL = 0.518908547543

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.266e+00  3.303e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  3.034e+00  1.679e+00  0.000e+00  1.000e+01 (-1.000e+00)
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.028e+00  8.553e-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:  8.873e-01  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 31.218 15.233
Photon Index (Free Index): 3.03 +/- 1.68
Photon Flux (Free Index): 6.33e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.24e-05 +/- 8.06e-06

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/17372474/cmap_HighResolution_786931201_787536001_4FGL_J0204.8+1513_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='1.24e-05', photon_flux_error='2.39e-08', dlogl='5.19e-01', energy_flux='1.27e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2025-12-16 01:13:35.190391', photon_index_error2='1.68', photon_index2='3.03', ts='3.48', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.39e-08', energy_flux_error2='8.06e-06', EG='0.93', time_epoch_completed='1765876415.19', return_code='0', job_id='17372474', GAL2='1.03', EG2='0.89', return_code2='0', energy_flux_error='8.85e-06', photon_flux_error2='4.55e-08', ts2='4.65', photon_index='2.31' WHERE bin_id='906' AND source_name='4FGL J0204.8+1513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:13:35 PST 2025

