/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_J2141.8-3727_daily_bin1860
RA = 325.462, Dec = -37.4545
tmin = 721440001, tmax = 721699201
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='34006488', job_status='RUN', time_executed='2023-11-15 01:00:41.561402', time_epoch_executed='1700038841.56' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='1860'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34006488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34006488/ft1_4FGL_J2141.8-3727_daily_bin1860.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34006488/ft1_4FGL_J2141.8-3727_daily_bin1860.fits outfile=/lscratch/kocevski/34006488/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1860.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=721440001.0 tmax=721699201.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.17
user 1.95
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.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/34006488/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin1860.fits evtable="EVENTS" outfile="/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.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.37
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 902

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34006488/ltcube_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.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/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits
.....................!
real 11.57
user 11.20
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits evtable="EVENTS" scfile=/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34006488/ltcube_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.fits outfile=/lscratch/kocevski/34006488/expmap_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.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/34006488/ltcube_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.fits
.....................!
real 75.11
user 70.10
sys 4.51

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

Setting source of interest to:
4FGL J2141.8-3727 @ 325.462 -37.4545

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits scfile=/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits outfile=/lscratch/kocevski/34006488/cmap_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.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=325.462 yref=-37.4545 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.38
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits scfile=/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits outfile=/lscratch/kocevski/34006488/cmap_HighResolution_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.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=325.462 yref=-37.4545 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.57
user 0.24
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits evtable="EVENTS" scfile=/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34006488/Model_4FGL_J2141.8-3727_daily_bin1860.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/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits.....................!
real 32.59
user 31.14
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits', '/lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits', expMap='/lscratch/kocevski/34006488/expmap_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.fits', expCube='/lscratch/kocevski/34006488/ltcube_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34006488/Model_4FGL_J2141.8-3727_daily_bin1860.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2141.8-3727'

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.345e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34006488/ft1_filtered_4FGL_J2141.8-3727_daily_bin1860.fits
Spacecraft file(s): /lscratch/kocevski/34006488/ft2_4FGL_J2141.8-3727_daily_bin1860.fits
Exposure map: /lscratch/kocevski/34006488/expmap_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.fits
Exposure cube: /lscratch/kocevski/34006488/ltcube_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34006488/Model_4FGL_J2141.8-3727_daily_bin1860.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) = 9663.13778078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82309E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .65952       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20005E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .33158E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    20.349       1.0000          .0000       .10000E+07
     6 'norm      '    2.3353       1.0000          .0000       .10000E+07
     7 'norm      '    4.1746       1.0000          .0000       .10000E+07
     8 'Prefactor '    .46212E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9479       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11896E-04   1.0000          .0000       .10000E+07
    11 'norm      '    16.636       1.0000          .0000       .10000E+07
    12 'Prefactor '    .47399E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    79.123       1.0000          .0000       .10000E+07
    14 'norm      '    .58155       1.0000          .0000       .10000E+07
    15 'norm      '    1.5356       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20959E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .70402E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7168       1.0000          .0000       .10000E+07
    19 'Prefactor '    47.665       1.0000          .0000       .10000E+07
    20 'Prefactor '    44.860       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.0801       1.0000          .0000       .10000E+07
    22 'Normalizat'    .74616       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9662.790     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1906 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    19.360       -.78312E-05** at limit **
   2  Prefactor     .71900        .56110        .35291E-06   -.43406E-02
   3  Prefactor     .11102E-09    14.676        .67707E-05** at limit **
   4  Prefactor     .33307E-09    4.1745       -.24115E-05** at limit **
   5  Prefactor     20.768        2.4274        .93939E-06   -.16633E-03
   6  norm          2.3298        3.1921        .30702E-06    .23838E-02
   7  norm          4.1633        3.1826       -.71555E-06   -.77103E-02
   8  Prefactor      .0000        5.1314       -.78236E-06** at limit **
   9  Prefactor     1.8613        7.9111       -.37916E-05    .16058E-02
  10  Prefactor     .27756E-08    1.7983        .24225E-05** at limit **
  11  norm          16.509        6.9354       -.33980E-07   -.55259E-02
  12  Prefactor     .55511E-10    7.3226       -.96996E-06** at limit **
  13  Prefactor     82.918        44.716        .75572E-05    .28251E-02
  14  norm          .54764        4.9846       -.52716E-05   -.47448E-03
  15  norm          1.5337        .34542       -.56153E-07   -.20035E-01
  16  Prefactor      .0000        11.221        .16659E-05** at limit **
  17  Prefactor      .0000        4.6487        .13352E-05** at limit **
  18  Prefactor     1.7359        2.8235       -.23970E-05   -.10398E-01
  19  Prefactor     46.136        35.052        .11554E-04   -.16546E-02
  20  Prefactor     44.909        1.1308        .15571E-06   -.10693E-02
  21  Prefactor     7.1790        1.5306       -.69121E-06    .29849E-02
  22  Normalizat    .74456        .15959       -.20399E-04    .31932E-03
  23  Prefactor     1.0098        .10720       -.63060E-05    .27266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 0.718998
  Prefactor  = 1.11022e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 20.7677
  norm       = 2.32977
  norm       = 4.16334
  Prefactor  = 0
  Prefactor  = 1.86134
  Prefactor  = 2.77556e-09
  norm       = 16.5092
  Prefactor  = 5.55112e-11
  Prefactor  = 82.9176
  norm       = 0.547638
  norm       = 1.53374
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.7359
  Prefactor  = 46.1361
  Prefactor  = 44.909
  Prefactor  = 7.17902
  Normalizat = 0.74456
  Prefactor  = 1.00983
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.790     FROM HESSE     STATUS=OK           420 CALLS     2326 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    19.543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .71900        51.597        .64057E-03   -1.5691    
   3  Prefactor     .11102E-09    14.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33307E-09    4.1646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.768        21.146        .22175E-03   -1.5617    
   6  norm          2.3298        3.2023        .67073E-03   -1.5677    
   7  norm          4.1633        3.2740        .49303E-03   -1.5667    
   8  Prefactor      .0000        5.0783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8613        7.9852        .74334E-03   -1.5681    
  10  Prefactor     .27756E-08    1.7987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.509        6.9650        .24529E-03   -1.5627    
  12  Prefactor     .55511E-10    7.3154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.918        45.463        .11243E-03   -1.5526    
  14  norm          .54764        5.2591        .70897E-03   -1.5693    
  15  norm          1.5337        .34864        .57685E-03   -1.5683    
  16  Prefactor      .0000        11.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        4.6312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7359        2.8433        .80162E-03   -1.5682    
  19  Prefactor     46.136        35.097        .14486E-03   -1.5572    
  20  Prefactor     44.909        18.759        .14932E-03   -1.5574    
  21  Prefactor     7.1790        12.258        .37677E-03   -1.5654    
  22  Normalizat    .74456        .14370        .68484E-01   -1.0216    
  23  Prefactor     1.0098        .94509E-01    .43414E-01   -.92403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55618e-06
Minuit parameter uncertainties:
  1  0.000104296
  2  12.1817
  3  8.79393e-05
  4  7.33842e-05
  5  21.1464
  6  3.20232
  7  3.27398
  8  2.12803e-05
  9  7.71057
  10  0.00014122
  11  6.96498
  12  3.59757e-05
  13  45.4628
  14  3.39415
  15  0.348636
  16  1.25003e-05
  17  6.12564e-06
  18  2.84327
  19  35.0971
  20  18.759
  21  12.2583
  22  0.143772
  23  0.0945242
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  2.128e-05  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.010e+00  9.452e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.446e-01  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 5.21763355148e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00408892550217 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34006488/likelihoodResults_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.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) = 9662.79055879
delta logL = -0.00102864257497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9662.78953026
delta logL = -1.08311724034e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53346E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.3558       1.0000          .0000       10.000    
     3 'Normalizat'    .74462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9662.790     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      250 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.8529        .42118E-03** at limit **
   2  Index         3.1715        1.4507        .66085E-04     .0000    
   3  Normalizat    .74456        1.0842        .26705E-05    .32012E-03
   4  Prefactor     1.0098        1.2658       -.17046E-05    .43353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.17153
  Normalizat = 0.74456
  Prefactor  = 1.00983
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9662.790     FROM HESSE     STATUS=FAILED         9 CALLS      259 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.8529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1324        2.1303        .66085E-04   -.37438    
   3  Normalizat    .74456        1.0842        .26705E-05   -1.0216    
   4  Prefactor     1.0098        1.2658       -.17046E-05   -.92403    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.78373e-11
Minuit parameter uncertainties:
  1  3.06084e-06
  2  1.47531
  3  1.11815
  4  1.30638
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) = 9662.78953015
delta logL = 1.81898940355e-11

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  3.061e-06  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.172e+00  1.475e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.010e+00  1.306e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.446e-01  1.118e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 325.462 -37.455

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/34006488/cmap_HighResolution_721440001_721699201_4FGL_J2141.8-3727_daily_bin1860.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2023-11-15 01:07:01.489375', job_id='34006488', GAL2='1.01', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1700039221.49', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1860' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 15 01:07:01 PST 2023

