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


Performing analysis on: 4FGL_J1238.1-4541_daily_bin1923
RA = 189.545, Dec = -45.6861
tmin = 737769601, tmax = 738028801
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='48634287', job_status='RUN', time_executed='2024-05-22 00:25:49.112806', time_epoch_executed='1716362749.11' WHERE source_name='4FGL J1238.1-4541' and cadence='daily' and bin_id='1923'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/48634287

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/48634287/ft1_4FGL_J1238.1-4541_daily_bin1923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/48634287/ft1_4FGL_J1238.1-4541_daily_bin1923.fits outfile=/lscratch/kocevski/48634287/ft1_filteredMKT_4FGL_J1238.1-4541_daily_bin1923.fits ra=189.545 dec=-45.6861 rad=12.0 tmin=737769601.0 tmax=738028801.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.62
user 2.23
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.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/48634287/ft1_filteredMKT_4FGL_J1238.1-4541_daily_bin1923.fits evtable="EVENTS" outfile="/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.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.64
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1682

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits" evtable="EVENTS" scfile=/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits sctable="SC_DATA" outfile=/lscratch/kocevski/48634287/ltcube_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.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/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits
.....................!
real 8.63
user 8.25
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits evtable="EVENTS" scfile=/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits sctable="SC_DATA" expcube=/lscratch/kocevski/48634287/ltcube_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.fits outfile=/lscratch/kocevski/48634287/expmap_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.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/48634287/ltcube_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.fits
.....................!
real 73.80
user 68.68
sys 4.32

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 G296.5+10.0 in ROI with RadialDisk spatial model.
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.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 286 point sources and 8 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 J1238.1-4541 @ 189.545 -45.6861

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits scfile=/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits outfile=/lscratch/kocevski/48634287/cmap_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.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=189.545 yref=-45.6861 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.42
user 0.22
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits scfile=/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits outfile=/lscratch/kocevski/48634287/cmap_HighResolution_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.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=189.545 yref=-45.6861 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.42
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits evtable="EVENTS" scfile=/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/48634287/Model_4FGL_J1238.1-4541_daily_bin1923.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 FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
Working on...
/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits.....................!
real 155.56
user 153.00
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits', '/lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits', expMap='/lscratch/kocevski/48634287/expmap_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.fits', expCube='/lscratch/kocevski/48634287/ltcube_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/48634287/Model_4FGL_J1238.1-4541_daily_bin1923.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.1-4541'

4FGL J1238.1-4541
   Spectrum: PowerLaw
504    Prefactor:  1.519e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
505        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
506        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/48634287/ft1_filtered_4FGL_J1238.1-4541_daily_bin1923.fits
Spacecraft file(s): /lscratch/kocevski/48634287/ft2_4FGL_J1238.1-4541_daily_bin1923.fits
Exposure map: /lscratch/kocevski/48634287/expmap_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.fits
Exposure cube: /lscratch/kocevski/48634287/ltcube_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/48634287/Model_4FGL_J1238.1-4541_daily_bin1923.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) = 16692.9300494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10922E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .56107E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.6854       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11309E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .64408       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20965E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.037       1.0000          .0000       .10000E+07
     9 'norm      '    .63031E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.145       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27879       1.0000          .0000       .10000E+07
    12 'norm      '    .68506E-02   1.0000          .0000       .10000E+07
    13 'norm      '    19.961       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11471E-01   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1045E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16692.86     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      894 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    14.757        .22668E-06** at limit **
   2  Prefactor     .59397E-08    34.732       -.24448E-05** at limit **
   3  Prefactor     6.6431        9.6137       -.14617E-05   -.29246E-01
   4  Prefactor     .10000E-03    1.4359        .33141E-05** at limit **
   5  Prefactor     .38858E-08    21.136       -.31363E-05** at limit **
   6  norm          .51042        .71584       -.12385E-06    .74840E-03
   7  Prefactor      .0000        2.3448       -.28015E-06** at limit **
   8  Prefactor     9.9981        7.5661       -.31451E-06   -.25309E-03
   9  norm          .11102E-09    3.6953       -.41451E-06** at limit **
  10  Prefactor     12.117        5.7368       -.21944E-06   -.16545E-02
  11  Prefactor     .32567        19.473        .27722E-05   -.13029E-01
  12  norm          .15155E-07    21.910        .20727E-05** at limit **
  13  norm          20.037        6.1089        .14896E-06    .24331E-02
  14  Prefactor     .27756E-09    83.327       -.48875E-05** at limit **
  15  Normalizat    1.0700        .23346        .18930E-04    .29727E-04
  16  Prefactor     1.0376        .65512E-01   -.27401E-05    .80481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 5.93969e-09
  Prefactor  = 6.64307
  Prefactor  = 0.0001
  Prefactor  = 3.88578e-09
  norm       = 0.510421
  Prefactor  = 0
  Prefactor  = 9.99808
  norm       = 1.11022e-10
  Prefactor  = 12.1172
  Prefactor  = 0.325666
  norm       = 1.51545e-08
  norm       = 20.0366
  Prefactor  = 2.77556e-10
  Normalizat = 1.06999
  Prefactor  = 1.03759
 **********
 **   18 **HESSE 
 **********

 FCN=   16692.86     FROM HESSE     STATUS=OK           241 CALLS     1135 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    14.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59397E-08    34.129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6431        14.718        .38785E-03   -1.5656    
   4  Prefactor     .10000E-03    .91647        .41549E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-08    21.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .51042        46.087        .65368E-03   -1.5694    
   7  Prefactor      .0000        2.3433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9981        7.5740        .31605E-03   -1.5645    
   9  norm          .11102E-09    3.6984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.117        5.7433        .28719E-03   -1.5638    
  11  Prefactor     .32567        2.7250        .10514E-01   -1.5697    
  12  norm          .15155E-07    21.635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.037        6.1094        .22390E-03   -1.5618    
  14  Prefactor     .27756E-09    83.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0700        .21110        .11773       -.90721    
  16  Prefactor     1.0376        .59591E-01    .40697E-01   -.91487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0059e-08
Minuit parameter uncertainties:
  1  4.93354e-05
  2  0.000899279
  3  14.7181
  4  1.78405e-06
  5  0.000576319
  6  9.70033
  7  7.39881e-06
  8  7.57396
  9  3.58828e-05
  10  5.74329
  11  1.88407
  12  0.00114533
  13  6.10943
  14  0.000317042
  15  0.211265
  16  0.0595944
Done.

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

Extracting fit parameters...

4FGL J1238.1-4541
   Spectrum: PowerLaw
504    Prefactor:  0.000e+00  7.399e-06  0.000e+00  1.000e+06 ( 1.000e-13)
505        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
506        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1033    Prefactor:  1.038e+00  5.959e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1034        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1035        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1018   Normalization:  1.070e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 189.545 -45.686
Photon Flux Upper Limit: 4.64239375316e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00353427049286 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/48634287/likelihoodResults_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.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) = 16692.8611171
delta logL = -0.000526923431607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16692.8605907
delta logL = -5.03237970406e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56549E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.4291       1.0000          .0000       10.000    
     3 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1045E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16692.86     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      234 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1757        .42118E-03** at limit **
   2  Index         1.8403        1.1700        .55735E-05     .0000    
   3  Normalizat    1.0700        1.1807       -.10984E-05    .47958E-05
   4  Prefactor     1.0376        1.2071        .71639E-06    .53617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.84028
  Normalizat = 1.06999
  Prefactor  = 1.03759
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16692.86     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .35065        1.6371        .55735E-05   -.68406    
   3  Normalizat    1.0700        1.1807       -.10984E-05   -.90721    
   4  Prefactor     1.0376        1.2071        .71639E-06   -.91487    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.22587e-13
Minuit parameter uncertainties:
  1  2.31016e-06
  2  1.18854
  3  1.21182
  4  1.24103
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) = 16692.8605902
delta logL = 0.0

Extracting fit parameters...

4FGL J1238.1-4541
   Spectrum: PowerLaw
504    Prefactor:  0.000e+00  2.310e-06  0.000e+00  1.000e+06 ( 1.000e-13)
505        Index:  1.840e+00  1.189e+00  0.000e+00  1.000e+01 (-1.000e+00)
506        Scale:  1.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1033    Prefactor:  1.038e+00  1.241e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1034        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1035        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1018   Normalization:  1.070e+00  1.212e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 189.545 -45.686

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/48634287/cmap_HighResolution_737769601_738028801_4FGL_J1238.1-4541_daily_bin1923.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2024-05-22 00:37:09.671268', job_id='48634287', GAL2='1.04', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1716363429.67', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1923' AND source_name='4FGL J1238.1-4541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed May 22 00:37:09 PDT 2024

