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


Performing analysis on: 4FGL_J1112.5+3448_weekly_bin858
RA = 168.147, Dec = 34.8022
tmin = 757900801, tmax = 758505601
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='61724416', job_status='RUN', time_executed='2025-01-14 02:51:28.901693', time_epoch_executed='1736851888.9' WHERE source_name='4FGL J1112.5+3448' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61724416

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61724416/ft1_4FGL_J1112.5+3448_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61724416/ft1_4FGL_J1112.5+3448_weekly_bin858.fits outfile=/lscratch/kocevski/61724416/ft1_filteredMKT_4FGL_J1112.5+3448_weekly_bin858.fits ra=168.147 dec=34.8022 rad=12.0 tmin=757900801.0 tmax=758505601.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.79
user 3.39
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.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/61724416/ft1_filteredMKT_4FGL_J1112.5+3448_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.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.47
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 1113

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61724416/ltcube_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.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/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits
.....................!
real 23.64
user 22.74
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61724416/ltcube_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.fits outfile=/lscratch/kocevski/61724416/expmap_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.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/61724416/ltcube_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.fits
.....................!
real 69.15
user 64.45
sys 4.13

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

Setting source of interest to:
4FGL J1112.5+3448 @ 168.147 34.8022

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits scfile=/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits outfile=/lscratch/kocevski/61724416/cmap_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.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=168.147 yref=34.8022 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits scfile=/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits outfile=/lscratch/kocevski/61724416/cmap_HighResolution_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.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=168.147 yref=34.8022 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.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61724416/Model_4FGL_J1112.5+3448_weekly_bin858.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/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits.....................!
real 39.53
user 37.96
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits', '/lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits', expMap='/lscratch/kocevski/61724416/expmap_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.fits', expCube='/lscratch/kocevski/61724416/ltcube_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61724416/Model_4FGL_J1112.5+3448_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1112.5+3448'

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  9.204e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
314        alpha:  2.369e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.454e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61724416/ft1_filtered_4FGL_J1112.5+3448_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61724416/ft2_4FGL_J1112.5+3448_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61724416/expmap_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61724416/ltcube_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61724416/Model_4FGL_J1112.5+3448_weekly_bin858.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) = 12170.3681423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9697       1.0000          .0000       .10000E+07
     2 'norm      '    .28130E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    88.632       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.521       1.0000          .0000       .10000E+07
     5 'Prefactor '    .38270E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    16.550       1.0000          .0000       .10000E+07
     7 'Prefactor '    .60122E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .28969E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.8104       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16207E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .86421       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10374E-03   1.0000          .0000       .10000E+07
    13 'norm      '    15.354       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13989E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .63113E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.5296       1.0000          .0000       .10000E+07
    17 'norm      '    2.3716       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5167       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.9367       1.0000          .0000       .10000E+07
    20 'Prefactor '    .60216E-03   1.0000          .0000       .10000E+07
    21 'norm      '    2.3836       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24156E-03   1.0000          .0000       .10000E+07
    23 'norm      '    3.4498       1.0000          .0000       .10000E+07
    24 'Prefactor '    .15357E-02   1.0000          .0000       .10000E+07
    25 'norm      '    8.7763       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12170.37     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2448 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9540        1.6406       -.12405E-07   -.30905E-01
   2  norm          .48572E-07    2.4229       -.48633E-07** at limit **
   3  Prefactor     88.670        3.3707        .18734E-07   -.15656    
   4  Prefactor     13.533        5.8801        .83557E-07   -.86181E-01
   5  Prefactor     .69111E-07    2.3882       -.18071E-07** at limit **
   6  Prefactor     16.547        1.0409       -.17747E-08   -.39748E-04
   7  Prefactor     .12212E-08    20.378       -.24273E-07** at limit **
   8  Prefactor     .44853E-07    2.1926       -.12364E-06** at limit **
   9  norm          1.8100        .27479       -.55529E-09   -.43095E-02
  10  Prefactor     .20206E-06    1.8676       -.20693E-06** at limit **
  11  Prefactor     .84859        2.1144        .11726E-06   -.26420E-01
  12  Prefactor     .87041E-07    8.8002        .41122E-07** at limit **
  13  norm          15.356        1.2001       -.11426E-07    .83886E-02
  14  Prefactor     .55511E-10    .52076        .21706E-07** at limit **
  15  Prefactor     .67724E-08    3.7433        .32694E-06** at limit **
  16  Prefactor     7.5675        1.9369        .97533E-08   -.46700E-03
  17  norm          2.3724        1.5509       -.50451E-07   -.58331E-02
  18  Prefactor     2.6653        6.1307        .16437E-07    .37417E-03
  19  Prefactor     2.9311        3.2726       -.26724E-06   -.63448E-02
  20  Prefactor     .17208E-08    3.6760        .32167E-06** at limit **
  21  norm          2.3837        .70139        .23770E-07   -.75188E-03
  22  Prefactor     .14594E-06    2.4274       -.58378E-07** at limit **
  23  norm          3.4645        3.4127        .92190E-08   -.32857E-04
  24  Prefactor     .33307E-09    7.0050        .11837E-06** at limit **
  25  norm          8.7747        1.2879        .54676E-08   -.67185E-04
  26  Normalizat    1.1912        .14954        .28392E-06   -.29073E-03
  27  Prefactor     .75901        .16734       -.26076E-05   -.23561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.95404
  norm       = 4.85723e-08
  Prefactor  = 88.6701
  Prefactor  = 13.533
  Prefactor  = 6.91114e-08
  Prefactor  = 16.5466
  Prefactor  = 1.22125e-09
  Prefactor  = 4.4853e-08
  norm       = 1.81002
  Prefactor  = 2.02061e-07
  Prefactor  = 0.848594
  Prefactor  = 8.70415e-08
  norm       = 15.3563
  Prefactor  = 5.55112e-11
  Prefactor  = 6.77236e-09
  Prefactor  = 7.56754
  norm       = 2.37236
  Prefactor  = 2.66531
  Prefactor  = 2.93113
  Prefactor  = 1.72085e-09
  norm       = 2.38367
  Prefactor  = 1.45939e-07
  norm       = 3.46447
  Prefactor  = 3.33067e-10
  norm       = 8.77474
  Normalizat = 1.19124
  Prefactor  = 0.759014
 **********
 **   18 **HESSE 
 **********

 FCN=   12170.37     FROM HESSE     STATUS=OK           548 CALLS     2996 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9540        7.2513        .33442E-03   -1.5648    
   2  norm          .48572E-07    3.6706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     88.670        69.677        .10623E-03   -1.5520    
   4  Prefactor     13.533        29.858        .27214E-03   -1.5634    
   5  Prefactor     .69111E-07    2.7643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.547        14.384        .24593E-03   -1.5627    
   7  Prefactor     .12212E-08    20.412        .15158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44853E-07    2.7234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8100        .28114        .49202E-03   -1.5681    
  10  Prefactor     .20206E-06    .92756        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .84859        28.117        .48267E-03   -1.5690    
  12  Prefactor     .87041E-07    10.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.356        10.802        .25534E-03   -1.5630    
  14  Prefactor     .55511E-10    .51890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .67724E-08    9.0930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5675        12.889        .36524E-03   -1.5653    
  17  norm          2.3724        1.5644        .66504E-03   -1.5677    
  18  Prefactor     2.6653        7.2429        .64374E-03   -1.5675    
  19  Prefactor     2.9311        3.2945        .59246E-03   -1.5674    
  20  Prefactor     .17208E-08    9.1512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3837        .70315        .66319E-03   -1.5677    
  22  Prefactor     .14594E-06    3.5331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.4645        3.4115        .54427E-03   -1.5671    
  24  Prefactor     .33307E-09    7.1692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.7747        1.2890        .33811E-03   -1.5649    
  26  Normalizat    1.1912        .12992        .53348E-01   -.86874    
  27  Prefactor     .75901        .14297        .74583E-01   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15611e-06
Minuit parameter uncertainties:
  1  7.25132
  2  0.000844594
  3  69.6776
  4  29.8581
  5  0.000874026
  6  14.3844
  7  0.000313384
  8  0.000699024
  9  0.281145
  10  0.000865807
  11  9.76941
  12  0.00188641
  13  10.8021
  14  7.68473e-06
  15  0.000496203
  16  12.8895
  17  1.56438
  18  7.24294
  19  3.29452
  20  0.000250744
  21  0.703152
  22  0.00143623
  23  3.41149
  24  0.00010052
  25  1.28895
  26  0.12995
  27  0.143035
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.536e+01  1.080e+01  0.000e+00  1.000e+06 ( 1.000e-12)
314        alpha:  2.369e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
315         beta:  1.454e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  7.590e-01  1.430e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.191e+00  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 168.147 34.802
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 7.56e-06

TS (Fixed Index): 3.73
Ra Dec: 168.147 34.802
Photon Flux Upper Limit: 8.67607822138e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58986825504e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61724416/likelihoodResults_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.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) = 12170.2072667
delta logL = 0.160596821308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12170.2019012
delta logL = 0.165962413254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.251       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9781       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   12170.20     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      287 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.255        12.320        .10603E-04    .21016E-03
   2  alpha         2.9799        1.1579        .26960E-01    .16221E-04
   3  Normalizat    1.1610        .15756        .23841E-03   -.11349E-03
   4  Prefactor     .78306        .17441        .32551E-03   -.76977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2549
  alpha      = 2.97994
  Normalizat = 1.16101
  Prefactor  = 0.783059
 **********
 **   18 **HESSE 
 **********

 FCN=   12170.20     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.255        11.005        .42410E-06   -1.5632    
   2  alpha         2.9799        1.0398        .10784E-02    .19317    
   3  Normalizat    1.1610        .15610        .95364E-05   -.87816    
   4  Prefactor     .78306        .17309        .13020E-04   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51283e-12
Minuit parameter uncertainties:
  1  11.0052
  2  1.07372
  3  0.156159
  4  0.173212
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) = 12170.2018973
delta logL = 0.165966227802

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  1.425e+01  1.101e+01  0.000e+00  1.000e+06 ( 1.000e-12)
314        alpha:  2.980e+00  1.074e+00  0.000e+00  5.000e+00 ( 1.000e+00)
315         beta:  1.454e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
316           Eb:  4.627e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  7.831e-01  1.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.161e+00  1.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 168.147 34.802
Photon Index (Free Index): 2.98 +/- 1.07
Photon Flux (Free Index): 5.76e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.19e-05 +/- 7.15e-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/61724416/cmap_HighResolution_757900801_758505601_4FGL_J1112.5+3448_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='1.19e-05', photon_flux_error='2.53e-08', dlogl='1.66e-01', energy_flux='1.07e-05', photon_flux2='5.76e-08', job_status='DONE', time_completed='2025-01-14 03:00:33.567078', photon_index_error2='1.07', photon_index2='2.98', ts='3.73', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='8.68e-08', energy_flux_error2='7.15e-06', EG='1.19', time_epoch_completed='1736852433.57', return_code='0', job_id='61724416', GAL2='0.78', EG2='1.16', return_code2='0', energy_flux_error='7.56e-06', photon_flux_error2='4.70e-08', ts2='4.08', photon_index='2.37' WHERE bin_id='858' AND source_name='4FGL J1112.5+3448' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 03:00:33 PST 2025

