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


Performing analysis on: 4FGL_J2142.5-2552_daily_bin1873
RA = 325.645, Dec = -25.8777
tmin = 724809601, tmax = 725068801
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='36848379', job_status='RUN', time_executed='2023-12-24 01:30:51.416122', time_epoch_executed='1703410251.42' WHERE source_name='4FGL J2142.5-2552' and cadence='daily' and bin_id='1873'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36848379

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36848379/ft1_4FGL_J2142.5-2552_daily_bin1873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36848379/ft1_4FGL_J2142.5-2552_daily_bin1873.fits outfile=/lscratch/kocevski/36848379/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1873.fits ra=325.645 dec=-25.8777 rad=12.0 tmin=724809601.0 tmax=725068801.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.27
user 2.00
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.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/36848379/ft1_filteredMKT_4FGL_J2142.5-2552_daily_bin1873.fits evtable="EVENTS" outfile="/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.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.43
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 500

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36848379/ltcube_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.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/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits
.....................!
real 12.73
user 11.98
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits evtable="EVENTS" scfile=/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36848379/ltcube_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.fits outfile=/lscratch/kocevski/36848379/expmap_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.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/36848379/ltcube_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.fits
.....................!
real 70.93
user 66.45
sys 3.82

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

Setting source of interest to:
4FGL J2142.5-2552 @ 325.645 -25.8777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits scfile=/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits outfile=/lscratch/kocevski/36848379/cmap_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.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.645 yref=-25.8777 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.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits scfile=/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits outfile=/lscratch/kocevski/36848379/cmap_HighResolution_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.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.645 yref=-25.8777 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.52
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits evtable="EVENTS" scfile=/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36848379/Model_4FGL_J2142.5-2552_daily_bin1873.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/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits....................!
real 22.30
user 20.74
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits', '/lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits', expMap='/lscratch/kocevski/36848379/expmap_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.fits', expCube='/lscratch/kocevski/36848379/ltcube_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36848379/Model_4FGL_J2142.5-2552_daily_bin1873.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2142.5-2552'

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  2.690e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36848379/ft1_filtered_4FGL_J2142.5-2552_daily_bin1873.fits
Spacecraft file(s): /lscratch/kocevski/36848379/ft2_4FGL_J2142.5-2552_daily_bin1873.fits
Exposure map: /lscratch/kocevski/36848379/expmap_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.fits
Exposure cube: /lscratch/kocevski/36848379/ltcube_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36848379/Model_4FGL_J2142.5-2552_daily_bin1873.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) = 5639.72903165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11318E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .41554E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .57174       1.0000          .0000       .10000E+07
     4 'norm      '    .11713E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1783       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.594       1.0000          .0000       .10000E+07
     7 'Prefactor '    .56654E-05   1.0000          .0000       .10000E+07
     8 'norm      '    11.404       1.0000          .0000       .10000E+07
     9 'Prefactor '    20.760       1.0000          .0000       .10000E+07
    10 'Prefactor '    13.391       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.9807       1.0000          .0000       .10000E+07
    12 'norm      '    4.8716       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.6274       1.0000          .0000       .10000E+07
    14 'norm      '    .66339       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.1955       1.0000          .0000       .10000E+07
    16 'Prefactor '    .56924E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1998       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5639.592     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1420 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13173E-06    7.7173       -.96315E-07** at limit **
   2  Prefactor     .14305E-06    7.9012        .28911E-07** at limit **
   3  Prefactor     .56695        8.7140       -.37921E-06   -.80932E-04
   4  norm           .0000        2.5334        .31100E-07** at limit **
   5  Prefactor     1.1651        5.9365       -.76761E-07   -.85930E-04
   6  Prefactor     16.311        11.927        .90727E-07   -.24980E-04
   7  Prefactor      .0000        11.255       -.11869E-06** at limit **
   8  norm          11.405        8.7892       -.52506E-07    .32903E-03
   9  Prefactor     21.114        16.241       -.26105E-07   -.21003E-03
  10  Prefactor     11.732        24.574       -.11493E-05    .20872E-01
  11  Prefactor     15.365        130.02        .39781E-05    .58463E-02
  12  norm          4.8428        5.0399       -.17400E-06   -.37846E-03
  13  Prefactor     4.3737        19.296        .36629E-06   -.12685E-02
  14  norm          .66282        .31099       -.17335E-07   -.24344E-02
  15  Prefactor     8.1579        10.108        .66070E-07   -.50114E-03
  16  Prefactor     .34972E-08    84.293       -.21066E-05** at limit **
  17  norm           .0000        7.8362       -.27556E-06** at limit **
  18  Normalizat    1.1968        .25021        .20243E-06   -.19566E-04
  19  Prefactor     .76686        .15289        .36992E-06   -.16220E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31728e-07
  Prefactor  = 1.43052e-07
  Prefactor  = 0.566945
  norm       = 0
  Prefactor  = 1.16507
  Prefactor  = 16.3105
  Prefactor  = 0
  norm       = 11.4054
  Prefactor  = 21.1136
  Prefactor  = 11.7315
  Prefactor  = 15.365
  norm       = 4.8428
  Prefactor  = 4.3737
  norm       = 0.662821
  Prefactor  = 8.1579
  Prefactor  = 3.4972e-09
  norm       = 0
  Normalizat = 1.1968
  Prefactor  = 0.766858
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.592     FROM HESSE     STATUS=OK           310 CALLS     1730 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13173E-06    12.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14305E-06    13.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56695        8.6550        .71799E-03   -1.5693    
   4  norm           .0000        2.5275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1651        5.9828        .10537E-02   -1.5686    
   6  Prefactor     16.311        11.940        .24560E-03   -1.5627    
   7  Prefactor      .0000        11.149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.405        8.7882        .29641E-03   -1.5640    
   9  Prefactor     21.114        19.903        .21954E-03   -1.5616    
  10  Prefactor     11.732        30.197        .27346E-03   -1.5639    
  11  Prefactor     15.365        134.54        .33421E-03   -1.5630    
  12  norm          4.8428        5.0927        .45550E-03   -1.5664    
  13  Prefactor     4.3737        22.606        .46764E-03   -1.5666    
  14  norm          .66282        .30775        .61898E-03   -1.5692    
  15  Prefactor     8.1579        10.090        .34997E-03   -1.5651    
  16  Prefactor     .34972E-08    83.375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        7.8549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1968        .21019        .60482E-01   -.86702    
  19  Prefactor     .76686        .12853        .43267E-01   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11229e-06
Minuit parameter uncertainties:
  1  0.00259238
  2  0.0027301
  3  4.43032
  4  1.73846e-07
  5  5.28033
  6  11.9401
  7  1.11438e-05
  8  8.78823
  9  19.9032
  10  30.1971
  11  90.9341
  12  5.09266
  13  19.887
  14  0.307747
  15  10.09
  16  0.00107858
  17  2.43748e-05
  18  0.210336
  19  0.128579
Done.

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

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  0.000e+00  1.114e-05  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.208e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  7.669e-01  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.197e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 325.645 -25.878
Photon Flux Upper Limit: 6.77848686963e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00516782110642 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36848379/likelihoodResults_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.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) = 5639.63720826
delta logL = -0.0451826154022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5639.59202585
delta logL = -2.05051037483e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5639.592     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      218 TOTAL
                     EDM=   .38E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.3633        .42118E-03** at limit **
   2  Index         2.8486        1.5284       -.64632E-05     .0000    
   3  Normalizat    1.1968        1.1073       -.38348E-05    .16493E-05
   4  Prefactor     .76686        1.1161        .43845E-05   -.89739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.84864
  Normalizat = 1.1968
  Prefactor  = 0.766858
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5639.592     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .38E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.3633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .91903        2.0567       -.64632E-05   -.44479    
   3  Normalizat    1.1968        1.1073       -.38348E-05   -.86702    
   4  Prefactor     .76686        1.1161        .43845E-05   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.75366e-13
Minuit parameter uncertainties:
  1  2.81816e-06
  2  1.55928
  3  1.13024
  4  1.15175
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) = 5639.59202565
delta logL = 0.0

Extracting fit parameters...

4FGL J2142.5-2552
   Spectrum: PowerLaw
263    Prefactor:  0.000e+00  2.818e-06  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.849e+00  1.559e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.296e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  7.669e-01  1.152e+00  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.197e+00  1.130e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 325.645 -25.878

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/36848379/cmap_HighResolution_724809601_725068801_4FGL_J2142.5-2552_daily_bin1873.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2023-12-24 01:34:53.648206', job_id='36848379', GAL2='0.77', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1703410493.65', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1873' AND source_name='4FGL J2142.5-2552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 24 01:34:53 PST 2023

