/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).

ile=/lscratch/kocevski/18860040/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits
.....................!
real 7.70
user 7.42
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18860040/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18860040/expmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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/18860040/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits
.....................!
real 65.55
user 61.16
sys 3.63

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/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits scfile=/lscratch/kocevski/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18860040/cmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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.60
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits scfile=/lscratch/kocevski/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18860040/cmap_HighResolution_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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.63
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18860040/Model_4FGL_J0259.4+0746_daily_bin1816.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
/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).

Working on...
/lscratch/kocevski/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits.....................!
real 43.08
user 41.70
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits', '/lscratch/kocevski/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits', expMap='/lscratch/kocevski/18860040/expmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits', expCube='/lscratch/kocevski/18860040/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18860040/Model_4FGL_J0259.4+0746_daily_bin1816.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/18860040/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits
Spacecraft file(s): /lscratch/kocevski/18860040/ft2_4FGL_J0259.4+0746_daily_bin1816.fits
Exposure map: /lscratch/kocevski/18860040/expmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits
Exposure cube: /lscratch/kocevski/18860040/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18860040/Model_4FGL_J0259.4+0746_daily_bin1816.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) = 9240.98847722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3775       1.0000          .0000       .10000E+07
     2 'norm      '    2.2200       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7179       1.0000          .0000       .10000E+07
     4 'Prefactor '    120.12       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27669E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11448E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32439E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .44891       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27547       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30749E-04   1.0000          .0000       .10000E+07
    11 'norm      '    7.4338       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.000       1.0000          .0000       .10000E+07
    13 'Prefactor '    .66632E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    14.421       1.0000          .0000       .10000E+07
    15 'Prefactor '    .37271E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.4543       1.0000          .0000       .10000E+07
    17 'norm      '    2.0700       1.0000          .0000       .10000E+07
    18 'norm      '    4.3787       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10623E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .84033E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .35597E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.2271       1.0000          .0000       .10000E+07
    23 'Prefactor '    .26343E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .63980E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .89575       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0465       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=   9240.984     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2254 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3768        2.8146        .20907E-07   -.41514E-03
   2  norm          2.2193        1.2938        .95099E-07    .31275E-02
   3  Prefactor     1.7353        37.071       -.10751E-05   -.41501E-01
   4  Prefactor     120.19        10.640        .56311E-06   -.19624    
   5  Prefactor     .16098E-08    24.544       -.37460E-05** at limit **
   6  Prefactor     .33463E-05    43.811        .20099E-05** at limit **
   7  Prefactor     .26495E-06    4.5316       -.12105E-05** at limit **
   8  norm          .44882        .40631       -.50932E-07   -.72940E-02
   9  Prefactor     .38858E-09    35.684        .35304E-06** at limit **
  10  Prefactor     .61062E-08    10.254        .81549E-06** at limit **
  11  norm          7.4441        9.8304        .37433E-06    .11979E-02
  12  Prefactor     10.042        2.4884       -.82577E-07   -.63343E-02
  13  Prefactor      .0000        18.863       -.21064E-05** at limit **
  14  Prefactor     14.024        23.100       -.28531E-05    .72781E-01
  15  Prefactor     .75284E-06    8.2403        .46003E-05** at limit **
  16  Prefactor     5.4682        4.8172        .38555E-06   -.18546E-02
  17  norm          2.0338        5.4141       -.15493E-05    .11359E-02
  18  norm          4.3743        3.1460        .38235E-06    .33413E-02
  19  Prefactor     .11102E-09    3.9113        .87365E-07** at limit **
  20  norm           .0000        2.3517        .35401E-06** at limit **
  21  Prefactor     .32851E-06    4.3700       -.13178E-05** at limit **
  22  Prefactor     6.1980        4.1566        .32561E-06    .34963E-02
  23  Prefactor     .97533E-07    23.881        .37254E-05** at limit **
  24  norm          .13274E-05    12.458       -.70749E-06** at limit **
  25  Normalizat    .89584        .20937       -.17388E-04   -.48419E-04
  26  Prefactor     1.0467        .85363E-01    .54738E-05   -.14289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37682
  norm       = 2.21928
  Prefactor  = 1.73525
  Prefactor  = 120.191
  Prefactor  = 1.60982e-09
  Prefactor  = 3.34627e-06
  Prefactor  = 2.64955e-07
  norm       = 0.448823
  Prefactor  = 3.88578e-10
  Prefactor  = 6.10623e-09
  norm       = 7.44412
  Prefactor  = 10.0424
  Prefactor  = 0
  Prefactor  = 14.0243
  Prefactor  = 7.52842e-07
  Prefactor  = 5.46818
  norm       = 2.0338
  norm       = 4.37426
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 3.28515e-07
  Prefactor  = 6.19803
  Prefactor  = 9.75331e-08
  norm       = 1.32738e-06
  Normalizat = 0.895836
  Prefactor  = 1.04668
number of points = 7600
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0259.4+0746_daily_bin1816
RA = 44.8578, Dec = 7.7833
tmin = 710035201, tmax = 710294401
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='18861045', job_status='RUN', time_executed='2023-07-10 08:32:24.392748', time_epoch_executed='1689003144.39' WHERE source_name='4FGL J0259.4+0746' and cadence='daily' and bin_id='1816'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18861045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18861045/ft1_4FGL_J0259.4+0746_daily_bin1816.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18861045/ft1_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18861045/ft1_filteredMKT_4FGL_J0259.4+0746_daily_bin1816.fits ra=44.8578 dec=7.7833 rad=12.0 tmin=710035201.0 tmax=710294401.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 2.30
user 1.85
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.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/18861045/ft1_filteredMKT_4FGL_J0259.4+0746_daily_bin1816.fits evtable="EVENTS" outfile="/lscratch/kocevski/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.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.18
sys 0.14

Number of photons that the gtmktime cut: 855

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits sctable="SC_DATA" outf **********
 **   18 **HESSE 
 **********

 FCN=   9240.984     FROM HESSE     STATUS=OK           516 CALLS     2770 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3768        2.9358        .66413E-03   -1.5677    
   2  norm          2.2193        1.2964        .68990E-03   -1.5678    
   3  Prefactor     1.7353        76.259        .80133E-03   -1.5682    
   4  Prefactor     120.19        79.783        .91247E-04   -1.5489    
   5  Prefactor     .16098E-08    35.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33463E-05    52.585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26495E-06    9.3414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44882        .47645        .13208E-02   -1.5695    
   9  Prefactor     .38858E-09    35.521        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-08    10.470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4441        9.8452        .36761E-03   -1.5653    
  12  Prefactor     10.042        15.487        .31662E-03   -1.5645    
  13  Prefactor      .0000        18.780        .14931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.024        45.135        .26349E-03   -1.5633    
  15  Prefactor     .75284E-06    8.7546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4682        4.8190        .43001E-03   -1.5661    
  17  norm          2.0338        5.4625        .71773E-03   -1.5679    
  18  norm          4.3743        3.1519        .48108E-03   -1.5666    
  19  Prefactor     .11102E-09    3.8882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.3535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .32851E-06    9.1228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1980        4.1578        .40204E-03   -1.5658    
  23  Prefactor     .97533E-07    45.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .13274E-05    4.3256        .68207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89584        .19716        .91004E-01   -.96607    
  26  Prefactor     1.0467        .78208E-01    .40117E-01   -.91189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21998e-06
Minuit parameter uncertainties:
  1  2.93576
  2  1.29643
  3  23.0072
  4  79.7836
  5  0.000474516
  6  0.0265306
  7  0.00314648
  8  0.476449
  9  0.000239977
  10  0.000506328
  11  9.8452
  12  15.4873
  13  4.51811e-06
  14  45.1362
  15  0.00513456
  16  4.81905
  17  5.4625
  18  3.15188
  19  4.24384e-05
  20  3.90207e-06
  21  0.00346237
  22  4.15777
  23  0.00419823
  24  0.00479234
  25  0.197317
  26  0.0782164
Done.

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

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  4.374e+00  3.152e+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:  1.047e+00  7.822e-02  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.958e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 44.858 7.783
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.41e-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) = 9240.48568151
delta logL = 0.49806944083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.47179038
delta logL = 0.511960566202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8880       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6046       1.0000          .0000       5.0000    
     3 'Normalizat'    .90721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0450       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.

 FCN=   9240.472     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8823        4.5550        .45472E-03    .74850E-02
   2  alpha         1.6040        .49481        .41720       -.32236E-04
   3  Normalizat    .90750        .18504        .90488E-01    .46316E-04
   4  Prefactor     1.0449        .77204E-01    .40214E-01    .50863E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88229
  alpha      = 1.60403
  Normalizat = 0.907497
  Prefactor  = 1.0449
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.472     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8823        3.6100        .74390E-04   -1.5664    
   2  alpha         1.6040        .46880        .15391E-01   -.36654    
   3  Normalizat    .90750        .20064        .40079E-03   -.96197    
   4  Prefactor     1.0449        .84233E-01    .15630E-03   -.91248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51474e-12
Minuit parameter uncertainties:
  1  3.60997
  2  0.47201
  3  0.200805
  4  0.0842432
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) = 9240.47178775
delta logL = 0.511963197996

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  4.882e+00  3.610e+00  0.000e+00  1.000e+06 ( 1.000e-12)
291        alpha:  1.604e+00  4.720e-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:  1.045e+00  8.424e-02  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:  9.075e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.38
Ra Dec: 44.858 7.783
Photon Index (Free Index): 1.60 +/- 0.47
Photon Flux (Free Index): 2.57e-08 +/- 2.27e-08
Energy Flux (Free Index): 3.98e-05 +/- 4.19e-05

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/18860040/cmap_HighResolution_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='3.98e-05', photon_flux_error='2.87e-08', dlogl='5.12e-01', energy_flux='1.95e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2023-07-10 08:34:51.019887', photon_index_error2='0.47', photon_index2='1.60', ts='4.35', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='4.19e-05', EG='0.90', time_epoch_completed='1689003291.02', return_code='0', job_id='18860040', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.27e-08', ts2='5.38', photon_index='2.12' WHERE bin_id='1816' AND source_name='4FGL J0259.4+0746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:34:51 PDT 2023

ile=/lscratch/kocevski/18861045/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits
.....................!
real 7.21
user 6.71
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18861045/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18861045/expmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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/18861045/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits
.....................!
real 59.88
user 55.49
sys 3.71

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/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits scfile=/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18861045/cmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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.51
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits scfile=/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits outfile=/lscratch/kocevski/18861045/cmap_HighResolution_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.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.52
user 0.21
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits', '/lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits', expMap='/lscratch/kocevski/18861045/expmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits', expCube='/lscratch/kocevski/18861045/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18861045/Model_4FGL_J0259.4+0746_daily_bin1816.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/18861045/ft1_filtered_4FGL_J0259.4+0746_daily_bin1816.fits
Spacecraft file(s): /lscratch/kocevski/18861045/ft2_4FGL_J0259.4+0746_daily_bin1816.fits
Exposure map: /lscratch/kocevski/18861045/expmap_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits
Exposure cube: /lscratch/kocevski/18861045/ltcube_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18861045/Model_4FGL_J0259.4+0746_daily_bin1816.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) = 9240.98847722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3775       1.0000          .0000       .10000E+07
     2 'norm      '    2.2200       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7179       1.0000          .0000       .10000E+07
     4 'Prefactor '    120.12       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27669E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11448E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32439E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .44891       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27547       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30749E-04   1.0000          .0000       .10000E+07
    11 'norm      '    7.4338       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.000       1.0000          .0000       .10000E+07
    13 'Prefactor '    .66632E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    14.421       1.0000          .0000       .10000E+07
    15 'Prefactor '    .37271E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.4543       1.0000          .0000       .10000E+07
    17 'norm      '    2.0700       1.0000          .0000       .10000E+07
    18 'norm      '    4.3787       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10623E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .84033E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .35597E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    6.2271       1.0000          .0000       .10000E+07
    23 'Prefactor '    .26343E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .63980E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .89575       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0465       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=   9240.984     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2254 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3768        2.8146        .20907E-07   -.41514E-03
   2  norm          2.2193        1.2938        .95099E-07    .31275E-02
   3  Prefactor     1.7353        37.071       -.10751E-05   -.41501E-01
   4  Prefactor     120.19        10.640        .56311E-06   -.19624    
   5  Prefactor     .16098E-08    24.544       -.37460E-05** at limit **
   6  Prefactor     .33463E-05    43.811        .20099E-05** at limit **
   7  Prefactor     .26495E-06    4.5316       -.12105E-05** at limit **
   8  norm          .44882        .40631       -.50932E-07   -.72940E-02
   9  Prefactor     .38858E-09    35.684        .35304E-06** at limit **
  10  Prefactor     .61062E-08    10.254        .81549E-06** at limit **
  11  norm          7.4441        9.8304        .37433E-06    .11979E-02
  12  Prefactor     10.042        2.4884       -.82577E-07   -.63343E-02
  13  Prefactor      .0000        18.863       -.21064E-05** at limit **
  14  Prefactor     14.024        23.100       -.28531E-05    .72781E-01
  15  Prefactor     .75284E-06    8.2403        .46003E-05** at limit **
  16  Prefactor     5.4682        4.8172        .38555E-06   -.18546E-02
  17  norm          2.0338        5.4141       -.15493E-05    .11359E-02
  18  norm          4.3743        3.1460        .38235E-06    .33413E-02
  19  Prefactor     .11102E-09    3.9113        .87365E-07** at limit **
  20  norm           .0000        2.3517        .35401E-06** at limit **
  21  Prefactor     .32851E-06    4.3700       -.13178E-05** at limit **
  22  Prefactor     6.1980        4.1566        .32561E-06    .34963E-02
  23  Prefactor     .97533E-07    23.881        .37254E-05** at limit **
  24  norm          .13274E-05    12.458       -.70749E-06** at limit **
  25  Normalizat    .89584        .20937       -.17388E-04   -.48419E-04
  26  Prefactor     1.0467        .85363E-01    .54738E-05   -.14289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37682
  norm       = 2.21928
  Prefactor  = 1.73525
  Prefactor  = 120.191
  Prefactor  = 1.60982e-09
  Prefactor  = 3.34627e-06
  Prefactor  = 2.64955e-07
  norm       = 0.448823
  Prefactor  = 3.88578e-10
  Prefactor  = 6.10623e-09
  norm       = 7.44412
  Prefactor  = 10.0424
  Prefactor  = 0
  Prefactor  = 14.0243
  Prefactor  = 7.52842e-07
  Prefactor  = 5.46818
  norm       = 2.0338
  norm       = 4.37426
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 3.28515e-07
  Prefactor  = 6.19803
  Prefactor  = 9.75331e-08
  norm       = 1.32738e-06
  Normalizat = 0.895836
  Prefactor  = 1.04668
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.984     FROM HESSE     STATUS=OK           516 CALLS     2770 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3768        2.9358        .66413E-03   -1.5677    
   2  norm          2.2193        1.2964        .68990E-03   -1.5678    
   3  Prefactor     1.7353        76.259        .80133E-03   -1.5682    
   4  Prefactor     120.19        79.783        .91247E-04   -1.5489    
   5  Prefactor     .16098E-08    35.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33463E-05    52.585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26495E-06    9.3414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44882        .47645        .13208E-02   -1.5695    
   9  Prefactor     .38858E-09    35.521        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61062E-08    10.470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4441        9.8452        .36761E-03   -1.5653    
  12  Prefactor     10.042        15.487        .31662E-03   -1.5645    
  13  Prefactor      .0000        18.780        .14931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.024        45.135        .26349E-03   -1.5633    
  15  Prefactor     .75284E-06    8.7546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4682        4.8190        .43001E-03   -1.5661    
  17  norm          2.0338        5.4625        .71773E-03   -1.5679    
  18  norm          4.3743        3.1519        .48108E-03   -1.5666    
  19  Prefactor     .11102E-09    3.8882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.3535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .32851E-06    9.1228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1980        4.1578        .40204E-03   -1.5658    
  23  Prefactor     .97533E-07    45.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .13274E-05    4.3256        .68207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89584        .19716        .91004E-01   -.96607    
  26  Prefactor     1.0467        .78208E-01    .40117E-01   -.91189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21998e-06
Minuit parameter uncertainties:
  1  2.93576
  2  1.29643
  3  23.0072
  4  79.7836
  5  0.000474516
  6  0.0265306
  7  0.00314648
  8  0.476449
  9  0.000239977
  10  0.000506328
  11  9.8452
  12  15.4873
  13  4.51811e-06
  14  45.1362
  15  0.00513456
  16  4.81905
  17  5.4625
  18  3.15188
  19  4.24384e-05
  20  3.90207e-06
  21  0.00346237
  22  4.15777
  23  0.00419823
  24  0.00479234
  25  0.197317
  26  0.0782164
Done.

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

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  4.374e+00  3.152e+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:  1.047e+00  7.822e-02  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.958e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 44.858 7.783
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.41e-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) = 9240.48568151
delta logL = 0.49806944083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.47179038
delta logL = 0.511960566202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8880       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6046       1.0000          .0000       5.0000    
     3 'Normalizat'    .90721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0450       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.

 FCN=   9240.472     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8823        4.5550        .45472E-03    .74850E-02
   2  alpha         1.6040        .49481        .41720       -.32236E-04
   3  Normalizat    .90750        .18504        .90488E-01    .46316E-04
   4  Prefactor     1.0449        .77204E-01    .40214E-01    .50863E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88229
  alpha      = 1.60403
  Normalizat = 0.907497
  Prefactor  = 1.0449
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.472     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8823        3.6100        .74390E-04   -1.5664    
   2  alpha         1.6040        .46880        .15391E-01   -.36654    
   3  Normalizat    .90750        .20064        .40079E-03   -.96197    
   4  Prefactor     1.0449        .84233E-01    .15630E-03   -.91248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51474e-12
Minuit parameter uncertainties:
  1  3.60997
  2  0.47201
  3  0.200805
  4  0.0842432
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) = 9240.47178775
delta logL = 0.511963197996

Extracting fit parameters...

4FGL J0259.4+0746
   Spectrum: LogParabola
290         norm:  4.882e+00  3.610e+00  0.000e+00  1.000e+06 ( 1.000e-12)
291        alpha:  1.604e+00  4.720e-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:  1.045e+00  8.424e-02  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:  9.075e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.38
Ra Dec: 44.858 7.783
Photon Index (Free Index): 1.60 +/- 0.47
Photon Flux (Free Index): 2.57e-08 +/- 2.27e-08
Energy Flux (Free Index): 3.98e-05 +/- 4.19e-05

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/18861045/cmap_HighResolution_710035201_710294401_4FGL_J0259.4+0746_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='3.98e-05', photon_flux_error='2.87e-08', dlogl='5.12e-01', energy_flux='1.95e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2023-07-10 08:38:34.812668', photon_index_error2='0.47', photon_index2='1.60', ts='4.35', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='4.19e-05', EG='0.90', time_epoch_completed='1689003514.81', return_code='0', job_id='18861045', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.27e-08', ts2='5.38', photon_index='2.12' WHERE bin_id='1816' AND source_name='4FGL J0259.4+0746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:38:35 PDT 2023

