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


Performing analysis on: 4FGL_J1727.2+0644_weekly_bin854
RA = 261.806, Dec = 6.7445
tmin = 755481601, tmax = 756086401
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='60352519', job_status='RUN', time_executed='2024-12-17 00:57:02.174845', time_epoch_executed='1734425822.17' WHERE source_name='4FGL J1727.2+0644' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352519

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352519/ft1_4FGL_J1727.2+0644_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352519/ft1_4FGL_J1727.2+0644_weekly_bin854.fits outfile=/lscratch/kocevski/60352519/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin854.fits ra=261.806 dec=6.7445 rad=12.0 tmin=755481601.0 tmax=756086401.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.91
user 4.18
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.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/60352519/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.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.49
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2419

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352519/ltcube_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.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/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits
.....................!
real 16.27
user 15.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352519/ltcube_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.fits outfile=/lscratch/kocevski/60352519/expmap_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.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/60352519/ltcube_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.fits
.....................!
real 67.46
user 63.19
sys 3.85

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Added 208 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1727.2+0644 @ 261.806 6.7445

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits scfile=/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits outfile=/lscratch/kocevski/60352519/cmap_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.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.806 yref=6.7445 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.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits scfile=/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits outfile=/lscratch/kocevski/60352519/cmap_HighResolution_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.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.806 yref=6.7445 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.40
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352519/Model_4FGL_J1727.2+0644_weekly_bin854.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 FHES J1723.5-0501
adding source G24.7+0.6
adding source GAL_V02
adding source Kes 73
Working on...
/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits.....................!
real 82.56
user 81.27
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits', '/lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits', expMap='/lscratch/kocevski/60352519/expmap_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.fits', expCube='/lscratch/kocevski/60352519/ltcube_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352519/Model_4FGL_J1727.2+0644_weekly_bin854.xml', optimizer='MINUIT')

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

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  8.444e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352519/ft1_filtered_4FGL_J1727.2+0644_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352519/ft2_4FGL_J1727.2+0644_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352519/expmap_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352519/ltcube_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352519/Model_4FGL_J1727.2+0644_weekly_bin854.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) = 25101.8025787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87287E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .39082E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8015       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24875E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17938       1.0000          .0000       .10000E+07
     7 'norm      '    .35679       1.0000          .0000       .10000E+07
     8 'Prefactor '    .61617E-08   1.0000          .0000       .10000E+07
     9 'norm      '    6.4327       1.0000          .0000       .10000E+07
    10 'Prefactor '    77.294       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19978       1.0000          .0000       .10000E+07
    12 'norm      '    2.2106       1.0000          .0000       .10000E+07
    13 'norm      '    1.6972       1.0000          .0000       .10000E+07
    14 'norm      '    1.0176       1.0000          .0000       .10000E+07
    15 'norm      '    .98744E-05   1.0000          .0000       .10000E+07
    16 'norm      '    7.1633       1.0000          .0000       .10000E+07
    17 'Normalizat'    .80161       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25101.78     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1376 TOTAL
                     EDM=   .69E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3235        .16993E-07** at limit **
   2  Prefactor      .0000        1.1003       -.14809E-07** at limit **
   3  Prefactor      .0000        90.199       -.31791E-07** at limit **
   4  Prefactor     2.8077        5.6018        .11224E-07   -.11951E-04
   5  Prefactor      .0000        2.2002       -.50966E-07** at limit **
   6  Prefactor      .0000        329.56       -.69522E-06** at limit **
   7  norm          .35953        1.2654       -.67988E-07   -.41353E-04
   8  Prefactor      .0000        33.371        .34301E-07** at limit **
   9  norm          6.3798        9.1373        .37167E-07   -.58554E-04
  10  Prefactor     78.515        52.444        .60250E-07    .95681E-05
  11  Prefactor     .20290        7.8917        .18161E-06** at limit **
  12  norm          2.1955        5.0321       -.30338E-07    .24826E-04
  13  norm          1.6987        2.8115        .37468E-07   -.33099E-04
  14  norm          1.0173        .53924        .17396E-08   -.38733E-04
  15  norm           .0000        1.4033        .14332E-08** at limit **
  16  norm          7.1523        8.3952        .26071E-07   -.62523E-05
  17  Normalizat    .80039        .24201        .27880E-06   -.14290E-05
  18  Prefactor     1.1296        .51825E-01   -.12783E-06   -.10898E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.80767
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.359532
  Prefactor  = 0
  norm       = 6.37985
  Prefactor  = 78.5151
  Prefactor  = 0.202905
  norm       = 2.19551
  norm       = 1.69868
  norm       = 1.01731
  norm       = 0
  norm       = 7.15234
  Normalizat = 0.800387
  Prefactor  = 1.1296
 **********
 **   18 **HESSE 
 **********

 FCN=   25101.78     FROM HESSE     STATUS=OK           288 CALLS     1664 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.1070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        88.879        .16005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8077        5.6633        .60754E-03   -1.5674    
   5  Prefactor      .0000        2.1993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        327.44        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .35953        1.2742        .94674E-03   -1.5696    
   8  Prefactor      .0000        32.821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3798        8.6490        .39548E-03   -1.5657    
  10  Prefactor     78.515        52.620        .11375E-03   -1.5531    
  11  Prefactor     .20290        .72999        .77436E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1955        5.0655        .69154E-03   -1.5678    
  13  norm          1.6987        2.8237        .80733E-03   -1.5682    
  14  norm          1.0173        .54853        .12877E-02   -1.5688    
  15  norm           .0000        1.4021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1523        8.3924        .37455E-03   -1.5654    
  17  Normalizat    .80039        .23902        .15851       -1.0005    
  18  Prefactor     1.1296        .49723E-01    .36561E-01   -.88526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1141e-06
Minuit parameter uncertainties:
  1  8.18068e-08
  2  2.1167e-07
  3  4.41559e-06
  4  5.66335
  5  1.53915e-07
  6  3.48229e-05
  7  1.27422
  8  5.11287e-06
  9  8.64905
  10  52.6202
  11  0.729991
  12  5.06555
  13  2.82371
  14  0.548528
  15  5.19471e-07
  16  8.39237
  17  0.239332
  18  0.0497248
Done.

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

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  7.852e+01  5.262e+01  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.130e+00  4.972e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  8.004e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 261.806 6.745
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 7.63e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.18e-05

TS (Fixed Index): 3.94
Ra Dec: 261.806 6.745
Photon Flux Upper Limit: 1.76296627915e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0139262399922 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352519/likelihoodResults_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25101.7727186
delta logL = 0.00275226627127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25101.7717221
delta logL = 0.00374872636166

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25101.77     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.305        848.76        .11449E-03    .46386E-02
   2  Index         2.8235        3.5094        .22543        .22941E-03
   3  Normalizat    .79575        .93105E-01    .15893        .13983E-03
   4  Prefactor     1.1301        .15863E-01    .36538E-01   -.44073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.3051
  Index      = 2.82345
  Normalizat = 0.795749
  Prefactor  = 1.13014
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.305        61.733        .45794E-05   -1.5533    
   2  Index         2.8235        .78806        .12994E-01   -.45038    
   3  Normalizat    .79575        .23222        .70615E-03   -1.0023    
   4  Prefactor     1.1301        .50783E-01    .13508E-03   -.88509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08646e-08
Minuit parameter uncertainties:
  1  61.7339
  2  0.792138
  3  0.232508
  4  0.0507848
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) = 25101.7717218
delta logL = 0.00374903870033

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  7.631e+01  6.173e+01  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.823e+00  7.921e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.130e+00  5.078e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  7.957e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 261.806 6.745
Photon Index (Free Index): 2.82 +/- 0.79
Photon Flux (Free Index): 8.05e-08 +/- 6.91e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.16e-05

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/60352519/cmap_HighResolution_755481601_756086401_4FGL_J1727.2+0644_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.63e-08', energy_flux2='1.77e-05', photon_flux_error='5.11e-08', dlogl='3.75e-03', energy_flux='1.75e-05', photon_flux2='8.05e-08', job_status='DONE', time_completed='2024-12-17 01:08:11.399311', photon_index_error2='0.79', photon_index2='2.82', ts='3.94', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.16e-05', EG='0.80', time_epoch_completed='1734426491.4', return_code='0', job_id='60352519', GAL2='1.13', EG2='0.80', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='6.91e-08', ts2='3.96', photon_index='2.76' WHERE bin_id='854' AND source_name='4FGL J1727.2+0644' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:08:11 PST 2024

