 **********
 **   18 **HESSE 
 **********

 FCN=   7668.534     FROM HESSE     STATUS=OK           447 CALLS     2487 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34123E-06    12.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .34757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        11.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.375        4.3629        .20685E-03   -1.5611    
   6  Prefactor      .0000        4.0334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.3126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16653E-09    25.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.596        38.560        .14287E-03   -1.5566    
  10  Prefactor     .15282E-06    164.50        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40767E-06    12.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .65863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3263        12.072        .47542E-03   -1.5666    
  14  norm           .0000        .29318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36249E-07    38.956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.743        24.243        .15996E-03   -1.5583    
  17  Prefactor     19.347        45.776        .25117E-03   -1.5620    
  18  Prefactor     11.557        10.565        .29395E-03   -1.5640    
  19  Prefactor     .55511E-10    15.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        22.433        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        8.2014        .85416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4358        13.651        .40920E-03   -1.5657    
  23  Normalizat    .57720        .22885        .10349       -1.0896    
  24  Prefactor     1.1258        .10448        .36670E-01   -.88646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90132e-07
Minuit parameter uncertainties:
  1  0.00413016
  2  1.82173e-06
  3  3.2745e-05
  4  2.90885e-06
  5  4.36286
  6  6.40708e-06
  7  1.40141e-05
  8  0.000127318
  9  38.5599
  10  0.0100285
  11  0.00453107
  12  1.46876e-06
  13  12.0716
  14  1.25494e-07
  15  0.00237659
  16  24.2434
  17  45.7765
  18  10.5655
  19  6.75077e-05
  20  4.65075e-05
  21  4.89237e-06
  22  13.6515
  23  0.229229
  24  0.104503
/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).

Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.528e-07  1.003e-02  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:  1.126e+00  1.045e-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:  5.772e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 9.10875053767e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00691050731562 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18855806/likelihoodResults_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.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): 102
logL (Free Index) = 7668.53703204
delta logL = -0.00302634175296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7668.32808404
delta logL = 0.20592165875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5670       1.0000          .0000       .10000E+07
     2 'Index     '    3.3103       1.0000          .0000       10.000    
     3 'Normalizat'    .54481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1307       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.

 FCN=   7668.328     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      256 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5736        130.17        .63686E-03    .84563E-02
   2  Index         3.3095        3.2633        .10890        .20143E-03
   3  Normalizat    .54483        .56035E-01    .10632        .47511E-04
   4  Prefactor     1.1306        .26371E-01    .36523E-01   -.16356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57358
  Index      = 3.30952
  Normalizat = 0.544835
  Prefactor  = 1.13062
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.328     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5736        331.78        .21820E-04   -1.5676    
   2  Index         3.3095        6.3465        .73237E-02   -.34489    
   3  Normalizat    .54483        .19565        .47136E-03   -1.1038    
   4  Prefactor     1.1306        .94519E-01    .16012E-03   -.88494    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05406e-06
Minuit parameter uncertainties:
  1  58.445
  2  8.13012
  3  0.195903
  4  0.0945332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7668.32808377
delta logL = 0.205921928859

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  2.574e+00  5.845e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  3.310e+00  8.130e+00  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:  1.131e+00  9.453e-02  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:  5.448e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.954 22.777

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/18855806/cmap_HighResolution_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2023-07-10 08:18:35.526854', job_id='18855806', GAL2='1.13', fit_tolerance='1e-08', EG2='0.54', EG='0.58', time_epoch_completed='1689002315.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.06e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1814' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:18:35 PDT 2023

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


Performing analysis on: 4FGL_J0227.8+2246_daily_bin1814
RA = 36.9544, Dec = 22.7775
tmin = 709516801, tmax = 709776001
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='18856942', job_status='RUN', time_executed='2023-07-10 08:18:14.418846', time_epoch_executed='1689002294.42' WHERE source_name='4FGL J0227.8+2246' and cadence='daily' and bin_id='1814'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18856942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18856942/ft1_4FGL_J0227.8+2246_daily_bin1814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18856942/ft1_4FGL_J0227.8+2246_daily_bin1814.fits outfile=/lscratch/kocevski/18856942/ft1_filteredMKT_4FGL_J0227.8+2246_daily_bin1814.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=709516801.0 tmax=709776001.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 1.47
user 1.18
sys 0.15

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

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

Number of photons that the gtmktime cut: 717

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18856942/ft1_filtered_4FGL_J0227.8+2246_daily_bin1814.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18856942/ltcube_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.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/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits
.....................!
real 8.28
user 7.92
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18856942/ft1_filtered_4FGL_J0227.8+2246_daily_bin1814.fits evtable="EVENTS" scfile=/lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18856942/ltcube_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.fits outfile=/lscratch/kocevski/18856942/expmap_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.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/18856942/ltcube_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.fits
.....................!
real 67.12
user 63.03
sys 3.56

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/18856942/ft1_filtered_4FGL_J0227.8+2246_daily_bin1814.fits scfile=/lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits outfile=/lscratch/kocevski/18856942/cmap_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.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.48
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18856942/ft1_filtered_4FGL_J0227.8+2246_daily_bin1814.fits scfile=/lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits outfile=/lscratch/kocevski/18856942/cmap_HighResolution_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.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.50
user 0.21
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18856942/ft1_filtered_4FGL_J0227.8+2246_daily_bin1814.fits', '/lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits', expMap='/lscratch/kocevski/18856942/expmap_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.fits', expCube='/lscratch/kocevski/18856942/ltcube_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18856942/Model_4FGL_J0227.8+2246_daily_bin1814.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/18856942/ft1_filtered_4FGL_J0227.8+2246_daily_bin1814.fits
Spacecraft file(s): /lscratch/kocevski/18856942/ft2_4FGL_J0227.8+2246_daily_bin1814.fits
Exposure map: /lscratch/kocevski/18856942/expmap_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.fits
Exposure cube: /lscratch/kocevski/18856942/ltcube_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18856942/Model_4FGL_J0227.8+2246_daily_bin1814.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) = 7668.72109108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87238E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .99698E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .21531E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .38985E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.384       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15543E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .59314E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .20098E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    48.998       1.0000          .0000       .10000E+07
    10 'Prefactor '    .67507E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .31951E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .89651E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.4809       1.0000          .0000       .10000E+07
    14 'norm      '    .80491E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .71976E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    39.090       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.867       1.0000          .0000       .10000E+07
    18 'Prefactor '    11.595       1.0000          .0000       .10000E+07
    19 'Prefactor '    .17848E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .18641E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .23453E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.0139       1.0000          .0000       .10000E+07
    23 'Normalizat'    .57995       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1261       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=   7668.534     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2040 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34123E-06    6.7323        .90183E-06** at limit **
   2  norm           .0000        .36390       -.11791E-06** at limit **
   3  Prefactor      .0000        11.261        .18020E-05** at limit **
   4  norm           .0000        1.4712        .11633E-06** at limit **
   5  Prefactor     23.375        4.3499        .10968E-06   -.33331E-02
   6  Prefactor      .0000        4.0397        .11489E-05** at limit **
   7  Prefactor      .0000        2.3087       -.15690E-06** at limit **
   8  norm          .16653E-09    25.638       -.70700E-06** at limit **
   9  Prefactor     50.596        15.879       -.32556E-06   -.91873E-01
  10  Prefactor     .15282E-06    163.59        .97964E-06** at limit **
  11  Prefactor     .40767E-06    5.9296        .87340E-06** at limit **
  12  norm           .0000        .66090        .35051E-08** at limit **
  13  Prefactor     4.3263        11.055        .98569E-06   -.57625E-03
  14  norm           .0000        .29822       -.15502E-06** at limit **
  15  Prefactor     .36249E-07    38.651        .42935E-06** at limit **
  16  Prefactor     38.743        2.9403        .86986E-07   -.59243E-03
  17  Prefactor     19.347        41.826       -.14076E-05    .22178E-01
  18  Prefactor     11.557        10.522        .20188E-06   -.63625E-03
  19  Prefactor     .55511E-10    15.945       -.91518E-06** at limit **
  20  Prefactor      .0000        22.454        .62193E-06** at limit **
  21  norm           .0000        18.521        .38241E-06** at limit **
  22  Prefactor     6.4358        13.639        .58685E-06   -.69320E-03
  23  Normalizat    .57720        .23832        .20126E-04   -.13948E-03
  24  Prefactor     1.1258        .11131        .85517E-06   -.37144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41227e-07
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 23.3752
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 50.5961
  Prefactor  = 1.52822e-07
  Prefactor  = 4.07674e-07
  norm       = 0
  Prefactor  = 4.32626
  norm       = 0
  Prefactor  = 3.62488e-08
  Prefactor  = 38.7431
  Prefactor  = 19.3474
  Prefactor  = 11.5567
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.43575
  Normalizat = 0.577197
  Prefactor  = 1.1258
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.534     FROM HESSE     STATUS=OK           447 CALLS     2487 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34123E-06    12.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .34757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        11.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.4743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.375        4.3629        .20685E-03   -1.5611    
   6  Prefactor      .0000        4.0334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.3126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16653E-09    25.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.596        38.560        .14287E-03   -1.5566    
  10  Prefactor     .15282E-06    164.50        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40767E-06    12.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .65863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3263        12.072        .47542E-03   -1.5666    
  14  norm           .0000        .29318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36249E-07    38.956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.743        24.243        .15996E-03   -1.5583    
  17  Prefactor     19.347        45.776        .25117E-03   -1.5620    
  18  Prefactor     11.557        10.565        .29395E-03   -1.5640    
  19  Prefactor     .55511E-10    15.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        22.433        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        8.2014        .85416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4358        13.651        .40920E-03   -1.5657    
  23  Normalizat    .57720        .22885        .10349       -1.0896    
  24  Prefactor     1.1258        .10448        .36670E-01   -.88646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90132e-07
Minuit parameter uncertainties:
  1  0.00413016
  2  1.82173e-06
  3  3.2745e-05
  4  2.90885e-06
  5  4.36286
  6  6.40708e-06
  7  1.40141e-05
  8  0.000127318
  9  38.5599
  10  0.0100285
  11  0.00453107
  12  1.46876e-06
  13  12.0716
  14  1.25494e-07
  15  0.00237659
  16  24.2434
  17  45.7765
  18  10.5655
  19  6.75077e-05
  20  4.65075e-05
  21  4.89237e-06
  22  13.6515
  23  0.229229
  24  0.104503
Done.

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

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.528e-07  1.003e-02  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:  1.126e+00  1.045e-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:  5.772e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 9.10875053767e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00691050731562 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18856942/likelihoodResults_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.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): 102
logL (Free Index) = 7668.53703204
delta logL = -0.00302634175296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7668.32808404
delta logL = 0.20592165875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5670       1.0000          .0000       .10000E+07
     2 'Index     '    3.3103       1.0000          .0000       10.000    
     3 'Normalizat'    .54481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1307       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.

 FCN=   7668.328     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      256 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5736        130.17        .63686E-03    .84563E-02
   2  Index         3.3095        3.2633        .10890        .20143E-03
   3  Normalizat    .54483        .56035E-01    .10632        .47511E-04
   4  Prefactor     1.1306        .26371E-01    .36523E-01   -.16356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57358
  Index      = 3.30952
  Normalizat = 0.544835
  Prefactor  = 1.13062
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.328     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5736        331.78        .21820E-04   -1.5676    
   2  Index         3.3095        6.3465        .73237E-02   -.34489    
   3  Normalizat    .54483        .19565        .47136E-03   -1.1038    
   4  Prefactor     1.1306        .94519E-01    .16012E-03   -.88494    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05406e-06
Minuit parameter uncertainties:
  1  58.445
  2  8.13012
  3  0.195903
  4  0.0945332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7668.32808377
delta logL = 0.205921928859

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  2.574e+00  5.845e+01  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  3.310e+00  8.130e+00  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:  1.131e+00  9.453e-02  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:  5.448e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.954 22.777

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/18856942/cmap_HighResolution_709516801_709776001_4FGL_J0227.8+2246_daily_bin1814.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2023-07-10 08:23:42.135717', job_id='18856942', GAL2='1.13', fit_tolerance='1e-08', EG2='0.54', EG='0.58', time_epoch_completed='1689002622.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.06e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1814' AND source_name='4FGL J0227.8+2246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:23:42 PDT 2023

