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

 FCN=   6803.829     FROM HESSE     STATUS=OK           371 CALLS     2052 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.995        23.076        .24531E-03   -1.5626    
   2  Prefactor     .56621E-08    9.7994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .51736E-07    .96949        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.214        2.1510        .28612E-03   -1.5638    
   5  Prefactor     .62561E-07    4.1182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    1.5958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3103        3.5129        .48510E-03   -1.5666    
   8  norm          4.1133        2.5774        .49614E-03   -1.5667    
   9  Prefactor     2.1129        7.1382        .70361E-03   -1.5679    
  10  Prefactor     3.2380        2.2457        .56353E-03   -1.5672    
  11  Prefactor     2.7249        2.5498        .61709E-03   -1.5675    
  12  Prefactor     .29976E-08    3.9632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .70977E-01    .11340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.091        5.6011        .28872E-03   -1.5638    
  15  Prefactor     .11077E-05    6.3247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .91316E-07    36.263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          41.019        8.7274        .15621E-03   -1.5580    
  18  norm          2.9567        2.4860        .59119E-03   -1.5674    
  19  norm          .66308E-06    6.1015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1442        .18716        .59033E-01   -.88346    
  21  Prefactor     .97392        .19231        .68561E-01   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0426e-07
Minuit parameter uncertainties:
  1  23.0762
  2  0.000471946
  3  0.000448018
  4  2.151
  5  0.00101511
  6  4.11653e-05
  7  3.51291
  8  2.5774
  9  7.13823
  10  2.24569
  11  2.54981
  12  0.000218973
  13  5.4056e-07
  14  5.60111
  15  0.00529372
  16  0.00363995
  17  8.72736
  18  2.48603
  19  0.00402278
  20  0.187273
  21  0.192445
/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) = 6803.8291807

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.998e-09  2.190e-04  0.000e+00  1.000e+06 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.739e-01  1.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.144e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 5.5491926069e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0041354324054 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19657095/likelihoodResults_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.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) = 6803.8296045
delta logL = -0.000423793893788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6802.34904375
delta logL = 1.48013695313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
     2 'Index     '    9.9733       1.0000          .0000       10.000    
     3 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6803.829     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      829 TOTAL
                     EDM=   .58E-15  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9499        .42118E-03** at limit **
   2  Index         1.5935        1.1694       -.24410E-06     .0000    
   3  Normalizat    1.1442        1.2815        .16569E-05    .68449E-06
   4  Prefactor     .97392        1.1453        .17535E-05   -.25381E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.59347
  Normalizat = 1.14416
  Prefactor  = 0.973921
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6803.829     FROM HESSE     STATUS=FAILED         9 CALLS      838 TOTAL
                     EDM=   .58E-15  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9499        .42118E-03   -.40633E+06
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .24024        1.5318       -.24410E-06   -.36362E+09
   3  Normalizat    1.1442        1.2815        .16569E-05    438.94    
   4  Prefactor     .97392        1.1453        .17535E-05    280.54    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.75082e-16
Minuit parameter uncertainties:
  1  4.03588e-08
  2  1.19022
  3  1.31929
  4  1.17586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6803.8291807
delta logL = 3.82897269446e-10

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  0.000e+00  4.036e-08  0.000e+00  1.000e+06 ( 1.000e-13)
329        Index:  1.593e+00  1.190e+00  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.739e-01  1.176e+00  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.144e+00  1.319e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

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/19657095/cmap_HighResolution_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2023-07-18 01:15:59.237727', job_id='19657095', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689668159.24', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.83e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1820' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:15:59 PDT 2023

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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1820
RA = 186.116, Dec = 24.6142
tmin = 711072001, tmax = 711331201
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='19658185', job_status='RUN', time_executed='2023-07-18 01:15:32.254648', time_epoch_executed='1689668132.25' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19658185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19658185/ft1_4FGL_J1224.4+2436_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19658185/ft1_4FGL_J1224.4+2436_daily_bin1820.fits outfile=/lscratch/kocevski/19658185/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1820.fits ra=186.116 dec=24.6142 rad=12.0 tmin=711072001.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.31
user 1.70
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.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/19658185/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.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.88
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 635

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19658185/ltcube_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.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/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits
.....................!
real 7.74
user 6.96
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19658185/ltcube_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.fits outfile=/lscratch/kocevski/19658185/expmap_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.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/19658185/ltcube_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.fits
.....................!
real 63.50
user 58.82
sys 3.75

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

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits scfile=/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits outfile=/lscratch/kocevski/19658185/cmap_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.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=186.116 yref=24.6142 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.76
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits scfile=/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits outfile=/lscratch/kocevski/19658185/cmap_HighResolution_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.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=186.116 yref=24.6142 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.92
user 0.20
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19658185/Model_4FGL_J1224.4+2436_daily_bin1820.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/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits.....................!
real 22.50
user 21.19
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits', '/lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits', expMap='/lscratch/kocevski/19658185/expmap_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.fits', expCube='/lscratch/kocevski/19658185/ltcube_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19658185/Model_4FGL_J1224.4+2436_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19658185/ft1_filtered_4FGL_J1224.4+2436_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19658185/ft2_4FGL_J1224.4+2436_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19658185/expmap_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19658185/ltcube_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19658185/Model_4FGL_J1224.4+2436_daily_bin1820.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) = 6803.83589449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.633       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10131E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36420E-03   1.0000          .0000       .10000E+07
     4 'norm      '    12.236       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42693E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .55694E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3084       1.0000          .0000       .10000E+07
     8 'norm      '    4.1240       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.1437       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.2284       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7212       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13504E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .95479E-08   1.0000          .0000       .10000E+07
    14 'norm      '    12.017       1.0000          .0000       .10000E+07
    15 'Prefactor '    .60908E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22609E-03   1.0000          .0000       .10000E+07
    17 'norm      '    40.990       1.0000          .0000       .10000E+07
    18 'norm      '    2.9486       1.0000          .0000       .10000E+07
    19 'norm      '    .86475E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6803.829     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1681 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.995        20.059       -.19272E-06    .52432E-01
   2  Prefactor     .56621E-08    9.7928       -.12882E-07** at limit **
   3  Prefactor     .51736E-07    3.0706        .12812E-06** at limit **
   4  norm          12.214        2.1457        .11447E-06    .68532E-02
   5  Prefactor     .62561E-07    3.1220        .30336E-08** at limit **
   6  Prefactor     .27756E-09    1.5647        .21999E-06** at limit **
   7  Prefactor     4.3103        3.5025        .11463E-06    .14589E-02
   8  norm          4.1133        2.5817       -.49880E-07   -.58445E-03
   9  Prefactor     2.1129        7.1299       -.36558E-06    .39125E-03
  10  Prefactor     3.2380        2.2468        .52155E-07    .44191E-03
  11  Prefactor     2.7249        2.5262       -.81625E-07   -.88557E-03
  12  Prefactor     .29976E-08    3.6339       -.20265E-06** at limit **
  13  norm           .0000        .10657       -.87699E-07** at limit **
  14  norm          12.091        5.5831        .76118E-07    .88471E-03
  15  Prefactor     .11077E-05    3.5544       -.23788E-06** at limit **
  16  Prefactor     .91316E-07    37.168       -.27465E-06** at limit **
  17  norm          41.019        8.6445        .58104E-07    .58826E-01
  18  norm          2.9567        2.4871       -.83037E-07   -.14210E-02
  19  norm          .66308E-06    3.4358       -.21347E-06** at limit **
  20  Normalizat    1.1442        .22343        .80361E-06   -.89197E-04
  21  Prefactor     .97392        .23000       -.53428E-05   -.89925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9954
  Prefactor  = 5.66214e-09
  Prefactor  = 5.17364e-08
  norm       = 12.2143
  Prefactor  = 6.25611e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 4.31026
  norm       = 4.11326
  Prefactor  = 2.11286
  Prefactor  = 3.23801
  Prefactor  = 2.72488
  Prefactor  = 2.9976e-09
  norm       = 0
  norm       = 12.0913
  Prefactor  = 1.10767e-06
  Prefactor  = 9.13158e-08
  norm       = 41.0192
  norm       = 2.95673
  norm       = 6.63081e-07
  Normalizat = 1.14416
  Prefactor  = 0.973921
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.829     FROM HESSE     STATUS=OK           371 CALLS     2052 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.995        23.076        .24531E-03   -1.5626    
   2  Prefactor     .56621E-08    9.7994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .51736E-07    .96949        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.214        2.1510        .28612E-03   -1.5638    
   5  Prefactor     .62561E-07    4.1182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    1.5958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3103        3.5129        .48510E-03   -1.5666    
   8  norm          4.1133        2.5774        .49614E-03   -1.5667    
   9  Prefactor     2.1129        7.1382        .70361E-03   -1.5679    
  10  Prefactor     3.2380        2.2457        .56353E-03   -1.5672    
  11  Prefactor     2.7249        2.5498        .61709E-03   -1.5675    
  12  Prefactor     .29976E-08    3.9632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .70977E-01    .11340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.091        5.6011        .28872E-03   -1.5638    
  15  Prefactor     .11077E-05    6.3247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .91316E-07    36.263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          41.019        8.7274        .15621E-03   -1.5580    
  18  norm          2.9567        2.4860        .59119E-03   -1.5674    
  19  norm          .66308E-06    6.1015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1442        .18716        .59033E-01   -.88346    
  21  Prefactor     .97392        .19231        .68561E-01   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0426e-07
Minuit parameter uncertainties:
  1  23.0762
  2  0.000471946
  3  0.000448018
  4  2.151
  5  0.00101511
  6  4.11653e-05
  7  3.51291
  8  2.5774
  9  7.13823
  10  2.24569
  11  2.54981
  12  0.000218973
  13  5.4056e-07
  14  5.60111
  15  0.00529372
  16  0.00363995
  17  8.72736
  18  2.48603
  19  0.00402278
  20  0.187273
  21  0.192445
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.998e-09  2.190e-04  0.000e+00  1.000e+06 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.739e-01  1.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.144e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 5.5491926069e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0041354324054 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19658185/likelihoodResults_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.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) = 6803.8296045
delta logL = -0.000423793893788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6802.34904375
delta logL = 1.48013695313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
     2 'Index     '    9.9733       1.0000          .0000       10.000    
     3 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6803.829     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      829 TOTAL
                     EDM=   .58E-15  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9499        .42118E-03** at limit **
   2  Index         1.5935        1.1694       -.24410E-06     .0000    
   3  Normalizat    1.1442        1.2815        .16569E-05    .68449E-06
   4  Prefactor     .97392        1.1453        .17535E-05   -.25381E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.59347
  Normalizat = 1.14416
  Prefactor  = 0.973921
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6803.829     FROM HESSE     STATUS=FAILED         9 CALLS      838 TOTAL
                     EDM=   .58E-15  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9499        .42118E-03   -.40633E+06
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .24024        1.5318       -.24410E-06   -.36362E+09
   3  Normalizat    1.1442        1.2815        .16569E-05    438.94    
   4  Prefactor     .97392        1.1453        .17535E-05    280.54    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.75082e-16
Minuit parameter uncertainties:
  1  4.03588e-08
  2  1.19022
  3  1.31929
  4  1.17586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 6803.8291807
delta logL = 3.82897269446e-10

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  0.000e+00  4.036e-08  0.000e+00  1.000e+06 ( 1.000e-13)
329        Index:  1.593e+00  1.190e+00  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.739e-01  1.176e+00  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.144e+00  1.319e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

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/19658185/cmap_HighResolution_711072001_711331201_4FGL_J1224.4+2436_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2023-07-18 01:22:54.721481', job_id='19658185', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1689668574.72', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.83e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1820' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:22:55 PDT 2023

