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


Performing analysis on: 4FGL_J1056.8+7012_weekly_bin855
RA = 164.208, Dec = 70.2019
tmin = 756086401, tmax = 756691201
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='60728948', job_status='RUN', time_executed='2024-12-24 03:32:27.523042', time_epoch_executed='1735039947.52' WHERE source_name='4FGL J1056.8+7012' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60728948

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60728948/ft1_4FGL_J1056.8+7012_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60728948/ft1_4FGL_J1056.8+7012_weekly_bin855.fits outfile=/lscratch/kocevski/60728948/ft1_filteredMKT_4FGL_J1056.8+7012_weekly_bin855.fits ra=164.208 dec=70.2019 rad=12.0 tmin=756086401.0 tmax=756691201.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.28
user 2.68
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.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/60728948/ft1_filteredMKT_4FGL_J1056.8+7012_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.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.24
sys 0.13

Number of photons that the gtmktime cut: 1067

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60728948/ltcube_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.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/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits
.....................!
real 14.02
user 13.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60728948/ltcube_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.fits outfile=/lscratch/kocevski/60728948/expmap_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.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/60728948/ltcube_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.fits
.....................!
real 71.42
user 66.22
sys 4.27

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

Setting source of interest to:
4FGL J1056.8+7012 @ 164.208 70.2019

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits scfile=/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits outfile=/lscratch/kocevski/60728948/cmap_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.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=164.208 yref=70.2019 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.49
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits scfile=/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits outfile=/lscratch/kocevski/60728948/cmap_HighResolution_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.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=164.208 yref=70.2019 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.61
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60728948/Model_4FGL_J1056.8+7012_weekly_bin855.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/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits.....................!
real 51.62
user 49.30
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits', '/lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits', expMap='/lscratch/kocevski/60728948/expmap_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.fits', expCube='/lscratch/kocevski/60728948/ltcube_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60728948/Model_4FGL_J1056.8+7012_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1056.8+7012'

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  1.645e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
383        alpha:  2.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
384         beta:  1.139e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60728948/ft1_filtered_4FGL_J1056.8+7012_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60728948/ft2_4FGL_J1056.8+7012_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60728948/expmap_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60728948/ltcube_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60728948/Model_4FGL_J1056.8+7012_weekly_bin855.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) = 11356.8910232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2758       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13342       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.8300       1.0000          .0000       .10000E+07
     4 'Prefactor '    .52494E-03   1.0000          .0000       .10000E+07
     5 'norm      '    1.6183       1.0000          .0000       .10000E+07
     6 'norm      '    10.069       1.0000          .0000       .10000E+07
     7 'Prefactor '    45.695       1.0000          .0000       .10000E+07
     8 'Prefactor '    40.527       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.6721       1.0000          .0000       .10000E+07
    10 'norm      '    .22582E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .16748E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.3956       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57021E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .20595E-07   1.0000          .0000       .10000E+07
    15 'norm      '    3.9098       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36774E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    63.671       1.0000          .0000       .10000E+07
    18 'Prefactor '    17.657       1.0000          .0000       .10000E+07
    19 'Prefactor '    .45243       1.0000          .0000       .10000E+07
    20 'norm      '    2.3845       1.0000          .0000       .10000E+07
    21 'Prefactor '    .27028E-06   1.0000          .0000       .10000E+07
    22 'norm      '    .44514E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .82617E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .18582E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .14158E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    9.1001       1.0000          .0000       .10000E+07
    27 'norm      '    1.8293       1.0000          .0000       .10000E+07
    28 'norm      '    2.7274       1.0000          .0000       .10000E+07
    29 'Normalizat'    .78149       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1449       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11353.49     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1674 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2837        1.8791        .24469E-07   -.40080E-03
   2  Prefactor     .81601E-08    4.2354       -.31736E-05** at limit **
   3  Prefactor     1.8051        6.5419        .36758E-07    .45892E-03
   4  Prefactor      .0000        3.1350       -.61864E-07** at limit **
   5  norm          1.6178        .59137       -.82981E-08    .82574E-03
   6  norm          10.427        6.0406        .67312E-06   -.23008E-02
   7  Prefactor     46.130        13.190        .33357E-06    .26996E-01
   8  Prefactor     39.782        38.211       -.15916E-05    .98993E-02
   9  Prefactor     5.7231        8.1450        .18379E-05    .15621E-01
  10  norm          .55511E-10    .62543        .68446E-08** at limit **
  11  norm           .0000        2.3363       -.20880E-07** at limit **
  12  Prefactor     .58509E-07    91.957        .15000E-04** at limit **
  13  Prefactor      .0000        1.5888       -.27563E-07** at limit **
  14  norm           .0000        .14757        .16178E-08** at limit **
  15  norm          3.9114        1.6813        .12614E-07    .21677E-02
  16  Prefactor      .0000        6.9839       -.46915E-06** at limit **
  17  Prefactor     63.874        5.4903       -.66686E-06    .29274E-01
  18  Prefactor     17.530        3.9365        .82933E-06    .33564E-01
  19  Prefactor     .45078        1.5005       -.70018E-08   -.50119E-03
  20  norm          2.3828        5.5551        .58771E-08    .83306E-04
  21  Prefactor     .61062E-09    5.8020        .70473E-06** at limit **
  22  norm           .0000        2.5500       -.13009E-07** at limit **
  23  Prefactor      .0000        3.3869        .28838E-07** at limit **
  24  Prefactor     .92704E-08    17.293       -.50442E-05** at limit **
  25  Prefactor     .51070E-08    14.059        .13511E-05** at limit **
  26  Prefactor     9.1224        2.4765        .59472E-06    .51633E-02
  27  norm          1.8314        2.3231        .17717E-07    .42442E-02
  28  norm          2.7278        2.1870       -.59702E-09    .86856E-03
  29  Normalizat    .78091        .13423       -.54890E-05    .20325E-03
  30  Prefactor     1.1452        .13401        .25834E-05    .16390E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28371
  Prefactor  = 8.16014e-09
  Prefactor  = 1.80513
  Prefactor  = 0
  norm       = 1.61784
  norm       = 10.4268
  Prefactor  = 46.13
  Prefactor  = 39.7822
  Prefactor  = 5.72306
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 5.85088e-08
  Prefactor  = 0
  norm       = 0
  norm       = 3.91143
  Prefactor  = 0
  Prefactor  = 63.8737
  Prefactor  = 17.53
  Prefactor  = 0.450784
  norm       = 2.38278
  Prefactor  = 6.10623e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 9.27036e-09
  Prefactor  = 5.10703e-09
  Prefactor  = 9.12241
  norm       = 1.83142
  norm       = 2.72776
  Normalizat = 0.780909
  Prefactor  = 1.14524
 **********
 **   18 **HESSE 
 **********

 FCN=   11353.49     FROM HESSE     STATUS=OK           652 CALLS     2326 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2837        2.0981        .55922E-03   -1.5672    
   2  Prefactor     .81601E-08    11.238        .13106E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8051        6.5532        .77121E-03   -1.5681    
   4  Prefactor      .0000        3.1237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6178        .59808        .83179E-03   -1.5683    
   6  norm          10.427        11.476        .31553E-03   -1.5643    
   7  Prefactor     46.130        16.514        .14794E-03   -1.5572    
   8  Prefactor     39.782        38.392        .15710E-03   -1.5582    
   9  Prefactor     5.7231        11.112        .42154E-03   -1.5660    
  10  norm          .55511E-10    .62328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.3173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .58509E-07    99.330        .91879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.5846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .14558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9114        1.6918        .51000E-03   -1.5668    
  16  Prefactor      .0000        6.9833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     63.874        24.538        .12533E-03   -1.5548    
  18  Prefactor     17.530        15.532        .23808E-03   -1.5624    
  19  Prefactor     .45078        1.3646        .53837E-02   -1.5695    
  20  norm          2.3828        5.5747        .66305E-03   -1.5677    
  21  Prefactor     .61062E-09    5.8514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.5178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        3.3848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .92704E-08    18.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .51070E-08    14.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.1224        17.508        .33200E-03   -1.5648    
  27  norm          1.8314        2.3364        .77138E-03   -1.5681    
  28  norm          2.7278        2.1889        .61634E-03   -1.5675    
  29  Normalizat    .78091        .13004        .43368E-01   -1.0078    
  30  Prefactor     1.1452        .12173        .36085E-01   -.88033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05936e-08
Minuit parameter uncertainties:
  1  2.09807
  2  0.000604638
  3  6.5532
  4  5.77169e-06
  5  0.598076
  6  11.4759
  7  16.5138
  8  38.3927
  9  11.1119
  10  1.15758e-05
  11  1.01525e-06
  12  0.00482136
  13  9.21369e-06
  14  2.34223e-07
  15  1.69182
  16  2.17182e-05
  17  24.5383
  18  15.5324
  19  1.36458
  20  5.57468
  21  0.000120418
  22  8.84161e-07
  23  5.11945e-06
  24  0.000826903
  25  0.000538412
  26  17.5082
  27  2.33636
  28  2.18892
  29  0.130091
  30  0.121756
Done.

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

Extracting fit parameters...

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  3.911e+00  1.692e+00  0.000e+00  1.000e+06 ( 1.000e-12)
383        alpha:  2.669e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
384         beta:  1.139e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.145e+00  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  7.809e-01  1.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.15
Ra Dec: 164.208 70.202
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 7.49e-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) = 11353.1244738
delta logL = 0.365027783861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11353.1242695
delta logL = 0.365232031358

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11353.12     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      262 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3856        37.706        .43285E-03    .31215E-02
   2  alpha         2.3162        3.6528        .31866        .77193E-04
   3  Normalizat    .79434        .67103E-01    .43537E-01    .36277E-04
   4  Prefactor     1.1371        .51270E-01    .36320E-01    .68001E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38558
  alpha      = 2.31625
  Normalizat = 0.794337
  Prefactor  = 1.13713
 **********
 **   18 **HESSE 
 **********

 FCN=   11353.12     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3856        2.7690        .10326E-04   -1.5662    
   2  alpha         2.3162        .40853        .11749E-01   -.73567E-01
   3  Normalizat    .79434        .13176        .26889E-03   -1.0028    
   4  Prefactor     1.1371        .13066        .22764E-03   -.88288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59022e-09
Minuit parameter uncertainties:
  1  2.769
  2  0.410381
  3  0.13181
  4  0.130698
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) = 11353.1242684
delta logL = 0.365233125556

Extracting fit parameters...

4FGL J1056.8+7012
   Spectrum: LogParabola
382         norm:  5.386e+00  2.769e+00  0.000e+00  1.000e+06 ( 1.000e-12)
383        alpha:  2.316e+00  4.104e-01  0.000e+00  5.000e+00 ( 1.000e+00)
384         beta:  1.139e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
385           Eb:  9.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
729    Prefactor:  1.137e+00  1.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
730        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
731        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
728   Normalization:  7.943e-01  1.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.84
Ra Dec: 164.208 70.202
Photon Index (Free Index): 2.32 +/- 0.41
Photon Flux (Free Index): 5.30e-08 +/- 2.75e-08
Energy Flux (Free Index): 1.98e-05 +/- 9.32e-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/60728948/cmap_HighResolution_756086401_756691201_4FGL_J1056.8+7012_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='1.98e-05', photon_flux_error='2.78e-08', dlogl='3.65e-01', energy_flux='1.73e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2024-12-24 03:40:10.927720', photon_index_error2='0.41', photon_index2='2.32', ts='9.15', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='9.32e-06', EG='0.78', time_epoch_completed='1735040410.93', return_code='0', job_id='60728948', GAL2='1.14', EG2='0.79', return_code2='0', energy_flux_error='7.49e-06', photon_flux_error2='2.75e-08', ts2='9.84', photon_index='2.67' WHERE bin_id='855' AND source_name='4FGL J1056.8+7012' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 03:40:11 PST 2024

