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


Performing analysis on: 4FGL_J0457.0+0646_weekly_bin817
RA = 74.2545, Dec = 6.7804
tmin = 733104001, tmax = 733708801
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='44591453', job_status='RUN', time_executed='2024-04-20 21:55:43.264132', time_epoch_executed='1713675343.26' WHERE source_name='4FGL J0457.0+0646' and cadence='weekly' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44591453

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44591453/ft1_4FGL_J0457.0+0646_weekly_bin817.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44591453/ft1_4FGL_J0457.0+0646_weekly_bin817.fits outfile=/lscratch/kocevski/44591453/ft1_filteredMKT_4FGL_J0457.0+0646_weekly_bin817.fits ra=74.2545 dec=6.7804 rad=12.0 tmin=733104001.0 tmax=733708801.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 5.11
user 4.82
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.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/44591453/ft1_filteredMKT_4FGL_J0457.0+0646_weekly_bin817.fits evtable="EVENTS" outfile="/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.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.36
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 3091

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44591453/ltcube_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.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/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits
.....................!
real 15.24
user 14.91
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits evtable="EVENTS" scfile=/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44591453/ltcube_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.fits outfile=/lscratch/kocevski/44591453/expmap_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.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/44591453/ltcube_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.fits
.....................!
real 59.18
user 55.51
sys 3.35

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

Setting source of interest to:
4FGL J0457.0+0646 @ 74.2545 6.7804

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits scfile=/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits outfile=/lscratch/kocevski/44591453/cmap_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.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=74.2545 yref=6.7804 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.36
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits scfile=/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits outfile=/lscratch/kocevski/44591453/cmap_HighResolution_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.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=74.2545 yref=6.7804 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.38
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits evtable="EVENTS" scfile=/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44591453/Model_4FGL_J0457.0+0646_weekly_bin817.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/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits.....................!
real 166.45
user 164.78
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits', '/lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits', expMap='/lscratch/kocevski/44591453/expmap_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.fits', expCube='/lscratch/kocevski/44591453/ltcube_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44591453/Model_4FGL_J0457.0+0646_weekly_bin817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0457.0+0646'

4FGL J0457.0+0646
   Spectrum: PowerLaw
182    Prefactor:  6.450e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
183        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
184        Scale:  8.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44591453/ft1_filtered_4FGL_J0457.0+0646_weekly_bin817.fits
Spacecraft file(s): /lscratch/kocevski/44591453/ft2_4FGL_J0457.0+0646_weekly_bin817.fits
Exposure map: /lscratch/kocevski/44591453/expmap_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.fits
Exposure cube: /lscratch/kocevski/44591453/ltcube_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44591453/Model_4FGL_J0457.0+0646_weekly_bin817.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 32310.0280965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3788       1.0000          .0000       .10000E+07
     2 'Prefactor '    .90925E-02   1.0000          .0000       .10000E+07
     3 'norm      '    3.8718       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4192       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.829       1.0000          .0000       .10000E+07
     6 'Prefactor '    .80365E-03   1.0000          .0000       .10000E+07
     7 'norm      '    3.6393       1.0000          .0000       .10000E+07
     8 'Prefactor '    17.458       1.0000          .0000       .10000E+07
     9 'norm      '    69.759       1.0000          .0000       .10000E+07
    10 'norm      '    10.864       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16465E-02   1.0000          .0000       .10000E+07
    12 'norm      '    3.0760       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21185E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .27450E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .11824E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    68.914       1.0000          .0000       .10000E+07
    17 'norm      '    5.6198       1.0000          .0000       .10000E+07
    18 'Prefactor '    .71815E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .54845E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .66613E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23208E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .85448E-06   1.0000          .0000       .10000E+07
    23 'norm      '    6.2951       1.0000          .0000       .10000E+07
    24 'norm      '    .33077       1.0000          .0000       .10000E+07
    25 'Prefactor '    6.7133       1.0000          .0000       .10000E+07
    26 'Prefactor '    .29606       1.0000          .0000       .10000E+07
    27 'Normalizat'    .71957       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32309.92     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2083 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3777        1.4720        .14288E-07    .14508E-02
   2  Prefactor      .0000        35.425        .39428E-06** at limit **
   3  norm          3.8713        1.0615        .10114E-07   -.22040E-03
   4  Prefactor     1.4191        .99587        .84845E-08   -.14352E-03
   5  Prefactor     15.715        2.0099        .64944E-08   -.88929E-03
   6  Prefactor      .0000        64.581        .17535E-06** at limit **
   7  norm          3.6480        2.2046       -.30289E-08    .25755E-03
   8  Prefactor     17.412        4.0315       -.34896E-07   -.29910E-02
   9  norm          69.793        4.0635        .48966E-08    .89127E-04
  10  norm          10.866        1.9905        .14262E-07   -.24292E-03
  11  Prefactor      .0000        12.480       -.77117E-07** at limit **
  12  norm          3.0757        1.3433       -.13852E-07   -.62436E-03
  13  Prefactor      .0000        24.144        .24804E-06** at limit **
  14  Prefactor      .0000        2.1051       -.39673E-07** at limit **
  15  norm           .0000        .22228       -.37002E-08** at limit **
  16  Prefactor     68.973        1.2208        .52202E-08    .13233E-02
  17  norm          5.6213        2.4388        .33148E-08   -.35470E-03
  18  Prefactor      .0000        5.7014       -.29861E-08** at limit **
  19  norm           .0000        2.0833        .83944E-08** at limit **
  20  Prefactor      .0000        .59809       -.47855E-07** at limit **
  21  Prefactor      .0000        138.28       -.38694E-06** at limit **
  22  Prefactor      .0000        1.3897        .15554E-07** at limit **
  23  norm          6.2866        4.7169       -.55575E-09   -.72065E-04
  24  norm          .32900        .73684       -.12365E-07    .28699E-03
  25  Prefactor     7.0696        16.274       -.23484E-06    .46764E-03
  26  Prefactor     .55511E-10    115.68        .10396E-05** at limit **
  27  Normalizat    .71920        .19727        .12020E-07   -.90394E-05
  28  Prefactor     1.0690        .49336E-01    .64137E-07   -.31048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.37774
  Prefactor  = 0
  norm       = 3.87131
  Prefactor  = 1.41912
  Prefactor  = 15.7153
  Prefactor  = 0
  norm       = 3.64801
  Prefactor  = 17.4117
  norm       = 69.793
  norm       = 10.8658
  Prefactor  = 0
  norm       = 3.0757
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 68.9732
  norm       = 5.62134
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 6.28663
  norm       = 0.328996
  Prefactor  = 7.06961
  Prefactor  = 5.55112e-11
  Normalizat = 0.7192
  Prefactor  = 1.06899
 **********
 **   18 **HESSE 
 **********

 FCN=   32309.92     FROM HESSE     STATUS=OK           609 CALLS     2692 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3777        17.371        .43307E-03   -1.5662    
   2  Prefactor      .0000        35.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8713        1.0677        .51258E-03   -1.5669    
   4  Prefactor     1.4191        1.0068        .90792E-03   -1.5684    
   5  Prefactor     15.715        19.057        .25147E-03   -1.5629    
   6  Prefactor      .0000        63.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6480        2.5766        .52931E-03   -1.5670    
   8  Prefactor     17.412        15.781        .23943E-03   -1.5625    
   9  norm          69.793        4.1087        .11974E-03   -1.5541    
  10  norm          10.866        2.0053        .30372E-03   -1.5642    
  11  Prefactor      .0000        12.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0757        1.3750        .57808E-03   -1.5673    
  13  Prefactor      .0000        5.4109        .16960E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        2.1166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .11604        .19410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     68.973        20.901        .12047E-03   -1.5542    
  17  norm          5.6213        2.5959        .42353E-03   -1.5661    
  18  Prefactor      .0000        5.4611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        2.0755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        .59884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        14.232        .24616E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        1.3918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2866        4.7252        .39984E-03   -1.5658    
  24  norm          .32900        .60994        .30986E-02   -1.5696    
  25  Prefactor     7.0696        21.429        .38703E-03   -1.5655    
  26  Prefactor     .55511E-10    12.195        .14499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .71920        .21502        .16425       -1.0314    
  28  Prefactor     1.0690        .49365E-01    .38908E-01   -.90464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21087e-07
Minuit parameter uncertainties:
  1  17.371
  2  3.50027e-05
  3  1.06774
  4  1.00685
  5  19.0569
  6  4.54322e-05
  7  2.57662
  8  15.7806
  9  4.10871
  10  2.00533
  11  1.65069e-05
  12  1.375
  13  4.0083e-06
  14  1.69956e-07
  15  2.65909e-07
  16  20.9009
  17  2.59593
  18  1.39922e-06
  19  6.43957e-07
  20  3.27336e-07
  21  3.82298e-07
  22  6.10133e-08
  23  4.72516
  24  0.60994
  25  21.429
  26  4.35375e-05
  27  0.215277
  28  0.0493672
Done.

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

Extracting fit parameters...

4FGL J0457.0+0646
   Spectrum: PowerLaw
182    Prefactor:  0.000e+00  1.651e-05  0.000e+00  1.000e+06 ( 1.000e-13)
183        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
184        Scale:  8.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
480    Prefactor:  1.069e+00  4.937e-02  0.000e+00  1.000e+01 ( 1.000e+00)
481        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
482        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
479   Normalization:  7.192e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 74.254 6.780
Photon Flux Upper Limit: 6.1996757542e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0048339249036 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44591453/likelihoodResults_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.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) = 32309.9540787
delta logL = -0.0387674137673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 32309.7680958
delta logL = 0.147215442703

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   32309.92     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      310 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.708        .42118E-03** at limit **
   2  Index         2.2544        1.3536        .56167E-06     .0000    
   3  Normalizat    .71920        1.0494        .62160E-05   -.26722E-04
   4  Prefactor     1.0690        1.1653       -.22757E-06   -.70214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.25437
  Normalizat = 0.7192
  Prefactor  = 1.06899
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32309.92     FROM HESSE     STATUS=FAILED         9 CALLS      319 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.6437        2.2413        .56167E-06   -266.45    
   3  Normalizat    .71920        1.0494        .62160E-05   -2.1102    
   4  Prefactor     1.0690        1.1653       -.22757E-06   -2.2370    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.60878e-12
Minuit parameter uncertainties:
  1  2.53928e-05
  2  1.37849
  3  1.08108
  4  1.19483
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) = 32309.9153112
delta logL = 0.0

Extracting fit parameters...

4FGL J0457.0+0646
   Spectrum: PowerLaw
182    Prefactor:  0.000e+00  2.539e-05  0.000e+00  1.000e+06 ( 1.000e-13)
183        Index:  2.254e+00  1.378e+00  0.000e+00  1.000e+01 (-1.000e+00)
184        Scale:  8.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
480    Prefactor:  1.069e+00  1.195e+00  0.000e+00  1.000e+01 ( 1.000e+00)
481        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
482        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
479   Normalization:  7.192e-01  1.081e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 74.254 6.780

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/44591453/cmap_HighResolution_733104001_733708801_4FGL_J0457.0+0646_weekly_bin817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2024-04-20 22:08:53.525699', job_id='44591453', GAL2='1.07', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1713676133.53', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='817' AND source_name='4FGL J0457.0+0646' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Apr 20 22:08:53 PDT 2024

