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


Performing analysis on: 4FGL_J0746.4+2546_weekly_bin854
RA = 116.602, Dec = 25.7678
tmin = 755481601, tmax = 756086401
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='60351208', job_status='RUN', time_executed='2024-12-17 00:17:10.755848', time_epoch_executed='1734423430.76' WHERE source_name='4FGL J0746.4+2546' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351208

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351208/ft1_4FGL_J0746.4+2546_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351208/ft1_4FGL_J0746.4+2546_weekly_bin854.fits outfile=/lscratch/kocevski/60351208/ft1_filteredMKT_4FGL_J0746.4+2546_weekly_bin854.fits ra=116.602 dec=25.7678 rad=12.0 tmin=755481601.0 tmax=756086401.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.34
user 4.40
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.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/60351208/ft1_filteredMKT_4FGL_J0746.4+2546_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.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.98
user 0.21
sys 0.16

Number of photons that the gtmktime cut: 1321

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351208/ltcube_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.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/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits
.....................!
real 27.51
user 26.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351208/ltcube_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.fits outfile=/lscratch/kocevski/60351208/expmap_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.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/60351208/ltcube_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.fits
.....................!
real 66.47
user 61.61
sys 3.74

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 IC 443 in ROI with RadialGaussian spatial model.
Added 172 point sources and 1 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 J0746.4+2546 @ 116.602 25.7678

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits scfile=/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits outfile=/lscratch/kocevski/60351208/cmap_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.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=116.602 yref=25.7678 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 3.08
user 0.20
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits scfile=/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits outfile=/lscratch/kocevski/60351208/cmap_HighResolution_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.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=116.602 yref=25.7678 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.81
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351208/Model_4FGL_J0746.4+2546_weekly_bin854.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
adding source IC 443
Working on...
/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits.....................!
real 63.10
user 57.94
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits', '/lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits', expMap='/lscratch/kocevski/60351208/expmap_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.fits', expCube='/lscratch/kocevski/60351208/ltcube_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351208/Model_4FGL_J0746.4+2546_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.4+2546'

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.783e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351208/ft1_filtered_4FGL_J0746.4+2546_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351208/ft2_4FGL_J0746.4+2546_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351208/expmap_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351208/ltcube_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351208/Model_4FGL_J0746.4+2546_weekly_bin854.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) = 14960.2134749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18550E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .80926E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .26090E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4199       1.0000          .0000       .10000E+07
     5 'Prefactor '    .93920E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6380       1.0000          .0000       .10000E+07
     7 'norm      '    3.9759       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17647E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16820E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    37.876       1.0000          .0000       .10000E+07
    11 'norm      '    .42188E-08   1.0000          .0000       .10000E+07
    12 'norm      '    .25698E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .58121E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .13385E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    10.761       1.0000          .0000       .10000E+07
    16 'norm      '    .15447       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14960.14     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1078 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.3306       -.31303E-08** at limit **
   2  norm          .69061E-06    5.1171       -.35333E-06** at limit **
   3  norm           .0000        .24264       -.10474E-06** at limit **
   4  Prefactor     1.4196        6.5776       -.17776E-06   -.10028E-02
   5  Prefactor      .0000        3.0812        .30317E-06** at limit **
   6  norm          1.6344        1.0184       -.17375E-06   -.11029E-02
   7  norm          3.9784        3.2399        .10870E-06   -.71994E-03
   8  Prefactor     .16370E-06    14.313       -.79053E-06** at limit **
   9  Prefactor     .98455E-06    10.386       -.23060E-06** at limit **
  10  Prefactor     38.698        23.273        .34035E-06   -.63728E-01
  11  norm           .0000        3.0811        .42118E-06** at limit **
  12  norm          .51475E-06    22.070       -.60431E-06** at limit **
  13  Prefactor     .55511E-10    8.8048        .30382E-06** at limit **
  14  Prefactor     .22204E-09    5.7994        .42422E-06** at limit **
  15  Prefactor     10.754        4.3962       -.10162E-06   -.86315E-01
  16  norm          .15496        .71174        .30675E-07** at limit **
  17  Normalizat    1.0087        .15447       -.66719E-05   -.37282E-04
  18  Prefactor     1.0546        .98871E-01    .40995E-05   -.13624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 6.90614e-07
  norm       = 0
  Prefactor  = 1.4196
  Prefactor  = 0
  norm       = 1.63441
  norm       = 3.9784
  Prefactor  = 1.63702e-07
  Prefactor  = 9.84546e-07
  Prefactor  = 38.6983
  norm       = 0
  norm       = 5.14755e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 10.7538
  norm       = 0.154965
  Normalizat = 1.00874
  Prefactor  = 1.05458
 **********
 **   18 **HESSE 
 **********

 FCN=   14960.14     FROM HESSE     STATUS=OK           290 CALLS     1368 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.3261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69061E-06    2.6465        .10775E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .23180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4196        6.6500        .90762E-03   -1.5684    
   5  Prefactor      .0000        3.0780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6344        1.0330        .82546E-03   -1.5682    
   7  norm          3.9784        3.2383        .50559E-03   -1.5668    
   8  Prefactor     .16370E-06    18.090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .98455E-06    20.383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.698        28.346        .16250E-03   -1.5584    
  11  norm           .0000        3.0754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .51475E-06    24.365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    8.8006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    5.7928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.754        14.793        .30517E-03   -1.5642    
  16  norm          .15496        .51768        .25282E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0087        .13681        .67506E-01   -.92738    
  18  Prefactor     1.0546        .85443E-01    .39665E-01   -.90932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33564e-06
Minuit parameter uncertainties:
  1  4.52232e-06
  2  0.0027039
  3  9.21473e-08
  4  6.14505
  5  1.12117e-05
  6  1.03296
  7  3.23829
  8  0.0034417
  9  0.00895962
  10  28.3465
  11  6.67498e-06
  12  0.00708314
  13  3.42478e-05
  14  7.08074e-05
  15  14.7934
  16  0.517679
  17  0.136856
  18  0.0854536
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  3.978e+00  3.238e+00  0.000e+00  1.000e+06 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.055e+00  8.545e-02  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.009e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 116.602 25.768
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 9.32e-06 +/- 7.58e-06

TS (Fixed Index): 1.93
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 1.04498557156e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.37371012134e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351208/likelihoodResults_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.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) = 14958.7852085
delta logL = 1.35634255853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14958.7845837
delta logL = 1.35696733187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9767       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8591       1.0000          .0000       5.0000    
     3 'Normalizat'    .94846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14958.78     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9743        42.192        .50554E-03    .15880E-01
   2  alpha         3.8596        3.1485        .50000        .44266E-04
   3  Normalizat    .94847        .69986E-01    .69360E-01    .42355E-04
   4  Prefactor     1.0794        .47614E-01    .38426E-01   -.21991E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97427
  alpha      = 3.85961
  Normalizat = 0.948475
  Prefactor  = 1.07943
 **********
 **   18 **HESSE 
 **********

 FCN=   14958.78     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9743        2.9813        .11770E-04   -1.5668    
   2  alpha         3.8596        .82913        .34131E-01    .57501    
   3  Normalizat    .94847        .15472        .30685E-03   -.94777    
   4  Prefactor     1.0794        .10029        .19356E-03   -.90127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59265e-11
Minuit parameter uncertainties:
  1  2.98127
  2  0.852384
  3  0.154796
  4  0.100306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14958.7845833
delta logL = 1.35696773038

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  3.974e+00  2.981e+00  0.000e+00  1.000e+06 ( 1.000e-11)
251        alpha:  3.860e+00  8.524e-01  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.079e+00  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.485e-01  1.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 116.602 25.768
Photon Index (Free Index): 3.86 +/- 0.85
Photon Flux (Free Index): 9.16e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.45e-05 +/- 7.70e-06

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/60351208/cmap_HighResolution_755481601_756086401_4FGL_J0746.4+2546_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='1.45e-05', photon_flux_error='3.34e-08', dlogl='1.36e+00', energy_flux='9.32e-06', photon_flux2='9.16e-08', job_status='DONE', time_completed='2024-12-17 00:24:00.283103', photon_index_error2='0.85', photon_index2='3.86', ts='1.93', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='7.70e-06', EG='1.01', time_epoch_completed='1734423840.28', return_code='0', job_id='60351208', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='7.58e-06', photon_flux_error2='4.97e-08', ts2='4.95', photon_index='2.62' WHERE bin_id='854' AND source_name='4FGL J0746.4+2546' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:24:00 PST 2024

