/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_J1048.4+7143_weekly_bin853
RA = 162.107, Dec = 71.7297
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='59977323', job_status='RUN', time_executed='2024-12-10 00:26:33.170489', time_epoch_executed='1733819193.17' WHERE source_name='4FGL J1048.4+7143' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59977323

Creating custom pfile directory:
/lscratch/kocevski/59977323/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/59977323/ft1_4FGL_J1048.4+7143_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/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59977323/ft1_4FGL_J1048.4+7143_weekly_bin853.fits outfile=/lscratch/kocevski/59977323/ft1_filteredMKT_4FGL_J1048.4+7143_weekly_bin853.fits ra=162.107 dec=71.7297 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.81
user 3.32
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_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/59977323/ft1_filteredMKT_4FGL_J1048.4+7143_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_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.52
user 0.26
sys 0.16

Number of photons that the gtmktime cut: 1950

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59977323/ltcube_754876801_755481601_4FGL_J1048.4+7143_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/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits
.....................!
real 23.34
user 22.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59977323/ltcube_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.fits outfile=/lscratch/kocevski/59977323/expmap_754876801_755481601_4FGL_J1048.4+7143_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/59977323/ltcube_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.fits
.....................!
real 73.04
user 68.09
sys 4.43

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

Setting source of interest to:
4FGL J1048.4+7143 @ 162.107 71.7297

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits scfile=/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits outfile=/lscratch/kocevski/59977323/cmap_754876801_755481601_4FGL_J1048.4+7143_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=162.107 yref=71.7297 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.27
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits scfile=/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits outfile=/lscratch/kocevski/59977323/cmap_HighResolution_754876801_755481601_4FGL_J1048.4+7143_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=162.107 yref=71.7297 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.54
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59977323/Model_4FGL_J1048.4+7143_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/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits.....................!
real 90.01
user 88.59
sys 0.79

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits', '/lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits', expMap='/lscratch/kocevski/59977323/expmap_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.fits', expCube='/lscratch/kocevski/59977323/ltcube_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59977323/Model_4FGL_J1048.4+7143_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1048.4+7143'

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  2.733e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59977323/ft1_filtered_4FGL_J1048.4+7143_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59977323/ft2_4FGL_J1048.4+7143_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59977323/expmap_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59977323/ltcube_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59977323/Model_4FGL_J1048.4+7143_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) = 21033.5647495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23729E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.5067       1.0000          .0000       .10000E+07
     3 'norm      '    4.0619       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51522E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .77965E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .64055       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3149       1.0000          .0000       .10000E+07
     8 'norm      '    2.8807       1.0000          .0000       .10000E+07
     9 'norm      '    .15071E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    22.269       1.0000          .0000       .10000E+07
    11 'Prefactor '    .35305E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    26.871       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.2773       1.0000          .0000       .10000E+07
    14 'norm      '    .97879       1.0000          .0000       .10000E+07
    15 'norm      '    3.0925       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.542       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13947E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .52141       1.0000          .0000       .10000E+07
    19 'norm      '    1.2934       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
    21 'Prefactor '    .78426E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .10381E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .43021E-07   1.0000          .0000       .10000E+07
    24 'Prefactor '    .80491E-07   1.0000          .0000       .10000E+07
    25 'Prefactor '    5.2218       1.0000          .0000       .10000E+07
    26 'Prefactor '    22.836       1.0000          .0000       .10000E+07
    27 'norm      '    3.0730       1.0000          .0000       .10000E+07
    28 'norm      '    2.1869       1.0000          .0000       .10000E+07
    29 'Prefactor '    16.081       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21031.20     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1695 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        22.046       -.62597E-07** at limit **
   2  Prefactor     5.5077        3.2379       -.22456E-06   -.13254E-02
   3  norm          4.0623        1.5854        .11910E-09    .94824E-04
   4  Prefactor     .14433E-08    19.539       -.10581E-06** at limit **
   5  Prefactor     .23204E-07    2.9769       -.36825E-06** at limit **
   6  Prefactor     .66691        1.3986       -.19159E-06   -.20480E-01
   7  Prefactor     2.3632        6.1943       -.37942E-07   -.25296E-02
   8  norm          2.8796        .53334       -.32434E-07   -.21219E-02
   9  norm          .10214E-07    3.8756        .51822E-06** at limit **
  10  Prefactor     22.239        5.4368        .26930E-06   -.11107E-01
  11  Prefactor     .13045E-07    2.3298       -.29414E-06** at limit **
  12  Prefactor     26.486        16.544       -.86631E-06   -.27018E-01
  13  Prefactor     1.7014        1.5660        .10353E-06   -.76789E-03
  14  norm          .94824        .90638        .20388E-06    .40881E-03
  15  norm          3.1022        2.7201       -.83947E-07   -.11924E-02
  16  Prefactor     23.425        17.842       -.10445E-05    .87839E-01
  17  Prefactor     .20539E-08    2.2424        .83360E-07** at limit **
  18  norm          .52212        .28625        .20953E-07    .72823E-03
  19  norm          1.2945        .94060       -.15101E-06   -.16943E-02
  20  Prefactor     2.5415        4.2441        .10275E-06   -.33306E-03
  21  Prefactor     .16653E-09    1.5089        .32503E-06** at limit **
  22  Prefactor      .0000        .71407        .32514E-06** at limit **
  23  norm          .77716E-09    1.9421       -.38157E-06** at limit **
  24  Prefactor     .34750E-07    1.6003        .45972E-06** at limit **
  25  Prefactor     5.1810        1.5013       -.11917E-06    .19134E-03
  26  Prefactor     22.770        6.8344       -.16603E-06   -.17620    
  27  norm          3.0743        2.2183        .14159E-06   -.30534E-03
  28  norm          2.1863        1.3297        .77697E-07    .89773E-03
  29  Prefactor     16.591        14.331        .77820E-07   -.40510E-01
  30  Normalizat    1.1101        .10629       -.66632E-05   -.98596E-05
  31  Prefactor     .88137        .96893E-01    .80941E-05    .70541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 5.50772
  norm       = 4.06235
  Prefactor  = 1.44329e-09
  Prefactor  = 2.32037e-08
  Prefactor  = 0.666909
  Prefactor  = 2.36324
  norm       = 2.87959
  norm       = 1.02141e-08
  Prefactor  = 22.2392
  Prefactor  = 1.30451e-08
  Prefactor  = 26.4856
  Prefactor  = 1.70143
  norm       = 0.948243
  norm       = 3.10218
  Prefactor  = 23.4253
  Prefactor  = 2.05391e-09
  norm       = 0.522123
  norm       = 1.29447
  Prefactor  = 2.54153
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  norm       = 7.77156e-10
  Prefactor  = 3.475e-08
  Prefactor  = 5.18098
  Prefactor  = 22.7704
  norm       = 3.07426
  norm       = 2.18627
  Prefactor  = 16.5914
  Normalizat = 1.1101
  Prefactor  = 0.881368
 **********
 **   18 **HESSE 
 **********

 FCN=   21031.20     FROM HESSE     STATUS=OK           692 CALLS     2387 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.843        .16803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5077        3.2401        .42793E-03   -1.5661    
   3  norm          4.0623        1.5899        .50004E-03   -1.5668    
   4  Prefactor     .14433E-08    19.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .23204E-07    3.2569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66691        14.390        .65672E-03   -1.5692    
   7  Prefactor     2.3632        6.2341        .67400E-03   -1.5677    
   8  norm          2.8796        .53632        .59857E-03   -1.5674    
   9  norm          .10214E-07    3.9009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.239        10.615        .21196E-03   -1.5614    
  11  Prefactor     .13045E-07    2.4446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.486        22.960        .19295E-03   -1.5605    
  13  Prefactor     1.7014        14.755        .98248E-03   -1.5682    
  14  norm          .94824        1.2296        .43013E-03   -1.5688    
  15  norm          3.1022        2.7910        .57644E-03   -1.5673    
  16  Prefactor     23.425        34.326        .20615E-03   -1.5611    
  17  Prefactor     .20539E-08    2.2288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .52212        .29349        .76584E-03   -1.5694    
  19  norm          1.2945        .96246        .97272E-03   -1.5685    
  20  Prefactor     2.5415        4.3577        .63783E-03   -1.5676    
  21  Prefactor     .16653E-09    2.9393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        .71171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .77716E-09    1.9435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .34750E-07    2.8216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.1810        21.390        .43965E-03   -1.5662    
  26  Prefactor     22.770        11.944        .20932E-03   -1.5613    
  27  norm          3.0743        2.2218        .57838E-03   -1.5673    
  28  norm          2.1863        1.3341        .69574E-03   -1.5678    
  29  Prefactor     16.591        15.010        .24949E-03   -1.5626    
  30  Normalizat    1.1101        .95106E-01    .55255E-01   -.89428    
  31  Prefactor     .88137        .86140E-01    .44764E-01   -.96795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33354e-06
Minuit parameter uncertainties:
  1  2.70828e-05
  2  3.24008
  3  1.58986
  4  0.000339259
  5  0.000550126
  6  6.19566
  7  6.2341
  8  0.536324
  9  0.000399082
  10  10.6151
  11  0.000356848
  12  22.96
  13  10.0208
  14  1.2296
  15  2.79102
  16  34.3261
  17  0.000135147
  18  0.29349
  19  0.962463
  20  4.35774
  21  4.18994e-05
  22  2.70634e-06
  23  7.79306e-05
  24  0.000626131
  25  21.0544
  26  11.9443
  27  2.22178
  28  1.33409
  29  15.0101
  30  0.0951202
  31  0.086153
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  5.221e-01  2.935e-01  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  8.814e-01  8.615e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.110e+00  9.512e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.38
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 6.02e-06

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) = 21030.8199412
delta logL = 0.381491962726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21030.7924633
delta logL = 0.408969832792

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21030.79     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49398        2.1240        .79316E-03    .28671E-01
   2  alpha         2.6949        3.7052        .41311        .13566E-03
   3  Normalizat    1.0927        .27081E-01    .55597E-01    .65867E-04
   4  Prefactor     .88826        .23025E-01    .44855E-01    .12330E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.49398
  alpha      = 2.69485
  Normalizat = 1.09271
  Prefactor  = 0.888255
 **********
 **   18 **HESSE 
 **********

 FCN=   21030.79     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49398        .27668        .44979E-05   -1.5694    
   2  alpha         2.6949        .55131        .17987E-01    .78021E-01
   3  Normalizat    1.0927        .10575        .24584E-03   -.89986    
   4  Prefactor     .88826        .96423E-01    .24932E-03   -.96553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47899e-11
Minuit parameter uncertainties:
  1  0.276676
  2  0.555906
  3  0.105772
  4  0.0964418
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) = 21030.7924633
delta logL = 0.408969845954

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  4.940e-01  2.767e-01  0.000e+00  1.000e+06 ( 1.000e-11)
390        alpha:  2.695e+00  5.559e-01  0.000e+00  5.000e+00 ( 1.000e+00)
391         beta:  8.500e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  8.883e-01  9.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.093e+00  1.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.20
Ra Dec: 162.107 71.730
Photon Index (Free Index): 2.69 +/- 0.56
Photon Flux (Free Index): 4.56e-08 +/- 2.77e-08
Energy Flux (Free Index): 1.14e-05 +/- 5.18e-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/59977323/cmap_HighResolution_754876801_755481601_4FGL_J1048.4+7143_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='1.14e-05', photon_flux_error='1.50e-08', dlogl='4.09e-01', energy_flux='1.07e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2024-12-10 00:38:46.153217', photon_index_error2='0.56', photon_index2='2.69', ts='8.38', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='5.18e-06', EG='1.11', time_epoch_completed='1733819926.15', return_code='0', job_id='59977323', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='6.02e-06', photon_flux_error2='2.77e-08', ts2='9.20', photon_index='2.20' WHERE bin_id='853' AND source_name='4FGL J1048.4+7143' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:38:46 PST 2024

