/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_J0923.5+4125_weekly_bin906
RA = 140.895, Dec = 41.4283
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='17377598', job_status='RUN', time_executed='2025-12-16 01:55:37.639054', time_epoch_executed='1765878937.64' WHERE source_name='4FGL J0923.5+4125' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377598

Creating custom pfile directory:
/lscratch/kocevski/17377598/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/17377598/ft1_4FGL_J0923.5+4125_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/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377598/ft1_4FGL_J0923.5+4125_weekly_bin906.fits outfile=/lscratch/kocevski/17377598/ft1_filteredMKT_4FGL_J0923.5+4125_weekly_bin906.fits ra=140.895 dec=41.4283 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.44
user 4.34
sys 0.39

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_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/17377598/ft1_filteredMKT_4FGL_J0923.5+4125_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_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.89
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1305

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377598/ltcube_786931201_787536001_4FGL_J0923.5+4125_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/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits
.....................!
real 16.13
user 15.05
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377598/ltcube_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.fits outfile=/lscratch/kocevski/17377598/expmap_786931201_787536001_4FGL_J0923.5+4125_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/17377598/ltcube_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.fits
.....................!
real 60.39
user 56.01
sys 3.63

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

Setting source of interest to:
4FGL J0923.5+4125 @ 140.895 41.4283

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits scfile=/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits outfile=/lscratch/kocevski/17377598/cmap_786931201_787536001_4FGL_J0923.5+4125_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=140.895 yref=41.4283 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.92
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits scfile=/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits outfile=/lscratch/kocevski/17377598/cmap_HighResolution_786931201_787536001_4FGL_J0923.5+4125_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=140.895 yref=41.4283 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.97
user 0.20
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377598/Model_4FGL_J0923.5+4125_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/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits.....................!
real 37.95
user 36.00
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits', '/lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits', expMap='/lscratch/kocevski/17377598/expmap_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.fits', expCube='/lscratch/kocevski/17377598/ltcube_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377598/Model_4FGL_J0923.5+4125_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+4125'

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.066e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17377598/ft1_filtered_4FGL_J0923.5+4125_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377598/ft2_4FGL_J0923.5+4125_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377598/expmap_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377598/ltcube_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377598/Model_4FGL_J0923.5+4125_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) = 14601.1928762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10260E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.5363       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.881       1.0000          .0000       .10000E+07
     4 'Prefactor '    .82870       1.0000          .0000       .10000E+07
     5 'norm      '    1.0068       1.0000          .0000       .10000E+07
     6 'norm      '    .36889E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.6885       1.0000          .0000       .10000E+07
     8 'Prefactor '    28.563       1.0000          .0000       .10000E+07
     9 'Prefactor '    .93196       1.0000          .0000       .10000E+07
    10 'norm      '    .35285E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .29796E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .91760E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15313       1.0000          .0000       .10000E+07
    14 'norm      '    .72571E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.4475       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18057E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .13033E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.2027       1.0000          .0000       .10000E+07
    19 'norm      '    3.7035       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.7439       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.0708       1.0000          .0000       .10000E+07
    22 'Prefactor '    44.404       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.0859       1.0000          .0000       .10000E+07
    24 'norm      '    6.6550       1.0000          .0000       .10000E+07
    25 'Prefactor '    .49549E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .20367       1.0000          .0000       .10000E+07
    27 'norm      '    1.4498       1.0000          .0000       .10000E+07
    28 'Normalizat'    .93063       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14601.19     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     4015 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44825E-06    22.854       -.12261E-06** at limit **
   2  Prefactor     1.5387        1.7659       -.36038E-07    .56438E-03
   3  Prefactor     12.932        14.628        .15656E-06    .12105E-01
   4  Prefactor     .81657        1.6425        .33339E-07   -.20665E-02
   5  norm          1.0181        1.9727        .56707E-07    .63361E-01
   6  norm          .15836E-04    5.6205       -.76787E-07** at limit **
   7  Prefactor     6.6980        1.3084        .69864E-08    .96457E-02
   8  Prefactor     28.572        2.8137        .26793E-07   -.26928E-01
   9  Prefactor     .92023        2.1198       -.27222E-07    .38817E-03
  10  norm          .38691E-07    3.9742        .22893E-06** at limit **
  11  Prefactor     .11602E-07    4.4711        .31146E-06** at limit **
  12  norm           .0000        .25467        .83107E-07** at limit **
  13  Prefactor     .15156        2.6625       -.94775E-07** at limit **
  14  norm          .76050E-08    2.9180        .32613E-06** at limit **
  15  Prefactor     1.4472        1.2201       -.40854E-07   -.21807E-02
  16  Prefactor     .11102E-09    1.7038       -.17958E-06** at limit **
  17  Prefactor     .55511E-10    .64766        .43303E-10** at limit **
  18  Prefactor     4.2312        2.3177        .26971E-08    .92564E-02
  19  norm          3.7145        5.9780       -.70978E-07   -.12650E-01
  20  Prefactor     2.7723        2.0531        .20738E-07   -.98588E-02
  21  Prefactor     7.0593        4.0800        .55373E-07    .14684E-03
  22  Prefactor     44.402        2.2788       -.16179E-07    .21327E-01
  23  Prefactor     3.0817        3.1288       -.70665E-07   -.13544E-03
  24  norm          6.6604        1.1833        .11235E-07    .71861E-03
  25  Prefactor     .13878E-08    2.5842        .20602E-06** at limit **
  26  Prefactor     .20750        3.2965       -.96482E-07** at limit **
  27  norm          1.4481        4.5151       -.80487E-07    .39399E-03
  28  Normalizat    .93062        .12088        .14518E-05    .71847E-04
  29  Prefactor     1.0275        .13349       -.26451E-06    .82009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48253e-07
  Prefactor  = 1.53872
  Prefactor  = 12.9318
  Prefactor  = 0.816571
  norm       = 1.01812
  norm       = 1.58362e-05
  Prefactor  = 6.69798
  Prefactor  = 28.5724
  Prefactor  = 0.920232
  norm       = 3.86913e-08
  Prefactor  = 1.16018e-08
  norm       = 0
  Prefactor  = 0.151555
  norm       = 7.60503e-09
  Prefactor  = 1.44721
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 4.23118
  norm       = 3.71453
  Prefactor  = 2.77225
  Prefactor  = 7.05926
  Prefactor  = 44.4021
  Prefactor  = 3.08168
  norm       = 6.66039
  Prefactor  = 1.38778e-09
  Prefactor  = 0.207498
  norm       = 1.44812
  Normalizat = 0.930618
  Prefactor  = 1.02754
 **********
 **   18 **HESSE 
 **********

 FCN=   14601.19     FROM HESSE     STATUS=OK           645 CALLS     4660 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44825E-06    24.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5387        1.7953        .86027E-03   -1.5683    
   3  Prefactor     12.932        16.031        .27884E-03   -1.5636    
   4  Prefactor     .81657        5.9016        .50820E-03   -1.5690    
   5  norm          1.0181        3.2722        .44005E-03   -1.5688    
   6  norm          .15836E-04    1.4998        .55623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6980        8.0962        .38776E-03   -1.5656    
   8  Prefactor     28.572        22.799        .18714E-03   -1.5601    
   9  Prefactor     .92023        2.2175        .43575E-03   -1.5689    
  10  norm          .38691E-07    .54602        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11602E-07    4.6035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .10890        .12161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15156        .58514        .47279E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .76050E-08    3.2290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4472        1.2609        .89548E-03   -1.5684    
  16  Prefactor     .11102E-09    1.7125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    .64811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2312        8.0685        .49133E-03   -1.5667    
  19  norm          3.7145        7.2599        .52452E-03   -1.5669    
  20  Prefactor     2.7723        45.441        .61435E-03   -1.5675    
  21  Prefactor     7.0593        4.1855        .37702E-03   -1.5655    
  22  Prefactor     44.402        28.261        .15008E-03   -1.5575    
  23  Prefactor     3.0817        3.1357        .57710E-03   -1.5673    
  24  norm          6.6604        7.4027        .38874E-03   -1.5656    
  25  Prefactor     .13878E-08    2.5931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .20750        1.2597        .45007E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4481        4.5386        .89452E-03   -1.5684    
  28  Normalizat    .93062        .11015        .45292E-01   -.95392    
  29  Prefactor     1.0275        .11695        .41467E-01   -.91817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00816e-07
Minuit parameter uncertainties:
  1  0.00657506
  2  1.79526
  3  16.0312
  4  4.3905
  5  3.27225
  6  0.00974708
  7  8.09618
  8  22.7995
  9  2.21749
  10  0.000290773
  11  0.000461718
  12  1.95153e-06
  13  0.585142
  14  0.000313248
  15  1.2609
  16  2.42144e-05
  17  1.29401e-05
  18  8.06852
  19  7.25995
  20  22.4479
  21  4.18548
  22  28.2612
  23  3.1357
  24  7.40271
  25  0.000119667
  26  1.02251
  27  4.53858
  28  0.11018
  29  0.116974
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.447e+00  1.261e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.028e+00  1.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.306e-01  1.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 7.03e-06 +/- 6.12e-06

TS (Fixed Index): 2.37
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 5.63464809309e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00434091189136 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17377598/likelihoodResults_786931201_787536001_4FGL_J0923.5+4125_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) = 14601.1912815
delta logL = 0.00114573011524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14601.1910775
delta logL = 0.00134974224784

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14601.19     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      234 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4694        1.2923        .11640E-04    .88879E-03
   2  Index         2.3226        .63953        .11035E-01    .48624E-04
   3  Normalizat    .93143        .11677        .23197E-03   -.83513E-04
   4  Prefactor     1.0270        .13166        .25151E-03   -.84437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46939
  Index      = 2.32262
  Normalizat = 0.931431
  Prefactor  = 1.02699
 **********
 **   18 **HESSE 
 **********

 FCN=   14601.19     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4694        1.2648        .46560E-06   -1.5684    
   2  Index         2.3226        .62558        .44141E-03   -.56507    
   3  Normalizat    .93143        .11680        .92787E-05   -.95364    
   4  Prefactor     1.0270        .13172        .10060E-04   -.91835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24598e-11
Minuit parameter uncertainties:
  1  1.26482
  2  0.627892
  3  0.116828
  4  0.131765
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) = 14601.1910774
delta logL = 0.00134981881456

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.469e+00  1.265e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.323e+00  6.279e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.027e+00  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.314e-01  1.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 140.895 41.428
Photon Index (Free Index): 2.32 +/- 0.63
Photon Flux (Free Index): 1.95e-08 +/- 2.04e-08
Energy Flux (Free Index): 7.13e-06 +/- 6.20e-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/17377598/cmap_HighResolution_786931201_787536001_4FGL_J0923.5+4125_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='7.13e-06', photon_flux_error='1.76e-08', dlogl='1.35e-03', energy_flux='7.03e-06', photon_flux2='1.95e-08', job_status='DONE', time_completed='2025-12-16 02:12:21.913443', photon_index_error2='0.63', photon_index2='2.32', ts='2.37', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.63e-08', energy_flux_error2='6.20e-06', EG='0.93', time_epoch_completed='1765879941.91', return_code='0', job_id='17377598', GAL2='1.03', EG2='0.93', return_code2='0', energy_flux_error='6.12e-06', photon_flux_error2='2.04e-08', ts2='2.38', photon_index='2.36' WHERE bin_id='906' AND source_name='4FGL J0923.5+4125' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:12:22 PST 2025

