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


Performing analysis on: 4FGL_J0224.2+0700_weekly_bin921
RA = 36.0577, Dec = 7.0126
tmin = 796003201, tmax = 796608001
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='24570085', job_status='RUN', time_executed='2026-03-31 01:22:02.737654', time_epoch_executed='1774945322.74' WHERE source_name='4FGL J0224.2+0700' and cadence='weekly' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/24570085

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/24570085/ft1_4FGL_J0224.2+0700_weekly_bin921.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/24570085/ft1_4FGL_J0224.2+0700_weekly_bin921.fits outfile=/lscratch/kocevski/24570085/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin921.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=796003201.0 tmax=796608001.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 6.59
user 5.62
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.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/24570085/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin921.fits evtable="EVENTS" outfile="/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.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.95
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1281

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits" evtable="EVENTS" scfile=/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits sctable="SC_DATA" outfile=/lscratch/kocevski/24570085/ltcube_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.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/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits
.....................!
real 20.23
user 19.27
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits evtable="EVENTS" scfile=/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits sctable="SC_DATA" expcube=/lscratch/kocevski/24570085/ltcube_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.fits outfile=/lscratch/kocevski/24570085/expmap_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.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/24570085/ltcube_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.fits
.....................!
real 73.29
user 67.99
sys 4.24

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

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits scfile=/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits outfile=/lscratch/kocevski/24570085/cmap_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.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.0577 yref=7.0126 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.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits scfile=/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits outfile=/lscratch/kocevski/24570085/cmap_HighResolution_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.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.0577 yref=7.0126 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.88
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits evtable="EVENTS" scfile=/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/24570085/Model_4FGL_J0224.2+0700_weekly_bin921.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/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits.....................!
real 70.06
user 67.70
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits', '/lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits', expMap='/lscratch/kocevski/24570085/expmap_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.fits', expCube='/lscratch/kocevski/24570085/ltcube_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/24570085/Model_4FGL_J0224.2+0700_weekly_bin921.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/24570085/ft1_filtered_4FGL_J0224.2+0700_weekly_bin921.fits
Spacecraft file(s): /lscratch/kocevski/24570085/ft2_4FGL_J0224.2+0700_weekly_bin921.fits
Exposure map: /lscratch/kocevski/24570085/expmap_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.fits
Exposure cube: /lscratch/kocevski/24570085/ltcube_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/24570085/Model_4FGL_J0224.2+0700_weekly_bin921.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) = 14496.4533859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0236       1.0000          .0000       .10000E+07
     2 'norm      '    16.138       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.0055       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14479       1.0000          .0000       .10000E+07
     5 'norm      '    24.229       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3472       1.0000          .0000       .10000E+07
     7 'norm      '    2.8625       1.0000          .0000       .10000E+07
     8 'Prefactor '    .88747E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12398E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    19.067       1.0000          .0000       .10000E+07
    11 'Prefactor '    .39108E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13204E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1919       1.0000          .0000       .10000E+07
    14 'norm      '    .33251E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .27970E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    9.9639       1.0000          .0000       .10000E+07
    17 'norm      '    .50275E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.726       1.0000          .0000       .10000E+07
    19 'Prefactor '    .81073E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    45.653       1.0000          .0000       .10000E+07
    21 'Prefactor '    .32155E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .33031E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .38909E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .10266E-05   1.0000          .0000       .10000E+07
    25 'norm      '    11.760       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0170       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14496.38     FROM MIGRAD    STATUS=CONVERGED    221 CALLS     1991 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0333        3.0898       -.84686E-08    .31338E-03
   2  norm          16.150        10.455       -.77763E-07   -.35231E-01
   3  Prefactor     4.9990        3.4775       -.38747E-07    .36923E-03
   4  Prefactor     .15301        5.5832        .27257E-06** at limit **
   5  norm          24.302        5.4651       -.89464E-08    .28600E-02
   6  Prefactor     7.3056        2.4227       -.26200E-07    .88852E-03
   7  norm          2.8648        .81403       -.39892E-08   -.65456E-03
   8  Prefactor     .24980E-08    7.1106        .12152E-06** at limit **
   9  Prefactor     .57648E-06    31.030        .10161E-06** at limit **
  10  Prefactor     24.007        49.798       -.37927E-06   -.13839E-01
  11  Prefactor     .55511E-10    2.0764        .11159E-06** at limit **
  12  Prefactor     .36082E-08    5.6575        .55705E-06** at limit **
  13  Prefactor     2.2619        7.4232       -.27048E-06    .69758E-03
  14  norm           .0000        .39586        .10612E-06** at limit **
  15  Prefactor     .72142E-06    11.541       -.36515E-06** at limit **
  16  Prefactor     9.9823        2.1270       -.10644E-07    .47179E-01
  17  norm          .21606E-05    8.7182       -.14430E-06** at limit **
  18  Prefactor     16.754        1.9359       -.28746E-07    .77748E-02
  19  Prefactor     .20262E-07    9.9552       -.30486E-08** at limit **
  20  Prefactor     46.629        10.071       -.57882E-07    .18574    
  21  Prefactor     .11102E-09    2.8173       -.12050E-06** at limit **
  22  norm          .22204E-09    19.548       -.23162E-06** at limit **
  23  norm          .55511E-09    3.9358       -.19339E-06** at limit **
  24  Prefactor      .0000        .87477        .38671E-07** at limit **
  25  norm          11.798        6.6849        .10172E-06   -.23348E-03
  26  Normalizat    1.0160        .15080       -.37724E-05    .18356E-04
  27  Prefactor     .93297        .82188E-01    .39259E-05   -.22748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03329
  norm       = 16.1504
  Prefactor  = 4.999
  Prefactor  = 0.153011
  norm       = 24.3017
  Prefactor  = 7.30562
  norm       = 2.86478
  Prefactor  = 2.498e-09
  Prefactor  = 5.76483e-07
  Prefactor  = 24.0075
  Prefactor  = 5.55112e-11
  Prefactor  = 3.60822e-09
  Prefactor  = 2.26185
  norm       = 0
  Prefactor  = 7.21423e-07
  Prefactor  = 9.98235
  norm       = 2.16061e-06
  Prefactor  = 16.7543
  Prefactor  = 2.02616e-08
  Prefactor  = 46.629
  Prefactor  = 1.11022e-10
  norm       = 2.22045e-10
  norm       = 5.55112e-10
  Prefactor  = 0
  norm       = 11.798
  Normalizat = 1.01604
  Prefactor  = 0.932967
 **********
 **   18 **HESSE 
 **********

 FCN=   14496.38     FROM HESSE     STATUS=OK           556 CALLS     2547 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0333        3.0943        .50249E-03   -1.5668    
   2  norm          16.150        10.526        .24905E-03   -1.5628    
   3  Prefactor     4.9990        3.4830        .44924E-03   -1.5663    
   4  Prefactor     .15301        .67821        .61917E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.302        5.4934        .20320E-03   -1.5609    
   6  Prefactor     7.3056        2.4269        .36979E-03   -1.5654    
   7  norm          2.8648        .81605        .60059E-03   -1.5674    
   8  Prefactor     .24980E-08    7.1515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .57648E-06    31.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.007        49.852        .22909E-03   -1.5610    
  11  Prefactor     .55511E-10    2.0802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36082E-08    5.6856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2619        9.3121        .69486E-03   -1.5678    
  14  norm           .0000        .20574        .15146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .72142E-06    16.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9823        13.218        .31720E-03   -1.5645    
  17  norm          .21606E-05    16.805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.754        14.521        .24462E-03   -1.5626    
  19  Prefactor     .20262E-07    10.130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.629        35.752        .14801E-03   -1.5571    
  21  Prefactor     .11102E-09    2.8073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .22204E-09    24.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-09    3.9374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        .87899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.798        6.6524        .29187E-03   -1.5639    
  26  Normalizat    1.0160        .13966        .75344E-01   -.92495    
  27  Prefactor     .93297        .73501E-01    .45434E-01   -.94998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2101e-06
Minuit parameter uncertainties:
  1  3.09429
  2  10.5263
  3  3.48303
  4  0.644279
  5  5.49343
  6  2.42692
  7  0.816049
  8  0.000268774
  9  0.00855502
  10  49.8533
  11  1.5901e-05
  12  0.000287092
  13  9.17882
  14  7.34589e-07
  15  0.00689689
  16  13.2179
  17  0.0120515
  18  14.5212
  19  0.00090597
  20  35.7519
  21  3.29673e-05
  22  0.000154519
  23  9.57559e-05
  24  1.0192e-06
  25  6.65238
  26  0.139706
  27  0.0735092
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  2.498e-09  2.688e-04  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.330e-01  7.351e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.016e+00  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 5.29209311365e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00411664447353 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/24570085/likelihoodResults_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.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) = 14496.3864438
delta logL = -0.00444921842245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14496.3819968
delta logL = -2.2305011953e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   14496.38     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .74773        .42118E-03** at limit **
   2  Index         .65039        .53585        .71332E-04     .0000    
   3  Normalizat    1.0160        1.2795        .60029E-05   -.67301E-05
   4  Prefactor     .93297        1.2762       -.17965E-05    .14076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.650388
  Normalizat = 1.01604
  Prefactor  = 0.932967
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14496.38     FROM HESSE     STATUS=FAILED         9 CALLS      241 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .74773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .82695E-04    .75424        .71332E-04   -1.0550    
   3  Normalizat    1.0160        1.2795        .60029E-05   -.92495    
   4  Prefactor     .93297        1.2762       -.17965E-05   -.94998    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.16638e-13
Minuit parameter uncertainties:
  1  3.69309e-07
  2  0.540155
  3  1.32171
  4  1.32112
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) = 14496.3819946
delta logL = 1.76441972144e-10

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  0.000e+00  3.693e-07  0.000e+00  1.000e+06 ( 1.000e-13)
252        Index:  6.504e-01  5.402e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.330e-01  1.321e+00  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.016e+00  1.322e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.058 7.013

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/24570085/cmap_HighResolution_796003201_796608001_4FGL_J0224.2+0700_weekly_bin921.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2026-03-31 01:36:01.996822', job_id='24570085', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1774946162.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.76e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='921' AND source_name='4FGL J0224.2+0700' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 31 01:36:02 PDT 2026

