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


Performing analysis on: 4FGL_J1457.3-4246_daily_bin2023
RA = 224.344, Dec = -42.7755
tmin = 763689601, tmax = 763948801
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='838061', job_status='RUN', time_executed='2025-03-18 02:31:57.430427', time_epoch_executed='1742290317.43' WHERE source_name='4FGL J1457.3-4246' and cadence='daily' and bin_id='2023'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/838061

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/838061/ft1_4FGL_J1457.3-4246_daily_bin2023.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/838061/ft1_4FGL_J1457.3-4246_daily_bin2023.fits outfile=/lscratch/kocevski/838061/ft1_filteredMKT_4FGL_J1457.3-4246_daily_bin2023.fits ra=224.344 dec=-42.7755 rad=12.0 tmin=763689601.0 tmax=763948801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.04
user 2.60
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.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/838061/ft1_filteredMKT_4FGL_J1457.3-4246_daily_bin2023.fits evtable="EVENTS" outfile="/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.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.48
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 2805

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits" evtable="EVENTS" scfile=/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits sctable="SC_DATA" outfile=/lscratch/kocevski/838061/ltcube_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.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/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits
.....................!
real 11.81
user 11.31
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits evtable="EVENTS" scfile=/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits sctable="SC_DATA" expcube=/lscratch/kocevski/838061/ltcube_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.fits outfile=/lscratch/kocevski/838061/expmap_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.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/838061/ltcube_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.fits
.....................!
real 66.53
user 62.49
sys 3.54

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 360 point sources and 19 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1457.3-4246 @ 224.344 -42.7755

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits scfile=/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits outfile=/lscratch/kocevski/838061/cmap_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.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=224.344 yref=-42.7755 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 1.32
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits scfile=/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits outfile=/lscratch/kocevski/838061/cmap_HighResolution_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.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=224.344 yref=-42.7755 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 1.30
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits evtable="EVENTS" scfile=/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/838061/Model_4FGL_J1457.3-4246_daily_bin2023.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits.....................!
real 572.69
user 568.03
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits', '/lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits', expMap='/lscratch/kocevski/838061/expmap_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.fits', expCube='/lscratch/kocevski/838061/ltcube_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/838061/Model_4FGL_J1457.3-4246_daily_bin2023.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1457.3-4246'

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  5.845e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.154e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/838061/ft1_filtered_4FGL_J1457.3-4246_daily_bin2023.fits
Spacecraft file(s): /lscratch/kocevski/838061/ft2_4FGL_J1457.3-4246_daily_bin2023.fits
Exposure map: /lscratch/kocevski/838061/expmap_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.fits
Exposure cube: /lscratch/kocevski/838061/ltcube_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/838061/Model_4FGL_J1457.3-4246_daily_bin2023.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) = 26453.0763663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13185E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .60530E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .12934E-07   1.0000          .0000       .10000E+07
     4 'norm      '    .45042       1.0000          .0000       .10000E+07
     5 'Prefactor '    .26301E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58482E-03   1.0000          .0000       .10000E+07
     7 'norm      '    17.425       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18948E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .99398E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    11 'Prefactor '    .37959E-03   1.0000          .0000       .10000E+07
    12 'norm      '    15.000       1.0000          .0000       .10000E+07
    13 'norm      '    .19811E-03   1.0000          .0000       .10000E+07
    14 'norm      '    19.908       1.0000          .0000       .10000E+07
    15 'norm      '    2.9024       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.454       1.0000          .0000       .10000E+07
    17 'norm      '    .34001E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2444       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1349E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26453.01     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1177 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13343E-05    149.02       -.21924E-05** at limit **
   2  Prefactor     .10991E-06    30.162        .17658E-05** at limit **
   3  norm           .0000        .76866        .15067E-07** at limit **
   4  norm          .45044        .11885        .77155E-09   -.46057E-02
   5  Prefactor     .31813E-05    62.027        .14123E-05** at limit **
   6  Prefactor     .27125E-05    49.257        .15045E-05** at limit **
   7  norm          17.606        11.484        .38553E-08    .33872E-01
   8  Prefactor     .16653E-09    8.2840       -.41896E-06** at limit **
   9  Prefactor      .0000        3.9446        .19266E-06** at limit **
  10  norm           .0000        .26886       -.11218E-06** at limit **
  11  Prefactor      .0000        3.8543       -.20242E-06** at limit **
  12  norm          14.981        11.343        .37787E-07    .43177E-01
  13  norm           .0000        4.5202        .20033E-06** at limit **
  14  norm          20.134        18.593        .24347E-06    .81931E-02
  15  norm          2.9052        3.5380       -.75272E-07    .16204E-03
  16  Prefactor     10.502        6.8055       -.32241E-07   -.17100    
  17  norm           .0000        2.0742        .14129E-07** at limit **
  18  Normalizat    1.2439        .23450        .40413E-06   -.43447E-04
  19  Prefactor     .99182        .39690E-01    .14274E-05   -.31627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33427e-06
  Prefactor  = 1.09912e-07
  norm       = 0
  norm       = 0.450441
  Prefactor  = 3.18129e-06
  Prefactor  = 2.7125e-06
  norm       = 17.606
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 14.9808
  norm       = 0
  norm       = 20.1342
  norm       = 2.90518
  Prefactor  = 10.5021
  norm       = 0
  Normalizat = 1.24393
  Prefactor  = 0.991824
 **********
 **   18 **HESSE 
 **********

 FCN=   26453.01     FROM HESSE     STATUS=OK           308 CALLS     1485 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13343E-05    150.06        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10991E-06    30.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .76863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .45044        .12028        .62158E-03   -1.5695    
   5  Prefactor     .31813E-05    64.398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27125E-05    51.180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.606        11.511        .23966E-03   -1.5624    
   8  Prefactor     .16653E-09    8.2833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.9420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .13276        .23804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.8487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.981        11.460        .25834E-03   -1.5631    
  13  norm           .0000        4.4857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.134        18.624        .22419E-03   -1.5618    
  15  norm          2.9052        3.5619        .59617E-03   -1.5674    
  16  Prefactor     10.502        20.824        .30965E-03   -1.5643    
  17  norm           .0000        2.0568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2439        .22703        .15645       -.85256    
  19  Prefactor     .99182        .38093E-01    .29029E-01   -.93003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34898e-06
Minuit parameter uncertainties:
  1  0.0283008
  2  0.00364926
  3  1.27846e-07
  4  0.120281
  5  0.0286269
  6  0.0235652
  7  11.5114
  8  7.82546e-05
  9  7.54619e-06
  10  6.37521e-07
  11  6.64376e-06
  12  11.4605
  13  5.08918e-06
  14  18.624
  15  3.56193
  16  20.8238
  17  2.37674e-06
  18  0.227211
  19  0.038094
Done.

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

Extracting fit parameters...

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  0.000e+00  7.546e-06  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.154e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1316    Prefactor:  9.918e-01  3.809e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1317        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1318        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  1.244e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 224.344 -42.776
Photon Flux Upper Limit: 4.9977008472e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00386736243866 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/838061/likelihoodResults_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.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) = 26453.0153067
delta logL = -0.00174369804517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26453.0135658
delta logL = -2.71794124274e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44821E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2230       1.0000          .0000       10.000    
     3 'Normalizat'    1.2435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99188       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1349E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   26453.01     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      241 TOTAL
                     EDM=   .71E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7469        .42118E-03** at limit **
   2  Index         2.7877        1.4999       -.25128E-05     .0000    
   3  Normalizat    1.2439        1.0932        .45386E-05   -.41459E-05
   4  Prefactor     .99182        1.3314       -.73033E-06    .30401E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.7877
  Normalizat = 1.24393
  Prefactor  = 0.991824
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26453.01     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .71E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .88027        2.0349       -.25128E-05   -.45834    
   3  Normalizat    1.2439        1.0932        .45386E-05   -.85256    
   4  Prefactor     .99182        1.3314       -.73033E-06   -.93003    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.07907e-14
Minuit parameter uncertainties:
  1  2.63484e-08
  2  1.52942
  3  1.11438
  4  1.37992
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) = 26453.013563
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  0.000e+00  2.635e-08  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.788e+00  1.529e+00  0.000e+00  1.000e+01 (-1.000e+00)
496        Scale:  1.154e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1316    Prefactor:  9.918e-01  1.380e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1317        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1318        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  1.244e+00  1.114e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 224.344 -42.776

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/838061/cmap_HighResolution_763689601_763948801_4FGL_J1457.3-4246_daily_bin2023.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2025-03-18 02:59:31.630290', job_id='838061', GAL2='0.99', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1742291971.63', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='2023' AND source_name='4FGL J1457.3-4246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 18 02:59:31 PDT 2025

