/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_J1123.5-6418_daily_bin1860
RA = 170.889, Dec = -64.3109
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='34004900', job_status='RUN', time_executed='2023-11-15 00:25:48.931865', time_epoch_executed='1700036748.93' WHERE source_name='4FGL J1123.5-6418' and cadence='daily' and bin_id='1860'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34004900

Creating custom pfile directory:
/lscratch/kocevski/34004900/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/34004900/ft1_4FGL_J1123.5-6418_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/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34004900/ft1_4FGL_J1123.5-6418_daily_bin1860.fits outfile=/lscratch/kocevski/34004900/ft1_filteredMKT_4FGL_J1123.5-6418_daily_bin1860.fits ra=170.889 dec=-64.3109 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.25
user 1.95
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_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/34004900/ft1_filteredMKT_4FGL_J1123.5-6418_daily_bin1860.fits evtable="EVENTS" outfile="/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_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.47
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 3904

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34004900/ltcube_721440001_721699201_4FGL_J1123.5-6418_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/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits
.....................!
real 9.19
user 8.74
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits evtable="EVENTS" scfile=/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34004900/ltcube_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.fits outfile=/lscratch/kocevski/34004900/expmap_721440001_721699201_4FGL_J1123.5-6418_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/34004900/ltcube_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.fits
.....................!
real 73.57
user 69.06
sys 4.09

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 FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 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.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Added 297 point sources and 10 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 J1123.5-6418 @ 170.889 -64.3109

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits scfile=/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits outfile=/lscratch/kocevski/34004900/cmap_721440001_721699201_4FGL_J1123.5-6418_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=170.889 yref=-64.3109 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.41
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits scfile=/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits outfile=/lscratch/kocevski/34004900/cmap_HighResolution_721440001_721699201_4FGL_J1123.5-6418_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=170.889 yref=-64.3109 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.39
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits evtable="EVENTS" scfile=/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34004900/Model_4FGL_J1123.5-6418_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 FGES J1036.3-5833
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
adding source RCW 86
adding source Westerlund 2
Working on...
/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits.....................!
real 265.15
user 263.38
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits', '/lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits', expMap='/lscratch/kocevski/34004900/expmap_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.fits', expCube='/lscratch/kocevski/34004900/ltcube_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34004900/Model_4FGL_J1123.5-6418_daily_bin1860.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1123.5-6418'

4FGL J1123.5-6418
   Spectrum: PowerLaw
418    Prefactor:  4.870e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
419        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34004900/ft1_filtered_4FGL_J1123.5-6418_daily_bin1860.fits
Spacecraft file(s): /lscratch/kocevski/34004900/ft2_4FGL_J1123.5-6418_daily_bin1860.fits
Exposure map: /lscratch/kocevski/34004900/expmap_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.fits
Exposure cube: /lscratch/kocevski/34004900/ltcube_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34004900/Model_4FGL_J1123.5-6418_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) = 34969.6434715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.990       1.0000          .0000       .10000E+07
     2 'norm      '    7.6930       1.0000          .0000       .10000E+07
     3 'Prefactor '    35.159       1.0000          .0000       .10000E+07
     4 'Prefactor '    .32208       1.0000          .0000       .10000E+07
     5 'norm      '    5.9455       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24058       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15237E-02   1.0000          .0000       .10000E+07
     8 'norm      '    2.7908       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15079E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .46653E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.441       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.359       1.0000          .0000       .10000E+07
    13 'Prefactor '    .70028E-05   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.9145       1.0000         .10000E-01   10.000    
    15 'norm      '    2.9158       1.0000          .0000       .10000E+07
    16 'Prefactor '    .91490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1106E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34969.62     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1163 TOTAL
                     EDM=   .14E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.295        91.352        .71058E-06   -.99285E-06
   2  norm          7.6887        2.5197       -.45615E-08    .21474E-04
   3  Prefactor     35.240        29.979        .20070E-06   -.11595E-04
   4  Prefactor     .32146        3.4640        .16120E-07    .60044E-05
   5  norm          5.9376        3.7494        .58267E-08   -.78099E-05
   6  Prefactor      .0000        52.637        .28224E-06** at limit **
   7  Prefactor      .0000        169.21        .69376E-06** at limit **
   8  norm          3.0035        7.6977       -.30432E-07   -.25388E-05
   9  Prefactor      .0000        14.178       -.37114E-07** at limit **
  10  norm           .0000        35.708       -.62033E-07** at limit **
  11  Prefactor     13.442        12.396        .33916E-07   -.11557E-04
  12  Prefactor     13.997        29.971        .90845E-07   -.12563E-04
  13  Prefactor      .0000        7.1085        .35501E-07** at limit **
  14  Normalizat    1.9109        .32053       -.20293E-05    .47253E-06
  15  norm          2.9148        1.2980        .75226E-09    .18766E-04
  16  Prefactor     .91512        .30970E-01    .16665E-06    .37898E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.295
  norm       = 7.68873
  Prefactor  = 35.2402
  Prefactor  = 0.321463
  norm       = 5.93759
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.00349
  Prefactor  = 0
  norm       = 0
  Prefactor  = 13.4418
  Prefactor  = 13.9966
  Prefactor  = 0
  Normalizat = 1.91088
  norm       = 2.91477
  Prefactor  = 0.915123
 **********
 **   18 **HESSE 
 **********

 FCN=   34969.62     FROM HESSE     STATUS=OK           247 CALLS     1410 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.295        91.196        .11182E-03   -1.5527    
   2  norm          7.6887        2.5706        .36131E-03   -1.5653    
   3  Prefactor     35.240        30.046        .16867E-03   -1.5589    
   4  Prefactor     .32146        1.0842        .53490E-02   -1.5697    
   5  norm          5.9376        3.7626        .41158E-03   -1.5659    
   6  Prefactor      .0000        51.227        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        168.54        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0035        7.6893        .60879E-03   -1.5673    
   9  Prefactor      .0000        14.150        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        4.0051        .15676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.442        12.391        .27295E-03   -1.5635    
  12  Prefactor     13.997        29.808        .26406E-03   -1.5633    
  13  Prefactor      .0000        7.1157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.9109        .31413        .22708       -.66803    
  15  norm          2.9148        1.3154        .59471E-03   -1.5674    
  16  Prefactor     .91512        .29680E-01    .29422E-01   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21325e-07
Minuit parameter uncertainties:
  1  91.1975
  2  2.57065
  3  30.0459
  4  1.08415
  5  3.76262
  6  2.61231e-06
  7  2.60792e-05
  8  7.68936
  9  4.02553e-07
  10  9.67046e-07
  11  12.3907
  12  29.8086
  13  1.61743e-07
  14  0.31447
  15  1.31545
  16  0.0296808
Done.

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

Extracting fit parameters...

4FGL J1123.5-6418
   Spectrum: PowerLaw
418    Prefactor:  0.000e+00  2.612e-06  0.000e+00  1.000e+06 ( 1.000e-13)
419        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1088    Prefactor:  9.151e-01  2.968e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1089        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1090        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1069   Normalization:  1.911e+00  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 170.889 -64.311
Photon Flux Upper Limit: 1.82957902846e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0143370677784 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34004900/likelihoodResults_721440001_721699201_4FGL_J1123.5-6418_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): 0
logL (Free Index) = 34969.62996
delta logL = -0.00988148877514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 34969.6200865
delta logL = -7.94582592789e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19984E-03   1.0000          .0000       .10000E+07
     2 'Index     '    3.3892       1.0000          .0000       10.000    
     3 'Normalizat'    1.9101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91517       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1106E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34969.62     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      251 TOTAL
                     EDM=   .22E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .29113        .42118E-03** at limit **
   2  Index         2.1525        5.7382        .51000       -.71333E-11
   3  Normalizat    1.9109        .92545E-03    .22708        .83538E-04
   4  Prefactor     .91512        .87202E-04    .29422E-01   -.11909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.15248
  Normalizat = 1.91088
  Prefactor  = 0.915123
 **********
 **   18 **HESSE 
 **********

 FCN=   34969.62     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      278 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.6302        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1525        8.8783        .51000       -.60590    
   3  Normalizat    1.9109        .21646E-02    .10146E-02   -.66803    
   4  Prefactor     .91512        .20620E-03    .13001E-03   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20086e-13
Minuit parameter uncertainties:
  1  1.54643e-05
  2  61761.7
  3  0.0021646
  4  0.000206204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 34969.6200785
delta logL = 0.0

Extracting fit parameters...

4FGL J1123.5-6418
   Spectrum: PowerLaw
418    Prefactor:  5.551e-11  1.546e-05  0.000e+00  1.000e+06 ( 1.000e-13)
419        Index:  2.152e+00  6.176e+04  0.000e+00  1.000e+01 (-1.000e+00)
420        Scale:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1088    Prefactor:  9.151e-01  2.062e-04  0.000e+00  1.000e+01 ( 1.000e+00)
1089        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1090        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1069   Normalization:  1.911e+00  2.165e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 170.889 -64.311

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/34004900/cmap_HighResolution_721440001_721699201_4FGL_J1123.5-6418_daily_bin1860.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2023-11-15 00:48:26.279671', job_id='34004900', GAL2='0.92', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1700038106.28', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1860' AND source_name='4FGL J1123.5-6418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 15 00:48:26 PST 2023

