/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_J0945.2+5200_weekly_bin906
RA = 146.316, Dec = 52.0053
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='17377633', job_status='RUN', time_executed='2025-12-16 01:56:13.974862', time_epoch_executed='1765878973.97' WHERE source_name='4FGL J0945.2+5200' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377633

Creating custom pfile directory:
/lscratch/kocevski/17377633/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/17377633/ft1_4FGL_J0945.2+5200_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/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377633/ft1_4FGL_J0945.2+5200_weekly_bin906.fits outfile=/lscratch/kocevski/17377633/ft1_filteredMKT_4FGL_J0945.2+5200_weekly_bin906.fits ra=146.316 dec=52.0053 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.06
user 4.37
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_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/17377633/ft1_filteredMKT_4FGL_J0945.2+5200_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.79
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1485

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377633/ltcube_786931201_787536001_4FGL_J0945.2+5200_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/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits
.....................!
real 16.77
user 16.16
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377633/ltcube_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.fits outfile=/lscratch/kocevski/17377633/expmap_786931201_787536001_4FGL_J0945.2+5200_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/17377633/ltcube_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.fits
.....................!
real 59.30
user 55.60
sys 3.09

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits scfile=/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits outfile=/lscratch/kocevski/17377633/cmap_786931201_787536001_4FGL_J0945.2+5200_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=146.316 yref=52.0053 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.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits scfile=/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits outfile=/lscratch/kocevski/17377633/cmap_HighResolution_786931201_787536001_4FGL_J0945.2+5200_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=146.316 yref=52.0053 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.80
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377633/Model_4FGL_J0945.2+5200_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/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits.....................!
real 46.55
user 44.99
sys 0.66

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits', '/lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits', expMap='/lscratch/kocevski/17377633/expmap_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.fits', expCube='/lscratch/kocevski/17377633/ltcube_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377633/Model_4FGL_J0945.2+5200_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17377633/ft1_filtered_4FGL_J0945.2+5200_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377633/ft2_4FGL_J0945.2+5200_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377633/expmap_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377633/ltcube_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377633/Model_4FGL_J0945.2+5200_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) = 16311.4312367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0576       1.0000          .0000       .10000E+07
     2 'norm      '    .77363       1.0000          .0000       .10000E+07
     3 'norm      '    .12767E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    20.557       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.0456       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31130E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .20023E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .56556       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20002E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.6165       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14798E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .91316E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.1492       1.0000          .0000       .10000E+07
    14 'norm      '    4.1464       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1611       1.0000          .0000       .10000E+07
    16 'Prefactor '    .37758E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0802       1.0000          .0000       .10000E+07
    18 'norm      '    .14825E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    35.592       1.0000          .0000       .10000E+07
    20 'Prefactor '    21.429       1.0000          .0000       .10000E+07
    21 'norm      '    1.6978       1.0000          .0000       .10000E+07
    22 'norm      '    7.1045       1.0000          .0000       .10000E+07
    23 'Prefactor '    .38351E-03   1.0000          .0000       .10000E+07
    24 'norm      '    2.5843       1.0000          .0000       .10000E+07
    25 'Prefactor '    5.4406       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37372E-05   1.0000          .0000       .10000E+07
    27 'norm      '    .66920       1.0000          .0000       .10000E+07
    28 'norm      '    1.4249       1.0000          .0000       .10000E+07
    29 'Prefactor '    .65764E-03   1.0000          .0000       .10000E+07
    30 'norm      '    .98670       1.0000          .0000       .10000E+07
    31 'Prefactor '    .17617       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16311.42     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     3546 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0487        3.6777       -.78255E-07   -.27011E-03
   2  norm          .77076        2.6334        .29989E-07   -.16165E-01
   3  norm          .41689E-07    11.441        .88051E-07** at limit **
   4  Prefactor     20.559        2.1558        .44378E-07   -.42675E-01
   5  Prefactor     5.0413        5.9054       -.54959E-06   -.98544E-02
   6  Prefactor     .31086E-07    22.101       -.10326E-05** at limit **
   7  norm           .0000        .31288        .11936E-07** at limit **
   8  norm          .56579        .40355       -.29744E-07    .99534E-02
   9  Prefactor     .19097E-01    19.831        .17868E-05** at limit **
  10  Prefactor     1.6177        1.2583        .19433E-06    .40371E-02
  11  Prefactor      .0000        1.6461        .52902E-07** at limit **
  12  Prefactor      .0000        .48790       -.18221E-06** at limit **
  13  Prefactor     4.1762        7.8503        .57197E-06    .12750E-02
  14  norm          4.0737        4.2569       -.14301E-06   -.40152E-01
  15  Prefactor     1.5764        42.681       -.29396E-05   -.18035E-01
  16  Prefactor     .66350E-05    66.340       -.49540E-05** at limit **
  17  Prefactor     6.0869        3.7952       -.15629E-07   -.93859E-03
  18  norm           .0000        1.3475       -.11944E-06** at limit **
  19  Prefactor     35.413        17.158        .13712E-06   -.14025    
  20  Prefactor     21.427        8.0911        .50748E-06    .59249E-01
  21  norm          1.6980        .34900        .18245E-07    .52515E-02
  22  norm          7.1064        3.5801       -.71748E-07    .41073E-01
  23  Prefactor      .0000        2.4011        .19283E-07** at limit **
  24  norm          2.5836        1.2742        .11409E-07   -.22418E-04
  25  Prefactor     5.4472        3.4574       -.40904E-06   -.84305E-02
  26  Prefactor     .17764E-08    4.2740        .17142E-06** at limit **
  27  norm          .66895        .74454       -.23791E-08    .33630E-02
  28  norm          1.4248        .77134        .37343E-07    .36088E-02
  29  Prefactor     .32196E-08    18.121       -.85465E-07** at limit **
  30  norm          .98593        1.0136        .25845E-07    .11795E-02
  31  Prefactor     .69389E-08    40.690       -.12500E-05** at limit **
  32  Normalizat    1.0181        .11392        .14509E-05    .39643E-03
  33  Prefactor     .93290        .12872       -.15739E-05    .27443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.0487
  norm       = 0.77076
  norm       = 4.16889e-08
  Prefactor  = 20.5591
  Prefactor  = 5.04134
  Prefactor  = 3.10862e-08
  norm       = 0
  norm       = 0.565788
  Prefactor  = 0.0190974
  Prefactor  = 1.6177
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.17625
  norm       = 4.07369
  Prefactor  = 1.57639
  Prefactor  = 6.63497e-06
  Prefactor  = 6.08687
  norm       = 0
  Prefactor  = 35.4126
  Prefactor  = 21.4274
  norm       = 1.698
  norm       = 7.10637
  Prefactor  = 0
  norm       = 2.58361
  Prefactor  = 5.44716
  Prefactor  = 1.77636e-09
  norm       = 0.66895
  norm       = 1.42481
  Prefactor  = 3.21965e-09
  norm       = 0.985926
  Prefactor  = 6.93889e-09
  Normalizat = 1.01813
  Prefactor  = 0.932902
 **********
 **   18 **HESSE 
 **********

 FCN=   16311.42     FROM HESSE     STATUS=OK           801 CALLS     4347 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0487        3.7184        .40770E-03   -1.5659    
   2  norm          .77076        3.1827        .54922E-03   -1.5690    
   3  norm          .41689E-07    1.0274        .72026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.559        7.8603        .22063E-03   -1.5617    
   5  Prefactor     5.0413        7.0525        .44741E-03   -1.5663    
   6  Prefactor     .31086E-07    .85148        .82992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .10427        .12278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .56579        .40905        .72371E-03   -1.5693    
   9  Prefactor     .19097E-01    .43375        .53912E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6177        1.3052        .83239E-03   -1.5683    
  11  Prefactor      .0000        1.6558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .49113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1762        7.9820        .49459E-03   -1.5667    
  14  norm          4.0737        7.6718        .49476E-03   -1.5668    
  15  Prefactor     1.5764        83.612        .10687E-02   -1.5683    
  16  Prefactor     .66350E-05    1.7153        .57983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0869        3.8141        .40693E-03   -1.5659    
  18  norm           .0000        1.3496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.413        28.331        .16764E-03   -1.5589    
  20  Prefactor     21.427        15.921        .21608E-03   -1.5615    
  21  norm          1.6980        .35447        .74726E-03   -1.5682    
  22  norm          7.1064        7.4772        .37611E-03   -1.5655    
  23  Prefactor      .0000        2.3725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5836        1.2756        .63453E-03   -1.5676    
  25  Prefactor     5.4472        15.414        .43056E-03   -1.5661    
  26  Prefactor     .17764E-08    4.2725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .66895        .75840        .63244E-03   -1.5692    
  28  norm          1.4248        .77746        .90539E-03   -1.5684    
  29  Prefactor     .32196E-08    18.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .98593        1.0222        .43294E-03   -1.5688    
  31  Prefactor     .69389E-08    40.639        .12216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0181        .10392        .43603E-01   -.92426    
  33  Prefactor     .93290        .11338        .45419E-01   -.95001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22331e-06
Minuit parameter uncertainties:
  1  3.71836
  2  3.13247
  3  0.000413979
  4  7.86027
  5  7.05252
  6  0.000325387
  7  7.49503e-07
  8  0.409045
  9  0.182027
  10  1.30518
  11  7.08498e-06
  12  3.0836e-06
  13  7.98198
  14  7.67181
  15  22.9616
  16  0.00674712
  17  3.81408
  18  7.41475e-06
  19  28.3309
  20  15.921
  21  0.354466
  22  7.47722
  23  1.44145e-05
  24  1.27562
  25  15.4143
  26  0.000174033
  27  0.758404
  28  0.777458
  29  0.000486517
  30  1.02217
  31  0.00106254
  32  0.103943
  33  0.113411
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  6.087e+00  3.814e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  9.329e-01  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.018e+00  1.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.61
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 7.89e-06 +/- 4.94e-06

TS (Fixed Index): 3.61
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 7.31814446455e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0057670164398 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17377633/likelihoodResults_786931201_787536001_4FGL_J0945.2+5200_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) = 16311.385913
delta logL = 0.0369815408885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16311.3830131
delta logL = 0.0398813510674

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16311.38     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6940        91.192        .38758E-03    .58818E-02
   2  Index         2.5686        6.2840        .23302        .11313E-03
   3  Normalizat    1.0213        .41555E-01    .43162E-01    .70889E-05
   4  Prefactor     .92991        .48432E-01    .45385E-01    .21509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69396
  Index      = 2.56858
  Normalizat = 1.02133
  Prefactor  = 0.929913
 **********
 **   18 **HESSE 
 **********

 FCN=   16311.38     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6940        4.5611        .15503E-04   -1.5656    
   2  Index         2.5686        .52254        .10591E-01   -.50783    
   3  Normalizat    1.0213        .11093        .22760E-03   -.92319    
   4  Prefactor     .92991        .12682        .27319E-03   -.95104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84904e-11
Minuit parameter uncertainties:
  1  4.56107
  2  0.523794
  3  0.110953
  4  0.126856
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) = 16311.3830128
delta logL = 0.0398817116748

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  6.694e+00  4.561e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.569e+00  5.238e-01  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  9.299e-01  1.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.021e+00  1.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 146.316 52.005
Photon Index (Free Index): 2.57 +/- 0.52
Photon Flux (Free Index): 3.12e-08 +/- 2.05e-08
Energy Flux (Free Index): 8.42e-06 +/- 5.65e-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/17377633/cmap_HighResolution_786931201_787536001_4FGL_J0945.2+5200_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='8.42e-06', photon_flux_error='2.08e-08', dlogl='3.99e-02', energy_flux='7.89e-06', photon_flux2='3.12e-08', job_status='DONE', time_completed='2025-12-16 02:15:35.549236', photon_index_error2='0.52', photon_index2='2.57', ts='3.61', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.32e-08', energy_flux_error2='5.65e-06', EG='1.02', time_epoch_completed='1765880135.55', return_code='0', job_id='17377633', GAL2='0.93', EG2='1.02', return_code2='0', energy_flux_error='4.94e-06', photon_flux_error2='2.05e-08', ts2='3.68', photon_index='2.72' WHERE bin_id='906' AND source_name='4FGL J0945.2+5200' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:15:35 PST 2025

