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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin853
RA = 36.9544, Dec = 22.7775
tmin = 754876801, tmax = 755481601
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='59976428', job_status='RUN', time_executed='2024-12-10 00:02:17.770006', time_epoch_executed='1733817737.77' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976428

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59976428/ft1_4FGL_J0227.8+2246_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976428/ft1_4FGL_J0227.8+2246_weekly_bin853.fits outfile=/lscratch/kocevski/59976428/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin853.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=754876801.0 tmax=755481601.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.01
user 3.24
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.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/59976428/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.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.85
user 0.25
sys 0.19

Number of photons that the gtmktime cut: 503

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976428/ltcube_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.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/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits
.....................!
real 42.05
user 40.93
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976428/ltcube_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.fits outfile=/lscratch/kocevski/59976428/expmap_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.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/59976428/ltcube_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.fits
.....................!
real 73.37
user 67.90
sys 4.26

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits scfile=/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits outfile=/lscratch/kocevski/59976428/cmap_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.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=36.9544 yref=22.7775 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.78
user 0.27
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits scfile=/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits outfile=/lscratch/kocevski/59976428/cmap_HighResolution_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.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=36.9544 yref=22.7775 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.74
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976428/Model_4FGL_J0227.8+2246_weekly_bin853.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/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits.....................!
real 34.35
user 32.12
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits', '/lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits', expMap='/lscratch/kocevski/59976428/expmap_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.fits', expCube='/lscratch/kocevski/59976428/ltcube_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976428/Model_4FGL_J0227.8+2246_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976428/ft1_filtered_4FGL_J0227.8+2246_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976428/ft2_4FGL_J0227.8+2246_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976428/expmap_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976428/ltcube_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976428/Model_4FGL_J0227.8+2246_weekly_bin853.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) = 5610.44985402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.282       1.0000          .0000       .10000E+07
     2 'norm      '    1.0770       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.001       1.0000          .0000       .10000E+07
     4 'norm      '    9.0435       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.560       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8448       1.0000          .0000       .10000E+07
     7 'Prefactor '    .70835E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .52450E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    41.892       1.0000          .0000       .10000E+07
    10 'Prefactor '    101.25       1.0000          .0000       .10000E+07
    11 'Prefactor '    .80605E-03   1.0000          .0000       .10000E+07
    12 'norm      '    11.559       1.0000          .0000       .10000E+07
    13 'Prefactor '    .32296E-06   1.0000          .0000       .10000E+07
    14 'norm      '    1.1702       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17734E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .24992E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12495E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .64240E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    13.866       1.0000          .0000       .10000E+07
    20 'Prefactor '    .16613       1.0000          .0000       .10000E+07
    21 'norm      '    .64730E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    16.768       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0833       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5610.374     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2012 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.408        11.175       -.28246E-06    .34658E-01
   2  norm          1.0815        .76044        .27890E-07    .81325E-03
   3  Prefactor     10.331        14.836        .24437E-05    .17854E-01
   4  norm          9.1633        6.7468        .38465E-06   -.20052E-02
   5  Prefactor     10.593        4.1029        .12697E-06    .16596E-02
   6  Prefactor     1.6864        14.659       -.15162E-05   -.19046E-03
   7  Prefactor      .0000        3.1223       -.21455E-06** at limit **
   8  norm          .21028E-06    120.33        .48708E-05** at limit **
   9  Prefactor     46.968        57.882       -.11813E-05    .41824E-02
  10  Prefactor     102.56        15.697        .22636E-07   -.58960E-01
  11  Prefactor     .49960E-09    13.066       -.10438E-05** at limit **
  12  norm          11.562        3.8837       -.48905E-07   -.36031E-02
  13  Prefactor     .55511E-10    7.5328       -.10693E-06** at limit **
  14  norm          1.1633        .82071        .11231E-06   -.19830E-02
  15  Prefactor     .15604E-06    40.601       -.59215E-05** at limit **
  16  Prefactor     .79714E-07    127.04       -.51753E-05** at limit **
  17  Prefactor     .63227E-07    32.277       -.63645E-06** at limit **
  18  Prefactor     .26534E-07    17.890       -.12693E-05** at limit **
  19  Prefactor     14.151        5.7907       -.28772E-06   -.29223E-01
  20  Prefactor     .99060E-05    18.997        .85497E-06** at limit **
  21  norm          .46962E-07    55.927        .29535E-05** at limit **
  22  Prefactor     16.946        3.5798       -.37323E-06    .13135E-01
  23  Normalizat    1.0738        .32290       -.37532E-04   -.73454E-04
  24  Prefactor     .83534        .13186        .21179E-04   -.10208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.4077
  norm       = 1.08151
  Prefactor  = 10.3313
  norm       = 9.16327
  Prefactor  = 10.5928
  Prefactor  = 1.68641
  Prefactor  = 0
  norm       = 2.10276e-07
  Prefactor  = 46.9677
  Prefactor  = 102.556
  Prefactor  = 4.996e-10
  norm       = 11.5617
  Prefactor  = 5.55112e-11
  norm       = 1.1633
  Prefactor  = 1.56042e-07
  Prefactor  = 7.9714e-08
  Prefactor  = 6.32272e-08
  Prefactor  = 2.65343e-08
  Prefactor  = 14.1512
  Prefactor  = 9.90596e-06
  norm       = 4.69624e-08
  Prefactor  = 16.9456
  Normalizat = 1.07378
  Prefactor  = 0.835339
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.374     FROM HESSE     STATUS=OK           447 CALLS     2459 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.408        51.691        .10584E-03   -1.5518    
   2  norm          1.0815        .78600        .11636E-02   -1.5687    
   3  Prefactor     10.331        15.499        .31661E-03   -1.5644    
   4  norm          9.1633        6.9285        .33304E-03   -1.5647    
   5  Prefactor     10.593        4.0947        .30807E-03   -1.5643    
   6  Prefactor     1.6864        15.372        .76753E-03   -1.5682    
   7  Prefactor      .0000        3.1098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .21028E-06    121.39        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.968        61.317        .15452E-03   -1.5571    
  10  Prefactor     102.56        68.494        .99387E-04   -1.5505    
  11  Prefactor     .49960E-09    13.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.562        3.8753        .29440E-03   -1.5640    
  13  Prefactor     .55511E-10    7.5185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1633        .92188        .10606E-02   -1.5686    
  15  Prefactor     .15604E-06    42.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .79714E-07    23.616        .16728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .63227E-07    32.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .26534E-07    18.186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.151        24.228        .26872E-03   -1.5633    
  20  Prefactor     .99060E-05    148.62        .12413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .46962E-07    57.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.946        18.318        .24432E-03   -1.5626    
  23  Normalizat    1.0738        .28648        .83348E-01   -.90598    
  24  Prefactor     .83534        .11640        .44165E-01   -.98439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52941e-07
Minuit parameter uncertainties:
  1  51.6909
  2  0.786005
  3  15.4992
  4  6.92853
  5  4.09475
  6  10.1832
  7  1.27016e-05
  8  0.0101049
  9  61.3179
  10  68.4942
  11  0.000161487
  12  3.8753
  13  4.13309e-05
  14  0.921876
  15  0.00517357
  16  0.00274373
  17  0.00288596
  18  0.00138883
  19  24.2282
  20  0.0767397
  21  0.00327816
  22  18.318
  23  0.286892
  24  0.116439
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.026e+02  6.849e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  8.353e-01  1.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.074e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 36.954 22.777
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.33e-08 +/- 4.89e-08
Energy Flux (Fixed Index): 3.67e-05 +/- 2.45e-05

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) = 5610.30019114
delta logL = 0.0737278004262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5610.29198581
delta logL = 0.0819331301309

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5610.292     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      306 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     124.65        98.628        .35830E-05   -.54892E-03
   2  Index         1.9293        .54481        .71375E-02    .34541E-03
   3  Normalizat    1.0854        .28261        .36733E-03   -.36922E-04
   4  Prefactor     .83433        .12922        .18850E-03   -.91446E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 124.65
  Index      = 1.92928
  Normalizat = 1.08541
  Prefactor  = 0.834335
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.292     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     124.65        96.643        .71660E-06   -1.5485    
   2  Index         1.9293        .53370        .14275E-02   -.66130    
   3  Normalizat    1.0854        .28264        .14693E-04   -.90222    
   4  Prefactor     .83433        .12929        .37699E-04   -.98475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16636e-11
Minuit parameter uncertainties:
  1  96.6444
  2  0.535337
  3  0.28303
  4  0.129335
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) = 5610.29198581
delta logL = 0.0819331304328

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.246e+02  9.664e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  1.929e+00  5.353e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  8.343e-01  1.293e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.085e+00  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.46
Ra Dec: 36.954 22.777
Photon Index (Free Index): 1.93 +/- 0.54
Photon Flux (Free Index): 5.60e-08 +/- 5.76e-08
Energy Flux (Free Index): 4.64e-05 +/- 4.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/59976428/cmap_HighResolution_754876801_755481601_4FGL_J0227.8+2246_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.33e-08', energy_flux2='4.64e-05', photon_flux_error='4.89e-08', dlogl='8.19e-02', energy_flux='3.67e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2024-12-10 00:09:07.629221', photon_index_error2='0.54', photon_index2='1.93', ts='5.32', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.47e-05', EG='1.07', time_epoch_completed='1733818147.63', return_code='0', job_id='59976428', GAL2='0.83', EG2='1.09', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='5.76e-08', ts2='5.46', photon_index='2.14' WHERE bin_id='853' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:09:07 PST 2024

