/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 = 10427
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0923.5+4125_weekly_bin855
RA = 140.895, Dec = 41.4283
tmin = 756086401, tmax = 756691201
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='60728749', job_status='RUN', time_executed='2024-12-24 03:26:26.536854', time_epoch_executed='1735039586.54' WHERE source_name='4FGL J0923.5+4125' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60728749

Creating custom pfile directory:
/lscratch/kocevski/60728749/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=756086401.0 && nMetStart<756691201.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=756086401.0 && nMetStart<756691201.0' /Data/Flight/Level1/LPA

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60728749/ft1_4FGL_J0923.5+4125_weekly_bin855.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=756086401.0 && nMetStart<756691201.0' /Data/Flight/Level1/LPA

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60728749/ft1_4FGL_J0923.5+4125_weekly_bin855.fits outfile=/lscratch/kocevski/60728749/ft1_filteredMKT_4FGL_J0923.5+4125_weekly_bin855.fits ra=140.895 dec=41.4283 rad=12.0 tmin=756086401.0 tmax=756691201.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 3.73
user 2.69
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.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/60728749/ft1_filteredMKT_4FGL_J0923.5+4125_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.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.59
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 768

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60728749/ltcube_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.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/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits
.....................!
real 12.35
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60728749/ltcube_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.fits outfile=/lscratch/kocevski/60728749/expmap_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.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/60728749/ltcube_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.fits
.....................!
real 73.81
user 67.68
sys 4.00

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/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits scfile=/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits outfile=/lscratch/kocevski/60728749/cmap_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.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.52
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits scfile=/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits outfile=/lscratch/kocevski/60728749/cmap_HighResolution_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.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.96
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60728749/Model_4FGL_J0923.5+4125_weekly_bin855.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/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits.....................!
real 30.81
user 28.57
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits', '/lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits', expMap='/lscratch/kocevski/60728749/expmap_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.fits', expCube='/lscratch/kocevski/60728749/ltcube_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60728749/Model_4FGL_J0923.5+4125_weekly_bin855.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/60728749/ft1_filtered_4FGL_J0923.5+4125_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60728749/ft2_4FGL_J0923.5+4125_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60728749/expmap_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60728749/ltcube_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60728749/Model_4FGL_J0923.5+4125_weekly_bin855.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8544.43996861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62727E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.6373       1.0000          .0000       .10000E+07
     3 'Prefactor '    54.537       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13023E-03   1.0000          .0000       .10000E+07
     5 'norm      '    7.5601       1.0000          .0000       .10000E+07
     6 'norm      '    6.8096       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.964       1.0000          .0000       .10000E+07
     8 'Prefactor '    23.409       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.9707       1.0000          .0000       .10000E+07
    10 'norm      '    .33461       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15440E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .76605E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8330       1.0000          .0000       .10000E+07
    14 'norm      '    1.3340       1.0000          .0000       .10000E+07
    15 'Prefactor '    .86770       1.0000          .0000       .10000E+07
    16 'Prefactor '    .99976E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.6078       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23514E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .10050E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21113E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .81913E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    4.8202       1.0000          .0000       .10000E+07
    23 'Prefactor '    15.255       1.0000          .0000       .10000E+07
    24 'norm      '    .11308E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.5541       1.0000          .0000       .10000E+07
    26 'Prefactor '    .87153E-08   1.0000          .0000       .10000E+07
    27 'norm      '    .35361E-07   1.0000          .0000       .10000E+07
    28 'Normalizat'    .89758       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84708       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=   8542.004     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1596 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    4.9220       -.32801E-06** at limit **
   2  Prefactor     6.6484        3.1704       -.60003E-07    .11190E-02
   3  Prefactor     54.454        1.7523       -.20306E-08   -.17387E-01
   4  Prefactor     .11213E-07    2.8668       -.21753E-06** at limit **
   5  norm          7.5665        4.6886        .16430E-06    .28623E-02
   6  norm          6.8236        4.8670        .14134E-06    .26414E-02
   7  Prefactor     26.845        2.5260        .39636E-07   -.15461E-01
   8  Prefactor     23.474        30.938        .71151E-06   -.16431E-01
   9  Prefactor     5.9735        3.0256       -.27235E-06   -.37379E-03
  10  norm          .33779        1.1854       -.13220E-06    .30886E-03
  11  Prefactor     .13267E-06    8.8281        .81619E-08** at limit **
  12  norm           .0000        .12590       -.11388E-06** at limit **
  13  Prefactor     1.8371        2.0359        .12565E-06    .72463E-03
  14  norm          1.3794        5.3813       -.36610E-06    .71868E-03
  15  Prefactor     .86638        1.1717       -.60490E-07   -.56502E-03
  16  Prefactor     .47184E-08    3.6384        .22932E-07** at limit **
  17  Prefactor     3.6275        3.4767       -.27103E-06    .11380E-02
  18  Prefactor     .13317E-06    11.642        .29662E-06** at limit **
  19  norm          .44409E-08    4.2774       -.28826E-07** at limit **
  20  Prefactor     .77716E-09    11.301        .11850E-06** at limit **
  21  Prefactor     .83267E-09    14.026       -.78766E-06** at limit **
  22  Prefactor     5.0990        5.5627       -.51488E-07    .74362E-02
  23  Prefactor     15.394        3.4805        .11112E-06    .15337    
  24  norm          .13045E-07    2.9933       -.57668E-07** at limit **
  25  Prefactor     2.5352        3.5353       -.89888E-07    .89601E-03
  26  Prefactor      .0000        .87195        .80117E-07** at limit **
  27  norm           .0000        1.9634       -.28470E-06** at limit **
  28  Normalizat    .89681        .15030       -.23449E-05   -.88475E-06
  29  Prefactor     .84729        .16414        .79777E-05    .27700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  Prefactor  = 6.64841
  Prefactor  = 54.4536
  Prefactor  = 1.12133e-08
  norm       = 7.56646
  norm       = 6.8236
  Prefactor  = 26.8446
  Prefactor  = 23.4743
  Prefactor  = 5.97346
  norm       = 0.337787
  Prefactor  = 1.32672e-07
  norm       = 0
  Prefactor  = 1.83712
  norm       = 1.37941
  Prefactor  = 0.866381
  Prefactor  = 4.71845e-09
  Prefactor  = 3.62749
  Prefactor  = 1.33171e-07
  norm       = 4.44089e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 5.099
  Prefactor  = 15.3941
  norm       = 1.30451e-08
  Prefactor  = 2.53516
  Prefactor  = 0
  norm       = 0
  Normalizat = 0.896812
  Prefactor  = 0.847286
 **********
 **   18 **HESSE 
 **********

 FCN=   8542.004     FROM HESSE     STATUS=OK           615 CALLS     2211 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    4.9274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6484        3.2005        .38927E-03   -1.5656    
   3  Prefactor     54.454        25.800        .13542E-03   -1.5560    
   4  Prefactor     .11213E-07    2.9566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5665        4.7029        .36450E-03   -1.5653    
   6  norm          6.8236        5.0363        .38426E-03   -1.5656    
   7  Prefactor     26.845        22.882        .19261E-03   -1.5604    
   8  Prefactor     23.474        32.304        .20674E-03   -1.5611    
   9  Prefactor     5.9735        3.0492        .41070E-03   -1.5659    
  10  norm          .33779        1.0752        .43124E-02   -1.5696    
  11  Prefactor     .13267E-06    17.236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .12508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8371        2.0699        .77045E-03   -1.5681    
  14  norm          1.3794        5.4519        .94983E-03   -1.5684    
  15  Prefactor     .86638        1.1853        .48019E-03   -1.5689    
  16  Prefactor     .47184E-08    3.6701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6275        3.4991        .53171E-03   -1.5670    
  18  Prefactor     .13317E-06    19.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .44409E-08    4.3189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .77716E-09    11.421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .83267E-09    16.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0990        24.908        .45798E-03   -1.5663    
  23  Prefactor     15.394        7.9589        .25617E-03   -1.5629    
  24  norm          .13045E-07    3.1004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5352        3.5536        .63859E-03   -1.5676    
  26  Prefactor      .0000        .87157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        1.9663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .89681        .13481        .44871E-01   -.96572    
  29  Prefactor     .84729        .14401        .44327E-01   -.98008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56534e-07
Minuit parameter uncertainties:
  1  0.000157442
  2  3.20049
  3  25.7998
  4  0.00036451
  5  4.70287
  6  5.03625
  7  22.8825
  8  32.3045
  9  3.04921
  10  1.07525
  11  0.0030246
  12  3.48679e-07
  13  2.06987
  14  5.4519
  15  1.18532
  16  0.000263775
  17  3.49913
  18  0.00320723
  19  0.000277561
  20  0.00019024
  21  0.000231091
  22  22.5395
  23  7.95891
  24  0.000402267
  25  3.55364
  26  8.82032e-07
  27  1.14653e-05
  28  0.134862
  29  0.144074
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  8.664e-01  1.185e+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:  8.473e-01  1.441e-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:  8.968e-01  1.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 4.21e-06 +/- 5.75e-06

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

Saving results to:
/lscratch/kocevski/60728749/likelihoodResults_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.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) = 8541.98798747
delta logL = 0.0158968279356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8541.98629633
delta logL = 0.0175879712169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93514       1.0000          .0000       .10000E+07
     2 'Index     '    2.1406       1.0000          .0000       10.000    
     3 'Normalizat'    .89985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84515       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=   8541.986     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93521        1.2678        .11615E-04   -.44770E-02
   2  Index         2.1406        1.0831        .10279E-01   -.38232E-04
   3  Normalizat    .89984        .14364        .22700E-03    .17198E-03
   4  Prefactor     .84516        .16269        .26422E-03    .78225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.935208
  Index      = 2.14055
  Normalizat = 0.89984
  Prefactor  = 0.84516
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.986     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93521        1.2607        .46460E-06   -1.5689    
   2  Index         2.1406        1.0769        .41116E-03   -.60881    
   3  Normalizat    .89984        .14372        .90801E-05   -.96466    
   4  Prefactor     .84516        .16280        .10569E-04   -.98085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62596e-10
Minuit parameter uncertainties:
  1  1.26068
  2  1.08966
  3  0.143777
  4  0.162895
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) = 8541.98629632
delta logL = 0.0175879792387

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  9.352e-01  1.261e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        Index:  2.141e+00  1.090e+00  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:  8.452e-01  1.629e-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:  8.998e-01  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 140.895 41.428
Photon Index (Free Index): 2.14 +/- 1.09
Photon Flux (Free Index): 9.60e-09 +/- 1.77e-08
Energy Flux (Free Index): 4.84e-06 +/- 7.89e-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/60728749/cmap_HighResolution_756086401_756691201_4FGL_J0923.5+4125_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='4.84e-06', photon_flux_error='1.65e-08', dlogl='1.76e-02', energy_flux='4.21e-06', photon_flux2='9.60e-09', job_status='DONE', time_completed='2024-12-24 03:33:09.315089', photon_index_error2='1.09', photon_index2='2.14', ts='1.10', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.99e-08', energy_flux_error2='7.89e-06', EG='0.90', time_epoch_completed='1735039989.32', return_code='0', job_id='60728749', GAL2='0.85', EG2='0.90', return_code2='0', energy_flux_error='5.75e-06', photon_flux_error2='1.77e-08', ts2='1.14', photon_index='2.36' WHERE bin_id='855' AND source_name='4FGL J0923.5+4125' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:33:09 PST 2024

