 **********
 **   18 **HESSE 
 **********

 FCN=   6494.298     FROM HESSE     STATUS=OK           554 CALLS     3023 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7692        4.5235        .46045E-03   -1.5664    
   2  norm          5.4766        9.9113        .42995E-03   -1.5661    
   3  Prefactor     27.867        31.542        .18934E-03   -1.5602    
   4  Prefactor     .66613E-09    10.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.6038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .37748E-08    11.604        .10023E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14763E-05    35.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    4.3612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8654        .47553        .46067E-03   -1.5674    
  10  Prefactor     1.2260        2.5815        .10158E-02   -1.5686    
  11  Prefactor     2.9233        18.660        .59557E-03   -1.5674    
  12  Prefactor     .96617E-06    17.903        .10902E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3321        6.3425        .67192E-03   -1.5677    
  14  Prefactor      .0000        1.3700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.420        70.097        .15526E-03   -1.5579    
  16  Prefactor     .16653E-09    6.1142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.667        4.6629        .28123E-03   -1.5637    
  18  Prefactor     .27756E-09    4.0912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.0670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12785E-04    27.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5921        .97363        .84045E-03   -1.5683    
  22  Prefactor     10.852        22.452        .30395E-03   -1.5642    
  23  norm          12.120        8.5504        .28773E-03   -1.5638    
  24  Prefactor     .59652E-05    24.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.689        2.4956        .27045E-03   -1.5634    
  26  Normalizat    1.1317        .17422        .36835E-01   -.88741    
  27  Prefactor     .59134        .18956        .79114E-01   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29467e-06
Minuit parameter uncertainties:
  1  4.52346
  2  9.91135
  3  31.5425
  4  0.000164519
  5  1.42248e-06
  6  0.000418157
  7  0.0144413
  8  2.5105e-05
  9  0.475532
  10  2.5815
  11  14.7715
  12  0.00831803
  13  6.34254
  14  5.0255e-07
  15  70.0981
  16  6.3741e-05
  17  4.66292
  18  6.72866e-05
  19  5.34595e-06
  20  0.0374294
  21  0.973626
  22  22.4521
  23  8.55038
  24  0.0243237
  25  2.49558
  26  0.174309
  27  0.189766
/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).

Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  2.332e+00  6.343e+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

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.913e-01  1.898e-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.132e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19652583/likelihoodResults_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.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) = 6494.2976353
delta logL = 3.3464131775e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6494.29763457
delta logL = 3.41919258062e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6494.298     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      230 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3309        6.3168        .26850E-04    .37236E-02
   2  alpha         2.3854        1.7513        .55866E-01   -.95804E-05
   3  Normalizat    1.1316        .18615        .22894E-03    .20311E-03
   4  Prefactor     .59139        .21216        .35038E-03    .11275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3309
  alpha      = 2.38536
  Normalizat = 1.13161
  Prefactor  = 0.591389
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.298     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3309        6.2607        .10740E-05   -1.5677    
   2  alpha         2.3854        1.7408        .22346E-02   -.45872E-01
   3  Normalizat    1.1316        .18627        .45789E-04   -.88743    
   4  Prefactor     .59139        .21228        .14015E-04   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1033e-10
Minuit parameter uncertainties:
  1  6.26076
  2  1.92615
  3  0.186381
  4  0.212564
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) = 6494.2976345
delta logL = 3.42564026141e-05

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  2.331e+00  6.261e+00  0.000e+00  1.000e+06 ( 1.000e-12)
314        alpha:  2.385e+00  1.926e+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:  5.914e-01  2.126e-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.132e+00  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 168.147 34.802

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19652583/cmap_HighResolution_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2023-07-18 00:48:23.377216', job_id='19652583', GAL2='0.59', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1689666503.38', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='3.43e-05', ts2='0.18', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1820' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:48:23 PDT 2023

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


Performing analysis on: 4FGL_J1112.5+3448_daily_bin1820
RA = 168.147, Dec = 34.8022
tmin = 711072001, tmax = 711331201
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='19653676', job_status='RUN', time_executed='2023-07-18 00:47:55.478251', time_epoch_executed='1689666475.48' WHERE source_name='4FGL J1112.5+3448' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19653676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19653676/ft1_4FGL_J1112.5+3448_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19653676/ft1_4FGL_J1112.5+3448_daily_bin1820.fits outfile=/lscratch/kocevski/19653676/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1820.fits ra=168.147 dec=34.8022 rad=12.0 tmin=711072001.0 tmax=711331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.11
user 1.62
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.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/19653676/ft1_filteredMKT_4FGL_J1112.5+3448_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.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.63
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 609

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19653676/ltcube_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.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/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits
.....................!
real 7.35
user 6.79
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19653676/ltcube_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.fits outfile=/lscratch/kocevski/19653676/expmap_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.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/19653676/ltcube_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.fits
.....................!
real 59.97
user 55.84
sys 3.49

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/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.fits scfile=/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits outfile=/lscratch/kocevski/19653676/cmap_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.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.69
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.fits scfile=/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits outfile=/lscratch/kocevski/19653676/cmap_HighResolution_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.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.66
user 0.21
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.fits', '/lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits', expMap='/lscratch/kocevski/19653676/expmap_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.fits', expCube='/lscratch/kocevski/19653676/ltcube_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19653676/Model_4FGL_J1112.5+3448_daily_bin1820.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/19653676/ft1_filtered_4FGL_J1112.5+3448_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19653676/ft2_4FGL_J1112.5+3448_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19653676/expmap_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19653676/ltcube_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19653676/Model_4FGL_J1112.5+3448_daily_bin1820.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) = 6494.30028528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7696       1.0000          .0000       .10000E+07
     2 'norm      '    5.4559       1.0000          .0000       .10000E+07
     3 'Prefactor '    27.903       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12482E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .26862E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21026E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12274E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .84789E-04   1.0000          .0000       .10000E+07
     9 'norm      '    2.8649       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.2271       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.9079       1.0000          .0000       .10000E+07
    12 'Prefactor '    .61875E-01   1.0000          .0000       .10000E+07
    13 'norm      '    2.3278       1.0000          .0000       .10000E+07
    14 'Prefactor '    .73330E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    41.492       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47524E-02   1.0000          .0000       .10000E+07
    17 'norm      '    12.663       1.0000          .0000       .10000E+07
    18 'Prefactor '    .86813E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11057E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21422E-03   1.0000          .0000       .10000E+07
    21 'norm      '    1.5923       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.848       1.0000          .0000       .10000E+07
    23 'norm      '    12.100       1.0000          .0000       .10000E+07
    24 'Prefactor '    .30355E-02   1.0000          .0000       .10000E+07
    25 'norm      '    13.690       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1317       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59134       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=   6494.298     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     2469 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7692        4.5077       -.62655E-07    .16338E-03
   2  norm          5.4766        1.6618        .51833E-08   -.61389E-02
   3  Prefactor     27.867        1.2194       -.41094E-08    .15318E-01
   4  Prefactor     .66613E-09    10.251       -.19302E-06** at limit **
   5  Prefactor      .0000        1.5993        .41875E-07** at limit **
   6  Prefactor     .37748E-08    44.976        .16390E-06** at limit **
   7  Prefactor     .14763E-05    33.274       -.20252E-06** at limit **
   8  Prefactor     .55511E-10    4.2869       -.10390E-06** at limit **
   9  norm          2.8654        .44530        .34943E-07   -.29881E-02
  10  Prefactor     1.2260        2.5544       -.52923E-06    .62285E-03
  11  Prefactor     2.9233        1.1160        .19556E-08    .13417E-01
  12  Prefactor     .96617E-06    1.7914       -.11497E-07** at limit **
  13  norm          2.3321        6.2493        .19004E-07   -.32995E-03
  14  Prefactor      .0000        1.3721        .24021E-07** at limit **
  15  Prefactor     41.420        1.1960        .64919E-08   -.54884E-01
  16  Prefactor     .16653E-09    6.1183        .47156E-07** at limit **
  17  norm          12.667        3.6048        .93345E-07    .12866E-02
  18  Prefactor     .27756E-09    3.9929       -.61150E-07** at limit **
  19  Prefactor      .0000        2.0592       -.23490E-07** at limit **
  20  Prefactor     .12785E-04    10.359        .14118E-06** at limit **
  21  norm          1.5921        .96478        .65760E-07   -.11549E-02
  22  Prefactor     10.852        1.0547        .30508E-09   -.71019E-02
  23  norm          12.120        1.0078        .35660E-10    .58672E-02
  24  Prefactor     .59652E-05    16.870        .22454E-06** at limit **
  25  norm          13.689        2.4442        .68807E-07   -.81463E-03
  26  Normalizat    1.1317        .19407       -.59049E-05    .69051E-04
  27  Prefactor     .59134        .21301       -.31769E-05    .37408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76921
  norm       = 5.47656
  Prefactor  = 27.8667
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  Prefactor  = 3.77476e-09
  Prefactor  = 1.47626e-06
  Prefactor  = 5.55112e-11
  norm       = 2.86542
  Prefactor  = 1.22595
  Prefactor  = 2.92333
  Prefactor  = 9.66172e-07
  norm       = 2.33209
  Prefactor  = 0
  Prefactor  = 41.4202
  Prefactor  = 1.66533e-10
  norm       = 12.6665
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 1.27851e-05
  norm       = 1.59206
  Prefactor  = 10.8521
  norm       = 12.1205
  Prefactor  = 5.96517e-06
  norm       = 13.6894
  Normalizat = 1.13168
  Prefactor  = 0.591344
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.298     FROM HESSE     STATUS=OK           554 CALLS     3023 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7692        4.5235        .46045E-03   -1.5664    
   2  norm          5.4766        9.9113        .42995E-03   -1.5661    
   3  Prefactor     27.867        31.542        .18934E-03   -1.5602    
   4  Prefactor     .66613E-09    10.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.6038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .37748E-08    11.604        .10023E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14763E-05    35.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    4.3612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8654        .47553        .46067E-03   -1.5674    
  10  Prefactor     1.2260        2.5815        .10158E-02   -1.5686    
  11  Prefactor     2.9233        18.660        .59557E-03   -1.5674    
  12  Prefactor     .96617E-06    17.903        .10902E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3321        6.3425        .67192E-03   -1.5677    
  14  Prefactor      .0000        1.3700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.420        70.097        .15526E-03   -1.5579    
  16  Prefactor     .16653E-09    6.1142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.667        4.6629        .28123E-03   -1.5637    
  18  Prefactor     .27756E-09    4.0912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.0670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12785E-04    27.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5921        .97363        .84045E-03   -1.5683    
  22  Prefactor     10.852        22.452        .30395E-03   -1.5642    
  23  norm          12.120        8.5504        .28773E-03   -1.5638    
  24  Prefactor     .59652E-05    24.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.689        2.4956        .27045E-03   -1.5634    
  26  Normalizat    1.1317        .17422        .36835E-01   -.88741    
  27  Prefactor     .59134        .18956        .79114E-01   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29467e-06
Minuit parameter uncertainties:
  1  4.52346
  2  9.91135
  3  31.5425
  4  0.000164519
  5  1.42248e-06
  6  0.000418157
  7  0.0144413
  8  2.5105e-05
  9  0.475532
  10  2.5815
  11  14.7715
  12  0.00831803
  13  6.34254
  14  5.0255e-07
  15  70.0981
  16  6.3741e-05
  17  4.66292
  18  6.72866e-05
  19  5.34595e-06
  20  0.0374294
  21  0.973626
  22  22.4521
  23  8.55038
  24  0.0243237
  25  2.49558
  26  0.174309
  27  0.189766
Done.

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

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  2.332e+00  6.343e+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

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.913e-01  1.898e-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.132e+00  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/19653676/likelihoodResults_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.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) = 6494.2976353
delta logL = 3.3464131775e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6494.29763457
delta logL = 3.41919258062e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6494.298     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      230 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3309        6.3168        .26850E-04    .37236E-02
   2  alpha         2.3854        1.7513        .55866E-01   -.95804E-05
   3  Normalizat    1.1316        .18615        .22894E-03    .20311E-03
   4  Prefactor     .59139        .21216        .35038E-03    .11275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3309
  alpha      = 2.38536
  Normalizat = 1.13161
  Prefactor  = 0.591389
 **********
 **   18 **HESSE 
 **********

 FCN=   6494.298     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3309        6.2607        .10740E-05   -1.5677    
   2  alpha         2.3854        1.7408        .22346E-02   -.45872E-01
   3  Normalizat    1.1316        .18627        .45789E-04   -.88743    
   4  Prefactor     .59139        .21228        .14015E-04   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1033e-10
Minuit parameter uncertainties:
  1  6.26076
  2  1.92615
  3  0.186381
  4  0.212564
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) = 6494.2976345
delta logL = 3.42564026141e-05

Extracting fit parameters...

4FGL J1112.5+3448
   Spectrum: LogParabola
313         norm:  2.331e+00  6.261e+00  0.000e+00  1.000e+06 ( 1.000e-12)
314        alpha:  2.385e+00  1.926e+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:  5.914e-01  2.126e-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.132e+00  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 168.147 34.802

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19653676/cmap_HighResolution_711072001_711331201_4FGL_J1112.5+3448_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2023-07-18 00:55:09.399387', job_id='19653676', GAL2='0.59', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1689666909.4', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='3.43e-05', ts2='0.18', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1820' AND source_name='4FGL J1112.5+3448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 00:55:09 PDT 2023

