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


Performing analysis on: 4FGL_J1912.4-1222_daily_bin1921
RA = 288.118, Dec = -12.3678
tmin = 737251201, tmax = 737510401
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='47954235', job_status='RUN', time_executed='2024-05-16 00:40:48.871476', time_epoch_executed='1715845248.87' WHERE source_name='4FGL J1912.4-1222' and cadence='daily' and bin_id='1921'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/47954235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/47954235/ft1_4FGL_J1912.4-1222_daily_bin1921.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/47954235/ft1_4FGL_J1912.4-1222_daily_bin1921.fits outfile=/lscratch/kocevski/47954235/ft1_filteredMKT_4FGL_J1912.4-1222_daily_bin1921.fits ra=288.118 dec=-12.3678 rad=12.0 tmin=737251201.0 tmax=737510401.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 1.27
user 1.06
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.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/47954235/ft1_filteredMKT_4FGL_J1912.4-1222_daily_bin1921.fits evtable="EVENTS" outfile="/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.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.33
user 0.17
sys 0.12

Number of photons that the gtmktime cut: 4284

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits" evtable="EVENTS" scfile=/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits sctable="SC_DATA" outfile=/lscratch/kocevski/47954235/ltcube_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.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/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits
.....................!
real 10.08
user 9.70
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits evtable="EVENTS" scfile=/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits sctable="SC_DATA" expcube=/lscratch/kocevski/47954235/ltcube_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.fits outfile=/lscratch/kocevski/47954235/expmap_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.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/47954235/ltcube_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.fits
.....................!
real 59.04
user 55.30
sys 3.46

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
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Added 380 point sources and 17 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1912.4-1222 @ 288.118 -12.3678

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits scfile=/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits outfile=/lscratch/kocevski/47954235/cmap_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.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=288.118 yref=-12.3678 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.51
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits scfile=/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits outfile=/lscratch/kocevski/47954235/cmap_HighResolution_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.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=288.118 yref=-12.3678 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.37
user 0.18
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits evtable="EVENTS" scfile=/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/47954235/Model_4FGL_J1912.4-1222_daily_bin1921.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits.....................!
real 388.75
user 386.03
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits', '/lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits', expMap='/lscratch/kocevski/47954235/expmap_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.fits', expCube='/lscratch/kocevski/47954235/ltcube_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/47954235/Model_4FGL_J1912.4-1222_daily_bin1921.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1912.4-1222'

4FGL J1912.4-1222
   Spectrum: LogParabola
1063         norm:  7.552e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
1064        alpha:  2.384e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1065         beta:  2.251e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1066           Eb:  1.464e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/47954235/ft1_filtered_4FGL_J1912.4-1222_daily_bin1921.fits
Spacecraft file(s): /lscratch/kocevski/47954235/ft2_4FGL_J1912.4-1222_daily_bin1921.fits
Exposure map: /lscratch/kocevski/47954235/expmap_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.fits
Exposure cube: /lscratch/kocevski/47954235/ltcube_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/47954235/Model_4FGL_J1912.4-1222_daily_bin1921.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) = 39435.004681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16043E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .29133       1.0000          .0000       .10000E+07
     3 'norm      '    .56066E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .56872E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.8226       1.0000          .0000       .10000E+07
     6 'norm      '    .10943E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .57758E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.5430       1.0000          .0000       .10000E+07
     9 'norm      '    3.7779       1.0000          .0000       .10000E+07
    10 'norm      '    4.1343       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.283       1.0000          .0000       .10000E+07
    12 'Prefactor '    .38991E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    22.250       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2939       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .99115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1439E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   39435.00     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1012 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .91193       -.10510E-06** at limit **
   2  Prefactor      .0000        28.889        .90440E-06** at limit **
   3  norm           .0000        .30100       -.63913E-07** at limit **
   4  Prefactor      .0000        9.4551       -.33151E-06** at limit **
   5  Prefactor     2.8210        2.1521        .96091E-07   -.52940E-03
   6  norm          .94369E-09    99.155        .49422E-05** at limit **
   7  Prefactor     .83267E-08    19.214       -.12363E-05** at limit **
   8  Prefactor     4.4183        9.5014        .63353E-07   -.71775E-03
   9  norm          3.7951        3.5991       -.14421E-06   -.36978E-04
  10  norm          4.1369        6.2435       -.20557E-06   -.24892E-03
  11  Prefactor     11.239        1.0310        .15238E-08   -.79518E-02
  12  Prefactor      .0000        1.5592        .13979E-06** at limit **
  13  Prefactor     22.448        1.2987        .69461E-08    .11614    
  14  Normalizat    1.2946        .29356        .81896E-06    .99216E-06
  15  Prefactor     .99114        .24514E-01    .98545E-06   -.63813E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.82104
  norm       = 9.4369e-10
  Prefactor  = 8.32667e-09
  Prefactor  = 4.41833
  norm       = 3.79509
  norm       = 4.13693
  Prefactor  = 11.2392
  Prefactor  = 0
  Prefactor  = 22.4476
  Normalizat = 1.29464
  Prefactor  = 0.991142
 **********
 **   18 **HESSE 
 **********

 FCN=   39435.00     FROM HESSE     STATUS=OK           210 CALLS     1222 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .90217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        28.874        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .30027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        9.5292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8210        2.1696        .60511E-03   -1.5674    
   6  norm          .94369E-09    98.279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83267E-08    19.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4183        9.6185        .47207E-03   -1.5666    
   9  norm          3.7951        3.5969        .51914E-03   -1.5669    
  10  norm          4.1369        6.3108        .49551E-03   -1.5667    
  11  Prefactor     11.239        14.069        .29800E-03   -1.5641    
  12  Prefactor      .0000        1.5531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.448        22.279        .21205E-03   -1.5613    
  14  Normalizat    1.2946        .31154        .28934       -.83727    
  15  Prefactor     .99114        .24795E-01    .27577E-01   -.93025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25334e-06
Minuit parameter uncertainties:
  1  4.22241e-07
  2  4.48218e-06
  3  3.60309e-07
  4  2.10323e-05
  5  2.16961
  6  0.000601514
  7  0.000801603
  8  9.61858
  9  3.59691
  10  6.31078
  11  14.069
  12  4.16668e-07
  13  22.2788
  14  0.311997
  15  0.0247952
Done.

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

Extracting fit parameters...

4FGL J1912.4-1222
   Spectrum: LogParabola
1063         norm:  9.437e-10  6.015e-04  0.000e+00  1.000e+06 ( 1.000e-13)
1064        alpha:  2.384e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1065         beta:  2.251e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1066           Eb:  1.464e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1389    Prefactor:  9.911e-01  2.480e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1390        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1391        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1375   Normalization:  1.295e+00  3.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 288.118 -12.368
Photon Flux Upper Limit: 1.04238739455e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.80729731593e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/47954235/likelihoodResults_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.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): 102
logL (Free Index) = 39435.0050266
delta logL = -0.00559005838295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 39434.9994367
delta logL = -2.45527189691e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91929E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    2.0052       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1439E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   39435.00     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      252 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    635.19       -.98721E-05** at limit **
   2  alpha         1.7423        2.5866        .11925E-05    .35968E-13
   3  Normalizat    1.2946        .28584       -.79761E-05    .13789E-04
   4  Prefactor     .99114        .24474E-01   -.21006E-06   -.79715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  alpha      = 1.74226
  Normalizat = 1.29464
  Prefactor  = 0.991142
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   39435.00     FROM HESSE     STATUS=FAILED        11 CALLS      263 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    613.46        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .67565        1.1331        .11925E-05   -.30794    
   3  Normalizat    1.2946        1.0805       -.79761E-05   -.83727    
   4  Prefactor     .99114        1.3308       -.21006E-06   -.93025    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.57761e-12
Minuit parameter uncertainties:
  1  0.000545468
  2  1.00584
  3  1.10024
  4  1.37922
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) = 39434.9994365
delta logL = 0.0

Extracting fit parameters...

4FGL J1912.4-1222
   Spectrum: LogParabola
1063         norm:  1.110e-10  5.455e-04  0.000e+00  1.000e+06 ( 1.000e-13)
1064        alpha:  1.742e+00  1.006e+00  0.000e+00  5.000e+00 ( 1.000e+00)
1065         beta:  2.251e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1066           Eb:  1.464e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1389    Prefactor:  9.911e-01  1.379e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1390        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1391        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1375   Normalization:  1.295e+00  1.100e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 288.118 -12.368

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/47954235/cmap_HighResolution_737251201_737510401_4FGL_J1912.4-1222_daily_bin1921.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2024-05-16 01:07:46.008675', job_id='47954235', GAL2='0.99', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1715846866.01', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1921' AND source_name='4FGL J1912.4-1222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 16 01:07:46 PDT 2024

