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


Performing analysis on: 4FGL_J1127.4+5648_weekly_bin771
RA = 171.865, Dec = 56.8032
tmin = 705283201, tmax = 705888001
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='17489677', job_status='RUN', time_executed='2023-05-16 02:16:15.636762', time_epoch_executed='1684228575.64' WHERE source_name='4FGL J1127.4+5648' and cadence='weekly' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17489677

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17489677/ft1_4FGL_J1127.4+5648_weekly_bin771.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17489677/ft1_4FGL_J1127.4+5648_weekly_bin771.fits outfile=/lscratch/kocevski/17489677/ft1_filteredMKT_4FGL_J1127.4+5648_weekly_bin771.fits ra=171.865 dec=56.8032 rad=12.0 tmin=705283201.0 tmax=705888001.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.55
user 3.15
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.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/17489677/ft1_filteredMKT_4FGL_J1127.4+5648_weekly_bin771.fits evtable="EVENTS" outfile="/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.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.83
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 2068

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17489677/ltcube_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.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/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits
.....................!
real 16.88
user 16.51
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17489677/ltcube_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.fits outfile=/lscratch/kocevski/17489677/expmap_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.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/17489677/ltcube_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.fits
.....................!
real 60.23
user 56.26
sys 3.54

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

Setting source of interest to:
4FGL J1127.4+5648 @ 171.865 56.8032

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits scfile=/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits outfile=/lscratch/kocevski/17489677/cmap_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.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=171.865 yref=56.8032 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.36
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits scfile=/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits outfile=/lscratch/kocevski/17489677/cmap_HighResolution_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.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=171.865 yref=56.8032 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.36
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17489677/Model_4FGL_J1127.4+5648_weekly_bin771.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/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits.....................!
real 61.74
user 60.63
sys 0.62

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits', '/lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits', expMap='/lscratch/kocevski/17489677/expmap_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.fits', expCube='/lscratch/kocevski/17489677/ltcube_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17489677/Model_4FGL_J1127.4+5648_weekly_bin771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.4+5648'

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.906e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17489677/ft1_filtered_4FGL_J1127.4+5648_weekly_bin771.fits
Spacecraft file(s): /lscratch/kocevski/17489677/ft2_4FGL_J1127.4+5648_weekly_bin771.fits
Exposure map: /lscratch/kocevski/17489677/expmap_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.fits
Exposure cube: /lscratch/kocevski/17489677/ltcube_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17489677/Model_4FGL_J1127.4+5648_weekly_bin771.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) = 22544.4054329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16409E-03   1.0000          .0000       .10000E+07
     2 'norm      '    11.806       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.7016       1.0000          .0000       .10000E+07
     4 'norm      '    10.640       1.0000          .0000       .10000E+07
     5 'norm      '    1.7659       1.0000          .0000       .10000E+07
     6 'Prefactor '    .58411E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    30.166       1.0000          .0000       .10000E+07
     8 'norm      '    1.3471       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29304E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3436       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22892E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .11943E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2940       1.0000          .0000       .10000E+07
    14 'Prefactor '    .61539       1.0000          .0000       .10000E+07
    15 'Prefactor '    .69730E-04   1.0000          .0000       .10000E+07
    16 'norm      '    9.6486       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.3498       1.0000          .0000       .10000E+07
    18 'norm      '    .20878       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.1193       1.0000          .0000       .10000E+07
    20 'Prefactor '    .83725       1.0000          .0000       .10000E+07
    21 'Prefactor '    6.5910       1.0000          .0000       .10000E+07
    22 'norm      '    .18702E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .13192E-03   1.0000          .0000       .10000E+07
    24 'norm      '    5.6874       1.0000          .0000       .10000E+07
    25 'Prefactor '    2.6401       1.0000          .0000       .10000E+07
    26 'norm      '    3.0057       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22544.35     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2002 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38691E-07    6.4950        .17800E-06** at limit **
   2  norm          11.799        8.6034        .42706E-07    .65368E-01
   3  Prefactor     8.7018        7.7504        .49155E-07    .56279E-01
   4  norm          10.641        1.8385       -.45367E-09   -.64978E-02
   5  norm          1.7656        .71942       -.15440E-07   -.23360E-02
   6  Prefactor     .12546E-06    36.202        .66442E-06** at limit **
   7  Prefactor     31.424        7.3621       -.82241E-07    .31610E-01
   8  norm          1.3458        .82033        .19936E-07    .19093E-02
   9  Prefactor     .12212E-08    2.5830       -.35349E-07** at limit **
  10  Prefactor     2.3479        8.7524       -.60345E-07   -.72484E-02
  11  Prefactor     .36893E-06    11.180        .11262E-06** at limit **
  12  norm          .26712E-06    10.702        .45520E-06** at limit **
  13  Prefactor     4.2873        3.1658       -.58008E-07   -.99638E-03
  14  Prefactor     .62815        .64365       -.86084E-08   -.10650E-04
  15  Prefactor     .68057E-07    22.709        .17703E-06** at limit **
  16  norm          9.7058        5.4518       -.83059E-07   -.19282E-02
  17  Prefactor     1.3472        1.3830        .41739E-07    .36007E-02
  18  norm          .20732        5.5132       -.16057E-06** at limit **
  19  Prefactor     7.1763        7.6418        .47307E-07   -.58035E-01
  20  Prefactor     .81709        2.7844       -.16373E-06   -.71574E-02
  21  Prefactor     6.6265        4.6031       -.62701E-07    .26842E-01
  22  norm           .0000        .71815        .97584E-07** at limit **
  23  Prefactor     .32807E-07    3.8601       -.96444E-07** at limit **
  24  norm          5.6895        3.4395        .58322E-07    .29629E-02
  25  Prefactor     2.6421        2.4720       -.36769E-07   -.80961E-03
  26  norm          3.0041        1.1006       -.86921E-08   -.16382E-02
  27  Normalizat    1.0827        .10305       -.95596E-06    .36399E-04
  28  Prefactor     1.0052        .12903        .18962E-05    .69545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86913e-08
  norm       = 11.799
  Prefactor  = 8.70181
  norm       = 10.6412
  norm       = 1.76565
  Prefactor  = 1.25455e-07
  Prefactor  = 31.4242
  norm       = 1.34582
  Prefactor  = 1.22125e-09
  Prefactor  = 2.34785
  Prefactor  = 3.68927e-07
  norm       = 2.6712e-07
  Prefactor  = 4.28731
  Prefactor  = 0.628148
  Prefactor  = 6.80567e-08
  norm       = 9.70575
  Prefactor  = 1.34718
  norm       = 0.207325
  Prefactor  = 7.17628
  Prefactor  = 0.817092
  Prefactor  = 6.62646
  norm       = 0
  Prefactor  = 3.28071e-08
  norm       = 5.68953
  Prefactor  = 2.64209
  norm       = 3.00407
  Normalizat = 1.08269
  Prefactor  = 1.0052
 **********
 **   18 **HESSE 
 **********

 FCN=   22544.35     FROM HESSE     STATUS=OK           591 CALLS     2593 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38691E-07    6.8269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.799        9.3557        .29129E-03   -1.5639    
   3  Prefactor     8.7018        8.2535        .33956E-03   -1.5649    
   4  norm          10.641        1.8708        .30691E-03   -1.5643    
   5  norm          1.7656        .72120        .78794E-03   -1.5681    
   6  Prefactor     .12546E-06    38.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.424        29.297        .18210E-03   -1.5596    
   8  norm          1.3458        .83563        .94286E-03   -1.5685    
   9  Prefactor     .12212E-08    6.0609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3479        8.9074        .66941E-03   -1.5677    
  11  Prefactor     .36893E-06    13.208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .26712E-06    12.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2873        3.2541        .48593E-03   -1.5667    
  14  Prefactor     .62815        53.945        .67860E-03   -1.5692    
  15  Prefactor     .68057E-07    22.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7058        5.4500        .32237E-03   -1.5646    
  17  Prefactor     1.3472        1.5045        .94147E-03   -1.5685    
  18  norm          .20732        .77446        .72911E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1763        11.595        .37572E-03   -1.5654    
  20  Prefactor     .81709        3.0926        .50199E-03   -1.5690    
  21  Prefactor     6.6265        11.193        .39065E-03   -1.5656    
  22  norm           .0000        .70642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32807E-07    6.4525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.6895        3.4405        .42096E-03   -1.5660    
  25  Prefactor     2.6421        2.4878        .62725E-03   -1.5675    
  26  norm          3.0041        1.1049        .58520E-03   -1.5673    
  27  Normalizat    1.0827        .88397E-01    .38748E-01   -.90310    
  28  Prefactor     1.0052        .10962        .66870E-01   -.92556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02349e-06
Minuit parameter uncertainties:
  1  0.00102792
  2  9.3557
  3  8.25347
  4  1.87079
  5  0.721198
  6  0.0043912
  7  29.2968
  8  0.835632
  9  0.000172133
  10  8.90744
  11  0.004415
  12  0.00359601
  13  3.25407
  14  11.6423
  15  0.00249687
  16  5.44999
  17  1.50445
  18  0.77446
  19  11.5952
  20  3.09262
  21  11.1935
  22  4.82227e-06
  23  0.000919842
  24  3.44051
  25  2.48782
  26  1.10486
  27  0.088409
  28  0.109648
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  4.287e+00  3.254e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.005e+00  1.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.083e+00  8.841e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 171.865 56.803
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.25e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 5.33e-06 +/- 4.05e-06

TS (Fixed Index): 2.65
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 5.53886079725e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00436481118937 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17489677/likelihoodResults_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.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) = 22544.2121298
delta logL = 0.133865279127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22544.2106378
delta logL = 0.135357181261

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22544.21     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3648        36.750        .55083E-03    .17734E-01
   2  Index         3.1615        3.6638        .21763        .27257E-03
   3  Normalizat    1.0716        .26463E-01    .39296E-01    .14364E-04
   4  Prefactor     1.0155        .31951E-01    .66575E-01    .45109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36484
  Index      = 3.16153
  Normalizat = 1.07156
  Prefactor  = 1.01554
 **********
 **   18 **HESSE 
 **********

 FCN=   22544.21     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3648        4.2680        .17535E-04   -1.5671    
   2  Index         3.1615        1.1442        .13106E-01   -.37653    
   3  Normalizat    1.0716        .10395        .22452E-03   -.90670    
   4  Prefactor     1.0155        .13061        .29449E-03   -.92213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43123e-10
Minuit parameter uncertainties:
  1  4.26804
  2  1.15612
  3  0.103969
  4  0.130653
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) = 22544.2106358
delta logL = 0.135359234799

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  3.365e+00  4.268e+00  0.000e+00  1.000e+06 ( 1.000e-12)
387        Index:  3.162e+00  1.156e+00  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.016e+00  1.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.072e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 171.865 56.803
Photon Index (Free Index): 3.16 +/- 1.16
Photon Flux (Free Index): 2.92e-08 +/- 2.17e-08
Energy Flux (Free Index): 5.43e-06 +/- 3.76e-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/17489677/cmap_HighResolution_705283201_705888001_4FGL_J1127.4+5648_weekly_bin771.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', comment='SUCCESS', photon_flux='2.25e-08', energy_flux2='5.43e-06', photon_flux_error='1.70e-08', dlogl='1.35e-01', energy_flux='5.33e-06', photon_flux2='2.92e-08', job_status='DONE', time_completed='2023-05-16 02:28:42.687272', photon_index_error2='1.16', photon_index2='3.16', ts='2.65', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='5.54e-08', energy_flux_error2='3.76e-06', EG='1.08', time_epoch_completed='1684229322.69', return_code='0', job_id='17489677', GAL2='1.02', EG2='1.07', return_code2='0', energy_flux_error='4.05e-06', photon_flux_error2='2.17e-08', ts2='2.95', photon_index='2.72' WHERE bin_id='771' AND source_name='4FGL J1127.4+5648' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 16 02:28:42 PDT 2023

