 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
source GAL_V02
Working on...
/lscratch/kocevski/33488342/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits.....................!
real 33.05
user 31.05
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33488342/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits', '/lscratch/kocevski/33488342/ft2_4FGL_J2331.3-1558_weekly_bin938.fits', expMap='/lscratch/kocevski/33488342/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', expCube='/lscratch/kocevski/33488342/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33488342/Model_4FGL_J2331.3-1558_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33488342/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33488342/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33488342/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33488342/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33488342/Model_4FGL_J2331.3-1558_weekly_bin938.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) = 11868.6502963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56166E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85471E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .58548E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10369E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2441       1.0000          .0000       .10000E+07
    11 'norm      '    2.9642       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51625E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .92870E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .73230E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8213       1.0000          .0000       .10000E+07
    16 'Normalizat'    .81173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1006 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.9694        .52493E-06** at limit **
   2  norm          16.018        11.726        .13294E-06   -.80483E-01
   3  Prefactor     .66613E-09    4.0057        .11350E-06** at limit **
   4  norm           .0000        .35346        .36048E-07** at limit **
   5  Prefactor     16.235        12.420        .18512E-06   -.69930E-01
   6  Prefactor     .67168E-08    7.7529       -.14251E-05** at limit **
   7  Prefactor     4.5358        3.6347        .32123E-07   -.51531E-02
   8  Prefactor     11.884        10.663        .21836E-06    .69824E-01
   9  Prefactor     1.5144        3.0616       -.24209E-06   -.17697E-03
  10  norm          2.2351        2.6129        .14591E-06    .70417E-04
  11  norm          2.9650        1.7994        .20873E-07   -.71182E-04
  12  Prefactor     .36360E-07    36.375       -.53958E-06** at limit **
  13  norm           .0000        .10163        .66230E-07** at limit **
  14  norm           .0000        .93005        .18356E-06** at limit **
  15  Prefactor     6.8183        3.6847        .51568E-07    .27088E-03
  16  Normalizat    .81196        .12437       -.76245E-05    .36955E-04
  17  Prefactor     .91711        .11924        .65671E-05    .98216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 16.0177
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 16.2347
  Prefactor  = 6.71685e-09
  Prefactor  = 4.53583
  Prefactor  = 11.8842
  Prefactor  = 1.51441
  norm       = 2.23508
  norm       = 2.96503
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 0
  Prefactor  = 6.81828
  Normalizat = 0.81196
  Prefactor  = 0.91711
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
A" outfile=/lscratch/kocevski/33488435/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 17.69
user 16.49
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33488435/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33488435/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33488435/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 65.67
user 60.55
sys 3.83

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33488435/cmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.14
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33488435/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.45
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33488435/Model_4FGL_J2331.3-1558_weekly_bin938.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 /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)
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33488328/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33488285/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111

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

 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33488328/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:04:13.758974', job_id='33488328', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785297853.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:04:14 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33488285/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:04:15.328183', job_id='33488285', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785297855.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:04:15 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33488342/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33488342/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:04:28.522518', job_id='33488342', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785297868.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:04:29 PDT 2026

source GAL_V02
Working on...
/lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits.....................!
real 32.50
user 30.21
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits', '/lscratch/kocevski/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits', expMap='/lscratch/kocevski/33488435/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', expCube='/lscratch/kocevski/33488435/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33488435/Model_4FGL_J2331.3-1558_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33488435/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33488435/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33488435/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33488435/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33488435/Model_4FGL_J2331.3-1558_weekly_bin938.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) = 11868.6502963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56166E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85471E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .58548E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10369E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2441       1.0000          .0000       .10000E+07
    11 'norm      '    2.9642       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51625E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .92870E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .73230E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8213       1.0000          .0000       .10000E+07
    16 'Normalizat'    .81173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1006 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.9694        .52493E-06** at limit **
   2  norm          16.018        11.726        .13294E-06   -.80483E-01
   3  Prefactor     .66613E-09    4.0057        .11350E-06** at limit **
   4  norm           .0000        .35346        .36048E-07** at limit **
   5  Prefactor     16.235        12.420        .18512E-06   -.69930E-01
   6  Prefactor     .67168E-08    7.7529       -.14251E-05** at limit **
   7  Prefactor     4.5358        3.6347        .32123E-07   -.51531E-02
   8  Prefactor     11.884        10.663        .21836E-06    .69824E-01
   9  Prefactor     1.5144        3.0616       -.24209E-06   -.17697E-03
  10  norm          2.2351        2.6129        .14591E-06    .70417E-04
  11  norm          2.9650        1.7994        .20873E-07   -.71182E-04
  12  Prefactor     .36360E-07    36.375       -.53958E-06** at limit **
  13  norm           .0000        .10163        .66230E-07** at limit **
  14  norm           .0000        .93005        .18356E-06** at limit **
  15  Prefactor     6.8183        3.6847        .51568E-07    .27088E-03
  16  Normalizat    .81196        .12437       -.76245E-05    .36955E-04
  17  Prefactor     .91711        .11924        .65671E-05    .98216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 16.0177
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 16.2347
  Prefactor  = 6.71685e-09
  Prefactor  = 4.53583
  Prefactor  = 11.8842
  Prefactor  = 1.51441
  norm       = 2.23508
  norm       = 2.96503
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 0
  Prefactor  = 6.81828
  Normalizat = 0.81196
  Prefactor  = 0.91711
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33488435/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33488435/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:05:54.704916', job_id='33488435', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785297954.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:05:55 PDT 2026

number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin938
RA = 352.839, Dec = -15.9777
tmin = 806284801, tmax = 806889601
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='33489007', job_status='RUN', time_executed='2026-07-28 20:58:42.718576', time_epoch_executed='1785297522.72' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33489007

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33489007/ft1_4FGL_J2331.3-1558_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33489007/ft1_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489007/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=806284801.0 tmax=806889601.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.40
user 4.25
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.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/33489007/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.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.07
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 1061

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin938
RA = 352.839, Dec = -15.9777
tmin = 806284801, tmax = 806889601
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='33489003', job_status='RUN', time_executed='2026-07-28 20:58:42.704310', time_epoch_executed='1785297522.7' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33489003

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33489003/ft1_4FGL_J2331.3-1558_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33489003/ft1_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489003/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=806284801.0 tmax=806889601.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.52
user 4.32
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.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/33489003/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.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.07
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1061

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATAnumber of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin938
RA = 352.839, Dec = -15.9777
tmin = 806284801, tmax = 806889601
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='33489065', job_status='RUN', time_executed='2026-07-28 20:58:47.588901', time_epoch_executed='1785297527.59' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33489065

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33489065/ft1_4FGL_J2331.3-1558_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33489065/ft1_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489065/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=806284801.0 tmax=806889601.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 6.02
user 5.01
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.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/33489065/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.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.07
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1061

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33489007/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 16.13
user 15.23
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33489007/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489007/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489007/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 60.03
user 55.43
sys 3.43

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489007/cmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489007/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.07
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33489007/Model_4FGL_J2331.3-1558_weekly_bin938.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 " outfile=/lscratch/kocevski/33489003/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 16.21
user 15.17
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33489003/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489003/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489003/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 60.04
user 55.57
sys 3.35

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489003/cmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.89
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489003/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.07
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33489003/Model_4FGL_J2331.3-1558_weekly_bin938.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 sA" outfile=/lscratch/kocevski/33489065/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 20.77
user 19.69
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33489065/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489065/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489065/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 73.61
user 68.12
sys 4.04

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489065/cmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.03
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489065/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.22
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33489065/Model_4FGL_J2331.3-1558_weekly_bin938.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/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits.....................!
real 29.74
user 28.15
sys 0.56

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits', '/lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits', expMap='/lscratch/kocevski/33489007/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', expCube='/lscratch/kocevski/33489007/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33489007/Model_4FGL_J2331.3-1558_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33489007/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33489007/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33489007/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33489007/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33489007/Model_4FGL_J2331.3-1558_weekly_bin938.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) = 11868.6502963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56166E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85471E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .58548E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10369E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2441       1.0000          .0000       .10000E+07
    11 'norm      '    2.9642       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51625E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .92870E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .73230E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8213       1.0000          .0000       .10000E+07
    16 'Normalizat'    .81173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1006 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.9694        .52493E-06** at limit **
   2  norm          16.018        11.726        .13294E-06   -.80483E-01
   3  Prefactor     .66613E-09    4.0057        .11350E-06** at limit **
   4  norm           .0000        .35346        .36048E-07** at limit **
   5  Prefactor     16.235        12.420        .18512E-06   -.69930E-01
   6  Prefactor     .67168E-08    7.7529       -.14251E-05** at limit **
   7  Prefactor     4.5358        3.6347        .32123E-07   -.51531E-02
   8  Prefactor     11.884        10.663        .21836E-06    .69824E-01
   9  Prefactor     1.5144        3.0616       -.24209E-06   -.17697E-03
  10  norm          2.2351        2.6129        .14591E-06    .70417E-04
  11  norm          2.9650        1.7994        .20873E-07   -.71182E-04
  12  Prefactor     .36360E-07    36.375       -.53958E-06** at limit **
  13  norm           .0000        .10163        .66230E-07** at limit **
  14  norm           .0000        .93005        .18356E-06** at limit **
  15  Prefactor     6.8183        3.6847        .51568E-07    .27088E-03
  16  Normalizat    .81196        .12437       -.76245E-05    .36955E-04
  17  Prefactor     .91711        .11924        .65671E-05    .98216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 16.0177
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 16.2347
  Prefactor  = 6.71685e-09
  Prefactor  = 4.53583
  Prefactor  = 11.8842
  Prefactor  = 1.51441
  norm       = 2.23508
  norm       = 2.96503
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 0
  Prefactor  = 6.81828
  Normalizat = 0.81196
  Prefactor  = 0.91711
ource GAL_V02
Working on...
/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits.....................!
real 30.37
user 28.38
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits', '/lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits', expMap='/lscratch/kocevski/33489003/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', expCube='/lscratch/kocevski/33489003/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33489003/Model_4FGL_J2331.3-1558_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33489003/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33489003/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33489003/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33489003/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33489003/Model_4FGL_J2331.3-1558_weekly_bin938.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) = 11868.6502963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56166E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85471E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .58548E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10369E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2441       1.0000          .0000       .10000E+07
    11 'norm      '    2.9642       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51625E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .92870E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .73230E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8213       1.0000          .0000       .10000E+07
    16 'Normalizat'    .81173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1006 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.9694        .52493E-06** at limit **
   2  norm          16.018        11.726        .13294E-06   -.80483E-01
   3  Prefactor     .66613E-09    4.0057        .11350E-06** at limit **
   4  norm           .0000        .35346        .36048E-07** at limit **
   5  Prefactor     16.235        12.420        .18512E-06   -.69930E-01
   6  Prefactor     .67168E-08    7.7529       -.14251E-05** at limit **
   7  Prefactor     4.5358        3.6347        .32123E-07   -.51531E-02
   8  Prefactor     11.884        10.663        .21836E-06    .69824E-01
   9  Prefactor     1.5144        3.0616       -.24209E-06   -.17697E-03
  10  norm          2.2351        2.6129        .14591E-06    .70417E-04
  11  norm          2.9650        1.7994        .20873E-07   -.71182E-04
  12  Prefactor     .36360E-07    36.375       -.53958E-06** at limit **
  13  norm           .0000        .10163        .66230E-07** at limit **
  14  norm           .0000        .93005        .18356E-06** at limit **
  15  Prefactor     6.8183        3.6847        .51568E-07    .27088E-03
  16  Normalizat    .81196        .12437       -.76245E-05    .36955E-04
  17  Prefactor     .91711        .11924        .65671E-05    .98216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 16.0177
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 16.2347
  Prefactor  = 6.71685e-09
  Prefactor  = 4.53583
  Prefactor  = 11.8842
  Prefactor  = 1.51441
  norm       = 2.23508
  norm       = 2.96503
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 0
  Prefactor  = 6.81828
  Normalizat = 0.81196
  Prefactor  = 0.91711
number of points = 17264
number of fields = 31
RA_SUN column already exists. File will not be modified.
ALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
Done.


Performing analysis on: 4FGL_J2331.3-1558_weekly_bin938
RA = 352.839, Dec = -15.9777
tmin = 806284801, tmax = 806889601
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='33489799', job_status='RUN', time_executed='2026-07-28 21:04:14.170928', time_epoch_executed='1785297854.17' WHERE source_name='4FGL J2331.3-1558' and cadence='weekly' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33489799

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33489799/ft1_4FGL_J2331.3-1558_weekly_bin938.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33489799/ft1_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489799/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=806284801.0 tmax=806889601.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.20
user 4.36
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.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/33489799/ft1_filteredMKT_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" outfile="/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.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.03
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1061

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DAT **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33489007/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33489007/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:09:46.707598', job_id='33489007', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785298186.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:09:47 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33489003/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33489003/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:09:54.654288', job_id='33489003', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785298194.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:09:55 PDT 2026

source GAL_V02
Working on...
/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits.....................!
real 39.03
user 36.64
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits', '/lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits', expMap='/lscratch/kocevski/33489065/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', expCube='/lscratch/kocevski/33489065/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33489065/Model_4FGL_J2331.3-1558_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33489065/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33489065/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33489065/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33489065/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33489065/Model_4FGL_J2331.3-1558_weekly_bin938.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) = 11868.6502963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56166E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85471E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .58548E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10369E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2441       1.0000          .0000       .10000E+07
    11 'norm      '    2.9642       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51625E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .92870E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .73230E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8213       1.0000          .0000       .10000E+07
    16 'Normalizat'    .81173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1006 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.9694        .52493E-06** at limit **
   2  norm          16.018        11.726        .13294E-06   -.80483E-01
   3  Prefactor     .66613E-09    4.0057        .11350E-06** at limit **
   4  norm           .0000        .35346        .36048E-07** at limit **
   5  Prefactor     16.235        12.420        .18512E-06   -.69930E-01
   6  Prefactor     .67168E-08    7.7529       -.14251E-05** at limit **
   7  Prefactor     4.5358        3.6347        .32123E-07   -.51531E-02
   8  Prefactor     11.884        10.663        .21836E-06    .69824E-01
   9  Prefactor     1.5144        3.0616       -.24209E-06   -.17697E-03
  10  norm          2.2351        2.6129        .14591E-06    .70417E-04
  11  norm          2.9650        1.7994        .20873E-07   -.71182E-04
  12  Prefactor     .36360E-07    36.375       -.53958E-06** at limit **
  13  norm           .0000        .10163        .66230E-07** at limit **
  14  norm           .0000        .93005        .18356E-06** at limit **
  15  Prefactor     6.8183        3.6847        .51568E-07    .27088E-03
  16  Normalizat    .81196        .12437       -.76245E-05    .36955E-04
  17  Prefactor     .91711        .11924        .65671E-05    .98216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 16.0177
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 16.2347
  Prefactor  = 6.71685e-09
  Prefactor  = 4.53583
  Prefactor  = 11.8842
  Prefactor  = 1.51441
  norm       = 2.23508
  norm       = 2.96503
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 0
  Prefactor  = 6.81828
  Normalizat = 0.81196
  Prefactor  = 0.91711
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33489065/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33489065/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:11:04.437199', job_id='33489065', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785298264.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:11:04 PDT 2026

A" outfile=/lscratch/kocevski/33489799/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 16.34
user 15.42
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33489799/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489799/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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/33489799/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
.....................!
real 62.02
user 57.31
sys 3.61

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

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489799/cmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.93
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits scfile=/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits outfile=/lscratch/kocevski/33489799/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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=352.839 yref=-15.9777 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.95
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits evtable="EVENTS" scfile=/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33489799/Model_4FGL_J2331.3-1558_weekly_bin938.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/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits.....................!
real 33.23
user 31.29
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits', '/lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits', expMap='/lscratch/kocevski/33489799/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', expCube='/lscratch/kocevski/33489799/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33489799/Model_4FGL_J2331.3-1558_weekly_bin938.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33489799/ft1_filtered_4FGL_J2331.3-1558_weekly_bin938.fits
Spacecraft file(s): /lscratch/kocevski/33489799/ft2_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure map: /lscratch/kocevski/33489799/expmap_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
Exposure cube: /lscratch/kocevski/33489799/ltcube_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33489799/Model_4FGL_J2331.3-1558_weekly_bin938.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) = 11868.6502963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56166E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .85471E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .58548E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10369E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6766       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5126       1.0000          .0000       .10000E+07
    10 'norm      '    2.2441       1.0000          .0000       .10000E+07
    11 'norm      '    2.9642       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51625E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .92870E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .73230E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8213       1.0000          .0000       .10000E+07
    16 'Normalizat'    .81173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1006 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.9694        .52493E-06** at limit **
   2  norm          16.018        11.726        .13294E-06   -.80483E-01
   3  Prefactor     .66613E-09    4.0057        .11350E-06** at limit **
   4  norm           .0000        .35346        .36048E-07** at limit **
   5  Prefactor     16.235        12.420        .18512E-06   -.69930E-01
   6  Prefactor     .67168E-08    7.7529       -.14251E-05** at limit **
   7  Prefactor     4.5358        3.6347        .32123E-07   -.51531E-02
   8  Prefactor     11.884        10.663        .21836E-06    .69824E-01
   9  Prefactor     1.5144        3.0616       -.24209E-06   -.17697E-03
  10  norm          2.2351        2.6129        .14591E-06    .70417E-04
  11  norm          2.9650        1.7994        .20873E-07   -.71182E-04
  12  Prefactor     .36360E-07    36.375       -.53958E-06** at limit **
  13  norm           .0000        .10163        .66230E-07** at limit **
  14  norm           .0000        .93005        .18356E-06** at limit **
  15  Prefactor     6.8183        3.6847        .51568E-07    .27088E-03
  16  Normalizat    .81196        .12437       -.76245E-05    .36955E-04
  17  Prefactor     .91711        .11924        .65671E-05    .98216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 16.0177
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 16.2347
  Prefactor  = 6.71685e-09
  Prefactor  = 4.53583
  Prefactor  = 11.8842
  Prefactor  = 1.51441
  norm       = 2.23508
  norm       = 2.96503
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 0
  Prefactor  = 6.81828
  Normalizat = 0.81196
  Prefactor  = 0.91711
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=OK           263 CALLS     1269 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.018        16.965        .24655E-03   -1.5628    
   3  Prefactor     .66613E-09    4.0392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .34780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.235        14.847        .24938E-03   -1.5627    
   6  Prefactor     .67168E-08    7.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5358        15.894        .46512E-03   -1.5665    
   8  Prefactor     11.884        12.138        .29180E-03   -1.5639    
   9  Prefactor     1.5144        3.2686        .86915E-03   -1.5683    
  10  norm          2.2351        2.6464        .68575E-03   -1.5678    
  11  norm          2.9650        1.8098        .58953E-03   -1.5674    
  12  Prefactor     .36360E-07    35.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .66670E-01    .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8183        3.6855        .38392E-03   -1.5656    
  16  Normalizat    .81196        .10614        .43763E-01   -.99627    
  17  Prefactor     .91711        .10137        .45223E-01   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48162e-07
Minuit parameter uncertainties:
  1  6.96219e-05
  2  16.9649
  3  0.000102324
  4  7.21259e-07
  5  14.847
  6  0.000455425
  7  15.8938
  8  12.1384
  9  3.26857
  10  2.64644
  11  1.80984
  12  0.00227121
  13  1.96516e-07
  14  2.77233e-06
  15  3.68548
  16  0.106168
  17  0.101391
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.636e-08  2.271e-03  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 3.93973510551e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307235134491 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33489799/likelihoodResults_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.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): 102
logL (Free Index) = 11868.5970113
delta logL = -0.022526288667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.5744931
delta logL = -8.0877016444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26604E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.1102       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11868.57     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    .75435E-02    .79885E-02** at limit **
   2  Index         2.1664        8.1089        .50000       -.90949E-09
   3  Normalizat    .81196        .83178E-04    .43766E-01    .10728E-02
   4  Prefactor     .91711        .80688E-04    .45223E-01    .14265E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Index      = 2.16639
  Normalizat = 0.81196
  Prefactor  = 0.917111
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.57     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    .60579E-02    .88561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1664        7.3251        .50000       -.60252    
   3  Normalizat    .81196        .79665E-04    .23067E-03   -.99627    
   4  Prefactor     .91711        .77291E-04    .21045E-03   -.95546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03125e-14
Minuit parameter uncertainties:
  1  2.19772e-05
  2  193.179
  3  7.96654e-05
  4  7.72909e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11868.574485
delta logL = 6.0026650317e-11

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.993e-08  2.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
426        Index:  2.166e+00  1.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.171e-01  7.729e-05  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.120e-01  7.967e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/33489799/cmap_HighResolution_806284801_806889601_4FGL_J2331.3-1558_weekly_bin938.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2026-07-28 21:13:20.004518', job_id='33489799', GAL2='0.92', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1785298400.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='938' AND source_name='4FGL J2331.3-1558' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 28 21:13:20 PDT 2026

