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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin2023
RA = 219.508, Dec = -31.4679
tmin = 763689601, tmax = 763948801
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='837988', job_status='RUN', time_executed='2025-03-18 02:31:57.430698', time_epoch_executed='1742290317.43' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='2023'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/837988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/837988/ft1_4FGL_J1438.0-3128_daily_bin2023.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/837988/ft1_4FGL_J1438.0-3128_daily_bin2023.fits outfile=/lscratch/kocevski/837988/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin2023.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=763689601.0 tmax=763948801.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 3.02
user 2.56
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.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/837988/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin2023.fits evtable="EVENTS" outfile="/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.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.65
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1538

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits" evtable="EVENTS" scfile=/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits sctable="SC_DATA" outfile=/lscratch/kocevski/837988/ltcube_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.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/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits
.....................!
real 11.23
user 10.55
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits evtable="EVENTS" scfile=/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits sctable="SC_DATA" expcube=/lscratch/kocevski/837988/ltcube_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.fits outfile=/lscratch/kocevski/837988/expmap_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.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/837988/ltcube_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.fits
.....................!
real 66.92
user 62.61
sys 3.81

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 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 J1438.0-3128 @ 219.508 -31.4679

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits scfile=/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits outfile=/lscratch/kocevski/837988/cmap_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.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=219.508 yref=-31.4679 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.77
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits scfile=/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits outfile=/lscratch/kocevski/837988/cmap_HighResolution_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.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=219.508 yref=-31.4679 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 1.37
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits evtable="EVENTS" scfile=/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/837988/Model_4FGL_J1438.0-3128_daily_bin2023.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits.....................!
real 105.21
user 102.65
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits', '/lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits', expMap='/lscratch/kocevski/837988/expmap_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.fits', expCube='/lscratch/kocevski/837988/ltcube_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/837988/Model_4FGL_J1438.0-3128_daily_bin2023.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0-3128'

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  2.213e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/837988/ft1_filtered_4FGL_J1438.0-3128_daily_bin2023.fits
Spacecraft file(s): /lscratch/kocevski/837988/ft2_4FGL_J1438.0-3128_daily_bin2023.fits
Exposure map: /lscratch/kocevski/837988/expmap_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.fits
Exposure cube: /lscratch/kocevski/837988/ltcube_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/837988/Model_4FGL_J1438.0-3128_daily_bin2023.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) = 15638.7750775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62404E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .41593E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12212E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .94002E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .61221E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17842E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .67132       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13933E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .12157E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .34434E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .45680       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12494E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .95514E-04   1.0000          .0000       .10000E+07
    14 'norm      '    18.825       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4237       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47842E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .32282E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .46115E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .38858E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .61124E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    8.3330       1.0000          .0000       .10000E+07
    22 'norm      '    .28296E-03   1.0000          .0000       .10000E+07
    23 'norm      '    21.329       1.0000          .0000       .10000E+07
    24 'norm      '    1.8388       1.0000          .0000       .10000E+07
    25 'Prefactor '    .15465E-03   1.0000          .0000       .10000E+07
    26 'norm      '    3.9173       1.0000          .0000       .10000E+07
    27 'Normalizat'    .99163       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15638.73     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     2033 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15599E-07    9.8835        .99782E-06** at limit **
   2  norm           .0000        3.4076       -.17956E-06** at limit **
   3  Prefactor      .0000        .90993       -.12167E-06** at limit **
   4  Prefactor     .42022E-07    12.482        .44053E-08** at limit **
   5  Prefactor     .79936E-08    15.443        .82614E-06** at limit **
   6  Prefactor     .12212E-08    61.526       -.79260E-06** at limit **
   7  Prefactor     .21094E-07    155.62        .38187E-05** at limit **
   8  Prefactor      .0000        6.0386       -.18362E-07** at limit **
   9  norm           .0000        .73404       -.12006E-06** at limit **
  10  Prefactor      .0000        6.7167        .38151E-07** at limit **
  11  norm          .45678        .12080       -.10028E-07    .83888E-02
  12  Prefactor     .11102E-08    8.9974       -.12377E-05** at limit **
  13  Prefactor      .0000        30.498        .37467E-05** at limit **
  14  norm          18.843        1.2635        .49628E-08    .48315E-02
  15  Prefactor     .38858E-09    956.56       -.29278E-04** at limit **
  16  Prefactor     .21161E-06    6.1212       -.17470E-05** at limit **
  17  Prefactor     .10403E-06    7.7143       -.15936E-05** at limit **
  18  Prefactor     .22204E-09    6.1484       -.22786E-06** at limit **
  19  norm           .0000        .30634       -.21282E-06** at limit **
  20  Prefactor     .55511E-10    4.6226        .29044E-07** at limit **
  21  Prefactor     8.3899        6.6760       -.96561E-07    .25792E-03
  22  norm          .55511E-10    5.6703       -.17929E-06** at limit **
  23  norm          21.438        1.1333       -.24044E-07    .17970E-02
  24  norm          1.8387        .55815        .69296E-09   -.99839E-03
  25  Prefactor      .0000        3.9927        .49266E-07** at limit **
  26  norm          3.9158        2.3878        .77985E-07   -.11077E-02
  27  Normalizat    .99235        .22692        .78987E-05    .25686E-04
  28  Prefactor     1.0274        .75736E-01   -.15647E-05    .60068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55986e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.20219e-08
  Prefactor  = 7.99361e-09
  Prefactor  = 1.22125e-09
  Prefactor  = 2.10942e-08
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0.456777
  Prefactor  = 1.11022e-09
  Prefactor  = 0
  norm       = 18.8427
  Prefactor  = 3.88578e-10
  Prefactor  = 2.11609e-07
  Prefactor  = 1.04028e-07
  Prefactor  = 2.22045e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 8.38993
  norm       = 5.55112e-11
  norm       = 21.4381
  norm       = 1.83866
  Prefactor  = 0
  norm       = 3.9158
  Normalizat = 0.992347
  Prefactor  = 1.02742
 **********
 **   18 **HESSE 
 **********

 FCN=   15638.73     FROM HESSE     STATUS=OK           567 CALLS     2600 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15599E-07    10.356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.4035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .90817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42022E-07    13.818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .79936E-08    15.707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12212E-08    61.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .21094E-07    156.34        .63067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        6.0501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .73864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        6.7436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45678        .12155        .48846E-03   -1.5694    
  12  Prefactor     .11102E-08    9.0417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        30.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.843        11.889        .23056E-03   -1.5621    
  15  Prefactor     .38858E-09    948.98        .65714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .21161E-06    12.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10403E-06    11.184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22204E-09    6.1678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .15459        .19631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    4.6224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3899        6.7001        .34705E-03   -1.5650    
  22  norm          .55511E-10    5.6207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          21.438        19.191        .21659E-03   -1.5615    
  24  norm          1.8387        .55925        .76902E-03   -1.5681    
  25  Prefactor      .0000        3.9718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.9158        2.3909        .50949E-03   -1.5668    
  27  Normalizat    .99235        .19587        .10328       -.93287    
  28  Prefactor     1.0274        .65183E-01    .41461E-01   -.91821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14347e-08
Minuit parameter uncertainties:
  1  0.00080369
  2  1.253e-05
  3  1.12895e-06
  4  0.00152416
  5  0.000708289
  6  0.00055356
  7  0.00363007
  8  1.04979e-05
  9  3.48282e-06
  10  1.00016e-05
  11  0.121548
  12  0.000200685
  13  3.82767e-05
  14  11.889
  15  0.00118431
  16  0.00326543
  17  0.00215743
  18  7.65515e-05
  19  8.9439e-07
  20  2.31828e-05
  21  6.70012
  22  2.65587e-05
  23  19.1915
  24  0.559249
  25  1.53711e-05
  26  2.39094
  27  0.196016
  28  0.065188
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  3.828e-05  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  1.027e+00  6.519e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  9.923e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 219.508 -31.468
Photon Flux Upper Limit: 7.23854080645e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00560962926803 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/837988/likelihoodResults_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.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) = 15638.7465917
delta logL = -0.0175043374875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15638.7290876
delta logL = -2.38052962231e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   15638.73     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      226 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.219        .42118E-03** at limit **
   2  Index         2.2257        .93682       -.16771E-04     .0000    
   3  Normalizat    .99235        1.3225       -.29816E-05   -.88301E-05
   4  Prefactor     1.0274        1.2232        .99856E-06   -.69800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.22574
  Normalizat = 0.992347
  Prefactor  = 1.02742
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15638.73     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54809        1.7489       -.16771E-04   -.58818    
   3  Normalizat    .99235        1.3225       -.29816E-05   -.93287    
   4  Prefactor     1.0274        1.2232        .99856E-06   -.91821    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.33955e-12
Minuit parameter uncertainties:
  1  3.79751e-05
  2  0.944922
  3  1.37046
  4  1.259
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) = 15638.7290874
delta logL = 0.0

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  3.798e-05  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.226e+00  9.449e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  1.027e+00  1.259e+00  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  9.923e-01  1.370e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 219.508 -31.468

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/837988/cmap_HighResolution_763689601_763948801_4FGL_J1438.0-3128_daily_bin2023.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2025-03-18 02:42:30.562523', job_id='837988', GAL2='1.03', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1742290950.56', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='2023' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 18 02:42:30 PDT 2025

