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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1727.4+4530_weekly_bin855
RA = 261.852, Dec = 45.5108
tmin = 756086401, tmax = 756691201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='60730170', job_status='RUN', time_executed='2024-12-24 03:56:02.776021', time_epoch_executed='1735041362.78' WHERE source_name='4FGL J1727.4+4530' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730170

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60730170/ft1_4FGL_J1727.4+4530_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730170/ft1_4FGL_J1727.4+4530_weekly_bin855.fits outfile=/lscratch/kocevski/60730170/ft1_filteredMKT_4FGL_J1727.4+4530_weekly_bin855.fits ra=261.852 dec=45.5108 rad=12.0 tmin=756086401.0 tmax=756691201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.70
user 2.39
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/60730170/ft1_filteredMKT_4FGL_J1727.4+4530_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 932

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730170/ltcube_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits
.....................!
real 15.20
user 14.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730170/ltcube_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits outfile=/lscratch/kocevski/60730170/expmap_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/60730170/ltcube_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits
.....................!
real 69.51
user 64.78
sys 4.05

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/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits scfile=/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits outfile=/lscratch/kocevski/60730170/cmap_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.43
user 0.21
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits scfile=/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits outfile=/lscratch/kocevski/60730170/cmap_HighResolution_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.42
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730170/Model_4FGL_J1727.4+4530_weekly_bin855.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits.....................!
real 31.84
user 30.74
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits', '/lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits', expMap='/lscratch/kocevski/60730170/expmap_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits', expCube='/lscratch/kocevski/60730170/ltcube_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730170/Model_4FGL_J1727.4+4530_weekly_bin855.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/60730170/ft1_filtered_4FGL_J1727.4+4530_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730170/ft2_4FGL_J1727.4+4530_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730170/expmap_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730170/ltcube_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730170/Model_4FGL_J1727.4+4530_weekly_bin855.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) = 9868.75620747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38192E-07   1.0000          .0000       .10000E+07
     2 'norm      '    9.0571       1.0000          .0000       .10000E+07
     3 'norm      '    .13470E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .38907E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .47126E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16106E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.0619       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35293E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9079       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52773E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .74201       1.0000          .0000       .10000E+07
    12 'norm      '    .43039       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.6636       1.0000          .0000       .10000E+07
    14 'norm      '    .66830E-06   1.0000          .0000       .10000E+07
    15 'norm      '    15.994       1.0000          .0000       .10000E+07
    16 'norm      '    2.0746       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57676E-07   1.0000          .0000       .10000E+07
    18 'norm      '    2.0339       1.0000          .0000       .10000E+07
    19 'Prefactor '    .62745E-01   1.0000          .0000       .10000E+07
    20 'norm      '    2.2090       1.0000          .0000       .10000E+07
    21 'Prefactor '    .84414E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    9.0482       1.0000          .0000       .10000E+07
    23 'Prefactor '    28.506       1.0000          .0000       .10000E+07
    24 'Prefactor '    .87743E-04   1.0000          .0000       .10000E+07
    25 'norm      '    .72918E-02   1.0000          .0000       .10000E+07
    26 'norm      '    .13326E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .38469E-02   1.0000          .0000       .10000E+07
    28 'norm      '    6.9424       1.0000          .0000       .10000E+07
    29 'Normalizat'    .81103       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1200       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=   9868.754     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     3057 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .72377       -.23455E-07** at limit **
   2  norm          9.0622        3.1098        .21571E-07   -.44088E-01
   3  norm          .61062E-09    2.6388       -.99247E-07** at limit **
   4  Prefactor     .16653E-09    2.2661       -.14113E-07** at limit **
   5  norm          .19984E-08    15.108        .22805E-06** at limit **
   6  Prefactor     .11657E-08    2.7028        .48999E-07** at limit **
   7  Prefactor     3.0622        1.1511        .12804E-07    .25625E-02
   8  Prefactor      .0000        5.8542       -.44774E-07** at limit **
   9  Prefactor     1.9101        2.1802        .57275E-07    .19808E-02
  10  Prefactor     .28118E-05    60.977       -.73211E-06** at limit **
  11  norm          .74197        1.1403        .20556E-07    .11243E-02
  12  norm          .43248        .74384       -.25456E-07   -.36715E-02
  13  Prefactor     5.6130        5.0819        .39542E-07   -.56347E-03
  14  norm           .0000        1.7808        .16299E-07** at limit **
  15  norm          15.992        3.1865        .10743E-07   -.13260E-01
  16  norm          2.0763        1.2729       -.30200E-07   -.62406E-02
  17  Prefactor      .0000        .90305        .23090E-07** at limit **
  18  norm          2.0356        2.6373       -.47352E-07   -.21619E-02
  19  Prefactor     .81446E-06    29.663        .57023E-07** at limit **
  20  norm          2.2028        3.3240        .51184E-08   -.15324E-03
  21  Prefactor     .22758        20.369        .33678E-06** at limit **
  22  Prefactor     9.0631        4.2817        .22122E-07   -.15542E-03
  23  Prefactor     28.771        3.8588        .30110E-07   -.42812E-01
  24  Prefactor      .0000        1.6471       -.43334E-07** at limit **
  25  norm          .12695E-06    24.879       -.35190E-06** at limit **
  26  norm           .0000        1.7727        .10567E-07** at limit **
  27  Prefactor     .11657E-08    9.9837        .10864E-06** at limit **
  28  norm          6.9464        1.6701       -.15335E-07   -.14504E-01
  29  Normalizat    .81138        .19873       -.26081E-05   -.27130E-03
  30  Prefactor     1.1197        .14119       -.51495E-06   -.41208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 9.06218
  norm       = 6.10623e-10
  Prefactor  = 1.66533e-10
  norm       = 1.9984e-09
  Prefactor  = 1.16573e-09
  Prefactor  = 3.06221
  Prefactor  = 0
  Prefactor  = 1.91009
  Prefactor  = 2.81181e-06
  norm       = 0.741974
  norm       = 0.432481
  Prefactor  = 5.61296
  norm       = 0
  norm       = 15.9923
  norm       = 2.07629
  Prefactor  = 0
  norm       = 2.03556
  Prefactor  = 8.1446e-07
  norm       = 2.20285
  Prefactor  = 0.227583
  Prefactor  = 9.06311
  Prefactor  = 28.7712
  Prefactor  = 0
  norm       = 1.26954e-07
  norm       = 0
  Prefactor  = 1.16573e-09
  norm       = 6.94643
  Normalizat = 0.811383
  Prefactor  = 1.11975
 **********
 **   18 **HESSE 
 **********

 FCN=   9868.754     FROM HESSE     STATUS=OK           668 CALLS     3725 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .72335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0622        10.619        .33279E-03   -1.5648    
   3  norm          .61062E-09    2.6760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    2.2534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19984E-08    15.165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    .92127        .24541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0622        1.3937        .57948E-03   -1.5673    
   8  Prefactor      .0000        5.7452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9101        2.2043        .75241E-03   -1.5680    
  10  Prefactor     .28118E-05    60.769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .74197        1.1577        .57361E-03   -1.5691    
  12  norm          .43248        .76626        .86047E-03   -1.5695    
  13  Prefactor     5.6130        5.1593        .42186E-03   -1.5661    
  14  norm           .0000        .24603        .26249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.992        9.0203        .25017E-03   -1.5628    
  16  norm          2.0763        1.2872        .71682E-03   -1.5679    
  17  Prefactor      .0000        .90799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0356        2.6650        .72499E-03   -1.5679    
  19  Prefactor     .81446E-06    36.262        .15065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2028        3.3636        .69182E-03   -1.5678    
  21  Prefactor     .22758        15.798        .22107E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.0631        4.3867        .33296E-03   -1.5648    
  23  Prefactor     28.771        39.987        .18733E-03   -1.5601    
  24  Prefactor      .0000        1.6544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .12695E-06    24.999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm           .0000        1.7693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .11657E-08    10.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.9464        7.7659        .38052E-03   -1.5655    
  29  Normalizat    .81138        .17212        .70797E-01   -.99648    
  30  Prefactor     1.1197        .12055        .36871E-01   -.88838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72398e-07
Minuit parameter uncertainties:
  1  3.36269e-06
  2  10.6188
  3  7.91514e-05
  4  3.6934e-05
  5  0.000348472
  6  6.56082e-05
  7  1.39374
  8  1.71918e-05
  9  2.20426
  10  0.0261437
  11  1.15775
  12  0.766257
  13  5.1593
  14  9.46753e-07
  15  9.0203
  16  1.2872
  17  7.40876e-07
  18  2.66495
  19  0.0108689
  20  3.36357
  21  3.79229
  22  4.38673
  23  39.9871
  24  1.30512e-05
  25  0.00356336
  26  3.93746e-06
  27  0.000217677
  28  7.76595
  29  0.172234
  30  0.120584
Done.

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

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.076e+00  1.287e+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.120e+00  1.206e-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:  8.114e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 261.852 45.511
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.57e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 8.45e-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) = 9868.75198843
delta logL = 0.00212908154754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9868.75192519
delta logL = 0.00219232150084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0798       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3464       1.0000          .0000       5.0000    
     3 'Normalizat'    .81340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1187       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=   9868.752     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0826        39.759        .71580E-03    .58776E-02
   2  alpha         2.3476        2.5325        .41250       -.23738E-05
   3  Normalizat    .81322        .11724        .70724E-01    .33002E-04
   4  Prefactor     1.1188        .95368E-01    .36914E-01    .12420E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0826
  alpha      = 2.34755
  Normalizat = 0.813222
  Prefactor  = 1.11884
 **********
 **   18 **HESSE 
 **********

 FCN=   9868.752     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0826        1.2870        .85218E-05   -1.5679    
   2  alpha         2.3476        .62133        .20230E-01   -.61017E-01
   3  Normalizat    .81322        .19040        .31295E-03   -.99580    
   4  Prefactor     1.1188        .13998        .19992E-03   -.88867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31423e-12
Minuit parameter uncertainties:
  1  1.28701
  2  0.627938
  3  0.190559
  4  0.14003
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) = 9868.75192086
delta logL = 0.00219666095109

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.083e+00  1.287e+00  0.000e+00  1.000e+06 ( 1.000e-11)
328        alpha:  2.348e+00  6.279e-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.119e+00  1.400e-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:  8.132e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 261.852 45.511
Photon Index (Free Index): 2.35 +/- 0.63
Photon Flux (Free Index): 4.45e-08 +/- 3.26e-08
Energy Flux (Free Index): 1.38e-05 +/- 9.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/60730170/cmap_HighResolution_756086401_756691201_4FGL_J1727.4+4530_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-08', energy_flux2='1.38e-05', photon_flux_error='2.83e-08', dlogl='2.20e-03', energy_flux='1.36e-05', photon_flux2='4.45e-08', job_status='DONE', time_completed='2024-12-24 04:03:53.238186', photon_index_error2='0.63', photon_index2='2.35', ts='4.86', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='9.01e-06', EG='0.81', time_epoch_completed='1735041833.24', return_code='0', job_id='60730170', GAL2='1.12', EG2='0.81', return_code2='0', energy_flux_error='8.45e-06', photon_flux_error2='3.26e-08', ts2='4.86', photon_index='2.39' WHERE bin_id='855' AND source_name='4FGL J1727.4+4530' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:03:53 PST 2024

