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


Performing analysis on: 4FGL_J2112.7+0819_weekly_bin819
RA = 318.185, Dec = 8.3195
tmin = 734313601, tmax = 734918401
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='44698312', job_status='RUN', time_executed='2024-04-21 12:45:48.574220', time_epoch_executed='1713728748.57' WHERE source_name='4FGL J2112.7+0819' and cadence='weekly' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44698312

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44698312/ft1_4FGL_J2112.7+0819_weekly_bin819.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44698312/ft1_4FGL_J2112.7+0819_weekly_bin819.fits outfile=/lscratch/kocevski/44698312/ft1_filteredMKT_4FGL_J2112.7+0819_weekly_bin819.fits ra=318.185 dec=8.3195 rad=12.0 tmin=734313601.0 tmax=734918401.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 5.82
user 5.49
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.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/44698312/ft1_filteredMKT_4FGL_J2112.7+0819_weekly_bin819.fits evtable="EVENTS" outfile="/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.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.40
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1697

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44698312/ltcube_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.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/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits
.....................!
real 15.10
user 14.77
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits evtable="EVENTS" scfile=/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44698312/ltcube_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.fits outfile=/lscratch/kocevski/44698312/expmap_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.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/44698312/ltcube_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.fits
.....................!
real 59.21
user 55.52
sys 3.31

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

Setting source of interest to:
4FGL J2112.7+0819 @ 318.185 8.3195

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits scfile=/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits outfile=/lscratch/kocevski/44698312/cmap_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.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=318.185 yref=8.3195 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.47
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits scfile=/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits outfile=/lscratch/kocevski/44698312/cmap_HighResolution_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.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=318.185 yref=8.3195 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.39
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits evtable="EVENTS" scfile=/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44698312/Model_4FGL_J2112.7+0819_weekly_bin819.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/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits.....................!
real 57.42
user 54.43
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits', '/lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits', expMap='/lscratch/kocevski/44698312/expmap_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.fits', expCube='/lscratch/kocevski/44698312/ltcube_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44698312/Model_4FGL_J2112.7+0819_weekly_bin819.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2112.7+0819'

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  3.173e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
331        Index:  1.907e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44698312/ft1_filtered_4FGL_J2112.7+0819_weekly_bin819.fits
Spacecraft file(s): /lscratch/kocevski/44698312/ft2_4FGL_J2112.7+0819_weekly_bin819.fits
Exposure map: /lscratch/kocevski/44698312/expmap_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.fits
Exposure cube: /lscratch/kocevski/44698312/ltcube_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44698312/Model_4FGL_J2112.7+0819_weekly_bin819.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) = 18792.1604292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8331       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10166E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .55567E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.430       1.0000          .0000       .10000E+07
     5 'norm      '    5.9251       1.0000          .0000       .10000E+07
     6 'Prefactor '    .72500E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25640E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    19.337       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14820E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .85393E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.7355       1.0000          .0000       .10000E+07
    12 'Prefactor '    .77039E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19840E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .90881       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17253E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    30.473       1.0000          .0000       .10000E+07
    17 'Prefactor '    27.256       1.0000          .0000       .10000E+07
    18 'norm      '    .82545E-07   1.0000          .0000       .10000E+07
    19 'norm      '    27.291       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.7861       1.0000          .0000       .10000E+07
    21 'Normalizat'    .85790       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89789       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18792.08     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1819 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8846        6.1428        .10175E-06    .47463E-03
   2  Prefactor     .71054E-08    11.261        .31510E-06** at limit **
   3  norm           .0000        .29641        .11121E-07** at limit **
   4  Prefactor     13.840        8.6084       -.53813E-08    .56636E-01
   5  norm          5.9752        5.4942        .81218E-08   -.26230E-02
   6  Prefactor     .55511E-10    3.1891       -.67017E-07** at limit **
   7  Prefactor     .55511E-10    5.4476        .14238E-07** at limit **
   8  Prefactor     19.379        12.200       -.14731E-07    .39029E-01
   9  Prefactor      .0000        5.6010        .11294E-06** at limit **
  10  Prefactor     .42077E-07    16.002       -.36275E-07** at limit **
  11  norm          1.7417        3.0144        .41904E-07    .67322E-03
  12  Prefactor     .24074E-05    35.731       -.22008E-06** at limit **
  13  Prefactor     .15392E-05    40.151       -.29827E-06** at limit **
  14  Prefactor     .90549        1.8835       -.37729E-07   -.91735E-03
  15  Prefactor      .0000        .45234       -.16172E-07** at limit **
  16  Prefactor     31.045        8.6472        .74237E-08   -.91387E-01
  17  Prefactor     27.239        4.2877       -.63089E-08    .89044E-02
  18  norm           .0000        .50985        .44081E-07** at limit **
  19  norm          27.423        5.6823       -.48608E-08    .14686E-01
  20  Prefactor     3.7508        5.0887       -.10706E-07    .18319E-03
  21  Normalizat    .85673        .17382       -.19393E-06    .68104E-05
  22  Prefactor     .89815        .71650E-01    .13563E-06    .43249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88459
  Prefactor  = 7.10543e-09
  norm       = 0
  Prefactor  = 13.8398
  norm       = 5.97525
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 19.3791
  Prefactor  = 0
  Prefactor  = 4.20775e-08
  norm       = 1.74172
  Prefactor  = 2.40735e-06
  Prefactor  = 1.53921e-06
  Prefactor  = 0.905495
  Prefactor  = 0
  Prefactor  = 31.0447
  Prefactor  = 27.2387
  norm       = 0
  norm       = 27.423
  Prefactor  = 3.75081
  Normalizat = 0.85673
  Prefactor  = 0.898148
 **********
 **   18 **HESSE 
 **********

 FCN=   18792.08     FROM HESSE     STATUS=OK           392 CALLS     2211 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8846        6.3240        .51525E-03   -1.5669    
   2  Prefactor     .71054E-08    11.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .16233        .18567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.840        20.954        .26341E-03   -1.5634    
   5  norm          5.9752        5.6561        .41230E-03   -1.5659    
   6  Prefactor     .55511E-10    3.1427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    5.4333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.379        13.566        .22748E-03   -1.5620    
   9  Prefactor      .0000        5.6004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .42077E-07    16.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7417        3.0465        .79632E-03   -1.5682    
  12  Prefactor     .24074E-05    43.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15392E-05    45.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .90549        1.8982        .45153E-03   -1.5689    
  15  Prefactor      .0000        .45303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.045        21.257        .18118E-03   -1.5597    
  17  Prefactor     27.239        34.804        .19158E-03   -1.5604    
  18  norm           .0000        .50667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.423        13.755        .19146E-03   -1.5603    
  20  Prefactor     3.7508        5.6478        .51855E-03   -1.5669    
  21  Normalizat    .85673        .14820        .85604E-01   -.97998    
  22  Prefactor     .89815        .59367E-01    .44978E-01   -.96206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43937e-07
Minuit parameter uncertainties:
  1  6.32406
  2  0.000565154
  3  3.87474e-07
  4  20.9543
  5  5.65609
  6  2.21255e-05
  7  4.10407e-05
  8  13.5662
  9  1.20446e-05
  10  0.00164909
  11  3.04646
  12  0.020401
  13  0.0167063
  14  1.89823
  15  1.14855e-06
  16  21.2567
  17  34.8038
  18  2.67613e-06
  19  13.755
  20  5.64782
  21  0.148272
  22  0.0593715
Done.

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

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  0.000e+00  1.204e-05  0.000e+00  1.000e+06 ( 1.000e-14)
331        Index:  1.907e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  8.981e-01  5.937e-02  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  8.567e-01  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 318.185 8.319
Photon Flux Upper Limit: 2.86352320839e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00213059073628 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44698312/likelihoodResults_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.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) = 18792.1648208
delta logL = -0.0863479575128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18792.0784732
delta logL = -3.82737198379e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27212E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .58193       1.0000          .0000       10.000    
     3 'Normalizat'    .85660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18792.08     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      228 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .61398E-01    .27282E-02** at limit **
   2  Index         3.4917        1.8918       -.53090E-04     .0000    
   3  Normalizat    .85673        1.1938       -.32917E-06    .51248E-04
   4  Prefactor     .89815        1.2432        .74240E-06    .15933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.4917
  Normalizat = 0.85673
  Prefactor  = 0.898148
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18792.08     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .61398E-01    .27282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3565        2.2591       -.53090E-04   -.30643    
   3  Normalizat    .85673        1.1938       -.32917E-06   -.97998    
   4  Prefactor     .89815        1.2432        .74240E-06   -.96206    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12388e-11
Minuit parameter uncertainties:
  1  1.93966e-06
  2  1.9453
  3  1.23385
  4  1.28611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 18792.0784728
delta logL = 0.0

Extracting fit parameters...

4FGL J2112.7+0819
   Spectrum: PowerLaw
330    Prefactor:  0.000e+00  1.940e-06  0.000e+00  1.000e+06 ( 1.000e-14)
331        Index:  3.492e+00  1.945e+00  0.000e+00  1.000e+01 (-1.000e+00)
332        Scale:  3.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  8.981e-01  1.286e+00  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  8.567e-01  1.234e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 318.185 8.319

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/44698312/cmap_HighResolution_734313601_734918401_4FGL_J2112.7+0819_weekly_bin819.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-03', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2024-04-21 12:53:32.033651', job_id='44698312', GAL2='0.90', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1713729212.03', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.91' WHERE bin_id='819' AND source_name='4FGL J2112.7+0819' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Apr 21 12:53:32 PDT 2024

