/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

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


Performing analysis on: 4FGL_J1231.7+2847_weekly_bin858
RA = 187.935, Dec = 28.7917
tmin = 757900801, tmax = 758505601
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='61724782', job_status='RUN', time_executed='2025-01-14 02:56:35.599955', time_epoch_executed='1736852195.6' WHERE source_name='4FGL J1231.7+2847' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61724782

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61724782/ft1_4FGL_J1231.7+2847_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61724782/ft1_4FGL_J1231.7+2847_weekly_bin858.fits outfile=/lscratch/kocevski/61724782/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin858.fits ra=187.935 dec=28.7917 rad=12.0 tmin=757900801.0 tmax=758505601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.94
user 3.51
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.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/61724782/ft1_filteredMKT_4FGL_J1231.7+2847_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2770

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61724782/ltcube_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.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/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits
.....................!
real 20.87
user 20.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61724782/ltcube_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.fits outfile=/lscratch/kocevski/61724782/expmap_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.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/61724782/ltcube_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.fits
.....................!
real 74.78
user 69.83
sys 4.33

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits scfile=/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits outfile=/lscratch/kocevski/61724782/cmap_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.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=187.935 yref=28.7917 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.47
user 0.26
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits scfile=/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits outfile=/lscratch/kocevski/61724782/cmap_HighResolution_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.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=187.935 yref=28.7917 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.45
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61724782/Model_4FGL_J1231.7+2847_weekly_bin858.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/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits.....................!
real 83.82
user 82.09
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits', '/lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits', expMap='/lscratch/kocevski/61724782/expmap_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.fits', expCube='/lscratch/kocevski/61724782/ltcube_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61724782/Model_4FGL_J1231.7+2847_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61724782/ft1_filtered_4FGL_J1231.7+2847_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61724782/ft2_4FGL_J1231.7+2847_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61724782/expmap_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61724782/ltcube_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61724782/Model_4FGL_J1231.7+2847_weekly_bin858.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) = 27413.2074097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41746E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .66513       1.0000          .0000       .10000E+07
     3 'norm      '    9.1307       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.2831       1.0000          .0000       .10000E+07
     5 'Prefactor '    .52090E-05   1.0000          .0000       .10000E+07
     6 'norm      '    7.2405       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.1960       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.0216       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.6260       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40588E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .49960E-07   1.0000          .0000       .10000E+07
    12 'norm      '    1.1940       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.5210       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15322E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12894E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35049E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .36834E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16576E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .24515E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .12581E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .76267E-06   1.0000          .0000       .10000E+07
    22 'norm      '    176.41       1.0000          .0000       .10000E+07
    23 'norm      '    173.37       1.0000          .0000       .10000E+07
    24 'norm      '    .62932E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .54434E-06   1.0000          .0000       .10000E+07
    26 'Prefactor '    .37498E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .97236       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27413.07     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     2038 TOTAL
                     EDM=   .29E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.5759        .34048E-07** at limit **
   2  Prefactor     .66565        .68163        .14020E-07   -.76448E-03
   3  norm          9.1314        1.2160       -.12901E-08   -.61807E-03
   4  Prefactor     3.2857        2.1714        .19063E-08   -.15632E-03
   5  Prefactor      .0000        .85951        .53440E-08** at limit **
   6  norm          7.2419        2.0374       -.20894E-08   -.14672E-03
   7  Prefactor     2.1929        2.5479       -.38088E-07    .31750E-03
   8  Prefactor     2.0214        1.1081        .11503E-07   -.63976E-03
   9  Prefactor     2.6254        1.3093       -.10616E-07    .19638E-03
  10  Prefactor      .0000        1.4311        .64372E-07** at limit **
  11  norm           .0000        .90931E-01   -.15306E-07** at limit **
  12  norm          1.1942        2.2046       -.78217E-08   -.76115E-04
  13  Prefactor     5.5207        4.4628        .54115E-08   -.10649E-03
  14  Prefactor      .0000        7.9087       -.82964E-07** at limit **
  15  Prefactor      .0000        .74102        .13781E-08** at limit **
  16  Prefactor      .0000        .92320        .23373E-07** at limit **
  17  norm          .37387E-01    29.722        .52726E-07** at limit **
  18  Prefactor      .0000        2.5523       -.10241E-07** at limit **
  19  norm           .0000        .58684        .86076E-09** at limit **
  20  Prefactor      .0000        24.110        .18713E-06** at limit **
  21  norm           .0000        .56564        .13261E-07** at limit **
  22  norm          176.40        6.7058       -.37215E-09    .44160E-04
  23  norm          173.38        2.7719       -.53295E-09   -.85401E-03
  24  norm           .0000        33.285       -.32499E-06** at limit **
  25  Prefactor      .0000        .38362        .37849E-08** at limit **
  26  Prefactor      .0000        4.0078       -.28798E-07** at limit **
  27  Normalizat    .97245        .12748        .92321E-06   -.67029E-04
  28  Prefactor     1.0497        .14523        .12526E-06   -.50946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.665648
  norm       = 9.13136
  Prefactor  = 3.28566
  Prefactor  = 0
  norm       = 7.24187
  Prefactor  = 2.19292
  Prefactor  = 2.0214
  Prefactor  = 2.62542
  Prefactor  = 0
  norm       = 0
  norm       = 1.19422
  Prefactor  = 5.52075
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.0373874
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 176.396
  norm       = 173.383
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.972449
  Prefactor  = 1.04973
 **********
 **   18 **HESSE 
 **********

 FCN=   27413.07     FROM HESSE     STATUS=OK           589 CALLS     2627 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.5815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66565        .68099        .63585E-03   -1.5692    
   3  norm          9.1314        1.2164        .33144E-03   -1.5648    
   4  Prefactor     3.2857        2.1780        .55857E-03   -1.5672    
   5  Prefactor      .0000        .85290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.2419        2.0425        .37253E-03   -1.5654    
   7  Prefactor     2.1929        2.5596        .69413E-03   -1.5678    
   8  Prefactor     2.0214        1.1095        .72753E-03   -1.5680    
   9  Prefactor     2.6254        1.3184        .62906E-03   -1.5676    
  10  Prefactor      .0000        1.4376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .35344E-01    .10720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1942        2.2457        .10408E-02   -1.5686    
  13  Prefactor     5.5207        4.4717        .42736E-03   -1.5661    
  14  Prefactor      .0000        7.9071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        .74272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        .92493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .37387E-01    .64999        .84359E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.5631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .58426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        23.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .56578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          176.40        10.605        .75297E-04   -1.5442    
  23  norm          173.38        21.334        .75955E-04   -1.5445    
  24  norm           .0000        32.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        .38410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        3.9753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97245        .10395        .72955E-01   -.93959    
  28  Prefactor     1.0497        .11800        .81691E-01   -.91090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2705e-08
Minuit parameter uncertainties:
  1  1.23408e-06
  2  0.680988
  3  1.21637
  4  2.17795
  5  1.59298e-07
  6  2.04249
  7  2.55956
  8  1.10955
  9  1.31842
  10  2.48603e-06
  11  8.64472e-08
  12  2.24571
  13  4.47166
  14  9.00168e-06
  15  2.11257e-07
  16  9.86518e-07
  17  0.311778
  18  1.40346e-06
  19  4.94569e-08
  20  2.41192e-05
  21  3.77743e-07
  22  10.6051
  23  21.3341
  24  3.75766e-05
  25  5.12242e-08
  26  1.4652e-06
  27  0.103972
  28  0.118029
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  5.521e+00  4.472e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.050e+00  1.180e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  9.724e-01  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.40e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 9.74e-06 +/- 7.89e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27412.6771814
delta logL = 0.39350746743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27412.6651646
delta logL = 0.405524295431

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   27412.67     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      352 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8707        5.4018        .19319E-04    .16418E-01
   2  Index         2.5932        .87677        .92361E-02    .40417E-03
   3  Normalizat    .94934        .13079        .32616E-03    .74480E-03
   4  Prefactor     1.0644        .14811        .35930E-03    .74584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87074
  Index      = 2.59321
  Normalizat = 0.94934
  Prefactor  = 1.06442
 **********
 **   18 **HESSE 
 **********

 FCN=   27412.67     FROM HESSE     STATUS=OK            25 CALLS      377 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8707        3.9686        .77278E-06   -1.5669    
   2  Index         2.5932        .64497        .36944E-03   -.50220    
   3  Normalizat    .94934        .12893        .13047E-04   -.94747    
   4  Prefactor     1.0644        .14709        .14372E-04   -.90612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79706e-10
Minuit parameter uncertainties:
  1  3.96861
  2  0.647318
  3  0.128973
  4  0.147147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27412.6651645
delta logL = 0.405524360896

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  3.871e+00  3.969e+00  0.000e+00  1.000e+06 ( 1.000e-13)
335        Index:  2.593e+00  6.473e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.064e+00  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  9.493e-01  1.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.59 +/- 0.65
Photon Flux (Free Index): 3.21e-08 +/- 2.70e-08
Energy Flux (Free Index): 8.47e-06 +/- 5.27e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/61724782/cmap_HighResolution_757900801_758505601_4FGL_J1231.7+2847_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-08', energy_flux2='8.47e-06', photon_flux_error='1.14e-08', dlogl='4.06e-01', energy_flux='9.74e-06', photon_flux2='3.21e-08', job_status='DONE', time_completed='2025-01-14 03:11:19.764556', photon_index_error2='0.65', photon_index2='2.59', ts='4.36', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='5.27e-06', EG='0.97', time_epoch_completed='1736853079.76', return_code='0', job_id='61724782', GAL2='1.06', EG2='0.95', return_code2='0', energy_flux_error='7.89e-06', photon_flux_error2='2.70e-08', ts2='5.18', photon_index='2.00' WHERE bin_id='858' AND source_name='4FGL J1231.7+2847' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 03:11:19 PST 2025

