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


Performing analysis on: 4FGL_J1727.4+4530_weekly_bin907
RA = 261.852, Dec = 45.5108
tmin = 787536001, tmax = 788140801
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='17775509', job_status='RUN', time_executed='2025-12-23 02:10:03.253311', time_epoch_executed='1766484603.25' WHERE source_name='4FGL J1727.4+4530' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775509

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775509/ft1_4FGL_J1727.4+4530_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775509/ft1_4FGL_J1727.4+4530_weekly_bin907.fits outfile=/lscratch/kocevski/17775509/ft1_filteredMKT_4FGL_J1727.4+4530_weekly_bin907.fits ra=261.852 dec=45.5108 rad=12.0 tmin=787536001.0 tmax=788140801.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 4.87
user 4.26
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.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/17775509/ft1_filteredMKT_4FGL_J1727.4+4530_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.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.65
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1543

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775509/ltcube_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.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/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits
.....................!
real 18.55
user 17.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775509/ltcube_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.fits outfile=/lscratch/kocevski/17775509/expmap_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.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/17775509/ltcube_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.fits
.....................!
real 69.09
user 63.53
sys 4.37

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

Setting source of interest to:
4FGL J1727.4+4530 @ 261.852 45.5108

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits scfile=/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits outfile=/lscratch/kocevski/17775509/cmap_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.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=261.852 yref=45.5108 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.67
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits scfile=/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits outfile=/lscratch/kocevski/17775509/cmap_HighResolution_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.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=261.852 yref=45.5108 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.75
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775509/Model_4FGL_J1727.4+4530_weekly_bin907.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/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits.....................!
real 46.82
user 45.11
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits', '/lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits', expMap='/lscratch/kocevski/17775509/expmap_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.fits', expCube='/lscratch/kocevski/17775509/ltcube_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775509/Model_4FGL_J1727.4+4530_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1727.4+4530'

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.304e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
328        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  8.376e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  4.339e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775509/ft1_filtered_4FGL_J1727.4+4530_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775509/ft2_4FGL_J1727.4+4530_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775509/expmap_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775509/ltcube_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775509/Model_4FGL_J1727.4+4530_weekly_bin907.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) = 16358.2691086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33028E-03   1.0000          .0000       .10000E+07
     2 'norm      '    7.4764       1.0000          .0000       .10000E+07
     3 'norm      '    3.3235       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.9362       1.0000          .0000       .10000E+07
     5 'norm      '    .10060E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21261E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.5750       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.3749       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20850E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.9096       1.0000          .0000       .10000E+07
    11 'norm      '    2.2631       1.0000          .0000       .10000E+07
    12 'norm      '    1.0562       1.0000          .0000       .10000E+07
    13 'Prefactor '    .53554E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .31475E-07   1.0000          .0000       .10000E+07
    15 'norm      '    2.6148       1.0000          .0000       .10000E+07
    16 'norm      '    2.4585       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.4475       1.0000          .0000       .10000E+07
    18 'norm      '    11.643       1.0000          .0000       .10000E+07
    19 'Prefactor '    .16085E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .49725E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .13307E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    36.805       1.0000          .0000       .10000E+07
    23 'Prefactor '    36.683       1.0000          .0000       .10000E+07
    24 'Prefactor '    .16653E-04   1.0000          .0000       .10000E+07
    25 'norm      '    .52989E-02   1.0000          .0000       .10000E+07
    26 'norm      '    .27528       1.0000          .0000       .10000E+07
    27 'Prefactor '    2.1762       1.0000          .0000       .10000E+07
    28 'norm      '    11.238       1.0000          .0000       .10000E+07
    29 'Normalizat'    .68602       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16358.05     FROM MIGRAD    STATUS=CONVERGED    216 CALLS     2299 TOTAL
                     EDM=   .57E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.1954        .36205E-06** at limit **
   2  norm          7.4742        8.4604        .90895E-07    .13467E-03
   3  norm          3.2724        5.6889       -.35366E-07   -.54963E-04
   4  Prefactor     1.9405        2.5913       -.10468E-07   -.15578E-03
   5  norm           .0000        4.5128        .98340E-09** at limit **
   6  Prefactor      .0000        .29891        .15809E-07** at limit **
   7  Prefactor     2.5756        .65971       -.16359E-07    .93428E-03
   8  Prefactor     1.3742        1.7397        .49617E-08    .82519E-04
   9  Prefactor      .0000        .38167        .10333E-07** at limit **
  10  Prefactor     6.9473        5.7913        .35798E-07    .48469E-04
  11  norm          2.2629        .89164       -.20848E-07   -.19513E-03
  12  norm          1.0566        .54633       -.20489E-07    .27404E-04
  13  Prefactor      .0000        2.0141        .14392E-06** at limit **
  14  norm           .0000        .11056        .25023E-07** at limit **
  15  norm          2.6317        5.2481        .26033E-06   -.15875E-04
  16  norm          2.4600        1.2506       -.18482E-07    .75809E-04
  17  Prefactor     1.4476        3.0647       -.33819E-07    .21297E-04
  18  norm          11.640        3.9734        .94625E-07   -.31041E-03
  19  Prefactor      .0000        33.581        .94818E-06** at limit **
  20  norm          .23981E-07    5.7437       -.20480E-07** at limit **
  21  Prefactor     .14433E-08    13.510        .55593E-06** at limit **
  22  Prefactor     36.765        5.8519        .30375E-08    .74851E-05
  23  Prefactor     38.667        34.920       -.85855E-07   -.20978E-03
  24  Prefactor     .13767E-07    8.3649       -.69944E-07** at limit **
  25  norm          .77716E-09    17.126        .80261E-06** at limit **
  26  norm          .27708        15.806        .19564E-06    .42623E-04
  27  Prefactor     2.1452        11.741       -.11395E-06   -.58017E-04
  28  norm          11.250        5.5466        .47269E-08    .25211E-03
  29  Normalizat    .68583        .15460       -.29750E-05    .83831E-05
  30  Prefactor     1.0581        .10802        .12304E-05    .83001E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 7.47418
  norm       = 3.27239
  Prefactor  = 1.94045
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.57558
  Prefactor  = 1.37422
  Prefactor  = 0
  Prefactor  = 6.94731
  norm       = 2.26292
  norm       = 1.05661
  Prefactor  = 0
  norm       = 0
  norm       = 2.63172
  norm       = 2.45995
  Prefactor  = 1.44756
  norm       = 11.6396
  Prefactor  = 0
  norm       = 2.39808e-08
  Prefactor  = 1.44329e-09
  Prefactor  = 36.7647
  Prefactor  = 38.6672
  Prefactor  = 1.37668e-08
  norm       = 7.77156e-10
  norm       = 0.277082
  Prefactor  = 2.14521
  norm       = 11.2502
  Normalizat = 0.685834
  Prefactor  = 1.05805
 **********
 **   18 **HESSE 
 **********

 FCN=   16358.05     FROM HESSE     STATUS=OK           668 CALLS     2967 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0215        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.4742        8.4593        .36655E-03   -1.5653    
   3  norm          3.2724        5.7018        .55500E-03   -1.5672    
   4  Prefactor     1.9405        2.6164        .74595E-03   -1.5680    
   5  norm           .0000        4.5179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .16599        .19970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5756        .67894        .63577E-03   -1.5676    
   8  Prefactor     1.3742        1.7896        .92880E-03   -1.5685    
   9  Prefactor      .0000        .37961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9473        5.8047        .38144E-03   -1.5655    
  11  norm          2.2629        .89124        .68254E-03   -1.5678    
  12  norm          1.0566        .56470        .11968E-02   -1.5687    
  13  Prefactor      .0000        2.0053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .10939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6317        5.2783        .63052E-03   -1.5676    
  16  norm          2.4600        1.2567        .65202E-03   -1.5677    
  17  Prefactor     1.4476        3.0941        .89549E-03   -1.5684    
  18  norm          11.640        3.9792        .29334E-03   -1.5640    
  19  Prefactor      .0000        33.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .23981E-07    13.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .14433E-08    14.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.765        5.8794        .16485E-03   -1.5587    
  23  Prefactor     38.667        34.929        .16513E-03   -1.5584    
  24  Prefactor     .13767E-07    12.888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .77716E-09    17.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .27708        2.4407        .64479E-02   -1.5697    
  27  Prefactor     2.1452        11.760        .69766E-03   -1.5679    
  28  norm          11.250        5.5484        .29860E-03   -1.5641    
  29  Normalizat    .68583        .13551        .74402E-01   -1.0445    
  30  Prefactor     1.0581        .92496E-01    .39454E-01   -.90819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70017e-07
Minuit parameter uncertainties:
  1  5.18371e-06
  2  8.45932
  3  5.70178
  4  2.61645
  5  8.53679e-06
  6  9.43347e-08
  7  0.678942
  8  1.78959
  9  1.35291e-07
  10  5.80473
  11  0.891244
  12  0.564702
  13  1.02228e-06
  14  2.76387e-08
  15  5.27833
  16  1.25666
  17  3.09412
  18  3.97915
  19  1.98969e-05
  20  0.00114526
  21  0.000282183
  22  5.87941
  23  34.9295
  24  0.000841909
  25  0.000233648
  26  1.64472
  27  10.0453
  28  5.54845
  29  0.135579
  30  0.0925096
Done.

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

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.460e+00  1.257e+00  0.000e+00  1.000e+06 ( 1.000e-11)
328        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  8.376e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  4.339e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  1.058e+00  9.251e-02  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  6.858e-01  1.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.74
Ra Dec: 261.852 45.511
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 8.25e-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) = 16357.2025428
delta logL = 0.851634292108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16357.1903197
delta logL = 0.863857403339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8975       1.0000          .0000       .10000E+07
     2 'alpha     '    3.0812       1.0000          .0000       5.0000    
     3 'Normalizat'    .64998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16357.19     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8976        10.818        .75483E-03    .49456E-02
   2  alpha         3.0811        4.0301        .42653        .95892E-04
   3  Normalizat    .64996        .41320E-01    .76274E-01    .11973E-03
   4  Prefactor     1.0771        .31475E-01    .38530E-01    .56619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89755
  alpha      = 3.08113
  Normalizat = 0.64996
  Prefactor  = 1.0771
 **********
 **   18 **HESSE 
 **********

 FCN=   16357.19     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8976        1.3241        .73223E-05   -1.5680    
   2  alpha         3.0811        .64918        .18662E-01    .23460    
   3  Normalizat    .64996        .14644        .33768E-03   -1.0590    
   4  Prefactor     1.0771        .10677        .19773E-03   -.90202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14089e-10
Minuit parameter uncertainties:
  1  1.32405
  2  0.657146
  3  0.146524
  4  0.106793
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) = 16357.1903197
delta logL = 0.863857438406

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  1.898e+00  1.324e+00  0.000e+00  1.000e+06 ( 1.000e-11)
328        alpha:  3.081e+00  6.571e-01  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  8.376e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  4.339e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  1.077e+00  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  6.500e-01  1.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.78
Ra Dec: 261.852 45.511
Photon Index (Free Index): 3.08 +/- 0.66
Photon Flux (Free Index): 7.61e-08 +/- 3.45e-08
Energy Flux (Free Index): 1.48e-05 +/- 7.01e-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/17775509/cmap_HighResolution_787536001_788140801_4FGL_J1727.4+4530_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='1.48e-05', photon_flux_error='2.76e-08', dlogl='8.64e-01', energy_flux='1.62e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2025-12-23 02:22:48.411611', photon_index_error2='0.66', photon_index2='3.08', ts='5.74', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='7.01e-06', EG='0.69', time_epoch_completed='1766485368.41', return_code='0', job_id='17775509', GAL2='1.08', EG2='0.65', return_code2='0', energy_flux_error='8.25e-06', photon_flux_error2='3.45e-08', ts2='7.78', photon_index='2.39' WHERE bin_id='907' AND source_name='4FGL J1727.4+4530' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:22:48 PST 2025

