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


Performing analysis on: 4FGL_J0259.4+0746_weekly_bin853
RA = 44.8578, Dec = 7.7833
tmin = 754876801, tmax = 755481601
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='59976469', job_status='RUN', time_executed='2024-12-10 00:02:21.509709', time_epoch_executed='1733817741.51' WHERE source_name='4FGL J0259.4+0746' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976469

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59976469/ft1_4FGL_J0259.4+0746_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976469/ft1_4FGL_J0259.4+0746_weekly_bin853.fits outfile=/lscratch/kocevski/59976469/ft1_filteredMKT_4FGL_J0259.4+0746_weekly_bin853.fits ra=44.8578 dec=7.7833 rad=12.0 tmin=754876801.0 tmax=755481601.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.39
user 2.93
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.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/59976469/ft1_filteredMKT_4FGL_J0259.4+0746_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.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.59
user 0.23
sys 0.16

Number of photons that the gtmktime cut: 406

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976469/ltcube_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.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/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits
.....................!
real 32.90
user 32.04
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976469/ltcube_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.fits outfile=/lscratch/kocevski/59976469/expmap_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.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/59976469/ltcube_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.fits
.....................!
real 67.13
user 62.85
sys 3.73

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

Setting source of interest to:
4FGL J0259.4+0746 @ 44.8578 7.7833

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits scfile=/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits outfile=/lscratch/kocevski/59976469/cmap_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.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=44.8578 yref=7.7833 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.46
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits scfile=/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits outfile=/lscratch/kocevski/59976469/cmap_HighResolution_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.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=44.8578 yref=7.7833 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.45
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976469/Model_4FGL_J0259.4+0746_weekly_bin853.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/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits.....................!
real 27.90
user 26.65
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits', '/lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits', expMap='/lscratch/kocevski/59976469/expmap_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.fits', expCube='/lscratch/kocevski/59976469/ltcube_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976469/Model_4FGL_J0259.4+0746_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0259.4+0746'

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  2.751e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
291        alpha:  2.122e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.205e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976469/ft1_filtered_4FGL_J0259.4+0746_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976469/ft2_4FGL_J0259.4+0746_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976469/expmap_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976469/ltcube_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976469/Model_4FGL_J0259.4+0746_weekly_bin853.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) = 4619.51516831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9235       1.0000          .0000       .10000E+07
     2 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.7578       1.0000          .0000       .10000E+07
     4 'Prefactor '    24.260       1.0000          .0000       .10000E+07
     5 'Prefactor '    .74235E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.8189       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16764E-07   1.0000          .0000       .10000E+07
     8 'norm      '    1.1275       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18225E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .36871       1.0000          .0000       .10000E+07
    11 'norm      '    24.207       1.0000          .0000       .10000E+07
    12 'Prefactor '    .91760E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .65600E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .28632E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.708       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23981E-07   1.0000          .0000       .10000E+07
    17 'norm      '    .79936E-08   1.0000          .0000       .10000E+07
    18 'norm      '    12.500       1.0000          .0000       .10000E+07
    19 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
    20 'norm      '    21.048       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.2089       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    23 'Prefactor '    10.191       1.0000          .0000       .10000E+07
    24 'norm      '    .14894E-06   1.0000          .0000       .10000E+07
    25 'Normalizat'    .80452       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4619.423     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     2248 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9223        4.1374        .49021E-06    .29914E-03
   2  norm           .0000        .40363        .60656E-07** at limit **
   3  Prefactor     3.7738        2.7799       -.75937E-06    .96570E-02
   4  Prefactor     24.155        4.0443       -.55704E-06    .44758E-01
   5  Prefactor     .55511E-10    21.157       -.20758E-05** at limit **
   6  Prefactor     5.8226        6.4542        .11808E-05   -.12283E-01
   7  Prefactor      .0000        7.7788       -.36031E-06** at limit **
   8  norm          1.1274        .79163        .28545E-06    .26315E-05
   9  Prefactor     .35694E-06    16.195        .43308E-06** at limit **
  10  Prefactor     .27544        3.3602       -.70345E-06    .17833E-02
  11  norm          24.207        18.803       -.18698E-05   -.23041E-02
  12  Prefactor     .34028E-07    29.226        .27715E-05** at limit **
  13  Prefactor     .12679E-06    36.775       -.43914E-05** at limit **
  14  Prefactor     .16953E-06    218.44       -.87865E-05** at limit **
  15  Prefactor     13.708        1.7644       -.71335E-07    .49989E-02
  16  Prefactor      .0000        4.3403        .15678E-06** at limit **
  17  norm           .0000        4.9925        .34403E-06** at limit **
  18  norm          12.498        7.2623       -.32781E-06   -.18752E-02
  19  Prefactor     .77716E-09    10.394        .11266E-05** at limit **
  20  norm          21.047        3.6555        .32666E-06    .41147E-01
  21  Prefactor     3.2075        12.232        .17989E-05    .12432E-02
  22  Prefactor     .72164E-09    8.2541       -.75033E-07** at limit **
  23  Prefactor     10.181        2.0076        .28626E-06    .52434E-02
  24  norm           .0000        5.2178        .46049E-06** at limit **
  25  Normalizat    .80482        .25233        .68316E-05   -.11988E-05
  26  Prefactor     .87198        .11273       -.99589E-05    .11971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.92232
  norm       = 0
  Prefactor  = 3.77382
  Prefactor  = 24.1555
  Prefactor  = 5.55112e-11
  Prefactor  = 5.82261
  Prefactor  = 0
  norm       = 1.12741
  Prefactor  = 3.56937e-07
  Prefactor  = 0.275438
  norm       = 24.2068
  Prefactor  = 3.40283e-08
  Prefactor  = 1.26787e-07
  Prefactor  = 1.69531e-07
  Prefactor  = 13.7077
  Prefactor  = 0
  norm       = 0
  norm       = 12.4984
  Prefactor  = 7.77156e-10
  norm       = 21.047
  Prefactor  = 3.20745
  Prefactor  = 7.21645e-10
  Prefactor  = 10.1806
  norm       = 0
  Normalizat = 0.804823
  Prefactor  = 0.871979
 **********
 **   18 **HESSE 
 **********

 FCN=   4619.423     FROM HESSE     STATUS=OK           514 CALLS     2762 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9223        4.3187        .31785E-03   -1.5645    
   2  norm           .0000        .40262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7738        61.787        .52058E-03   -1.5669    
   4  Prefactor     24.155        115.70        .20307E-03   -1.5610    
   5  Prefactor     .55511E-10    21.102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8226        75.976        .41610E-03   -1.5660    
   7  Prefactor      .0000        7.8043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1274        .81614        .11007E-02   -1.5687    
   9  Prefactor     .35694E-06    43.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27544        49.641        .10662E-01   -1.5697    
  11  norm          24.207        19.581        .20330E-03   -1.5610    
  12  Prefactor     .34028E-07    44.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12679E-06    39.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16953E-06    218.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.708        23.493        .27027E-03   -1.5634    
  16  Prefactor      .0000        4.3396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        4.9920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.498        7.3151        .28307E-03   -1.5637    
  19  Prefactor     .77716E-09    10.360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.047        15.571        .21803E-03   -1.5616    
  21  Prefactor     3.2075        12.337        .56532E-03   -1.5672    
  22  Prefactor     .72164E-09    8.2608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.181        20.863        .31363E-03   -1.5644    
  24  norm           .0000        5.2268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .80482        .25952        .84756E-01   -.99890    
  26  Prefactor     .87198        .10639        .44647E-01   -.97127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11692e-06
Minuit parameter uncertainties:
  1  4.31867
  2  1.94399e-07
  3  30.5403
  4  105.737
  5  8.15861e-05
  6  42.0662
  7  2.2959e-05
  8  0.816141
  9  0.00784072
  10  7.39544
  11  19.5808
  12  0.00246585
  13  0.00448195
  14  0.0121625
  15  23.4933
  16  5.50243e-06
  17  2.1598e-05
  18  7.31509
  19  0.000177354
  20  15.5705
  21  12.3366
  22  0.000152831
  23  20.8633
  24  9.50886e-07
  25  0.259923
  26  0.106412
Done.

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

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  1.250e+01  7.315e+00  0.000e+00  1.000e+06 ( 1.000e-12)
291        alpha:  2.122e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.205e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  8.720e-01  1.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  8.048e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 44.858 7.783
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 6.67e-08
Energy Flux (Fixed Index): 5.58e-05 +/- 3.27e-05

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) = 4618.07952624
delta logL = 1.34352359966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4618.07658177
delta logL = 1.34646807107

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4618.077     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      289 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7408        7.4553        .71462E-05    .18200E-02
   2  alpha         3.1092        .82652        .75135E-02    .17502E-04
   3  Normalizat    .72567        .25286        .39193E-03    .30457E-05
   4  Prefactor     .88596        .11341        .16177E-03   -.14446E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.74084
  alpha      = 3.10923
  Normalizat = 0.725672
  Prefactor  = 0.885964
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.077     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7408        6.2012        .28585E-06   -1.5660    
   2  alpha         3.1092        .69139        .30054E-03    .24617    
   3  Normalizat    .72567        .25109        .15677E-04   -1.0289    
   4  Prefactor     .88596        .11280        .32354E-04   -.96633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59105e-11
Minuit parameter uncertainties:
  1  6.20125
  2  0.701118
  3  0.251486
  4  0.112829
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) = 4618.07658102
delta logL = 1.34646882228

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  5.741e+00  6.201e+00  0.000e+00  1.000e+06 ( 1.000e-12)
291        alpha:  3.109e+00  7.011e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  6.205e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
495    Prefactor:  8.860e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
496        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
497        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
494   Normalization:  7.257e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 44.858 7.783
Photon Index (Free Index): 3.11 +/- 0.70
Photon Flux (Free Index): 2.46e-07 +/- 1.29e-07
Energy Flux (Free Index): 4.91e-05 +/- 2.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/59976469/cmap_HighResolution_754876801_755481601_4FGL_J0259.4+0746_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='4.91e-05', photon_flux_error='6.67e-08', dlogl='1.35e+00', energy_flux='5.58e-05', photon_flux2='2.46e-07', job_status='DONE', time_completed='2024-12-10 00:07:50.381857', photon_index_error2='0.70', photon_index2='3.11', ts='5.69', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='0.80', time_epoch_completed='1733818070.38', return_code='0', job_id='59976469', GAL2='0.89', EG2='0.73', return_code2='0', energy_flux_error='3.27e-05', photon_flux_error2='1.29e-07', ts2='8.41', photon_index='2.12' WHERE bin_id='853' AND source_name='4FGL J0259.4+0746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:07:50 PST 2024

