/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 14872
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1044.6+8053_weekly_bin854
RA = 161.164, Dec = 80.8941
tmin = 755481601, tmax = 756086401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='60351673', job_status='RUN', time_executed='2024-12-17 00:26:58.059621', time_epoch_executed='1734424018.06' WHERE source_name='4FGL J1044.6+8053' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351673

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351673/ft1_4FGL_J1044.6+8053_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351673/ft1_4FGL_J1044.6+8053_weekly_bin854.fits outfile=/lscratch/kocevski/60351673/ft1_filteredMKT_4FGL_J1044.6+8053_weekly_bin854.fits ra=161.164 dec=80.8941 rad=12.0 tmin=755481601.0 tmax=756086401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.11
user 3.71
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/60351673/ft1_filteredMKT_4FGL_J1044.6+8053_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.43
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1870

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351673/ltcube_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits
.....................!
real 15.79
user 15.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351673/ltcube_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits outfile=/lscratch/kocevski/60351673/expmap_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/60351673/ltcube_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits
.....................!
real 59.18
user 55.38
sys 3.41

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

Setting source of interest to:
4FGL J1044.6+8053 @ 161.164 80.8941

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits scfile=/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits outfile=/lscratch/kocevski/60351673/cmap_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=161.164 yref=80.8941 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.40
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits scfile=/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits outfile=/lscratch/kocevski/60351673/cmap_HighResolution_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=161.164 yref=80.8941 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.41
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351673/Model_4FGL_J1044.6+8053_weekly_bin854.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits.....................!
real 76.53
user 75.15
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits', '/lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits', expMap='/lscratch/kocevski/60351673/expmap_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits', expCube='/lscratch/kocevski/60351673/ltcube_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351673/Model_4FGL_J1044.6+8053_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1044.6+8053'

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  2.944e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351673/ft1_filtered_4FGL_J1044.6+8053_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351673/ft2_4FGL_J1044.6+8053_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351673/expmap_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351673/ltcube_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351673/Model_4FGL_J1044.6+8053_weekly_bin854.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000          .0000       .10000E+07
     2 'norm      '    18.772       1.0000          .0000       .10000E+07
     3 'norm      '    .84310E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .33631E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.5010       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13730E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.9017       1.0000          .0000       .10000E+07
     8 'Prefactor '    40.795       1.0000          .0000       .10000E+07
     9 'Prefactor '    .48109E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .47657E-03   1.0000          .0000       .10000E+07
    11 'norm      '    2.7229       1.0000          .0000       .10000E+07
    12 'Prefactor '    .77832E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .87153E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .79657       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.5683       1.0000          .0000       .10000E+07
    16 'Prefactor '    .25714       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60740E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    30.141       1.0000          .0000       .10000E+07
    19 'norm      '    2.5461       1.0000          .0000       .10000E+07
    20 'norm      '    1.6561       1.0000          .0000       .10000E+07
    21 'Prefactor '    17.739       1.0000          .0000       .10000E+07
    22 'Prefactor '    3.5534       1.0000          .0000       .10000E+07
    23 'Prefactor '    12.867       1.0000          .0000       .10000E+07
    24 'Prefactor '    .87705E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .25517E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19881.63     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1941 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41078E-08    6.2381       -.69491E-06** at limit **
   2  norm          18.771        1.0815        .10451E-07    .18640E-02
   3  norm           .0000        2.9921       -.25474E-06** at limit **
   4  Prefactor     .43188E-07    4.7692        .45584E-06** at limit **
   5  Prefactor     4.5002        2.5343        .70421E-07   -.85435E-03
   6  Prefactor     .83267E-09    5.2180       -.49704E-06** at limit **
   7  Prefactor     5.8649        4.7326       -.11182E-06    .40388E-03
   8  Prefactor     40.688        8.9638       -.12409E-06   -.27746E-02
   9  Prefactor     .30365E-07    4.5547       -.36910E-06** at limit **
  10  Prefactor     .65004E-07    4.0146        .17924E-06** at limit **
  11  norm          2.7217        3.1043       -.25570E-06   -.19020E-02
  12  Prefactor      .0000        1.6553       -.20891E-06** at limit **
  13  norm           .0000        .27552        .57017E-07** at limit **
  14  norm          .79691        1.0195       -.28065E-07   -.92539E-03
  15  Prefactor     8.5742        6.9624        .59181E-06    .30484E-02
  16  Prefactor     .25318        3.4152        .58963E-06   -.67977E-03
  17  Prefactor      .0000        1.6878       -.18680E-06** at limit **
  18  Prefactor     30.282        4.5585        .21308E-06   -.28315E-01
  19  norm          2.5451        1.9940        .39156E-07   -.23130E-02
  20  norm          1.6559        1.2108       -.18177E-07   -.11575E-02
  21  Prefactor     17.640        1.3050        .38253E-07    .25724E-02
  22  Prefactor     3.5451        6.8662        .47788E-06    .97844E-03
  23  Prefactor     12.862        1.7182        .29254E-07    .41224E-02
  24  Prefactor     .61062E-09    18.119       -.71002E-06** at limit **
  25  Prefactor     .14988E-08    15.750        .16512E-05** at limit **
  26  Normalizat    1.0113        .11313       -.37929E-05    .89917E-04
  27  Prefactor     .96490        .74444E-01    .16392E-05    .12095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10783e-09
  norm       = 18.7713
  norm       = 0
  Prefactor  = 4.31877e-08
  Prefactor  = 4.50024
  Prefactor  = 8.32667e-10
  Prefactor  = 5.86494
  Prefactor  = 40.6875
  Prefactor  = 3.03646e-08
  Prefactor  = 6.50036e-08
  norm       = 2.7217
  Prefactor  = 0
  norm       = 0
  norm       = 0.796906
  Prefactor  = 8.57423
  Prefactor  = 0.253178
  Prefactor  = 0
  Prefactor  = 30.2817
  norm       = 2.54512
  norm       = 1.65587
  Prefactor  = 17.6401
  Prefactor  = 3.54514
  Prefactor  = 12.8622
  Prefactor  = 6.10623e-10
  Prefactor  = 1.4988e-09
  Normalizat = 1.01133
  Prefactor  = 0.964897
 **********
 **   18 **HESSE 
 **********

 FCN=   19881.63     FROM HESSE     STATUS=OK           552 CALLS     2493 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41078E-08    6.4311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.771        11.327        .23089E-03   -1.5621    
   3  norm           .0000        2.9938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .43188E-07    7.3045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5002        2.5353        .47433E-03   -1.5666    
   6  Prefactor     .83267E-09    9.8949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8649        4.7323        .41313E-03   -1.5660    
   8  Prefactor     40.688        9.1298        .15658E-03   -1.5580    
   9  Prefactor     .30365E-07    10.531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65004E-07    8.1650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7217        3.1723        .61689E-03   -1.5675    
  12  Prefactor      .0000        1.6447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .13083        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .79691        1.0513        .53191E-03   -1.5690    
  15  Prefactor     8.5742        7.1017        .34221E-03   -1.5649    
  16  Prefactor     .25318        1.1750        .46857E-02   -1.5698    
  17  Prefactor      .0000        1.6856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.282        26.538        .18218E-03   -1.5598    
  19  norm          2.5451        1.9995        .63969E-03   -1.5676    
  20  norm          1.6559        1.2101        .81976E-03   -1.5682    
  21  Prefactor     17.640        17.689        .23753E-03   -1.5624    
  22  Prefactor     3.5451        6.8822        .53593E-03   -1.5670    
  23  Prefactor     12.862        10.257        .27899E-03   -1.5636    
  24  Prefactor     .61062E-09    18.787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .14988E-08    16.629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0113        .10402        .45395E-01   -.92652    
  27  Prefactor     .96490        .66969E-01    .45827E-01   -.93909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01756e-08
Minuit parameter uncertainties:
  1  0.000324483
  2  11.3265
  3  4.96338e-06
  4  0.00112368
  5  2.53527
  6  0.00018414
  7  4.73226
  8  9.12981
  9  0.00113097
  10  0.00145689
  11  3.1723
  12  9.45582e-06
  13  2.45877e-07
  14  1.05132
  15  7.10166
  16  1.09083
  17  2.97871e-06
  18  26.5382
  19  1.99954
  20  1.21006
  21  17.6891
  22  6.88217
  23  10.2568
  24  0.00021254
  25  0.000313291
  26  0.104043
  27  0.0669743
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  2.722e+00  3.172e+00  0.000e+00  1.000e+06 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.649e-01  6.697e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.011e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 161.164 80.894
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 5.32e-06 +/- 6.20e-06

TS (Fixed Index): 1.64
Ra Dec: 161.164 80.894
Photon Flux Upper Limit: 6.32397465791e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.55813329765e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351673/likelihoodResults_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19881.5313122
delta logL = 0.0948885567741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19881.5270847
delta logL = 0.0991161228376

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19881.53     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4870        3.4037        .10825E-03   -.11094E-01
   2  alpha         2.3827        .93626        .39982E-01    .16492E-03
   3  Normalizat    1.0178        .10996        .28275E-03    .16083E-06
   4  Prefactor     .96228        .73758E-01    .19536E-03    .37244E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.48699
  alpha      = 2.38274
  Normalizat = 1.01777
  Prefactor  = 0.962277
 **********
 **   18 **HESSE 
 **********

 FCN=   19881.53     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4870        3.2903        .43299E-05   -1.5671    
   2  alpha         2.3827        .90662        .79964E-02   -.46923E-01
   3  Normalizat    1.0178        .10995        .11310E-04   -.92438    
   4  Prefactor     .96228        .73770E-01    .39072E-04   -.93998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41283e-10
Minuit parameter uncertainties:
  1  3.29032
  2  0.927818
  3  0.109974
  4  0.0737777
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) = 19881.5270847
delta logL = 0.0991161346683

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  3.487e+00  3.290e+00  0.000e+00  1.000e+06 ( 1.000e-12)
344        alpha:  2.383e+00  9.278e-01  0.000e+00  5.000e+00 ( 1.000e+00)
345         beta:  2.167e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.623e-01  7.378e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.018e+00  1.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 161.164 80.894
Photon Index (Free Index): 2.38 +/- 0.93
Photon Flux (Free Index): 1.66e-08 +/- 1.92e-08
Energy Flux (Free Index): 5.50e-06 +/- 4.98e-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/60351673/cmap_HighResolution_755481601_756086401_4FGL_J1044.6+8053_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-05', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='5.50e-06', photon_flux_error='2.51e-08', dlogl='9.91e-02', energy_flux='5.32e-06', photon_flux2='1.66e-08', job_status='DONE', time_completed='2024-12-17 00:38:18.700213', photon_index_error2='0.93', photon_index2='2.38', ts='1.64', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.32e-08', energy_flux_error2='4.98e-06', EG='1.01', time_epoch_completed='1734424698.7', return_code='0', job_id='60351673', GAL2='0.96', EG2='1.02', return_code2='0', energy_flux_error='6.20e-06', photon_flux_error2='1.92e-08', ts2='1.83', photon_index='2.82' WHERE bin_id='854' AND source_name='4FGL J1044.6+8053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:38:18 PST 2024

